Skip to content

Commit 88e1c84

Browse files
Update with code-generated api bindings and models performed 2021-10-12
1 parent 1a2c584 commit 88e1c84

33 files changed

Lines changed: 2974 additions & 238 deletions

splunk_sdk/action/v1beta2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,4 +681,4 @@ paths:
681681
- Webhook Keys
682682
x-auth-required: false
683683

684-
# Retrieved from scp-openapi commit 5bcc18023c79088bf6bdbcad5d85d1bbdfda268b path: action/v1beta2/openapi.yaml
684+
# Retrieved from scp-openapi commit 790daec8c2c4866ae9ec2b7398e11e3d44d917b6 path: action/v1beta2/openapi.yaml

splunk_sdk/action/v2alpha1/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,4 +731,4 @@ paths:
731731
- Webhook Keys
732732
x-auth-required: false
733733

734-
# Retrieved from scp-openapi commit 5bcc18023c79088bf6bdbcad5d85d1bbdfda268b path: action/v2alpha1/openapi.yaml
734+
# Retrieved from scp-openapi commit 790daec8c2c4866ae9ec2b7398e11e3d44d917b6 path: action/v2alpha1/openapi.yaml

splunk_sdk/app_registry/v1beta2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,4 +903,4 @@ paths:
903903
security:
904904
- BearerToken: []
905905

906-
# Retrieved from scp-openapi commit 5bcc18023c79088bf6bdbcad5d85d1bbdfda268b path: app-registry/v1beta2/openapi.yaml
906+
# Retrieved from scp-openapi commit 790daec8c2c4866ae9ec2b7398e11e3d44d917b6 path: app-registry/v1beta2/openapi.yaml

splunk_sdk/forwarders/v2beta1/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ paths:
234234
servers:
235235
- url: /
236236

237-
# Retrieved from scp-openapi commit 5bcc18023c79088bf6bdbcad5d85d1bbdfda268b path: forwarders/v2beta1/openapi.yaml
237+
# Retrieved from scp-openapi commit 790daec8c2c4866ae9ec2b7398e11e3d44d917b6 path: forwarders/v2beta1/openapi.yaml

splunk_sdk/identity/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
2525
26-
OpenAPI spec version: v3.4 (recommended default)
26+
OpenAPI spec version: v3.5 (recommended default)
2727
Generated by: https://openapi-generator.tech
2828
"""
2929

@@ -45,15 +45,20 @@
4545
CreatePrincipalProfile, \
4646
CreatePrincipalBody, \
4747
CreateRoleBody, \
48+
CreateSamlClientBody, \
49+
EcMetadataStack, \
50+
EcMetadata, \
4851
Group, \
4952
GroupList, \
5053
GroupMember, \
5154
GroupMemberList, \
5255
GroupRole, \
5356
GroupRoleList, \
5457
IdentityProviderBodyConfig, \
58+
IdentityProviderBodyJit, \
5559
IdentityProviderBody, \
5660
IdentityProviderConfigBodyConfig, \
61+
IdentityProviderConfigBodyJit, \
5762
IdentityProviderConfigBody, \
5863
PrincipalProfile, \
5964
Member, \
@@ -68,9 +73,11 @@
6873
RoleList, \
6974
RolePermission, \
7075
RolePermissionList, \
76+
SamlClient, \
7177
TenantStatus, \
7278
Tenant, \
7379
UpdateGroupBody, \
7480
UpdatePasswordBody, \
7581
UpdateRoleBody, \
82+
UpdateSamlClientBody, \
7683
ValidateInfo

splunk_sdk/identity/v2beta1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
2525
26-
OpenAPI spec version: v2beta1.21
26+
OpenAPI spec version: v2beta1.22
2727
Generated by: https://openapi-generator.tech
2828
"""
2929

splunk_sdk/identity/v2beta1/gen_identity_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
2323
24-
OpenAPI spec version: v2beta1.21
24+
OpenAPI spec version: v2beta1.22
2525
Generated by: https://openapi-generator.tech
2626
"""
2727

@@ -58,7 +58,7 @@
5858
class Identity(BaseService):
5959
"""
6060
Identity
61-
Version: v2beta1.21
61+
Version: v2beta1.22
6262
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
6363
"""
6464

splunk_sdk/identity/v2beta1/gen_models.py

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
2121
22-
OpenAPI spec version: v2beta1.21
22+
OpenAPI spec version: v2beta1.22
2323
Generated by: https://openapi-generator.tech
2424
"""
2525

@@ -1267,10 +1267,13 @@ def to_dict(self):
12671267

12681268

12691269
class KindEnum(str, Enum):
1270+
KEYCLOAK = "keycloak"
12701271
SAML = "saml"
12711272

12721273
@staticmethod
12731274
def from_value(value: str):
1275+
if value == "keycloak":
1276+
return KindEnum.KEYCLOAK
12741277
if value == "saml":
12751278
return KindEnum.SAML
12761279

@@ -1609,15 +1612,6 @@ def to_dict(self):
16091612
return {k: v for (k, v) in self._attrs.items() if v is not None}
16101613

16111614

1612-
class KindEnum(str, Enum):
1613-
SAML = "saml"
1614-
1615-
@staticmethod
1616-
def from_value(value: str):
1617-
if value == "saml":
1618-
return KindEnum.SAML
1619-
1620-
16211615
class IdentityProviderConfigBody(SSCModel):
16221616

16231617
@staticmethod
@@ -1626,16 +1620,14 @@ def _from_dict(model: dict) -> "IdentityProviderConfigBody":
16261620
instance._attrs = model
16271621
return instance
16281622

