huaweicloudsdkram 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.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.
Files changed (45) hide show
  1. huaweicloudsdkram/v1/__init__.py +2 -0
  2. huaweicloudsdkram/v1/model/__init__.py +2 -0
  3. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
  4. huaweicloudsdkram/v1/model/associate_permission_req_body.py +31 -31
  5. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
  6. huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
  7. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
  8. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
  9. huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
  10. huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
  11. huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
  12. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
  13. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
  14. huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
  15. huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
  16. huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
  17. huaweicloudsdkram/v1/model/list_permissions_request.py +62 -3
  18. huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
  19. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
  20. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
  21. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
  22. huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
  23. huaweicloudsdkram/v1/model/permission.py +148 -3
  24. huaweicloudsdkram/v1/model/permission_summary.py +148 -3
  25. huaweicloudsdkram/v1/model/quotas.py +3 -3
  26. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
  27. huaweicloudsdkram/v1/model/resource_share_association.py +3 -3
  28. huaweicloudsdkram/v1/model/resource_share_invitation.py +6 -6
  29. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
  30. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
  31. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
  32. huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
  33. huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
  34. huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
  35. huaweicloudsdkram/v1/model/shared_principal.py +3 -3
  36. huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
  37. huaweicloudsdkram/v1/model/show_permission_request.py +62 -3
  38. huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
  39. huaweicloudsdkram/v1/ram_async_client.py +136 -7
  40. huaweicloudsdkram/v1/ram_client.py +136 -7
  41. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +45 -43
  43. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
  44. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
  45. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,12 @@ class PermissionSummary:
22
22
  'resource_type': 'str',
23
23
  'is_resource_type_default': 'bool',
24
24
  'created_at': 'datetime',
25
- 'updated_at': 'datetime'
25
+ 'updated_at': 'datetime',
26
+ 'permission_urn': 'str',
27
+ 'permission_type': 'str',
28
+ 'default_version': 'bool',
29
+ 'version': 'int',
30
+ 'status': 'str'
26
31
  }
27
32
 
28
33
  attribute_map = {
@@ -31,10 +36,15 @@ class PermissionSummary:
31
36
  'resource_type': 'resource_type',
32
37
  'is_resource_type_default': 'is_resource_type_default',
33
38
  'created_at': 'created_at',
34
- 'updated_at': 'updated_at'
39
+ 'updated_at': 'updated_at',
40
+ 'permission_urn': 'permission_urn',
41
+ 'permission_type': 'permission_type',
42
+ 'default_version': 'default_version',
43
+ 'version': 'version',
44
+ 'status': 'status'
35
45
  }
36
46
 
37
- def __init__(self, id=None, name=None, resource_type=None, is_resource_type_default=None, created_at=None, updated_at=None):
47
+ def __init__(self, id=None, name=None, resource_type=None, is_resource_type_default=None, created_at=None, updated_at=None, permission_urn=None, permission_type=None, default_version=None, version=None, status=None):
38
48
  """PermissionSummary
39
49
 
40
50
  The model defined in huaweicloud sdk
@@ -51,6 +61,16 @@ class PermissionSummary:
51
61
  :type created_at: datetime
52
62
  :param updated_at: 上次更新权限的时间。
53
63
  :type updated_at: datetime
64
+ :param permission_urn: 权限URN。
65
+ :type permission_urn: str
66
+ :param permission_type: 权限类型,RAM托管或者租户自定义权限。
67
+ :type permission_type: str
68
+ :param default_version: 是否是默认版本。
69
+ :type default_version: bool
70
+ :param version: 权限版本。
71
+ :type version: int
72
+ :param status: 权限的状态
73
+ :type status: str
54
74
  """
55
75
 
56
76
 
@@ -61,6 +81,11 @@ class PermissionSummary:
61
81
  self._is_resource_type_default = None
62
82
  self._created_at = None
63
83
  self._updated_at = None
84
+ self._permission_urn = None
85
+ self._permission_type = None
86
+ self._default_version = None
87
+ self._version = None
88
+ self._status = None
64
89
  self.discriminator = None
65
90
 
66
91
  self.id = id
@@ -69,6 +94,16 @@ class PermissionSummary:
69
94
  self.is_resource_type_default = is_resource_type_default
70
95
  self.created_at = created_at
71
96
  self.updated_at = updated_at
