alibabacloud-eiam20211201 2.3.0__py3-none-any.whl → 2.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,6 +135,122 @@ class AddApplicationAccountToUserResponse(TeaModel):
135
135
  return self
136
136
 
137
137
 
138
+ class AddCustomPrivacyPoliciesToBrandRequest(TeaModel):
139
+ def __init__(
140
+ self,
141
+ brand_id: str = None,
142
+ custom_privacy_policy_ids: List[str] = None,
143
+ instance_id: str = None,
144
+ ):
145
+ # 品牌化Id
146
+ #
147
+ # This parameter is required.
148
+ self.brand_id = brand_id
149
+ # 条款ID列表
150
+ #
151
+ # This parameter is required.
152
+ self.custom_privacy_policy_ids = custom_privacy_policy_ids
153
+ # IDaaS EIAM实例的ID。
154
+ #
155
+ # This parameter is required.
156
+ self.instance_id = instance_id
157
+
158
+ def validate(self):
159
+ pass
160
+
161
+ def to_map(self):
162
+ _map = super().to_map()
163
+ if _map is not None:
164
+ return _map
165
+
166
+ result = dict()
167
+ if self.brand_id is not None:
168
+ result['BrandId'] = self.brand_id
169
+ if self.custom_privacy_policy_ids is not None:
170
+ result['CustomPrivacyPolicyIds'] = self.custom_privacy_policy_ids
171
+ if self.instance_id is not None:
172
+ result['InstanceId'] = self.instance_id
173
+ return result
174
+
175
+ def from_map(self, m: dict = None):
176
+ m = m or dict()
177
+ if m.get('BrandId') is not None:
178
+ self.brand_id = m.get('BrandId')
179
+ if m.get('CustomPrivacyPolicyIds') is not None:
180
+ self.custom_privacy_policy_ids = m.get('CustomPrivacyPolicyIds')
181
+ if m.get('InstanceId') is not None:
182
+ self.instance_id = m.get('InstanceId')
183
+ return self
184
+
185
+
186
+ class AddCustomPrivacyPoliciesToBrandResponseBody(TeaModel):
187
+ def __init__(
188
+ self,
189
+ request_id: str = None,
190
+ ):
191
+ self.request_id = request_id
192
+
193
+ def validate(self):
194
+ pass
195
+
196
+ def to_map(self):
197
+ _map = super().to_map()
198
+ if _map is not None:
199
+ return _map
200
+
201
+ result = dict()
202
+ if self.request_id is not None:
203
+ result['RequestId'] = self.request_id
204
+ return result
205
+
206
+ def from_map(self, m: dict = None):
207
+ m = m or dict()
208
+ if m.get('RequestId') is not None:
209
+ self.request_id = m.get('RequestId')
210
+ return self
211
+
212
+
213
+ class AddCustomPrivacyPoliciesToBrandResponse(TeaModel):
214
+ def __init__(
215
+ self,
216
+ headers: Dict[str, str] = None,
217
+ status_code: int = None,
218
+ body: AddCustomPrivacyPoliciesToBrandResponseBody = None,
219
+ ):
220
+ self.headers = headers
221
+ self.status_code = status_code
222
+ self.body = body
223
+
224
+ def validate(self):
225
+ if self.body:
226
+ self.body.validate()
227
+
228
+ def to_map(self):
229
+ _map = super().to_map()
230
+ if _map is not None:
231
+ return _map
232
+
233
+ result = dict()
234
+ if self.headers is not None:
235
+ result['headers'] = self.headers
236
+ if self.status_code is not None:
237
+ result['statusCode'] = self.status_code
238
+ if self.body is not None:
239
+ result['body'] = self.body.to_map()
240
+ return result
241
+
242
+ def from_map(self, m: dict = None):
243
+ m = m or dict()
244
+ if m.get('headers') is not None:
245
+ self.headers = m.get('headers')
246
+ if m.get('statusCode') is not None:
247
+ self.status_code = m.get('statusCode')
248
+ if m.get('body') is not None:
249
+ temp_model = AddCustomPrivacyPoliciesToBrandResponseBody()
250
+ self.body = temp_model.from_map(m['body'])
251
+ return self
252
+
253
+
138
254
  class AddUserToOrganizationalUnitsRequest(TeaModel):
