3737 CreateApplicationRequest ,
3838 CreateGroupRequest ,
3939 CreateJWTRequest ,
40- CreateOrganizationSamlRequest ,
4140 CreatePolicyRequest ,
4241 CreateSSHKeyRequest ,
4342 CreateUserRequest ,
7574 SSHKey ,
7675 Saml ,
7776 SamlCertificate ,
78- SamlInformation ,
7977 SetGroupMembersRequest ,
8078 SetOrganizationAliasRequest ,
8179 SetRulesRequest ,
8280 SetRulesResponse ,
8381 UpdateAPIKeyRequest ,
8482 UpdateApplicationRequest ,
8583 UpdateGroupRequest ,
86- UpdateOrganizationSamlRequest ,
8784 UpdateOrganizationSecuritySettingsRequest ,
8885 UpdatePolicyRequest ,
8986 UpdateSSHKeyRequest ,
87+ UpdateSamlRequest ,
9088 UpdateUserPasswordRequest ,
9189 UpdateUserRequest ,
9290 UpdateUserUsernameRequest ,
125123 unmarshal_Organization ,
126124 unmarshal_OrganizationSecuritySettings ,
127125 unmarshal_Saml ,
128- unmarshal_SamlInformation ,
129126 unmarshal_SetRulesResponse ,
130127 unmarshal_ValidateUserMFAOTPResponse ,
131128 marshal_AddGroupMemberRequest ,
135132 marshal_CreateApplicationRequest ,
136133 marshal_CreateGroupRequest ,
137134 marshal_CreateJWTRequest ,
138- marshal_CreateOrganizationSamlRequest ,
139135 marshal_CreatePolicyRequest ,
140136 marshal_CreateSSHKeyRequest ,
141137 marshal_CreateUserRequest ,
148144 marshal_UpdateAPIKeyRequest ,
149145 marshal_UpdateApplicationRequest ,
150146 marshal_UpdateGroupRequest ,
151- marshal_UpdateOrganizationSamlRequest ,
152147 marshal_UpdateOrganizationSecuritySettingsRequest ,
153148 marshal_UpdatePolicyRequest ,
154149 marshal_UpdateSSHKeyRequest ,
150+ marshal_UpdateSamlRequest ,
155151 marshal_UpdateUserPasswordRequest ,
156152 marshal_UpdateUserRequest ,
157153 marshal_UpdateUserUsernameRequest ,
@@ -3072,27 +3068,20 @@ async def get_organization_saml(
30723068 self ._throw_on_error (res )
30733069 return unmarshal_Saml (res .json ())
30743070
3075- async def create_organization_saml (
3071+ async def enable_organization_saml (
30763072 self ,
30773073 * ,
3078- entity_id : str ,
3079- single_sign_on_url : str ,
30803074 organization_id : Optional [str ] = None ,
30813075 ) -> Saml :
30823076 """
3083- Create a SAML Identity Provider configuration for an Organization.
3084- :param entity_id: Entity ID of the SAML Identity Provider.
3085- :param single_sign_on_url: Single Sign-On URL of the SAML Identity Provider.
3077+ Enable SAML Identity Provider for an Organization.
30863078 :param organization_id: ID of the Organization.
30873079 :return: :class:`Saml <Saml>`
30883080
30893081 Usage:
30903082 ::
30913083
3092- result = await api.create_organization_saml(
3093- entity_id="example",
3094- single_sign_on_url="example",
3095- )
3084+ result = await api.enable_organization_saml()
30963085 """
30973086
30983087 param_organization_id = validate_path_param (
@@ -3102,49 +3091,42 @@ async def create_organization_saml(
31023091 res = self ._request (
31033092 "POST" ,
31043093 f"/iam/v1alpha1/organizations/{ param_organization_id } /saml" ,
3105- body = marshal_CreateOrganizationSamlRequest (
3106- CreateOrganizationSamlRequest (
3107- entity_id = entity_id ,
3108- single_sign_on_url = single_sign_on_url ,
3109- organization_id = organization_id ,
3110- ),
3111- self .client ,
3112- ),
3094+ body = {},
31133095 )
31143096
31153097 self ._throw_on_error (res )
31163098 return unmarshal_Saml (res .json ())
31173099
3118- async def update_organization_saml (
3100+ async def update_saml (
31193101 self ,
31203102 * ,
3121- organization_id : Optional [ str ] = None ,
3103+ saml_id : str ,
31223104 entity_id : Optional [str ] = None ,
31233105 single_sign_on_url : Optional [str ] = None ,
31243106 ) -> Saml :
31253107 """
3126- Update a SAML Identity Provider configuration for an Organization .
3127- :param organization_id : ID of the Organization .
3108+ Update SAML Identity Provider configuration.
3109+ :param saml_id : ID of the SAML configuration .
31283110 :param entity_id: Entity ID of the SAML Identity Provider.
31293111 :param single_sign_on_url: Single Sign-On URL of the SAML Identity Provider.
31303112 :return: :class:`Saml <Saml>`
31313113
31323114 Usage:
31333115 ::
31343116
3135- result = await api.update_organization_saml()
3117+ result = await api.update_saml(
3118+ saml_id="example",
3119+ )
31363120 """
31373121
3138- param_organization_id = validate_path_param (
3139- "organization_id" , organization_id or self .client .default_organization_id
3140- )
3122+ param_saml_id = validate_path_param ("saml_id" , saml_id )
31413123
31423124 res = self ._request (
31433125 "PATCH" ,
3144- f"/iam/v1alpha1/organizations/ { param_organization_id } /saml " ,
3145- body = marshal_UpdateOrganizationSamlRequest (
3146- UpdateOrganizationSamlRequest (
3147- organization_id = organization_id ,
3126+ f"/iam/v1alpha1/saml/ { param_saml_id } " ,
3127+ body = marshal_UpdateSamlRequest (
3128+ UpdateSamlRequest (
3129+ saml_id = saml_id ,
31483130 entity_id = entity_id ,
31493131 single_sign_on_url = single_sign_on_url ,
31503132 ),
@@ -3155,28 +3137,28 @@ async def update_organization_saml(
31553137 self ._throw_on_error (res )
31563138 return unmarshal_Saml (res .json ())
31573139
3158- async def delete_organization_saml (
3140+ async def delete_saml (
31593141 self ,
31603142 * ,
3161- organization_id : Optional [ str ] = None ,
3143+ saml_id : str ,
31623144 ) -> None :
31633145 """
3164- Delete a SAML Identity Provider configuration for an Organization.
3165- :param organization_id : ID of the Organization .
3146+ Disable SAML Identity Provider for an Organization.
3147+ :param saml_id : ID of the SAML configuration .
31663148
31673149 Usage:
31683150 ::
31693151
3170- result = await api.delete_organization_saml()
3152+ result = await api.delete_saml(
3153+ saml_id="example",
3154+ )
31713155 """
31723156
3173- param_organization_id = validate_path_param (
3174- "organization_id" , organization_id or self .client .default_organization_id
3175- )
3157+ param_saml_id = validate_path_param ("saml_id" , saml_id )
31763158
31773159 res = self ._request (
31783160 "DELETE" ,
3179- f"/iam/v1alpha1/organizations/ { param_organization_id } /saml " ,
3161+ f"/iam/v1alpha1/saml/ { param_saml_id } " ,
31803162 )
31813163
31823164 self ._throw_on_error (res )
@@ -3276,25 +3258,3 @@ async def delete_saml_certificate(
32763258 )
32773259
32783260 self ._throw_on_error (res )
3279-
3280- async def get_saml_information (
3281- self ,
3282- ) -> SamlInformation :
3283- """
3284- Get SAML information.
3285-
3286- :return: :class:`SamlInformation <SamlInformation>`
3287-
3288- Usage:
3289- ::
3290-
3291- result = await api.get_saml_information()
3292- """
3293-
3294- res = self ._request (
3295- "GET" ,
3296- "/iam/v1alpha1/saml-information" ,
3297- )
3298-
3299- self ._throw_on_error (res )
3300- return unmarshal_SamlInformation (res .json ())
0 commit comments