1629-
def __init__(self, config: "IdentityProviderConfigBodyConfig", id: "str", kind: "str", description: "str" = None, enabled: "bool" = None, title: "str" = None, **extra):
1623+
def __init__(self, config: "IdentityProviderConfigBodyConfig", id: "str", description: "str" = None, enabled: "bool" = None, title: "str" = None, **extra):
16301624
"""IdentityProviderConfigBody"""
16311625

16321626
self._attrs = dict()
16331627
if config is not None:
16341628
self._attrs["config"] = config.to_dict()
16351629
if id is not None:
16361630
self._attrs["id"] = id
1637-
if kind is not None:
1638-
self._attrs["kind"] = kind
16391631
if description is not None:
16401632
self._attrs["description"] = description
16411633
if enabled is not None:
@@ -1681,27 +1673,6 @@ def id(self, id: "str"):
16811673
raise ValueError("Invalid value for `id`, must not be `None`")
16821674
self._attrs["id"] = id
16831675

1684-
@property
1685-
def kind(self) -> "KindEnum":
1686-
""" Gets the kind of this IdentityProviderConfigBody.
1687-
"""
1688-
return KindEnum.from_value(self._attrs.get("kind"))
1689-
1690-
@kind.setter
1691-
def kind(self, kind: "str"):
1692-
"""Sets the kind of this IdentityProviderConfigBody.
1693-
1694-
1695-
:param kind: The kind of this IdentityProviderConfigBody.
1696-
:type: str
1697-
"""
1698-
if kind is None:
1699-
raise ValueError("Invalid value for `kind`, must not be `None`")
1700-
if isinstance(kind, Enum):
1701-
self._attrs["kind"] = kind.value
1702-
else:
1703-
self._attrs["kind"] = kind # If you supply a string, we presume you know the service will take it.
1704-
17051676
@property
17061677
def description(self) -> "str":
17071678
""" Gets the description of this IdentityProviderConfigBody.

splunk_sdk/identity/v2beta1/openapi.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ components:
447447
x-case-insensitive: true
448448
redirectUris:
449449
items:
450-
maxItems: 100
451450
maxLength: 256
452451
minLength: 8
453452
type: string
453+
maxItems: 100
454454
type: array
455455
required:
456456
- name
@@ -723,6 +723,7 @@ components:
723723
keys:
724724
items:
725725
$ref: '#/components/schemas/ECJwk'
726+
maxItems: 10
726727
type: array
727728
type: object
728729
Group:
@@ -848,6 +849,7 @@ components:
848849
type: string
849850
kind:
850851
enum:
852+
- keycloak
851853
- saml
852854
type: string
853855
title:
@@ -891,16 +893,11 @@ components:
891893
minLength: 4
892894
pattern: ^[_a-z]([.]?[_a-z0-9])*$
893895
type: string
894-
kind:
895-
enum:
896-
- saml
897-
type: string
898896
title:
899897
maxLength: 256
900898
type: string
901899
required:
902900
- id
903-
- kind
904901
- config
905902
type: object
906903
IdentityProviderList:
@@ -972,6 +969,7 @@ components:
972969
keys:
973970
items:
974971
$ref: '#/components/schemas/Jwk'
972+
maxItems: 10
975973
type: array
976974
type: object
977975
Key:
@@ -1540,10 +1538,10 @@ components:
15401538
properties:
15411539
redirectUris:
15421540
items:
1543-
maxItems: 100
15441541
maxLength: 256
15451542
minLength: 8
15461543
type: string
1544+
maxItems: 100
15471545
type: array
15481546
type: object
15491547
UpdateIdpBody:
@@ -1658,7 +1656,7 @@ info:
16581656
description: With the Identity service in Splunk Cloud Services, you can authenticate
16591657
and authorize Splunk Cloud Services users.
16601658
title: Identity
1661-
version: v2beta1.21
1659+
version: v2beta1.22
16621660
openapi: 3.0.0
16631661
paths:
16641662
/{tenant}/identity/v2beta1/groups:
@@ -2732,4 +2730,4 @@ security:
27322730
servers:
27332731
- url: /
27342732

2735-
# Retrieved from scp-openapi commit 5bcc18023c79088bf6bdbcad5d85d1bbdfda268b path: identity/v2beta1/openapi.yaml
2733+
# Retrieved from scp-openapi commit 790daec8c2c4866ae9ec2b7398e11e3d44d917b6 path: identity/v2beta1/openapi.yaml

splunk_sdk/identity/v3/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
2525
26-
OpenAPI spec version: v3.4 (recommended default)
26+
OpenAPI spec version: v3.5 (recommended default)
2727
Generated by: https://openapi-generator.tech
2828
"""
2929

@@ -45,15 +45,20 @@
4545
CreatePrincipalProfile, \
4646
CreatePrincipalBody, \
4747
CreateRoleBody, \
48+
CreateSamlClientBody, \
49+
EcMetadataStack, \
50+
EcMetadata, \
4851
Group, \
4952
GroupList, \
5053
GroupMember, \
5154
GroupMemberList, \
5255
GroupRole, \
5356
GroupRoleList, \
5457
IdentityProviderBodyConfig, \
58+
IdentityProviderBodyJit, \
5559
IdentityProviderBody, \
5660
IdentityProviderConfigBodyConfig, \
61+
IdentityProviderConfigBodyJit, \
5762
IdentityProviderConfigBody, \
5863
PrincipalProfile, \
5964
Member, \
@@ -68,9 +73,11 @@
6873
RoleList, \
6974
RolePermission, \
7075
RolePermissionList, \
76+
SamlClient, \
7177
TenantStatus, \
7278
Tenant, \
7379
UpdateGroupBody, \
7480
UpdatePasswordBody, \
7581
UpdateRoleBody, \
82+
UpdateSamlClientBody, \
7683
ValidateInfo

0 commit comments

Comments
 (0)