Skip to content

Commit 5f354b0

Browse files
update iam
1 parent a6cbd46 commit 5f354b0

11 files changed

+2359
-0
lines changed

volcenginesdkiam/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,11 @@
180180
from volcenginesdkiam.models.user_group_for_list_groups_for_user_output import UserGroupForListGroupsForUserOutput
181181
from volcenginesdkiam.models.user_group_for_list_groups_output import UserGroupForListGroupsOutput
182182
from volcenginesdkiam.models.user_metadata_for_list_users_output import UserMetadataForListUsersOutput
183+
from volcenginesdkiam.models.add_saml_provider_certificate_request import AddSAMLProviderCertificateRequest
184+
from volcenginesdkiam.models.add_saml_provider_certificate_response import AddSAMLProviderCertificateResponse
185+
from volcenginesdkiam.models.create_saml_provider_request import CreateSAMLProviderRequest
186+
from volcenginesdkiam.models.create_saml_provider_response import CreateSAMLProviderResponse
187+
from volcenginesdkiam.models.update_o_auth_provider_request import UpdateOAuthProviderRequest
188+
from volcenginesdkiam.models.update_o_auth_provider_response import UpdateOAuthProviderResponse
189+
from volcenginesdkiam.models.update_saml_provider_request import UpdateSAMLProviderRequest
190+
from volcenginesdkiam.models.update_saml_provider_response import UpdateSAMLProviderResponse

volcenginesdkiam/api/iam_api.py