97
+ if permission_urn is not None:
98
+ self.permission_urn = permission_urn
99
+ if permission_type is not None:
100
+ self.permission_type = permission_type
101
+ if default_version is not None:
102
+ self.default_version = default_version
103
+ if version is not None:
104
+ self.version = version
105
+ if status is not None:
106
+ self.status = status
72
107
 
73
108
  @property
74
109
  def id(self):
@@ -202,6 +237,116 @@ class PermissionSummary:
202
237
  """
203
238
  self._updated_at = updated_at
204
239
 
240
+ @property
241
+ def permission_urn(self):
242
+ """Gets the permission_urn of this PermissionSummary.
243
+
244
+ 权限URN。
245
+
246
+ :return: The permission_urn of this PermissionSummary.
247
+ :rtype: str
248
+ """
249
+ return self._permission_urn
250
+
251
+ @permission_urn.setter
252
+ def permission_urn(self, permission_urn):
253
+ """Sets the permission_urn of this PermissionSummary.
254
+
255
+ 权限URN。
256
+
257
+ :param permission_urn: The permission_urn of this PermissionSummary.
258
+ :type permission_urn: str
259
+ """
260
+ self._permission_urn = permission_urn
261
+
262
+ @property
263
+ def permission_type(self):
264
+ """Gets the permission_type of this PermissionSummary.
265
+
266
+ 权限类型,RAM托管或者租户自定义权限。
267
+
268
+ :return: The permission_type of this PermissionSummary.
269
+ :rtype: str
270
+ """
271
+ return self._permission_type
272
+
273
+ @permission_type.setter
274
+ def permission_type(self, permission_type):
275
+ """Sets the permission_type of this PermissionSummary.
276
+
277
+ 权限类型,RAM托管或者租户自定义权限。
278
+
279
+ :param permission_type: The permission_type of this PermissionSummary.
280
+ :type permission_type: str
281
+ """
282
+ self._permission_type = permission_type
283
+
284
+ @property
285
+ def default_version(self):
286
+ """Gets the default_version of this PermissionSummary.
287
+
288
+ 是否是默认版本。
289
+
290
+ :return: The default_version of this PermissionSummary.
291
+ :rtype: bool
292
+ """
293
+ return self._default_version
294
+
295
+ @default_version.setter
296
+ def default_version(self, default_version):
297
+ """Sets the default_version of this PermissionSummary.
298
+
299
+ 是否是默认版本。
300
+
301
+ :param default_version: The default_version of this PermissionSummary.
302
+ :type default_version: bool
303
+ """
304
+ self._default_version = default_version
305
+
306
+ @property
307
+ def version(self):
308
+ """Gets the version of this PermissionSummary.
309
+
310
+ 权限版本。
311
+
312
+ :return: The version of this PermissionSummary.
313
+ :rtype: int
314
+ """
315
+ return self._version
316
+
317
+ @version.setter
318
+ def version(self, version):
319
+ """Sets the version of this PermissionSummary.
320
+
321
+ 权限版本。
322
+
323
+ :param version: The version of this PermissionSummary.
324
+ :type version: int
325
+ """
326
+ self._version = version
327
+
328
+ @property
329
+ def status(self):
330
+ """Gets the status of this PermissionSummary.
331
+
332
+ 权限的状态
333
+
334
+ :return: The status of this PermissionSummary.
335
+ :rtype: str
336
+ """
337
+ return self._status
338
+
339
+ @status.setter
340
+ def status(self, status):
341
+ """Sets the status of this PermissionSummary.
342
+
343
+ 权限的状态
344
+
345
+ :param status: The status of this PermissionSummary.
346
+ :type status: str
347
+ """
348
+ self._status = status
349
+
205
350
  def to_dict(self):
206
351
  """Returns the model properties as a dict"""
207
352
  result = {}
@@ -37,7 +37,7 @@ class Quotas:
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param type: 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
40
+ :param type: 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
41
41
  :type type: str
42
42
  :param quota: 总配额数量。
43
43
  :type quota: int
@@ -68,7 +68,7 @@ class Quotas:
68
68
  def type(self):
69
69
  """Gets the type of this Quotas.
70
70
 
71
- 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
71
+ 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
72
72
 
73
73
  :return: The type of this Quotas.
74
74
  :rtype: str
@@ -79,7 +79,7 @@ class Quotas:
79
79
  def type(self, type):
