File tree Expand file tree Collapse file tree 8 files changed +140
-0
lines changed
scaleway-async/scaleway_async/iam/v1alpha1
scaleway/scaleway/iam/v1alpha1 Expand file tree Collapse file tree 8 files changed +140
-0
lines changed Original file line number Diff line number Diff line change 74
74
from .types import GetPolicyRequest
75
75
from .types import GetQuotumRequest
76
76
from .types import GetSSHKeyRequest
77
+ from .types import GetSamlInformationRequest
77
78
from .types import GetUserConnectionsRequest
78
79
from .types import GetUserConnectionsResponse
79
80
from .types import GetUserRequest
114
115
from .types import RemoveGroupMemberRequest
115
116
from .types import RemoveUserConnectionRequest
116
117
from .types import Saml
118
+ from .types import SamlInformation
117
119
from .types import SetGroupMembersRequest
118
120
from .types import SetOrganizationAliasRequest
119
121
from .types import SetRulesRequest
208
210
"GetPolicyRequest" ,
209
211
"GetQuotumRequest" ,
210
212
"GetSSHKeyRequest" ,
213
+ "GetSamlInformationRequest" ,
211
214
"GetUserConnectionsRequest" ,
212
215
"GetUserConnectionsResponse" ,
213
216
"GetUserRequest" ,
248
251
"RemoveGroupMemberRequest" ,
249
252
"RemoveUserConnectionRequest" ,
250
253
"Saml" ,
254
+ "SamlInformation" ,
251
255
"SetGroupMembersRequest" ,
252
256
"SetOrganizationAliasRequest" ,
253
257
"SetRulesRequest" ,
Original file line number Diff line number Diff line change 75
75
SSHKey ,
76
76
Saml ,
77
77
SamlCertificate ,
78
+ SamlInformation ,
78
79
SetGroupMembersRequest ,
79
80
SetOrganizationAliasRequest ,
80
81
SetRulesRequest ,
124
125
unmarshal_Organization ,
125
126
unmarshal_OrganizationSecuritySettings ,
126
127
unmarshal_Saml ,
128
+ unmarshal_SamlInformation ,
127
129
unmarshal_SetRulesResponse ,
128
130
unmarshal_ValidateUserMFAOTPResponse ,
129
131
marshal_AddGroupMemberRequest ,
@@ -3274,3 +3276,25 @@ async def delete_saml_certificate(
3274
3276
)
3275
3277
3276
3278
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 ())
Original file line number Diff line number Diff line change 56
56
Organization ,
57
57
OrganizationSecuritySettings ,
58
58
Saml ,
59
+ SamlInformation ,
59
60
SetRulesResponse ,
60
61
ValidateUserMFAOTPResponse ,
61
62
AddGroupMemberRequest ,
@@ -1598,6 +1599,29 @@ def unmarshal_Saml(data: Any) -> Saml:
1598
1599
return Saml (** args )
1599
1600
1600
1601
1602
+ def unmarshal_SamlInformation (data : Any ) -> SamlInformation :
1603
+ if not isinstance (data , dict ):
1604
+ raise TypeError (
1605
+ "Unmarshalling the type 'SamlInformation' failed as data isn't a dictionary."
1606
+ )
1607
+
1608
+ args : Dict [str , Any ] = {}
1609
+
1610
+ field = data .get ("entity_id" , None )
1611
+ if field is not None :
1612
+ args ["entity_id" ] = field
1613
+ else :
1614
+ args ["entity_id" ] = None
1615
+
1616
+ field = data .get ("assertion_consumer_service_url" , None )
1617
+ if field is not None :
1618
+ args ["assertion_consumer_service_url" ] = field
1619
+ else :
1620
+ args ["assertion_consumer_service_url" ] = None
1621
+
1622
+ return SamlInformation (** args )
1623
+
1624
+
1601
1625
def unmarshal_SetRulesResponse (data : Any ) -> SetRulesResponse :
1602
1626
if not isinstance (data , dict ):
1603
1627
raise TypeError (
Original file line number Diff line number Diff line change @@ -1384,6 +1384,11 @@ class GetSSHKeyRequest:
1384
1384
"""
1385
1385
1386
1386
1387
+ @dataclass
1388
+ class GetSamlInformationRequest :
1389
+ pass
1390
+
1391
+
1387
1392
@dataclass
1388
1393
class GetUserConnectionsRequest :
1389
1394
user_id : str
@@ -2159,6 +2164,19 @@ class Saml:
2159
2164
"""
2160
2165
2161
2166
2167
+ @dataclass
2168
+ class SamlInformation :
2169
+ entity_id : str
2170
+ """
2171
+ Entity ID.
2172
+ """
2173
+
2174
+ assertion_consumer_service_url : str
2175
+ """
2176
+ SAML Assertion Consumer Service url.
2177
+ """
2178
+
2179
+
2162
2180
@dataclass
2163
2181
class SetGroupMembersRequest :
2164
2182
group_id : str
Original file line number Diff line number Diff line change 74
74
from .types import GetPolicyRequest
75
75
from .types import GetQuotumRequest
76
76
from .types import GetSSHKeyRequest
77
+ from .types import GetSamlInformationRequest
77
78
from .types import GetUserConnectionsRequest
78
79
from .types import GetUserConnectionsResponse
79
80
from .types import GetUserRequest
114
115
from .types import RemoveGroupMemberRequest
115
116
from .types import RemoveUserConnectionRequest
116
117
from .types import Saml
118
+ from .types import SamlInformation
117
119
from .types import SetGroupMembersRequest
118
120
from .types import SetOrganizationAliasRequest
119
121
from .types import SetRulesRequest
208
210
"GetPolicyRequest" ,
209
211
"GetQuotumRequest" ,
210
212
"GetSSHKeyRequest" ,
213
+ "GetSamlInformationRequest" ,
211
214
"GetUserConnectionsRequest" ,
212
215
"GetUserConnectionsResponse" ,
213
216
"GetUserRequest" ,
248
251
"RemoveGroupMemberRequest" ,
249
252
"RemoveUserConnectionRequest" ,
250
253
"Saml" ,
254
+ "SamlInformation" ,
251
255
"SetGroupMembersRequest" ,
252
256
"SetOrganizationAliasRequest" ,
253
257
"SetRulesRequest" ,
Original file line number Diff line number Diff line change 75
75
SSHKey ,
76
76
Saml ,
77
77
SamlCertificate ,
78
+ SamlInformation ,
78
79
SetGroupMembersRequest ,
79
80
SetOrganizationAliasRequest ,
80
81
SetRulesRequest ,
124
125
unmarshal_Organization ,
125
126
unmarshal_OrganizationSecuritySettings ,
126
127
unmarshal_Saml ,
128
+ unmarshal_SamlInformation ,
127
129
unmarshal_SetRulesResponse ,
128
130
unmarshal_ValidateUserMFAOTPResponse ,
129
131
marshal_AddGroupMemberRequest ,
@@ -3274,3 +3276,25 @@ def delete_saml_certificate(
3274
3276
)
3275
3277
3276
3278
self ._throw_on_error (res )
3279
+
3280
+ 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 = 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 ())
Original file line number Diff line number Diff line change 56
56
Organization ,
57
57
OrganizationSecuritySettings ,
58
58
Saml ,
59
+ SamlInformation ,
59
60
SetRulesResponse ,
60
61
ValidateUserMFAOTPResponse ,
61
62
AddGroupMemberRequest ,
@@ -1598,6 +1599,29 @@ def unmarshal_Saml(data: Any) -> Saml:
1598
1599
return Saml (** args )
1599
1600
1600
1601
1602
+ def unmarshal_SamlInformation (data : Any ) -> SamlInformation :
1603
+ if not isinstance (data , dict ):
1604
+ raise TypeError (
1605
+ "Unmarshalling the type 'SamlInformation' failed as data isn't a dictionary."
1606
+ )
1607
+
1608
+ args : Dict [str , Any ] = {}
1609
+
1610
+ field = data .get ("entity_id" , None )
1611
+ if field is not None :
1612
+ args ["entity_id" ] = field
1613
+ else :
1614
+ args ["entity_id" ] = None
1615
+
1616
+ field = data .get ("assertion_consumer_service_url" , None )
1617
+ if field is not None :
1618
+ args ["assertion_consumer_service_url" ] = field
1619
+ else :
1620
+ args ["assertion_consumer_service_url" ] = None
1621
+
1622
+ return SamlInformation (** args )
1623
+
1624
+
1601
1625
def unmarshal_SetRulesResponse (data : Any ) -> SetRulesResponse :
1602
1626
if not isinstance (data , dict ):
1603
1627
raise TypeError (
Original file line number Diff line number Diff line change @@ -1384,6 +1384,11 @@ class GetSSHKeyRequest:
1384
1384
"""
1385
1385
1386
1386
1387
+ @dataclass
1388
+ class GetSamlInformationRequest :
1389
+ pass
1390
+
1391
+
1387
1392
@dataclass
1388
1393
class GetUserConnectionsRequest :
1389
1394
user_id : str
@@ -2159,6 +2164,19 @@ class Saml:
2159
2164
"""
2160
2165
2161
2166
2167
+ @dataclass
2168
+ class SamlInformation :
2169
+ entity_id : str
2170
+ """
2171
+ Entity ID.
2172
+ """
2173
+
2174
+ assertion_consumer_service_url : str
2175
+ """
2176
+ SAML Assertion Consumer Service url.
2177
+ """
2178
+
2179
+
2162
2180
@dataclass
2163
2181
class SetGroupMembersRequest :
2164
2182
group_id : str
You can’t perform that action at this time.
0 commit comments