Lines changed: 387 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkiam/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,11 @@
176176
from volcenginesdkiam.models.user_group_for_list_groups_for_user_output import UserGroupForListGroupsForUserOutput
177177
from volcenginesdkiam.models.user_group_for_list_groups_output import UserGroupForListGroupsOutput
178178
from volcenginesdkiam.models.user_metadata_for_list_users_output import UserMetadataForListUsersOutput
179+
from volcenginesdkiam.models.add_saml_provider_certificate_request import AddSAMLProviderCertificateRequest
180+
from volcenginesdkiam.models.add_saml_provider_certificate_response import AddSAMLProviderCertificateResponse
181+
from volcenginesdkiam.models.create_saml_provider_request import CreateSAMLProviderRequest
182+
from volcenginesdkiam.models.create_saml_provider_response import CreateSAMLProviderResponse
183+
from volcenginesdkiam.models.update_o_auth_provider_request import UpdateOAuthProviderRequest
184+
from volcenginesdkiam.models.update_o_auth_provider_response import UpdateOAuthProviderResponse
185+
from volcenginesdkiam.models.update_saml_provider_request import UpdateSAMLProviderRequest
186+
from volcenginesdkiam.models.update_saml_provider_response import UpdateSAMLProviderResponse
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# coding: utf-8
2+
3+
"""
4+
iam
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AddSAMLProviderCertificateRequest(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'saml_provider_name': 'str',
37+
'x509_certificate': 'str'
38+
}
39+
40+
attribute_map = {
41+
'saml_provider_name': 'SAMLProviderName',
42+
'x509_certificate': 'X509Certificate'
43+
}
44+
45+
def __init__(self, saml_provider_name=None, x509_certificate=None, _configuration=None): # noqa: E501
46+
"""AddSAMLProviderCertificateRequest - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._saml_provider_name = None
52+
self._x509_certificate = None
53+
self.discriminator = None
54+
55+
self.saml_provider_name = saml_provider_name
56+
self.x509_certificate = x509_certificate
57+
58+
@property
59+
def saml_provider_name(self):
60+
"""Gets the saml_provider_name of this AddSAMLProviderCertificateRequest. # noqa: E501
61+
62+
63+
:return: The saml_provider_name of this AddSAMLProviderCertificateRequest. # noqa: E501
64+
:rtype: str
65+
"""
66+
return self._saml_provider_name
67+
68+
@saml_provider_name.setter
69+
def saml_provider_name(self, saml_provider_name):
70+
"""Sets the saml_provider_name of this AddSAMLProviderCertificateRequest.
71+
72+
73+
:param saml_provider_name: The saml_provider_name of this AddSAMLProviderCertificateRequest. # noqa: E501
74+
:type: str
75+
"""
76+
if self._configuration.client_side_validation and saml_provider_name is None:
77+
raise ValueError("Invalid value for `saml_provider_name`, must not be `None`") # noqa: E501
78+
79+
self._saml_provider_name = saml_provider_name
80+
81+
@property
82+
def x509_certificate(self):
83+
"""Gets the x509_certificate of this AddSAMLProviderCertificateRequest. # noqa: E501
84+
85+
86+
:return: The x509_certificate of this AddSAMLProviderCertificateRequest. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._x509_certificate
90+
91+
@x509_certificate.setter
92+
def x509_certificate(self, x509_certificate):
93+
"""Sets the x509_certificate of this AddSAMLProviderCertificateRequest.
94+
95+
96+
:param x509_certificate: The x509_certificate of this AddSAMLProviderCertificateRequest. # noqa: E501
97+
:type: str
98+
"""
99+
if self._configuration.client_side_validation and x509_certificate is None:
100+
raise ValueError("Invalid value for `x509_certificate`, must not be `None`") # noqa: E501
101+
102+
self._x509_certificate = x509_certificate
103+
104+
def to_dict(self):
105+
"""Returns the model properties as a dict"""
106+
result = {}
107+
108+
for attr, _ in six.iteritems(self.swagger_types):
109+
value = getattr(self, attr)
110+
if isinstance(value, list):
111+
result[attr] = list(map(
112+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
113+
value
114+
))
115+
elif hasattr(value, "to_dict"):
116+
result[attr] = value.to_dict()
117+
elif isinstance(value, dict):
118+
result[attr] = dict(map(
119+
lambda item: (item[0], item[1].to_dict())
120+
if hasattr(item[1], "to_dict") else item,
121+
value.items()
122+
))
123+
else:
124+
result[attr] = value
125+
if issubclass(AddSAMLProviderCertificateRequest, dict):
126+
for key, value in self.items():
127+
result[key] = value
128+
129+
return result
130+
131+
def to_str(self):
132+
"""Returns the string representation of the model"""
133+
return pprint.pformat(self.to_dict())
134+
135+
def __repr__(self):
136+
"""For `print` and `pprint`"""
137+
return self.to_str()
138+
139+
def __eq__(self, other):
140+
"""Returns true if both objects are equal"""
141+
if not isinstance(other, AddSAMLProviderCertificateRequest):
142+
return False
143+
144+
return self.to_dict() == other.to_dict()
145+
146+
def __ne__(self, other):
147+
"""Returns true if both objects are not equal"""
148+
if not isinstance(other, AddSAMLProviderCertificateRequest):
149+
return True
150+
151+
return self.to_dict() != other.to_dict()
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# coding: utf-8
2+
3+
"""
4+
iam
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AddSAMLProviderCertificateResponse(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'certificate_id': 'str'
37+
}
38+
39+
attribute_map = {
40+
'certificate_id': 'CertificateId'
41+
}
42+
43+
def __init__(self, certificate_id=None, _configuration=None): # noqa: E501
44+
"""AddSAMLProviderCertificateResponse - a model defined in Swagger""" # noqa: E501
45+
if _configuration is None:
46+
_configuration = Configuration()
47+
self._configuration = _configuration
48+
49+
self._certificate_id = None
50+
self.discriminator = None
51+
52+
if certificate_id is not None:
53+
self.certificate_id = certificate_id
54+
55+
@property
56+
def certificate_id(self):
57+
"""Gets the certificate_id of this AddSAMLProviderCertificateResponse. # noqa: E501
58+
59+
60+
:return: The certificate_id of this AddSAMLProviderCertificateResponse. # noqa: E501
61+
:rtype: str
62+
"""
63+
return self._certificate_id
64+
65+
@certificate_id.setter
66+
def certificate_id(self, certificate_id):
67+
"""Sets the certificate_id of this AddSAMLProviderCertificateResponse.
68+
69+
70+
:param certificate_id: The certificate_id of this AddSAMLProviderCertificateResponse. # noqa: E501
71+
:type: str
72+
"""
73+
74+
self._certificate_id = certificate_id
75+
76+
def to_dict(self):
77+
"""Returns the model properties as a dict"""
78+
result = {}
79+
80+
for attr, _ in six.iteritems(self.swagger_types):
81+
value = getattr(self, attr)
82+
if isinstance(value, list):
83+
result[attr] = list(map(
84+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85+
value
86+
))
87+
elif hasattr(value, "to_dict"):
88+
result[attr] = value.to_dict()
89+
elif isinstance(value, dict):
90+
result[attr] = dict(map(
91+
lambda item: (item[0], item[1].to_dict())
92+
if hasattr(item[1], "to_dict") else item,
93+
value.items()
94+
))
95+
else:
96+
result[attr] = value
97+
if issubclass(AddSAMLProviderCertificateResponse, dict):
98+
for key, value in self.items():
99+
result[key] = value
100+
101+
return result
102+
103+
def to_str(self):
104+
"""Returns the string representation of the model"""
105+
return pprint.pformat(self.to_dict())
106+
107+
def __repr__(self):
108+
"""For `print` and `pprint`"""
109+
return self.to_str()
110+
111+
def __eq__(self, other):
112+
"""Returns true if both objects are equal"""
113+
if not isinstance(other, AddSAMLProviderCertificateResponse):
114+
return False
115+
116+
return self.to_dict() == other.to_dict()
117+
118+
def __ne__(self, other):
119+
"""Returns true if both objects are not equal"""
120+
if not isinstance(other, AddSAMLProviderCertificateResponse):
121+
return True
122+
123+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)