80
80
  """Sets the type of this Quotas.
81
81
 
82
- 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
82
+ 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
83
83
 
84
84
  :param type: The type of this Quotas.
85
85
  :type type: str
@@ -15,31 +15,61 @@ class RejectResourceShareInvitationRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_invitation_id': 'str'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'resource_share_invitation_id': 'resource_share_invitation_id'
25
28
  }
26
29
 
27
- def __init__(self, resource_share_invitation_id=None):
30
+ def __init__(self, x_security_token=None, resource_share_invitation_id=None):
28
31
  """RejectResourceShareInvitationRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param resource_share_invitation_id: 资源共享邀请的ID。
33
38
  :type resource_share_invitation_id: str
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._resource_share_invitation_id = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  self.resource_share_invitation_id = resource_share_invitation_id
42
50
 
51
+ @property
52
+ def x_security_token(self):
53
+ """Gets the x_security_token of this RejectResourceShareInvitationRequest.
54
+
55
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
56
+
57
+ :return: The x_security_token of this RejectResourceShareInvitationRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_security_token
61
+
62
+ @x_security_token.setter
63
+ def x_security_token(self, x_security_token):
64
+ """Sets the x_security_token of this RejectResourceShareInvitationRequest.
65
+
66
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
67
+
68
+ :param x_security_token: The x_security_token of this RejectResourceShareInvitationRequest.
69
+ :type x_security_token: str
70
+ """
71
+ self._x_security_token = x_security_token
72
+
43
73
  @property
44
74
  def resource_share_invitation_id(self):
45
75
  """Gets the resource_share_invitation_id of this RejectResourceShareInvitationRequest.
@@ -45,7 +45,7 @@ class ResourceShareAssociation:
45
45
 
46
46
  The model defined in huaweicloud sdk
47
47
 
48
- :param associated_entity: 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
48
+ :param associated_entity: 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
49
49
  :type associated_entity: str
50
50
  :param association_type: 绑定中包含的实体类型。
51
51
  :type association_type: str
@@ -94,7 +94,7 @@ class ResourceShareAssociation:
94
94
  def associated_entity(self):
95
95
  """Gets the associated_entity of this ResourceShareAssociation.
96
96
 
97
- 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
97
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
98
98
 
99
99
  :return: The associated_entity of this ResourceShareAssociation.
100
100
  :rtype: str
@@ -105,7 +105,7 @@ class ResourceShareAssociation:
105
105
  def associated_entity(self, associated_entity):
106
106
  """Sets the associated_entity of this ResourceShareAssociation.
107
107
 
108
- 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
108
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
109
109
 
110
110
  :param associated_entity: The associated_entity of this ResourceShareAssociation.
111
111
  :type associated_entity: str
@@ -43,7 +43,7 @@ class ResourceShareInvitation:
43
43
 
44
44
  The model defined in huaweicloud sdk
45
45
 
46
- :param receiver_account_id: 接收资源共享邀请的帐号ID。
46
+ :param receiver_account_id: 接收资源共享邀请的账号ID。
47
47
  :type receiver_account_id: str
48
48
  :param resource_share_id: 资源共享实例的ID。
49
49
  :type resource_share_id: str
@@ -51,7 +51,7 @@ class ResourceShareInvitation:
51
51
  :type resource_share_name: str
52
52
  :param resource_share_invitation_id: 资源共享邀请的ID。
53
53
  :type resource_share_invitation_id: str
54
- :param sender_account_id: 发送资源共享邀请的帐号ID。
54
+ :param sender_account_id: 发送资源共享邀请的账号ID。
55
55
  :type sender_account_id: str
56
56
  :param status: 资源共享邀请的当前状态。
57
57
  :type status: str
@@ -94,7 +94,7 @@ class ResourceShareInvitation:
94
94
  def receiver_account_id(self):
95
95
  """Gets the receiver_account_id of this ResourceShareInvitation.
96
96
 
97
- 接收资源共享邀请的帐号ID。
97
+ 接收资源共享邀请的账号ID。
98
98
 
99
99
  :return: The receiver_account_id of this ResourceShareInvitation.
100
100
  :rtype: str
@@ -105,7 +105,7 @@ class ResourceShareInvitation:
105
105
  def receiver_account_id(self, receiver_account_id):
106
106
  """Sets the receiver_account_id of this ResourceShareInvitation.
107
107
 
108
- 接收资源共享邀请的帐号ID。
108
+ 接收资源共享邀请的账号ID。
109
109
 
110
110
  :param receiver_account_id: The receiver_account_id of this ResourceShareInvitation.
111
111
  :type receiver_account_id: str
@@ -182,7 +182,7 @@ class ResourceShareInvitation:
182
182
  def sender_account_id(self):