139
255
  def __init__(
140
256
  self,
@@ -1977,6 +2093,246 @@ class CreateConditionalAccessPolicyResponse(TeaModel):
1977
2093
  return self
1978
2094
 
1979
2095
 
2096
+ class CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems(TeaModel):
2097
+ def __init__(
2098
+ self,
2099
+ custom_privacy_policy_item_name: str = None,
2100
+ custom_privacy_policy_item_url: str = None,
2101
+ ):
2102
+ # 自定义条款名称
2103
+ self.custom_privacy_policy_item_name = custom_privacy_policy_item_name
2104
+ # 自定义条款访问地址
2105
+ self.custom_privacy_policy_item_url = custom_privacy_policy_item_url
2106
+
2107
+ def validate(self):
2108
+ pass
2109
+
2110
+ def to_map(self):
2111
+ _map = super().to_map()
2112
+ if _map is not None:
2113
+ return _map
2114
+
2115
+ result = dict()
2116
+ if self.custom_privacy_policy_item_name is not None:
2117
+ result['CustomPrivacyPolicyItemName'] = self.custom_privacy_policy_item_name
2118
+ if self.custom_privacy_policy_item_url is not None:
2119
+ result['CustomPrivacyPolicyItemUrl'] = self.custom_privacy_policy_item_url
2120
+ return result
2121
+
2122
+ def from_map(self, m: dict = None):
2123
+ m = m or dict()
2124
+ if m.get('CustomPrivacyPolicyItemName') is not None:
2125
+ self.custom_privacy_policy_item_name = m.get('CustomPrivacyPolicyItemName')
2126
+ if m.get('CustomPrivacyPolicyItemUrl') is not None:
2127
+ self.custom_privacy_policy_item_url = m.get('CustomPrivacyPolicyItemUrl')
2128
+ return self
2129
+
2130
+
2131
+ class CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents(TeaModel):
2132
+ def __init__(
2133
+ self,
2134
+ custom_privacy_policy_items: List[CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems] = None,
2135
+ custom_privacy_policy_tip: str = None,
2136
+ language_code: str = None,
2137
+ ):
2138
+ # 自定义条款项
2139
+ self.custom_privacy_policy_items = custom_privacy_policy_items
2140
+ # 自定义条款提示
2141
+ self.custom_privacy_policy_tip = custom_privacy_policy_tip
2142
+ # 自定义条款所属语言
2143
+ self.language_code = language_code
2144
+
2145
+ def validate(self):
2146
+ if self.custom_privacy_policy_items:
2147
+ for k in self.custom_privacy_policy_items:
2148
+ if k:
2149
+ k.validate()
2150
+
2151
+ def to_map(self):
2152
+ _map = super().to_map()
2153
+ if _map is not None:
2154
+ return _map
2155
+
2156
+ result = dict()
2157
+ result['CustomPrivacyPolicyItems'] = []
2158
+ if self.custom_privacy_policy_items is not None:
2159
+ for k in self.custom_privacy_policy_items:
2160
+ result['CustomPrivacyPolicyItems'].append(k.to_map() if k else None)
2161
+ if self.custom_privacy_policy_tip is not None:
2162
+ result['CustomPrivacyPolicyTip'] = self.custom_privacy_policy_tip
2163
+ if self.language_code is not None:
2164
+ result['LanguageCode'] = self.language_code
2165
+ return result
2166
+
2167
+ def from_map(self, m: dict = None):
2168
+ m = m or dict()
2169
+ self.custom_privacy_policy_items = []
2170
+ if m.get('CustomPrivacyPolicyItems') is not None:
2171
+ for k in m.get('CustomPrivacyPolicyItems'):
2172
+ temp_model = CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems()
2173
+ self.custom_privacy_policy_items.append(temp_model.from_map(k))
2174
+ if m.get('CustomPrivacyPolicyTip') is not None:
2175
+ self.custom_privacy_policy_tip = m.get('CustomPrivacyPolicyTip')
2176
+ if m.get('LanguageCode') is not None:
2177
+ self.language_code = m.get('LanguageCode')
2178
+ return self
2179
+
2180
+
2181
+ class CreateCustomPrivacyPolicyRequest(TeaModel):
2182
+ def __init__(
2183
+ self,
2184
+ client_token: str = None,
2185
+ custom_privacy_policy_contents: List[CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents] = None,
2186
+ custom_privacy_policy_name: str = None,
2187
+ default_language_code: str = None,
2188
+ instance_id: str = None,
2189
+ status: str = None,
2190
+ user_consent_type: str = None,
2191
+ ):
2192
+ self.client_token = client_token
2193
+ # 自定义条款内容详情
2194
+ self.custom_privacy_policy_contents = custom_privacy_policy_contents
2195
+ # 自定义条款名称
2196
+ #
2197
+ # This parameter is required.
2198
+ self.custom_privacy_policy_name = custom_privacy_policy_name
2199
+ # 默认条款语言,若其他语言未配置条款,则使用默认的
2200
+ self.default_language_code = default_language_code
2201
+ # IDaaS EIAM实例的ID。
2202
+ #
2203
+ # This parameter is required.
2204
+ self.instance_id = instance_id
2205
+ # 自定义条款状态
2206
+ self.status = status
2207
+ # 手动勾选同意,还是默认同意
2208
+ self.user_consent_type = user_consent_type
2209
+
2210
+ def validate(self):
2211
+ if self.custom_privacy_policy_contents:
2212
+ for k in self.custom_privacy_policy_contents:
2213
+ if k:
2214
+ k.validate()
2215
+
2216
+ def to_map(self):
2217
+ _map = super().to_map()
2218
+ if _map is not None:
2219
+ return _map
2220
+
2221
+ result = dict()
2222
+ if self.client_token is not None:
2223
+ result['ClientToken'] = self.client_token
2224
+ result['CustomPrivacyPolicyContents'] = []
2225
+ if self.custom_privacy_policy_contents is not None:
2226
+ for k in self.custom_privacy_policy_contents:
2227
+ result['CustomPrivacyPolicyContents'].append(k.to_map() if k else None)
2228
+ if self.custom_privacy_policy_name is not None:
2229
+ result['CustomPrivacyPolicyName'] = self.custom_privacy_policy_name
2230
+ if self.default_language_code is not None:
2231
+ result['DefaultLanguageCode'] = self.default_language_code
2232
+ if self.instance_id is not None:
2233
+ result['InstanceId'] = self.instance_id
2234
+ if self.status is not None:
2235
+ result['Status'] = self.status
2236
+ if self.user_consent_type is not None:
2237
+ result['UserConsentType'] = self.user_consent_type
2238
+ return result
2239
+
2240
+ def from_map(self, m: dict = None):
2241
+ m = m or dict()
2242
+ if m.get('ClientToken') is not None:
2243
+ self.client_token = m.get('ClientToken')
2244
+ self.custom_privacy_policy_contents = []
2245
+ if m.get('CustomPrivacyPolicyContents') is not None:
2246
+ for k in m.get('CustomPrivacyPolicyContents'):
2247
+ temp_model = CreateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents()
2248
+ self.custom_privacy_policy_contents.append(temp_model.from_map(k))
2249
+ if m.get('CustomPrivacyPolicyName') is not None:
2250
+ self.custom_privacy_policy_name = m.get('CustomPrivacyPolicyName')
2251
+ if m.get('DefaultLanguageCode') is not None:
2252
+ self.default_language_code = m.get('DefaultLanguageCode')
2253
+ if m.get('InstanceId') is not None:
2254
+ self.instance_id = m.get('InstanceId')
2255
+ if m.get('Status') is not None:
2256
+ self.status = m.get('Status')
2257
+ if m.get('UserConsentType') is not None:
2258
+ self.user_consent_type = m.get('UserConsentType')
2259
+ return self
2260
+
2261
+
2262
+ class CreateCustomPrivacyPolicyResponseBody(TeaModel):
2263
+ def __init__(
2264
+ self,
2265
+ custom_privacy_policy_id: str = None,
2266
+ request_id: str = None,
2267
+ ):
2268
+ self.custom_privacy_policy_id = custom_privacy_policy_id
2269
+ self.request_id = request_id
2270
+
2271
+ def validate(self):
2272
+ pass
2273
+
2274
+ def to_map(self):
2275
+ _map = super().to_map()
2276
+ if _map is not None:
2277
+ return _map
2278
+
2279
+ result = dict()
2280
+ if self.custom_privacy_policy_id is not None:
2281
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
2282
+ if self.request_id is not None:
2283
+ result['RequestId'] = self.request_id
2284
+ return result
2285
+
2286
+ def from_map(self, m: dict = None):
2287
+ m = m or dict()
2288
+ if m.get('CustomPrivacyPolicyId') is not None:
2289
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
2290
+ if m.get('RequestId') is not None:
2291
+ self.request_id = m.get('RequestId')
2292
+ return self
2293
+
2294
+
2295
+ class CreateCustomPrivacyPolicyResponse(TeaModel):
2296
+ def __init__(
2297
+ self,
2298
+ headers: Dict[str, str] = None,
2299
+ status_code: int = None,
2300
+ body: CreateCustomPrivacyPolicyResponseBody = None,
2301
+ ):
2302
+ self.headers = headers
2303
+ self.status_code = status_code
2304
+ self.body = body
2305
+
2306
+ def validate(self):
2307
+ if self.body:
2308
+ self.body.validate()
2309
+
2310
+ def to_map(self):
2311
+ _map = super().to_map()
2312
+ if _map is not None:
2313
+ return _map
2314
+
2315
+ result = dict()
2316
+ if self.headers is not None:
2317
+ result['headers'] = self.headers
2318
+ if self.status_code is not None:
2319
+ result['statusCode'] = self.status_code
2320
+ if self.body is not None:
2321
+ result['body'] = self.body.to_map()
2322
+ return result
2323
+
2324
+ def from_map(self, m: dict = None):
2325
+ m = m or dict()
2326
+ if m.get('headers') is not None:
2327
+ self.headers = m.get('headers')
2328
+ if m.get('statusCode') is not None:
2329
+ self.status_code = m.get('statusCode')
2330
+ if m.get('body') is not None:
2331
+ temp_model = CreateCustomPrivacyPolicyResponseBody()
2332
+ self.body = temp_model.from_map(m['body'])
2333
+ return self
2334
+
2335
+
1980
2336
  class CreateDomainRequestFiling(TeaModel):
1981
2337
  def __init__(
1982
2338
  self,
@@ -5522,17 +5878,17 @@ class DeleteConditionalAccessPolicyResponse(TeaModel):
5522
5878
  return self
5523
5879
 
5524
5880
 
5525
- class DeleteDomainRequest(TeaModel):
5881
+ class DeleteCustomPrivacyPolicyRequest(TeaModel):
5526
5882
  def __init__(
5527
5883
  self,
5528
- domain_id: str = None,
5884
+ custom_privacy_policy_id: str = None,
5529
5885
  instance_id: str = None,
5530
5886
  ):
5531
- # The ID of the domain name.
5887
+ # 自定义条款ID
5532
5888
  #
5533
5889
  # This parameter is required.
5534
- self.domain_id = domain_id
5535
- # The instance ID.
5890
+ self.custom_privacy_policy_id = custom_privacy_policy_id
5891
+ # IDaaS EIAM实例的ID
5536
5892
  #
5537
5893
  # This parameter is required.
5538
5894
  self.instance_id = instance_id
@@ -5546,27 +5902,134 @@ class DeleteDomainRequest(TeaModel):
5546
5902
  return _map
5547
5903
 
5548
5904
  result = dict()
5549
- if self.domain_id is not None:
5550
- result['DomainId'] = self.domain_id
5905
+ if self.custom_privacy_policy_id is not None:
5906
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
5551
5907
  if self.instance_id is not None:
5552
5908
  result['InstanceId'] = self.instance_id
5553
5909
  return result
5554
5910
 
5555
5911
  def from_map(self, m: dict = None):
5556
5912
  m = m or dict()
5557
- if m.get('DomainId') is not None:
5558
- self.domain_id = m.get('DomainId')
5913
+ if m.get('CustomPrivacyPolicyId') is not None:
5914
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
5559
5915
  if m.get('InstanceId') is not None:
5560
5916
  self.instance_id = m.get('InstanceId')
5561
5917
  return self
5562
5918
 
5563
5919
 
5564
- class DeleteDomainResponseBody(TeaModel):
5920
+ class DeleteCustomPrivacyPolicyResponseBody(TeaModel):
5565
5921
  def __init__(
5566
5922
  self,
5567
5923
  request_id: str = None,
5568
5924
  ):
5569
- # The request ID.
5925
+ self.request_id = request_id
5926
+
5927
+ def validate(self):
5928
+ pass
5929
+
5930
+ def to_map(self):
5931
+ _map = super().to_map()
5932
+ if _map is not None:
5933
+ return _map
5934
+
5935
+ result = dict()
5936
+ if self.request_id is not None:
5937
+ result['RequestId'] = self.request_id
5938
+ return result
5939
+
5940
+ def from_map(self, m: dict = None):
5941
+ m = m or dict()
5942
+ if m.get('RequestId') is not None:
5943
+ self.request_id = m.get('RequestId')
5944
+ return self
5945
+
5946
+
5947
+ class DeleteCustomPrivacyPolicyResponse(TeaModel):
5948
+ def __init__(
5949
+ self,
5950
+ headers: Dict[str, str] = None,
5951
+ status_code: int = None,
5952
+ body: DeleteCustomPrivacyPolicyResponseBody = None,
5953
+ ):
5954
+ self.headers = headers
5955
+ self.status_code = status_code
5956
+ self.body = body
5957
+
5958
+ def validate(self):
5959
+ if self.body:
5960
+ self.body.validate()
5961
+
5962
+ def to_map(self):
5963
+ _map = super().to_map()
5964
+ if _map is not None:
5965
+ return _map
5966
+
5967
+ result = dict()
5968
+ if self.headers is not None:
5969
+ result['headers'] = self.headers
5970
+ if self.status_code is not None:
5971
+ result['statusCode'] = self.status_code
5972
+ if self.body is not None:
5973
+ result['body'] = self.body.to_map()
5974
+ return result
5975
+
5976
+ def from_map(self, m: dict = None):
5977
+ m = m or dict()
5978
+ if m.get('headers') is not None:
5979
+ self.headers = m.get('headers')
5980
+ if m.get('statusCode') is not None:
5981
+ self.status_code = m.get('statusCode')
5982
+ if m.get('body') is not None:
5983
+ temp_model = DeleteCustomPrivacyPolicyResponseBody()
5984
+ self.body = temp_model.from_map(m['body'])
5985
+ return self
5986
+
5987
+
5988
+ class DeleteDomainRequest(TeaModel):
5989
+ def __init__(
5990
+ self,
5991
+ domain_id: str = None,
5992
+ instance_id: str = None,
5993
+ ):
5994
+ # The ID of the domain name.
5995
+ #
5996
+ # This parameter is required.
5997
+ self.domain_id = domain_id
5998
+ # The instance ID.
5999
+ #
6000
+ # This parameter is required.
6001
+ self.instance_id = instance_id
6002
+
6003
+ def validate(self):
6004
+ pass
6005
+
6006
+ def to_map(self):
6007
+ _map = super().to_map()
6008
+ if _map is not None:
6009
+ return _map
6010
+
6011
+ result = dict()
6012
+ if self.domain_id is not None:
6013
+ result['DomainId'] = self.domain_id
6014
+ if self.instance_id is not None:
6015
+ result['InstanceId'] = self.instance_id
6016
+ return result
6017
+
6018
+ def from_map(self, m: dict = None):
6019
+ m = m or dict()
6020
+ if m.get('DomainId') is not None:
6021
+ self.domain_id = m.get('DomainId')
6022
+ if m.get('InstanceId') is not None:
6023
+ self.instance_id = m.get('InstanceId')
6024
+ return self
6025
+
6026
+
6027
+ class DeleteDomainResponseBody(TeaModel):
6028
+ def __init__(
6029
+ self,
6030
+ request_id: str = None,
6031
+ ):
6032
+ # The request ID.
5570
6033
  self.request_id = request_id
5571
6034
 
5572
6035
  def validate(self):
@@ -7704,6 +8167,111 @@ class DisableConditionalAccessPolicyResponse(TeaModel):
7704
8167
  return self
7705
8168
 
7706
8169
 
8170
+ class DisableCustomPrivacyPolicyRequest(TeaModel):
8171
+ def __init__(
8172
+ self,
8173
+ custom_privacy_policy_id: str = None,
8174
+ instance_id: str = None,
8175
+ ):
8176
+ # This parameter is required.
8177
+ self.custom_privacy_policy_id = custom_privacy_policy_id
8178
+ # IDaaS EIAM实例的ID。
8179
+ #
8180
+ # This parameter is required.
8181
+ self.instance_id = instance_id
8182
+
8183
+ def validate(self):
8184
+ pass
8185
+
8186
+ def to_map(self):
8187
+ _map = super().to_map()
8188
+ if _map is not None:
8189
+ return _map
8190
+
8191
+ result = dict()
8192
+ if self.custom_privacy_policy_id is not None:
8193
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
8194
+ if self.instance_id is not None:
8195
+ result['InstanceId'] = self.instance_id
8196
+ return result
8197
+
8198
+ def from_map(self, m: dict = None):
8199
+ m = m or dict()
8200
+ if m.get('CustomPrivacyPolicyId') is not None:
8201
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
8202
+ if m.get('InstanceId') is not None:
8203
+ self.instance_id = m.get('InstanceId')
8204
+ return self
8205
+
8206
+
8207
+ class DisableCustomPrivacyPolicyResponseBody(TeaModel):
8208
+ def __init__(
8209
+ self,
8210
+ request_id: str = None,
8211
+ ):
8212
+ self.request_id = request_id
8213
+
8214
+ def validate(self):
8215
+ pass
8216
+
8217
+ def to_map(self):
8218
+ _map = super().to_map()
8219
+ if _map is not None:
8220
+ return _map
8221
+
8222
+ result = dict()
8223
+ if self.request_id is not None:
8224
+ result['RequestId'] = self.request_id
8225
+ return result
8226
+
8227
+ def from_map(self, m: dict = None):
8228
+ m = m or dict()
8229
+ if m.get('RequestId') is not None:
8230
+ self.request_id = m.get('RequestId')
8231
+ return self
8232
+
8233
+
8234
+ class DisableCustomPrivacyPolicyResponse(TeaModel):
8235
+ def __init__(
8236
+ self,
8237
+ headers: Dict[str, str] = None,
8238
+ status_code: int = None,
8239
+ body: DisableCustomPrivacyPolicyResponseBody = None,
8240
+ ):
8241
+ self.headers = headers
8242
+ self.status_code = status_code
8243
+ self.body = body
8244
+
8245
+ def validate(self):
8246
+ if self.body:
8247
+ self.body.validate()
8248
+
8249
+ def to_map(self):
8250
+ _map = super().to_map()
8251
+ if _map is not None:
8252
+ return _map
8253
+
8254
+ result = dict()
8255
+ if self.headers is not None:
8256
+ result['headers'] = self.headers
8257
+ if self.status_code is not None:
8258
+ result['statusCode'] = self.status_code
8259
+ if self.body is not None:
8260
+ result['body'] = self.body.to_map()
8261
+ return result
8262
+
8263
+ def from_map(self, m: dict = None):
8264
+ m = m or dict()
8265
+ if m.get('headers') is not None:
8266
+ self.headers = m.get('headers')
8267
+ if m.get('statusCode') is not None:
8268
+ self.status_code = m.get('statusCode')
8269
+ if m.get('body') is not None:
8270
+ temp_model = DisableCustomPrivacyPolicyResponseBody()
8271
+ self.body = temp_model.from_map(m['body'])
8272
+ return self
8273
+
8274
+
7707
8275
  class DisableDomainProxyTokenRequest(TeaModel):
7708
8276
  def __init__(
7709
8277
  self,
@@ -9346,22 +9914,15 @@ class EnableConditionalAccessPolicyResponse(TeaModel):
9346
9914
  return self
9347
9915
 
9348
9916
 
9349
- class EnableDomainProxyTokenRequest(TeaModel):
9917
+ class EnableCustomPrivacyPolicyRequest(TeaModel):
9350
9918
  def __init__(
9351
9919
  self,
9352
- domain_id: str = None,
9353
- domain_proxy_token_id: str = None,
9920
+ custom_privacy_policy_id: str = None,
9354
9921
  instance_id: str = None,
9355
9922
  ):
9356
- # The ID of the domain name.
9357
- #
9358
- # This parameter is required.
9359
- self.domain_id = domain_id
9360
- # The ID of the proxy token of the domain name.
9361
- #
9362
9923
  # This parameter is required.
9363
- self.domain_proxy_token_id = domain_proxy_token_id
9364
- # The instance ID.
9924
+ self.custom_privacy_policy_id = custom_privacy_policy_id
9925
+ # IDaaS EIAM实例的ID
9365
9926
  #
9366
9927
  # This parameter is required.
9367
9928
  self.instance_id = instance_id
@@ -9375,31 +9936,26 @@ class EnableDomainProxyTokenRequest(TeaModel):
9375
9936
  return _map
9376
9937
 
9377
9938
  result = dict()
9378
- if self.domain_id is not None:
9379
- result['DomainId'] = self.domain_id
9380
- if self.domain_proxy_token_id is not None:
9381
- result['DomainProxyTokenId'] = self.domain_proxy_token_id
9939
+ if self.custom_privacy_policy_id is not None:
9940
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
9382
9941
  if self.instance_id is not None:
9383
9942
  result['InstanceId'] = self.instance_id
9384
9943
  return result
9385
9944
 
9386
9945
  def from_map(self, m: dict = None):
9387
9946
  m = m or dict()
9388
- if m.get('DomainId') is not None:
9389
- self.domain_id = m.get('DomainId')
9390
- if m.get('DomainProxyTokenId') is not None:
9391
- self.domain_proxy_token_id = m.get('DomainProxyTokenId')
9947
+ if m.get('CustomPrivacyPolicyId') is not None:
9948
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
9392
9949
  if m.get('InstanceId') is not None:
9393
9950
  self.instance_id = m.get('InstanceId')
9394
9951
  return self
9395
9952
 
9396
9953
 
9397
- class EnableDomainProxyTokenResponseBody(TeaModel):
9954
+ class EnableCustomPrivacyPolicyResponseBody(TeaModel):
9398
9955
  def __init__(
9399
9956
  self,
9400
9957
  request_id: str = None,
9401
9958
  ):
9402
- # The request ID.
9403
9959
  self.request_id = request_id
9404
9960
 
9405
9961
  def validate(self):
@@ -9422,12 +9978,12 @@ class EnableDomainProxyTokenResponseBody(TeaModel):
9422
9978
  return self
9423
9979
 
9424
9980
 
9425
- class EnableDomainProxyTokenResponse(TeaModel):
9981
+ class EnableCustomPrivacyPolicyResponse(TeaModel):
9426
9982
  def __init__(
9427
9983
  self,
9428
9984
  headers: Dict[str, str] = None,
9429
9985
  status_code: int = None,
9430
- body: EnableDomainProxyTokenResponseBody = None,
9986
+ body: EnableCustomPrivacyPolicyResponseBody = None,
9431
9987
  ):
9432
9988
  self.headers = headers
9433
9989
  self.status_code = status_code
@@ -9458,22 +10014,27 @@ class EnableDomainProxyTokenResponse(TeaModel):
9458
10014
  if m.get('statusCode') is not None:
9459
10015
  self.status_code = m.get('statusCode')
9460
10016
  if m.get('body') is not None:
9461
- temp_model = EnableDomainProxyTokenResponseBody()
10017
+ temp_model = EnableCustomPrivacyPolicyResponseBody()
9462
10018
  self.body = temp_model.from_map(m['body'])
9463
10019
  return self
9464
10020
 
9465
10021
 
9466
- class EnableFederatedCredentialProviderRequest(TeaModel):
10022
+ class EnableDomainProxyTokenRequest(TeaModel):
9467
10023
  def __init__(
9468
10024
  self,
9469
- federated_credential_provider_id: str = None,
10025
+ domain_id: str = None,
10026
+ domain_proxy_token_id: str = None,
9470
10027
  instance_id: str = None,
9471
10028
  ):
9472
- # 联邦凭证提供方ID
10029
+ # The ID of the domain name.
9473
10030
  #
9474
10031
  # This parameter is required.
9475
- self.federated_credential_provider_id = federated_credential_provider_id
9476
- # IDaaS EIAM实例的ID
10032
+ self.domain_id = domain_id
10033
+ # The ID of the proxy token of the domain name.
10034
+ #
10035
+ # This parameter is required.
10036
+ self.domain_proxy_token_id = domain_proxy_token_id
10037
+ # The instance ID.
9477
10038
  #
9478
10039
  # This parameter is required.
9479
10040
  self.instance_id = instance_id
@@ -9487,26 +10048,31 @@ class EnableFederatedCredentialProviderRequest(TeaModel):
9487
10048
  return _map
9488
10049
 
9489
10050
  result = dict()
9490
- if self.federated_credential_provider_id is not None:
9491
- result['FederatedCredentialProviderId'] = self.federated_credential_provider_id
10051
+ if self.domain_id is not None:
10052
+ result['DomainId'] = self.domain_id
10053
+ if self.domain_proxy_token_id is not None:
10054
+ result['DomainProxyTokenId'] = self.domain_proxy_token_id
9492
10055
  if self.instance_id is not None:
9493
10056
  result['InstanceId'] = self.instance_id
9494
10057
  return result
9495
10058
 
9496
10059
  def from_map(self, m: dict = None):
9497
10060
  m = m or dict()
9498
- if m.get('FederatedCredentialProviderId') is not None:
9499
- self.federated_credential_provider_id = m.get('FederatedCredentialProviderId')
10061
+ if m.get('DomainId') is not None:
10062
+ self.domain_id = m.get('DomainId')
10063
+ if m.get('DomainProxyTokenId') is not None:
10064
+ self.domain_proxy_token_id = m.get('DomainProxyTokenId')
9500
10065
  if m.get('InstanceId') is not None:
9501
10066
  self.instance_id = m.get('InstanceId')
9502
10067
  return self
9503
10068
 
9504
10069
 
9505
- class EnableFederatedCredentialProviderResponseBody(TeaModel):
10070
+ class EnableDomainProxyTokenResponseBody(TeaModel):
9506
10071
  def __init__(
9507
10072
  self,
9508
10073
  request_id: str = None,
9509
10074
  ):
10075
+ # The request ID.
9510
10076
  self.request_id = request_id
9511
10077
 
9512
10078
  def validate(self):
@@ -9529,12 +10095,119 @@ class EnableFederatedCredentialProviderResponseBody(TeaModel):
9529
10095
  return self
9530
10096
 
9531
10097
 
9532
- class EnableFederatedCredentialProviderResponse(TeaModel):
10098
+ class EnableDomainProxyTokenResponse(TeaModel):
9533
10099
  def __init__(
9534
10100
  self,
9535
10101
  headers: Dict[str, str] = None,
9536
10102
  status_code: int = None,
9537
- body: EnableFederatedCredentialProviderResponseBody = None,
10103
+ body: EnableDomainProxyTokenResponseBody = None,
10104
+ ):
10105
+ self.headers = headers
10106
+ self.status_code = status_code
10107
+ self.body = body
10108
+
10109
+ def validate(self):
10110
+ if self.body:
10111
+ self.body.validate()
10112
+
10113
+ def to_map(self):
10114
+ _map = super().to_map()
10115
+ if _map is not None:
10116
+ return _map
10117
+
10118
+ result = dict()
10119
+ if self.headers is not None:
10120
+ result['headers'] = self.headers
10121
+ if self.status_code is not None:
10122
+ result['statusCode'] = self.status_code
10123
+ if self.body is not None:
10124
+ result['body'] = self.body.to_map()
10125
+ return result
10126
+
10127
+ def from_map(self, m: dict = None):
10128
+ m = m or dict()
10129
+ if m.get('headers') is not None:
10130
+ self.headers = m.get('headers')
10131
+ if m.get('statusCode') is not None:
10132
+ self.status_code = m.get('statusCode')
10133
+ if m.get('body') is not None:
10134
+ temp_model = EnableDomainProxyTokenResponseBody()
10135
+ self.body = temp_model.from_map(m['body'])
10136
+ return self
10137
+
10138
+
10139
+ class EnableFederatedCredentialProviderRequest(TeaModel):
10140
+ def __init__(
10141
+ self,
10142
+ federated_credential_provider_id: str = None,
10143
+ instance_id: str = None,
10144
+ ):
10145
+ # 联邦凭证提供方ID
10146
+ #
10147
+ # This parameter is required.
10148
+ self.federated_credential_provider_id = federated_credential_provider_id
10149
+ # IDaaS EIAM实例的ID。
10150
+ #
10151
+ # This parameter is required.
10152
+ self.instance_id = instance_id
10153
+
10154
+ def validate(self):
10155
+ pass
10156
+
10157
+ def to_map(self):
10158
+ _map = super().to_map()
10159
+ if _map is not None:
10160
+ return _map
10161
+
10162
+ result = dict()
10163
+ if self.federated_credential_provider_id is not None:
10164
+ result['FederatedCredentialProviderId'] = self.federated_credential_provider_id
10165
+ if self.instance_id is not None:
10166
+ result['InstanceId'] = self.instance_id
10167
+ return result
10168
+
10169
+ def from_map(self, m: dict = None):
10170
+ m = m or dict()
10171
+ if m.get('FederatedCredentialProviderId') is not None:
10172
+ self.federated_credential_provider_id = m.get('FederatedCredentialProviderId')
10173
+ if m.get('InstanceId') is not None:
10174
+ self.instance_id = m.get('InstanceId')
10175
+ return self
10176
+
10177
+
10178
+ class EnableFederatedCredentialProviderResponseBody(TeaModel):
10179
+ def __init__(
10180
+ self,
10181
+ request_id: str = None,
10182
+ ):
10183
+ self.request_id = request_id
10184
+
10185
+ def validate(self):
10186
+ pass
10187
+
10188
+ def to_map(self):
10189
+ _map = super().to_map()
10190
+ if _map is not None:
10191
+ return _map
10192
+
10193
+ result = dict()
10194
+ if self.request_id is not None:
10195
+ result['RequestId'] = self.request_id
10196
+ return result
10197
+
10198
+ def from_map(self, m: dict = None):
10199
+ m = m or dict()
10200
+ if m.get('RequestId') is not None:
10201
+ self.request_id = m.get('RequestId')
10202
+ return self
10203
+
10204
+
10205
+ class EnableFederatedCredentialProviderResponse(TeaModel):
10206
+ def __init__(
10207
+ self,
10208
+ headers: Dict[str, str] = None,
10209
+ status_code: int = None,
10210
+ body: EnableFederatedCredentialProviderResponseBody = None,
9538
10211
  ):
9539
10212
  self.headers = headers
9540
10213
  self.status_code = status_code
@@ -12877,6 +13550,272 @@ class GetConditionalAccessPolicyResponse(TeaModel):
12877
13550
  return self
12878
13551
 
12879
13552
 
13553
+ class GetCustomPrivacyPolicyRequest(TeaModel):
13554
+ def __init__(
13555
+ self,
13556
+ custom_privacy_policy_id: str = None,
13557
+ instance_id: str = None,
13558
+ ):
13559
+ # 自定义条款ID
13560
+ #
13561
+ # This parameter is required.
13562
+ self.custom_privacy_policy_id = custom_privacy_policy_id
13563
+ # IDaaS EIAM实例的ID。
13564
+ #
13565
+ # This parameter is required.
13566
+ self.instance_id = instance_id
13567
+
13568
+ def validate(self):
13569
+ pass
13570
+
13571
+ def to_map(self):
13572
+ _map = super().to_map()
13573
+ if _map is not None:
13574
+ return _map
13575
+
13576
+ result = dict()
13577
+ if self.custom_privacy_policy_id is not None:
13578
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
13579
+ if self.instance_id is not None:
13580
+ result['InstanceId'] = self.instance_id
13581
+ return result
13582
+
13583
+ def from_map(self, m: dict = None):
13584
+ m = m or dict()
13585
+ if m.get('CustomPrivacyPolicyId') is not None:
13586
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
13587
+ if m.get('InstanceId') is not None:
13588
+ self.instance_id = m.get('InstanceId')
13589
+ return self
13590
+
13591
+
13592
+ class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems(TeaModel):
13593
+ def __init__(
13594
+ self,
13595
+ custom_privacy_policy_item_name: str = None,
13596
+ custom_privacy_policy_item_url: str = None,
13597
+ ):
13598
+ self.custom_privacy_policy_item_name = custom_privacy_policy_item_name
13599
+ self.custom_privacy_policy_item_url = custom_privacy_policy_item_url
13600
+
13601
+ def validate(self):
13602
+ pass
13603
+
13604
+ def to_map(self):
13605
+ _map = super().to_map()
13606
+ if _map is not None:
13607
+ return _map
13608
+
13609
+ result = dict()
13610
+ if self.custom_privacy_policy_item_name is not None:
13611
+ result['CustomPrivacyPolicyItemName'] = self.custom_privacy_policy_item_name
13612
+ if self.custom_privacy_policy_item_url is not None:
13613
+ result['CustomPrivacyPolicyItemUrl'] = self.custom_privacy_policy_item_url
13614
+ return result
13615
+
13616
+ def from_map(self, m: dict = None):
13617
+ m = m or dict()
13618
+ if m.get('CustomPrivacyPolicyItemName') is not None:
13619
+ self.custom_privacy_policy_item_name = m.get('CustomPrivacyPolicyItemName')
13620
+ if m.get('CustomPrivacyPolicyItemUrl') is not None:
13621
+ self.custom_privacy_policy_item_url = m.get('CustomPrivacyPolicyItemUrl')
13622
+ return self
13623
+
13624
+
13625
+ class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents(TeaModel):
13626
+ def __init__(
13627
+ self,
13628
+ custom_privacy_policy_items: List[GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems] = None,
13629
+ custom_privacy_policy_tip: str = None,
13630
+ language_code: str = None,
13631
+ ):
13632
+ self.custom_privacy_policy_items = custom_privacy_policy_items
13633
+ self.custom_privacy_policy_tip = custom_privacy_policy_tip
13634
+ self.language_code = language_code
13635
+
13636
+ def validate(self):
13637
+ if self.custom_privacy_policy_items:
13638
+ for k in self.custom_privacy_policy_items:
13639
+ if k:
13640
+ k.validate()
13641
+
13642
+ def to_map(self):
13643
+ _map = super().to_map()
13644
+ if _map is not None:
13645
+ return _map
13646
+
13647
+ result = dict()
13648
+ result['CustomPrivacyPolicyItems'] = []
13649
+ if self.custom_privacy_policy_items is not None:
13650
+ for k in self.custom_privacy_policy_items:
13651
+ result['CustomPrivacyPolicyItems'].append(k.to_map() if k else None)
13652
+ if self.custom_privacy_policy_tip is not None:
13653
+ result['CustomPrivacyPolicyTip'] = self.custom_privacy_policy_tip
13654
+ if self.language_code is not None:
13655
+ result['LanguageCode'] = self.language_code
13656
+ return result
13657
+
13658
+ def from_map(self, m: dict = None):
13659
+ m = m or dict()
13660
+ self.custom_privacy_policy_items = []
13661
+ if m.get('CustomPrivacyPolicyItems') is not None:
13662
+ for k in m.get('CustomPrivacyPolicyItems'):
13663
+ temp_model = GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems()
13664
+ self.custom_privacy_policy_items.append(temp_model.from_map(k))
13665
+ if m.get('CustomPrivacyPolicyTip') is not None:
13666
+ self.custom_privacy_policy_tip = m.get('CustomPrivacyPolicyTip')
13667
+ if m.get('LanguageCode') is not None:
13668
+ self.language_code = m.get('LanguageCode')
13669
+ return self
13670
+
13671
+
13672
+ class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy(TeaModel):
13673
+ def __init__(
13674
+ self,
13675
+ custom_privacy_policy_contents: List[GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents] = None,
13676
+ custom_privacy_policy_id: str = None,
13677
+ custom_privacy_policy_name: str = None,
13678
+ default_language_code: str = None,
13679
+ instance_id: str = None,
13680
+ status: str = None,
13681
+ user_consent_type: str = None,
13682
+ ):
13683
+ self.custom_privacy_policy_contents = custom_privacy_policy_contents
13684
+ self.custom_privacy_policy_id = custom_privacy_policy_id
13685
+ self.custom_privacy_policy_name = custom_privacy_policy_name
13686
+ self.default_language_code = default_language_code
13687
+ self.instance_id = instance_id
13688
+ self.status = status
13689
+ self.user_consent_type = user_consent_type
13690
+
13691
+ def validate(self):
13692
+ if self.custom_privacy_policy_contents:
13693
+ for k in self.custom_privacy_policy_contents:
13694
+ if k:
13695
+ k.validate()
13696
+
13697
+ def to_map(self):
13698
+ _map = super().to_map()
13699
+ if _map is not None:
13700
+ return _map
13701
+
13702
+ result = dict()
13703
+ result['CustomPrivacyPolicyContents'] = []
13704
+ if self.custom_privacy_policy_contents is not None:
13705
+ for k in self.custom_privacy_policy_contents:
13706
+ result['CustomPrivacyPolicyContents'].append(k.to_map() if k else None)
13707
+ if self.custom_privacy_policy_id is not None:
13708
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
13709
+ if self.custom_privacy_policy_name is not None:
13710
+ result['CustomPrivacyPolicyName'] = self.custom_privacy_policy_name
13711
+ if self.default_language_code is not None:
13712
+ result['DefaultLanguageCode'] = self.default_language_code
13713
+ if self.instance_id is not None:
13714
+ result['InstanceId'] = self.instance_id
13715
+ if self.status is not None:
13716
+ result['Status'] = self.status
13717
+ if self.user_consent_type is not None:
13718
+ result['UserConsentType'] = self.user_consent_type
13719
+ return result
13720
+
13721
+ def from_map(self, m: dict = None):
13722
+ m = m or dict()
13723
+ self.custom_privacy_policy_contents = []
13724
+ if m.get('CustomPrivacyPolicyContents') is not None:
13725
+ for k in m.get('CustomPrivacyPolicyContents'):
13726
+ temp_model = GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents()
13727
+ self.custom_privacy_policy_contents.append(temp_model.from_map(k))
13728
+ if m.get('CustomPrivacyPolicyId') is not None:
13729
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
13730
+ if m.get('CustomPrivacyPolicyName') is not None:
13731
+ self.custom_privacy_policy_name = m.get('CustomPrivacyPolicyName')
13732
+ if m.get('DefaultLanguageCode') is not None:
13733
+ self.default_language_code = m.get('DefaultLanguageCode')
13734
+ if m.get('InstanceId') is not None:
13735
+ self.instance_id = m.get('InstanceId')
13736
+ if m.get('Status') is not None:
13737
+ self.status = m.get('Status')
13738
+ if m.get('UserConsentType') is not None:
13739
+ self.user_consent_type = m.get('UserConsentType')
13740
+ return self
13741
+
13742
+
13743
+ class GetCustomPrivacyPolicyResponseBody(TeaModel):
13744
+ def __init__(
13745
+ self,
13746
+ custom_privacy_policy: GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy = None,
13747
+ request_id: str = None,
13748
+ ):
13749
+ self.custom_privacy_policy = custom_privacy_policy
13750
+ self.request_id = request_id
13751
+
13752
+ def validate(self):
13753
+ if self.custom_privacy_policy:
13754
+ self.custom_privacy_policy.validate()
13755
+
13756
+ def to_map(self):
13757
+ _map = super().to_map()
13758
+ if _map is not None:
13759
+ return _map
13760
+
13761
+ result = dict()
13762
+ if self.custom_privacy_policy is not None:
13763
+ result['CustomPrivacyPolicy'] = self.custom_privacy_policy.to_map()
13764
+ if self.request_id is not None:
13765
+ result['RequestId'] = self.request_id
13766
+ return result
13767
+
13768
+ def from_map(self, m: dict = None):
13769
+ m = m or dict()
13770
+ if m.get('CustomPrivacyPolicy') is not None:
13771
+ temp_model = GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy()
13772
+ self.custom_privacy_policy = temp_model.from_map(m['CustomPrivacyPolicy'])
13773
+ if m.get('RequestId') is not None:
13774
+ self.request_id = m.get('RequestId')
13775
+ return self
13776
+
13777
+
13778
+ class GetCustomPrivacyPolicyResponse(TeaModel):
13779
+ def __init__(
13780
+ self,
13781
+ headers: Dict[str, str] = None,
13782
+ status_code: int = None,
13783
+ body: GetCustomPrivacyPolicyResponseBody = None,
13784
+ ):
13785
+ self.headers = headers
13786
+ self.status_code = status_code
13787
+ self.body = body
13788
+
13789
+ def validate(self):
13790
+ if self.body:
13791
+ self.body.validate()
13792
+
13793
+ def to_map(self):
13794
+ _map = super().to_map()
13795
+ if _map is not None:
13796
+ return _map
13797
+
13798
+ result = dict()
13799
+ if self.headers is not None:
13800
+ result['headers'] = self.headers
13801
+ if self.status_code is not None:
13802
+ result['statusCode'] = self.status_code
13803
+ if self.body is not None:
13804
+ result['body'] = self.body.to_map()
13805
+ return result
13806
+
13807
+ def from_map(self, m: dict = None):
13808
+ m = m or dict()
13809
+ if m.get('headers') is not None:
13810
+ self.headers = m.get('headers')
13811
+ if m.get('statusCode') is not None:
13812
+ self.status_code = m.get('statusCode')
13813
+ if m.get('body') is not None:
13814
+ temp_model = GetCustomPrivacyPolicyResponseBody()
13815
+ self.body = temp_model.from_map(m['body'])
13816
+ return self
13817
+
13818
+
12880
13819
  class GetDomainRequest(TeaModel):
12881
13820
  def __init__(
12882
13821
  self,
@@ -25158,6 +26097,433 @@ class ListConditionalAccessPoliciesForUserResponse(TeaModel):
25158
26097
  return self
25159
26098
 
25160
26099
 
26100
+ class ListCustomPrivacyPoliciesRequest(TeaModel):
26101
+ def __init__(
26102
+ self,
26103
+ custom_privacy_policy_name_starts_with: str = None,
26104
+ instance_id: str = None,
26105
+ max_results: int = None,
26106
+ next_token: str = None,
26107
+ previous_token: str = None,
26108
+ ):
26109
+ # 自定义条款名称,左模糊匹配
26110
+ self.custom_privacy_policy_name_starts_with = custom_privacy_policy_name_starts_with
26111
+ # IDaaS EIAM实例的ID。
26112
+ #
26113
+ # This parameter is required.
26114
+ self.instance_id = instance_id
26115
+ # 分页查询时每页行数。默认值为20,最大值为100。
26116
+ self.max_results = max_results
26117
+ # 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
26118
+ self.next_token = next_token
26119
+ # 查询上一页凭证(Token),取值为上一次API调用返回的previousToken参数值。
26120
+ self.previous_token = previous_token
26121
+
26122
+ def validate(self):
26123
+ pass
26124
+
26125
+ def to_map(self):
26126
+ _map = super().to_map()
26127
+ if _map is not None:
26128
+ return _map
26129
+
26130
+ result = dict()
26131
+ if self.custom_privacy_policy_name_starts_with is not None:
26132
+ result['CustomPrivacyPolicyNameStartsWith'] = self.custom_privacy_policy_name_starts_with
26133
+ if self.instance_id is not None:
26134
+ result['InstanceId'] = self.instance_id
26135
+ if self.max_results is not None:
26136
+ result['MaxResults'] = self.max_results
26137
+ if self.next_token is not None:
26138
+ result['NextToken'] = self.next_token
26139
+ if self.previous_token is not None:
26140
+ result['PreviousToken'] = self.previous_token
26141
+ return result
26142
+
26143
+ def from_map(self, m: dict = None):
26144
+ m = m or dict()
26145
+ if m.get('CustomPrivacyPolicyNameStartsWith') is not None:
26146
+ self.custom_privacy_policy_name_starts_with = m.get('CustomPrivacyPolicyNameStartsWith')
26147
+ if m.get('InstanceId') is not None:
26148
+ self.instance_id = m.get('InstanceId')
26149
+ if m.get('MaxResults') is not None:
26150
+ self.max_results = m.get('MaxResults')
26151
+ if m.get('NextToken') is not None:
26152
+ self.next_token = m.get('NextToken')
26153
+ if m.get('PreviousToken') is not None:
26154
+ self.previous_token = m.get('PreviousToken')
26155
+ return self
26156
+
26157
+
26158
+ class ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies(TeaModel):
26159
+ def __init__(
26160
+ self,
26161
+ custom_privacy_policy_id: str = None,
26162
+ custom_privacy_policy_name: str = None,
26163
+ default_language_code: str = None,
26164
+ instance_id: str = None,
26165
+ status: str = None,
26166
+ user_consent_type: str = None,
26167
+ ):
26168
+ # 自定义条款Id
26169
+ self.custom_privacy_policy_id = custom_privacy_policy_id
26170
+ # 自定义条款名称
26171
+ self.custom_privacy_policy_name = custom_privacy_policy_name
26172
+ # 若显示语言未配置时,门户侧展示默认语言展示条款。
26173
+ self.default_language_code = default_language_code
26174
+ # 实例id
26175
+ self.instance_id = instance_id
26176
+ # 自定义条款状态
26177
+ self.status = status
26178
+ # 自定义条款同意类型,是默认同意,还是用户勾选同意
26179
+ self.user_consent_type = user_consent_type
26180
+
26181
+ def validate(self):
26182
+ pass
26183
+
26184
+ def to_map(self):
26185
+ _map = super().to_map()
26186
+ if _map is not None:
26187
+ return _map
26188
+
26189
+ result = dict()
26190
+ if self.custom_privacy_policy_id is not None:
26191
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
26192
+ if self.custom_privacy_policy_name is not None:
26193
+ result['CustomPrivacyPolicyName'] = self.custom_privacy_policy_name
26194
+ if self.default_language_code is not None:
26195
+ result['DefaultLanguageCode'] = self.default_language_code
26196
+ if self.instance_id is not None:
26197
+ result['InstanceId'] = self.instance_id
26198
+ if self.status is not None:
26199
+ result['Status'] = self.status
26200
+ if self.user_consent_type is not None:
26201
+ result['UserConsentType'] = self.user_consent_type
26202
+ return result
26203
+
26204
+ def from_map(self, m: dict = None):
26205
+ m = m or dict()
26206
+ if m.get('CustomPrivacyPolicyId') is not None:
26207
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
26208
+ if m.get('CustomPrivacyPolicyName') is not None:
26209
+ self.custom_privacy_policy_name = m.get('CustomPrivacyPolicyName')
26210
+ if m.get('DefaultLanguageCode') is not None:
26211
+ self.default_language_code = m.get('DefaultLanguageCode')
26212
+ if m.get('InstanceId') is not None:
26213
+ self.instance_id = m.get('InstanceId')
26214
+ if m.get('Status') is not None:
26215
+ self.status = m.get('Status')
26216
+ if m.get('UserConsentType') is not None:
26217
+ self.user_consent_type = m.get('UserConsentType')
26218
+ return self
26219
+
26220
+
26221
+ class ListCustomPrivacyPoliciesResponseBody(TeaModel):
26222
+ def __init__(
26223
+ self,
26224
+ custom_privacy_policies: List[ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies] = None,
26225
+ max_results: int = None,
26226
+ next_token: str = None,
26227
+ previous_token: str = None,
26228
+ request_id: str = None,
26229
+ total_count: int = None,
26230
+ ):
26231
+ self.custom_privacy_policies = custom_privacy_policies
26232
+ # 分页查询时每页行数。
26233
+ self.max_results = max_results
26234
+ # 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
26235
+ self.next_token = next_token
26236
+ # 本次调用返回的查询凭证(Token)值,用于上一次翻页查询。
26237
+ self.previous_token = previous_token
26238
+ self.request_id = request_id
26239
+ self.total_count = total_count
26240
+
26241
+ def validate(self):
26242
+ if self.custom_privacy_policies:
26243
+ for k in self.custom_privacy_policies:
26244
+ if k:
26245
+ k.validate()
26246
+
26247
+ def to_map(self):
26248
+ _map = super().to_map()
26249
+ if _map is not None:
26250
+ return _map
26251
+
26252
+ result = dict()
26253
+ result['CustomPrivacyPolicies'] = []
26254
+ if self.custom_privacy_policies is not None:
26255
+ for k in self.custom_privacy_policies:
26256
+ result['CustomPrivacyPolicies'].append(k.to_map() if k else None)
26257
+ if self.max_results is not None:
26258
+ result['MaxResults'] = self.max_results
26259
+ if self.next_token is not None:
26260
+ result['NextToken'] = self.next_token
26261
+ if self.previous_token is not None:
26262
+ result['PreviousToken'] = self.previous_token
26263
+ if self.request_id is not None:
26264
+ result['RequestId'] = self.request_id
26265
+ if self.total_count is not None:
26266
+ result['TotalCount'] = self.total_count
26267
+ return result
26268
+
26269
+ def from_map(self, m: dict = None):
26270
+ m = m or dict()
26271
+ self.custom_privacy_policies = []
26272
+ if m.get('CustomPrivacyPolicies') is not None:
26273
+ for k in m.get('CustomPrivacyPolicies'):
26274
+ temp_model = ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies()
26275
+ self.custom_privacy_policies.append(temp_model.from_map(k))
26276
+ if m.get('MaxResults') is not None:
26277
+ self.max_results = m.get('MaxResults')
26278
+ if m.get('NextToken') is not None:
26279
+ self.next_token = m.get('NextToken')
26280
+ if m.get('PreviousToken') is not None:
26281
+ self.previous_token = m.get('PreviousToken')
26282
+ if m.get('RequestId') is not None:
26283
+ self.request_id = m.get('RequestId')
26284
+ if m.get('TotalCount') is not None:
26285
+ self.total_count = m.get('TotalCount')
26286
+ return self
26287
+
26288
+
26289
+ class ListCustomPrivacyPoliciesResponse(TeaModel):
26290
+ def __init__(
26291
+ self,
26292
+ headers: Dict[str, str] = None,
26293
+ status_code: int = None,
26294
+ body: ListCustomPrivacyPoliciesResponseBody = None,
26295
+ ):
26296
+ self.headers = headers
26297
+ self.status_code = status_code
26298
+ self.body = body
26299
+
26300
+ def validate(self):
26301
+ if self.body:
26302
+ self.body.validate()
26303
+
26304
+ def to_map(self):
26305
+ _map = super().to_map()
26306
+ if _map is not None:
26307
+ return _map
26308
+
26309
+ result = dict()
26310
+ if self.headers is not None:
26311
+ result['headers'] = self.headers
26312
+ if self.status_code is not None:
26313
+ result['statusCode'] = self.status_code
26314
+ if self.body is not None:
26315
+ result['body'] = self.body.to_map()
26316
+ return result
26317
+
26318
+ def from_map(self, m: dict = None):
26319
+ m = m or dict()
26320
+ if m.get('headers') is not None:
26321
+ self.headers = m.get('headers')
26322
+ if m.get('statusCode') is not None:
26323
+ self.status_code = m.get('statusCode')
26324
+ if m.get('body') is not None:
26325
+ temp_model = ListCustomPrivacyPoliciesResponseBody()
26326
+ self.body = temp_model.from_map(m['body'])
26327
+ return self
26328
+
26329
+
26330
+ class ListCustomPrivacyPoliciesForBrandRequest(TeaModel):
26331
+ def __init__(
26332
+ self,
26333
+ brand_id: str = None,
26334
+ instance_id: str = None,
26335
+ max_results: int = None,
26336
+ next_token: str = None,
26337
+ previous_token: str = None,
26338
+ ):
26339
+ # 品牌化Id
26340
+ #
26341
+ # This parameter is required.
26342
+ self.brand_id = brand_id
26343
+ # IDaaS EIAM实例的ID。
26344
+ #
26345
+ # This parameter is required.
26346
+ self.instance_id = instance_id
26347
+ # 分页查询时每页行数。默认值为20,最大值为100。
26348
+ self.max_results = max_results
26349
+ # 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
26350
+ self.next_token = next_token
26351
+ # 查询上一页凭证(Token),取值为上一次API调用返回的previousToken参数值。
26352
+ self.previous_token = previous_token
26353
+
26354
+ def validate(self):
26355
+ pass
26356
+
26357
+ def to_map(self):
26358
+ _map = super().to_map()
26359
+ if _map is not None:
26360
+ return _map
26361
+
26362
+ result = dict()
26363
+ if self.brand_id is not None:
26364
+ result['BrandId'] = self.brand_id
26365
+ if self.instance_id is not None:
26366
+ result['InstanceId'] = self.instance_id
26367
+ if self.max_results is not None:
26368
+ result['MaxResults'] = self.max_results
26369
+ if self.next_token is not None:
26370
+ result['NextToken'] = self.next_token
26371
+ if self.previous_token is not None:
26372
+ result['PreviousToken'] = self.previous_token
26373
+ return result
26374
+
26375
+ def from_map(self, m: dict = None):
26376
+ m = m or dict()
26377
+ if m.get('BrandId') is not None:
26378
+ self.brand_id = m.get('BrandId')
26379
+ if m.get('InstanceId') is not None:
26380
+ self.instance_id = m.get('InstanceId')
26381
+ if m.get('MaxResults') is not None:
26382
+ self.max_results = m.get('MaxResults')
26383
+ if m.get('NextToken') is not None:
26384
+ self.next_token = m.get('NextToken')
26385
+ if m.get('PreviousToken') is not None:
26386
+ self.previous_token = m.get('PreviousToken')
26387
+ return self
26388
+
26389
+
26390
+ class ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies(TeaModel):
26391
+ def __init__(
26392
+ self,
26393
+ custom_privacy_policy_id: str = None,
26394
+ ):
26395
+ # 条款ID
26396
+ self.custom_privacy_policy_id = custom_privacy_policy_id
26397
+
26398
+ def validate(self):
26399
+ pass
26400
+
26401
+ def to_map(self):
26402
+ _map = super().to_map()
26403
+ if _map is not None:
26404
+ return _map
26405
+
26406
+ result = dict()
26407
+ if self.custom_privacy_policy_id is not None:
26408
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
26409
+ return result
26410
+
26411
+ def from_map(self, m: dict = None):
26412
+ m = m or dict()
26413
+ if m.get('CustomPrivacyPolicyId') is not None:
26414
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
26415
+ return self
26416
+
26417
+
26418
+ class ListCustomPrivacyPoliciesForBrandResponseBody(TeaModel):
26419
+ def __init__(
26420
+ self,
26421
+ brand_custom_privacy_policies: List[ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies] = None,
26422
+ max_results: int = None,
26423
+ next_token: str = None,
26424
+ previous_token: str = None,
26425
+ request_id: str = None,
26426
+ total_count: int = None,
26427
+ ):
26428
+ self.brand_custom_privacy_policies = brand_custom_privacy_policies
26429
+ # 分页查询时每页行数。
26430
+ self.max_results = max_results
26431
+ # 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
26432
+ self.next_token = next_token
26433
+ # 本次调用返回的查询凭证(Token)值,用于上一次翻页查询。
26434
+ self.previous_token = previous_token
26435
+ self.request_id = request_id
26436
+ self.total_count = total_count
26437
+
26438
+ def validate(self):
26439
+ if self.brand_custom_privacy_policies:
26440
+ for k in self.brand_custom_privacy_policies:
26441
+ if k:
26442
+ k.validate()
26443
+
26444
+ def to_map(self):
26445
+ _map = super().to_map()
26446
+ if _map is not None:
26447
+ return _map
26448
+
26449
+ result = dict()
26450
+ result['BrandCustomPrivacyPolicies'] = []
26451
+ if self.brand_custom_privacy_policies is not None:
26452
+ for k in self.brand_custom_privacy_policies:
26453
+ result['BrandCustomPrivacyPolicies'].append(k.to_map() if k else None)
26454
+ if self.max_results is not None:
26455
+ result['MaxResults'] = self.max_results
26456
+ if self.next_token is not None:
26457
+ result['NextToken'] = self.next_token
26458
+ if self.previous_token is not None:
26459
+ result['PreviousToken'] = self.previous_token
26460
+ if self.request_id is not None:
26461
+ result['RequestId'] = self.request_id
26462
+ if self.total_count is not None:
26463
+ result['TotalCount'] = self.total_count
26464
+ return result
26465
+
26466
+ def from_map(self, m: dict = None):
26467
+ m = m or dict()
26468
+ self.brand_custom_privacy_policies = []
26469
+ if m.get('BrandCustomPrivacyPolicies') is not None:
26470
+ for k in m.get('BrandCustomPrivacyPolicies'):
26471
+ temp_model = ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies()
26472
+ self.brand_custom_privacy_policies.append(temp_model.from_map(k))
26473
+ if m.get('MaxResults') is not None:
26474
+ self.max_results = m.get('MaxResults')
26475
+ if m.get('NextToken') is not None:
26476
+ self.next_token = m.get('NextToken')
26477
+ if m.get('PreviousToken') is not None:
26478
+ self.previous_token = m.get('PreviousToken')
26479
+ if m.get('RequestId') is not None:
26480
+ self.request_id = m.get('RequestId')
26481
+ if m.get('TotalCount') is not None:
26482
+ self.total_count = m.get('TotalCount')
26483
+ return self
26484
+
26485
+
26486
+ class ListCustomPrivacyPoliciesForBrandResponse(TeaModel):
26487
+ def __init__(
26488
+ self,
26489
+ headers: Dict[str, str] = None,
26490
+ status_code: int = None,
26491
+ body: ListCustomPrivacyPoliciesForBrandResponseBody = None,
26492
+ ):
26493
+ self.headers = headers
26494
+ self.status_code = status_code
26495
+ self.body = body
26496
+
26497
+ def validate(self):
26498
+ if self.body:
26499
+ self.body.validate()
26500
+
26501
+ def to_map(self):
26502
+ _map = super().to_map()
26503
+ if _map is not None:
26504
+ return _map
26505
+
26506
+ result = dict()
26507
+ if self.headers is not None:
26508
+ result['headers'] = self.headers
26509
+ if self.status_code is not None:
26510
+ result['statusCode'] = self.status_code
26511
+ if self.body is not None:
26512
+ result['body'] = self.body.to_map()
26513
+ return result
26514
+
26515
+ def from_map(self, m: dict = None):
26516
+ m = m or dict()
26517
+ if m.get('headers') is not None:
26518
+ self.headers = m.get('headers')
26519
+ if m.get('statusCode') is not None:
26520
+ self.status_code = m.get('statusCode')
26521
+ if m.get('body') is not None:
26522
+ temp_model = ListCustomPrivacyPoliciesForBrandResponseBody()
26523
+ self.body = temp_model.from_map(m['body'])
26524
+ return self
26525
+
26526
+
25161
26527
  class ListDomainProxyTokensRequest(TeaModel):
25162
26528
  def __init__(
25163
26529
  self,
@@ -33130,6 +34496,122 @@ class RemoveApplicationAccountFromUserResponse(TeaModel):
33130
34496
  return self
33131
34497
 
33132
34498
 
34499
+ class RemoveCustomPrivacyPoliciesFromBrandRequest(TeaModel):
34500
+ def __init__(
34501
+ self,
34502
+ brand_id: str = None,
34503
+ custom_privacy_policy_ids: List[str] = None,
34504
+ instance_id: str = None,
34505
+ ):
34506
+ # 品牌化Id
34507
+ #
34508
+ # This parameter is required.
34509
+ self.brand_id = brand_id
34510
+ # 条款ID列表
34511
+ #
34512
+ # This parameter is required.
34513
+ self.custom_privacy_policy_ids = custom_privacy_policy_ids
34514
+ # IDaaS EIAM实例的ID。
34515
+ #
34516
+ # This parameter is required.
34517
+ self.instance_id = instance_id
34518
+
34519
+ def validate(self):
34520
+ pass
34521
+
34522
+ def to_map(self):
34523
+ _map = super().to_map()
34524
+ if _map is not None:
34525
+ return _map
34526
+
34527
+ result = dict()
34528
+ if self.brand_id is not None:
34529
+ result['BrandId'] = self.brand_id
34530
+ if self.custom_privacy_policy_ids is not None:
34531
+ result['CustomPrivacyPolicyIds'] = self.custom_privacy_policy_ids
34532
+ if self.instance_id is not None:
34533
+ result['InstanceId'] = self.instance_id
34534
+ return result
34535
+
34536
+ def from_map(self, m: dict = None):
34537
+ m = m or dict()
34538
+ if m.get('BrandId') is not None:
34539
+ self.brand_id = m.get('BrandId')
34540
+ if m.get('CustomPrivacyPolicyIds') is not None:
34541
+ self.custom_privacy_policy_ids = m.get('CustomPrivacyPolicyIds')
34542
+ if m.get('InstanceId') is not None:
34543
+ self.instance_id = m.get('InstanceId')
34544
+ return self
34545
+
34546
+
34547
+ class RemoveCustomPrivacyPoliciesFromBrandResponseBody(TeaModel):
34548
+ def __init__(
34549
+ self,
34550
+ request_id: str = None,
34551
+ ):
34552
+ self.request_id = request_id
34553
+
34554
+ def validate(self):
34555
+ pass
34556
+
34557
+ def to_map(self):
34558
+ _map = super().to_map()
34559
+ if _map is not None:
34560
+ return _map
34561
+
34562
+ result = dict()
34563
+ if self.request_id is not None:
34564
+ result['RequestId'] = self.request_id
34565
+ return result
34566
+
34567
+ def from_map(self, m: dict = None):
34568
+ m = m or dict()
34569
+ if m.get('RequestId') is not None:
34570
+ self.request_id = m.get('RequestId')
34571
+ return self
34572
+
34573
+
34574
+ class RemoveCustomPrivacyPoliciesFromBrandResponse(TeaModel):
34575
+ def __init__(
34576
+ self,
34577
+ headers: Dict[str, str] = None,
34578
+ status_code: int = None,
34579
+ body: RemoveCustomPrivacyPoliciesFromBrandResponseBody = None,
34580
+ ):
34581
+ self.headers = headers
34582
+ self.status_code = status_code
34583
+ self.body = body
34584
+
34585
+ def validate(self):
34586
+ if self.body:
34587
+ self.body.validate()
34588
+
34589
+ def to_map(self):
34590
+ _map = super().to_map()
34591
+ if _map is not None:
34592
+ return _map
34593
+
34594
+ result = dict()
34595
+ if self.headers is not None:
34596
+ result['headers'] = self.headers
34597
+ if self.status_code is not None:
34598
+ result['statusCode'] = self.status_code
34599
+ if self.body is not None:
34600
+ result['body'] = self.body.to_map()
34601
+ return result
34602
+
34603
+ def from_map(self, m: dict = None):
34604
+ m = m or dict()
34605
+ if m.get('headers') is not None:
34606
+ self.headers = m.get('headers')
34607
+ if m.get('statusCode') is not None:
34608
+ self.status_code = m.get('statusCode')
34609
+ if m.get('body') is not None:
34610
+ temp_model = RemoveCustomPrivacyPoliciesFromBrandResponseBody()
34611
+ self.body = temp_model.from_map(m['body'])
34612
+ return self
34613
+
34614
+
33133
34615
  class RemoveUserFromOrganizationalUnitsRequest(TeaModel):
33134
34616
  def __init__(
33135
34617
  self,
@@ -38111,6 +39593,223 @@ class UpdateConditionalAccessPolicyDescriptionResponse(TeaModel):
38111
39593
  return self
38112
39594
 
38113
39595
 
39596
+ class UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems(TeaModel):
39597
+ def __init__(
39598
+ self,
39599
+ custom_privacy_policy_item_name: str = None,
39600
+ custom_privacy_policy_item_url: str = None,
39601
+ ):
39602
+ self.custom_privacy_policy_item_name = custom_privacy_policy_item_name
39603
+ self.custom_privacy_policy_item_url = custom_privacy_policy_item_url
39604
+
39605
+ def validate(self):
39606
+ pass
39607
+
39608
+ def to_map(self):
39609
+ _map = super().to_map()
39610
+ if _map is not None:
39611
+ return _map
39612
+
39613
+ result = dict()
39614
+ if self.custom_privacy_policy_item_name is not None:
39615
+ result['CustomPrivacyPolicyItemName'] = self.custom_privacy_policy_item_name
39616
+ if self.custom_privacy_policy_item_url is not None:
39617
+ result['CustomPrivacyPolicyItemUrl'] = self.custom_privacy_policy_item_url
39618
+ return result
39619
+
39620
+ def from_map(self, m: dict = None):
39621
+ m = m or dict()
39622
+ if m.get('CustomPrivacyPolicyItemName') is not None:
39623
+ self.custom_privacy_policy_item_name = m.get('CustomPrivacyPolicyItemName')
39624
+ if m.get('CustomPrivacyPolicyItemUrl') is not None:
39625
+ self.custom_privacy_policy_item_url = m.get('CustomPrivacyPolicyItemUrl')
39626
+ return self
39627
+
39628
+
39629
+ class UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents(TeaModel):
39630
+ def __init__(
39631
+ self,
39632
+ custom_privacy_policy_items: List[UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems] = None,
39633
+ custom_privacy_policy_tip: str = None,
39634
+ language_code: str = None,
39635
+ ):
39636
+ self.custom_privacy_policy_items = custom_privacy_policy_items
39637
+ self.custom_privacy_policy_tip = custom_privacy_policy_tip
39638
+ self.language_code = language_code
39639
+
39640
+ def validate(self):
39641
+ if self.custom_privacy_policy_items:
39642
+ for k in self.custom_privacy_policy_items:
39643
+ if k:
39644
+ k.validate()
39645
+
39646
+ def to_map(self):
39647
+ _map = super().to_map()
39648
+ if _map is not None:
39649
+ return _map
39650
+
39651
+ result = dict()
39652
+ result['CustomPrivacyPolicyItems'] = []
39653
+ if self.custom_privacy_policy_items is not None:
39654
+ for k in self.custom_privacy_policy_items:
39655
+ result['CustomPrivacyPolicyItems'].append(k.to_map() if k else None)
39656
+ if self.custom_privacy_policy_tip is not None:
39657
+ result['CustomPrivacyPolicyTip'] = self.custom_privacy_policy_tip
39658
+ if self.language_code is not None:
39659
+ result['LanguageCode'] = self.language_code
39660
+ return result
39661
+
39662
+ def from_map(self, m: dict = None):
39663
+ m = m or dict()
39664
+ self.custom_privacy_policy_items = []
39665
+ if m.get('CustomPrivacyPolicyItems') is not None:
39666
+ for k in m.get('CustomPrivacyPolicyItems'):
39667
+ temp_model = UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContentsCustomPrivacyPolicyItems()
39668
+ self.custom_privacy_policy_items.append(temp_model.from_map(k))
39669
+ if m.get('CustomPrivacyPolicyTip') is not None:
39670
+ self.custom_privacy_policy_tip = m.get('CustomPrivacyPolicyTip')
39671
+ if m.get('LanguageCode') is not None:
39672
+ self.language_code = m.get('LanguageCode')
39673
+ return self
39674
+
39675
+
39676
+ class UpdateCustomPrivacyPolicyRequest(TeaModel):
39677
+ def __init__(
39678
+ self,
39679
+ custom_privacy_policy_contents: List[UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents] = None,
39680
+ custom_privacy_policy_id: str = None,
39681
+ custom_privacy_policy_name: str = None,
39682
+ default_language_code: str = None,
39683
+ instance_id: str = None,
39684
+ user_consent_type: str = None,
39685
+ ):
39686
+ self.custom_privacy_policy_contents = custom_privacy_policy_contents
39687
+ # This parameter is required.
39688
+ self.custom_privacy_policy_id = custom_privacy_policy_id
39689
+ self.custom_privacy_policy_name = custom_privacy_policy_name
39690
+ self.default_language_code = default_language_code
39691
+ # IDaaS EIAM实例的ID。
39692
+ #
39693
+ # This parameter is required.
39694
+ self.instance_id = instance_id
39695
+ self.user_consent_type = user_consent_type
39696
+
39697
+ def validate(self):
39698
+ if self.custom_privacy_policy_contents:
39699
+ for k in self.custom_privacy_policy_contents:
39700
+ if k:
39701
+ k.validate()
39702
+
39703
+ def to_map(self):
39704
+ _map = super().to_map()
39705
+ if _map is not None:
39706
+ return _map
39707
+
39708
+ result = dict()
39709
+ result['CustomPrivacyPolicyContents'] = []
39710
+ if self.custom_privacy_policy_contents is not None:
39711
+ for k in self.custom_privacy_policy_contents:
39712
+ result['CustomPrivacyPolicyContents'].append(k.to_map() if k else None)
39713
+ if self.custom_privacy_policy_id is not None:
39714
+ result['CustomPrivacyPolicyId'] = self.custom_privacy_policy_id
39715
+ if self.custom_privacy_policy_name is not None:
39716
+ result['CustomPrivacyPolicyName'] = self.custom_privacy_policy_name
39717
+ if self.default_language_code is not None:
39718
+ result['DefaultLanguageCode'] = self.default_language_code
39719
+ if self.instance_id is not None:
39720
+ result['InstanceId'] = self.instance_id
39721
+ if self.user_consent_type is not None:
39722
+ result['UserConsentType'] = self.user_consent_type
39723
+ return result
39724
+
39725
+ def from_map(self, m: dict = None):
39726
+ m = m or dict()
39727
+ self.custom_privacy_policy_contents = []
39728
+ if m.get('CustomPrivacyPolicyContents') is not None:
39729
+ for k in m.get('CustomPrivacyPolicyContents'):
39730
+ temp_model = UpdateCustomPrivacyPolicyRequestCustomPrivacyPolicyContents()
39731
+ self.custom_privacy_policy_contents.append(temp_model.from_map(k))
39732
+ if m.get('CustomPrivacyPolicyId') is not None:
39733
+ self.custom_privacy_policy_id = m.get('CustomPrivacyPolicyId')
39734
+ if m.get('CustomPrivacyPolicyName') is not None:
39735
+ self.custom_privacy_policy_name = m.get('CustomPrivacyPolicyName')
39736
+ if m.get('DefaultLanguageCode') is not None:
39737
+ self.default_language_code = m.get('DefaultLanguageCode')
39738
+ if m.get('InstanceId') is not None:
39739
+ self.instance_id = m.get('InstanceId')
39740
+ if m.get('UserConsentType') is not None:
39741
+ self.user_consent_type = m.get('UserConsentType')
39742
+ return self
39743
+
39744
+
39745
+ class UpdateCustomPrivacyPolicyResponseBody(TeaModel):
39746
+ def __init__(
39747
+ self,
39748
+ request_id: str = None,
39749
+ ):
39750
+ self.request_id = request_id
39751
+
39752
+ def validate(self):
39753
+ pass
39754
+
39755
+ def to_map(self):
39756
+ _map = super().to_map()
39757
+ if _map is not None:
39758
+ return _map
39759
+
39760
+ result = dict()
39761
+ if self.request_id is not None:
39762
+ result['RequestId'] = self.request_id
39763
+ return result
39764
+
39765
+ def from_map(self, m: dict = None):
39766
+ m = m or dict()
39767
+ if m.get('RequestId') is not None:
39768
+ self.request_id = m.get('RequestId')
39769
+ return self
39770
+
39771
+
39772
+ class UpdateCustomPrivacyPolicyResponse(TeaModel):
39773
+ def __init__(
39774
+ self,
39775
+ headers: Dict[str, str] = None,
39776
+ status_code: int = None,
39777
+ body: UpdateCustomPrivacyPolicyResponseBody = None,
39778
+ ):
39779
+ self.headers = headers
39780
+ self.status_code = status_code
39781
+ self.body = body
39782
+
39783
+ def validate(self):
39784
+ if self.body:
39785
+ self.body.validate()
39786
+
39787
+ def to_map(self):
39788
+ _map = super().to_map()
39789
+ if _map is not None:
39790
+ return _map
39791
+
39792
+ result = dict()
39793
+ if self.headers is not None:
39794
+ result['headers'] = self.headers
39795
+ if self.status_code is not None:
39796
+ result['statusCode'] = self.status_code
39797
+ if self.body is not None:
39798
+ result['body'] = self.body.to_map()
39799
+ return result
39800
+
39801
+ def from_map(self, m: dict = None):
39802
+ m = m or dict()
39803
+ if m.get('headers') is not None:
39804
+ self.headers = m.get('headers')
39805
+ if m.get('statusCode') is not None:
39806
+ self.status_code = m.get('statusCode')
39807
+ if m.get('body') is not None:
39808
+ temp_model = UpdateCustomPrivacyPolicyResponseBody()
39809
+ self.body = temp_model.from_map(m['body'])
39810
+ return self
39811
+
39812
+
38114
39813
  class UpdateDomainBrandRequest(TeaModel):
38115
39814
  def __init__(
38116
39815
  self,