183
183
  """Gets the sender_account_id of this ResourceShareInvitation.
184
184
 
185
- 发送资源共享邀请的帐号ID。
185
+ 发送资源共享邀请的账号ID。
186
186
 
187
187
  :return: The sender_account_id of this ResourceShareInvitation.
188
188
  :rtype: str
@@ -193,7 +193,7 @@ class ResourceShareInvitation:
193
193
  def sender_account_id(self, sender_account_id):
194
194
  """Sets the sender_account_id of this ResourceShareInvitation.
195
195
 
196
- 发送资源共享邀请的帐号ID。
196
+ 发送资源共享邀请的账号ID。
197
197
 
198
198
  :param sender_account_id: The sender_account_id of this ResourceShareInvitation.
199
199
  :type sender_account_id: str
@@ -15,32 +15,62 @@ class SearchResourceShareAssociationsRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'body': 'SearchResourceShareAssociationsReqBody'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'body': 'body'
25
28
  }
26
29
 
27
- def __init__(self, body=None):
30
+ def __init__(self, x_security_token=None, body=None):
28
31
  """SearchResourceShareAssociationsRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param body: Body of the SearchResourceShareAssociationsRequest
33
38
  :type body: :class:`huaweicloudsdkram.v1.SearchResourceShareAssociationsReqBody`
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._body = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  if body is not None:
42
50
  self.body = body
43
51
 
52
+ @property
53
+ def x_security_token(self):
54
+ """Gets the x_security_token of this SearchResourceShareAssociationsRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this SearchResourceShareAssociationsRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ """Sets the x_security_token of this SearchResourceShareAssociationsRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this SearchResourceShareAssociationsRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
44
74
  @property
45
75
  def body(self):
46
76
  """Gets the body of this SearchResourceShareAssociationsRequest.
@@ -15,32 +15,62 @@ class SearchResourceShareCountByTagsRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'body': 'ResourceSharesByTagsReqBody'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'body': 'body'
25
28
  }
26
29
 
27
- def __init__(self, body=None):
30
+ def __init__(self, x_security_token=None, body=None):
28
31
  """SearchResourceShareCountByTagsRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param body: Body of the SearchResourceShareCountByTagsRequest
33
38
  :type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._body = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  if body is not None:
42
50
  self.body = body
43
51
 
52
+ @property
53
+ def x_security_token(self):
54
+ """Gets the x_security_token of this SearchResourceShareCountByTagsRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this SearchResourceShareCountByTagsRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ """Sets the x_security_token of this SearchResourceShareCountByTagsRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this SearchResourceShareCountByTagsRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
44
74
  @property
45
75
  def body(self):
46
76
  """Gets the body of this SearchResourceShareCountByTagsRequest.
@@ -15,32 +15,62 @@ class SearchResourceShareInvitationRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'body': 'SearchResourceShareInvitationReqBody'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'body': 'body'
25
28
  }
26
29
 
27
- def __init__(self, body=None):
30
+ def __init__(self, x_security_token=None, body=None):
28
31
  """SearchResourceShareInvitationRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param body: Body of the SearchResourceShareInvitationRequest
33
38
  :type body: :class:`huaweicloudsdkram.v1.SearchResourceShareInvitationReqBody`
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._body = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  if body is not None:
42
50
  self.body = body
43
51
 
52
+ @property
53
+ def x_security_token(self):
54
+ """Gets the x_security_token of this SearchResourceShareInvitationRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this SearchResourceShareInvitationRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ """Sets the x_security_token of this SearchResourceShareInvitationRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this SearchResourceShareInvitationRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
44
74
  @property
45
75
  def body(self):
46
76
  """Gets the body of this SearchResourceShareInvitationRequest.
@@ -15,32 +15,62 @@ class SearchResourceSharesRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'body': 'SearchResourceSharesReqBody'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'body': 'body'
25
28
  }
26
29
 
27
- def __init__(self, body=None):
30
+ def __init__(self, x_security_token=None, body=None):
28
31
  """SearchResourceSharesRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param body: Body of the SearchResourceSharesRequest
33
38
  :type body: :class:`huaweicloudsdkram.v1.SearchResourceSharesReqBody`
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._body = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  if body is not None:
42
50
  self.body = body
43
51
 
52
+ @property
53
+ def x_security_token(self):
54
+ """Gets the x_security_token of this SearchResourceSharesRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this SearchResourceSharesRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ """Sets the x_security_token of this SearchResourceSharesRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this SearchResourceSharesRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
44
74
  @property
45
75
  def body(self):
46
76
  """Gets the body of this SearchResourceSharesRequest.