huaweicloudsdkram 3.1.160__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.
- huaweicloudsdkram/__init__.py +0 -0
- huaweicloudsdkram/v1/__init__.py +96 -0
- huaweicloudsdkram/v1/model/__init__.py +93 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/associate_permission_req_body.py +143 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/associate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/associate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/associated_permission.py +260 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +169 -0
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +85 -0
- huaweicloudsdkram/v1/model/create_resource_share_req_body.py +288 -0
- huaweicloudsdkram/v1/model/create_resource_share_request.py +141 -0
- huaweicloudsdkram/v1/model/create_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/delete_resource_share_request.py +144 -0
- huaweicloudsdkram/v1/model/delete_resource_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/disable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +114 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +85 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/model/enable_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/enable_organization_share_response.py +85 -0
- huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
- huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_permissions_request.py +232 -0
- huaweicloudsdkram/v1/model/list_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_quota_request.py +116 -0
- huaweicloudsdkram/v1/model/list_quota_response.py +112 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +231 -0
- huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +141 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +199 -0
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +145 -0
- huaweicloudsdkram/v1/model/list_resource_types_request.py +174 -0
- huaweicloudsdkram/v1/model/list_resource_types_response.py +141 -0
- huaweicloudsdkram/v1/model/match.py +142 -0
- huaweicloudsdkram/v1/model/page_info.py +173 -0
- huaweicloudsdkram/v1/model/page_info_marker_by_key.py +173 -0
- huaweicloudsdkram/v1/model/permission.py +427 -0
- huaweicloudsdkram/v1/model/permission_summary.py +399 -0
- huaweicloudsdkram/v1/model/quota_resources_dto.py +114 -0
- huaweicloudsdkram/v1/model/quotas.py +226 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +144 -0
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +112 -0
- huaweicloudsdkram/v1/model/resource_dto.py +198 -0
- huaweicloudsdkram/v1/model/resource_share.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association.py +340 -0
- huaweicloudsdkram/v1/model/resource_share_association_req_body.py +144 -0
- huaweicloudsdkram/v1/model/resource_share_invitation.py +318 -0
- huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +173 -0
- huaweicloudsdkram/v1/model/resource_types_summary.py +142 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +116 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +231 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +137 -0
- huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +317 -0
- huaweicloudsdkram/v1/model/search_resource_shares_request.py +141 -0
- huaweicloudsdkram/v1/model/search_resource_shares_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +259 -0
- huaweicloudsdkram/v1/model/search_shared_principals_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_principals_response.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +346 -0
- huaweicloudsdkram/v1/model/search_shared_resources_request.py +141 -0
- huaweicloudsdkram/v1/model/search_shared_resources_response.py +141 -0
- huaweicloudsdkram/v1/model/shared_principal.py +202 -0
- huaweicloudsdkram/v1/model/shared_resource.py +260 -0
- huaweicloudsdkram/v1/model/show_organization_share_request.py +116 -0
- huaweicloudsdkram/v1/model/show_organization_share_response.py +116 -0
- huaweicloudsdkram/v1/model/show_permission_request.py +173 -0
- huaweicloudsdkram/v1/model/show_permission_response.py +112 -0
- huaweicloudsdkram/v1/model/tag.py +142 -0
- huaweicloudsdkram/v1/model/tag_dto.py +142 -0
- huaweicloudsdkram/v1/model/tag_filter.py +143 -0
- huaweicloudsdkram/v1/model/tag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/untag.py +143 -0
- huaweicloudsdkram/v1/model/untag_resource_req_body.py +114 -0
- huaweicloudsdkram/v1/model/update_resource_share_req_body.py +172 -0
- huaweicloudsdkram/v1/model/update_resource_share_request.py +169 -0
- huaweicloudsdkram/v1/model/update_resource_share_response.py +112 -0
- huaweicloudsdkram/v1/ram_async_client.py +1991 -0
- huaweicloudsdkram/v1/ram_client.py +1988 -0
- huaweicloudsdkram/v1/region/__init__.py +0 -0
- huaweicloudsdkram/v1/region/ram_region.py +31 -0
- huaweicloudsdkram-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkram-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkram-3.1.160.dist-info/RECORD +100 -0
- huaweicloudsdkram-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkram-3.1.160.dist-info/top_level.txt +1 -0
File without changes
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
from huaweicloudsdkram.v1.ram_client import RamClient
|
6
|
+
from huaweicloudsdkram.v1.ram_async_client import RamAsyncClient
|
7
|
+
|
8
|
+
from huaweicloudsdkram.v1.model.accept_resource_share_invitation_request import AcceptResourceShareInvitationRequest
|
9
|
+
from huaweicloudsdkram.v1.model.accept_resource_share_invitation_response import AcceptResourceShareInvitationResponse
|
10
|
+
from huaweicloudsdkram.v1.model.associate_permission_req_body import AssociatePermissionReqBody
|
11
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_permission_request import AssociateResourceSharePermissionRequest
|
12
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_permission_response import AssociateResourceSharePermissionResponse
|
13
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_request import AssociateResourceShareRequest
|
14
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_response import AssociateResourceShareResponse
|
15
|
+
from huaweicloudsdkram.v1.model.associated_permission import AssociatedPermission
|
16
|
+
from huaweicloudsdkram.v1.model.batch_create_resource_share_tags_request import BatchCreateResourceShareTagsRequest
|
17
|
+
from huaweicloudsdkram.v1.model.batch_create_resource_share_tags_response import BatchCreateResourceShareTagsResponse
|
18
|
+
from huaweicloudsdkram.v1.model.batch_delete_resource_share_tags_request import BatchDeleteResourceShareTagsRequest
|
19
|
+
from huaweicloudsdkram.v1.model.batch_delete_resource_share_tags_response import BatchDeleteResourceShareTagsResponse
|
20
|
+
from huaweicloudsdkram.v1.model.create_resource_share_req_body import CreateResourceShareReqBody
|
21
|
+
from huaweicloudsdkram.v1.model.create_resource_share_request import CreateResourceShareRequest
|
22
|
+
from huaweicloudsdkram.v1.model.create_resource_share_response import CreateResourceShareResponse
|
23
|
+
from huaweicloudsdkram.v1.model.delete_resource_share_request import DeleteResourceShareRequest
|
24
|
+
from huaweicloudsdkram.v1.model.delete_resource_share_response import DeleteResourceShareResponse
|
25
|
+
from huaweicloudsdkram.v1.model.disable_organization_share_request import DisableOrganizationShareRequest
|
26
|
+
from huaweicloudsdkram.v1.model.disable_organization_share_response import DisableOrganizationShareResponse
|
27
|
+
from huaweicloudsdkram.v1.model.disassociate_permission_req_body import DisassociatePermissionReqBody
|
28
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_permission_request import DisassociateResourceSharePermissionRequest
|
29
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_permission_response import DisassociateResourceSharePermissionResponse
|
30
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_request import DisassociateResourceShareRequest
|
31
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_response import DisassociateResourceShareResponse
|
32
|
+
from huaweicloudsdkram.v1.model.enable_organization_share_request import EnableOrganizationShareRequest
|
33
|
+
from huaweicloudsdkram.v1.model.enable_organization_share_response import EnableOrganizationShareResponse
|
34
|
+
from huaweicloudsdkram.v1.model.list_permission_versions_request import ListPermissionVersionsRequest
|
35
|
+
from huaweicloudsdkram.v1.model.list_permission_versions_response import ListPermissionVersionsResponse
|
36
|
+
from huaweicloudsdkram.v1.model.list_permissions_request import ListPermissionsRequest
|
37
|
+
from huaweicloudsdkram.v1.model.list_permissions_response import ListPermissionsResponse
|
38
|
+
from huaweicloudsdkram.v1.model.list_quota_request import ListQuotaRequest
|
39
|
+
from huaweicloudsdkram.v1.model.list_quota_response import ListQuotaResponse
|
40
|
+
from huaweicloudsdkram.v1.model.list_resource_share_permissions_request import ListResourceSharePermissionsRequest
|
41
|
+
from huaweicloudsdkram.v1.model.list_resource_share_permissions_response import ListResourceSharePermissionsResponse
|
42
|
+
from huaweicloudsdkram.v1.model.list_resource_share_tags_request import ListResourceShareTagsRequest
|
43
|
+
from huaweicloudsdkram.v1.model.list_resource_share_tags_response import ListResourceShareTagsResponse
|
44
|
+
from huaweicloudsdkram.v1.model.list_resource_shares_by_tags_request import ListResourceSharesByTagsRequest
|
45
|
+
from huaweicloudsdkram.v1.model.list_resource_shares_by_tags_response import ListResourceSharesByTagsResponse
|
46
|
+
from huaweicloudsdkram.v1.model.list_resource_types_request import ListResourceTypesRequest
|
47
|
+
from huaweicloudsdkram.v1.model.list_resource_types_response import ListResourceTypesResponse
|
48
|
+
from huaweicloudsdkram.v1.model.match import Match
|
49
|
+
from huaweicloudsdkram.v1.model.page_info import PageInfo
|
50
|
+
from huaweicloudsdkram.v1.model.page_info_marker_by_key import PageInfoMarkerByKey
|
51
|
+
from huaweicloudsdkram.v1.model.permission import Permission
|
52
|
+
from huaweicloudsdkram.v1.model.permission_summary import PermissionSummary
|
53
|
+
from huaweicloudsdkram.v1.model.quota_resources_dto import QuotaResourcesDto
|
54
|
+
from huaweicloudsdkram.v1.model.quotas import Quotas
|
55
|
+
from huaweicloudsdkram.v1.model.reject_resource_share_invitation_request import RejectResourceShareInvitationRequest
|
56
|
+
from huaweicloudsdkram.v1.model.reject_resource_share_invitation_response import RejectResourceShareInvitationResponse
|
57
|
+
from huaweicloudsdkram.v1.model.resource_dto import ResourceDTO
|
58
|
+
from huaweicloudsdkram.v1.model.resource_share import ResourceShare
|
59
|
+
from huaweicloudsdkram.v1.model.resource_share_association import ResourceShareAssociation
|
60
|
+
from huaweicloudsdkram.v1.model.resource_share_association_req_body import ResourceShareAssociationReqBody
|
61
|
+
from huaweicloudsdkram.v1.model.resource_share_invitation import ResourceShareInvitation
|
62
|
+
from huaweicloudsdkram.v1.model.resource_shares_by_tags_req_body import ResourceSharesByTagsReqBody
|
63
|
+
from huaweicloudsdkram.v1.model.resource_types_summary import ResourceTypesSummary
|
64
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_req_body import SearchResourceShareAssociationsReqBody
|
65
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_request import SearchResourceShareAssociationsRequest
|
66
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_response import SearchResourceShareAssociationsResponse
|
67
|
+
from huaweicloudsdkram.v1.model.search_resource_share_count_by_tags_request import SearchResourceShareCountByTagsRequest
|
68
|
+
from huaweicloudsdkram.v1.model.search_resource_share_count_by_tags_response import SearchResourceShareCountByTagsResponse
|
69
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_req_body import SearchResourceShareInvitationReqBody
|
70
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_request import SearchResourceShareInvitationRequest
|
71
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_response import SearchResourceShareInvitationResponse
|
72
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_req_body import SearchResourceSharesReqBody
|
73
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_request import SearchResourceSharesRequest
|
74
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_response import SearchResourceSharesResponse
|
75
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_req_body import SearchSharedPrincipalsReqBody
|
76
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_request import SearchSharedPrincipalsRequest
|
77
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_response import SearchSharedPrincipalsResponse
|
78
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_req_body import SearchSharedResourcesReqBody
|
79
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_request import SearchSharedResourcesRequest
|
80
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_response import SearchSharedResourcesResponse
|
81
|
+
from huaweicloudsdkram.v1.model.shared_principal import SharedPrincipal
|
82
|
+
from huaweicloudsdkram.v1.model.shared_resource import SharedResource
|
83
|
+
from huaweicloudsdkram.v1.model.show_organization_share_request import ShowOrganizationShareRequest
|
84
|
+
from huaweicloudsdkram.v1.model.show_organization_share_response import ShowOrganizationShareResponse
|
85
|
+
from huaweicloudsdkram.v1.model.show_permission_request import ShowPermissionRequest
|
86
|
+
from huaweicloudsdkram.v1.model.show_permission_response import ShowPermissionResponse
|
87
|
+
from huaweicloudsdkram.v1.model.tag import Tag
|
88
|
+
from huaweicloudsdkram.v1.model.tag_dto import TagDTO
|
89
|
+
from huaweicloudsdkram.v1.model.tag_filter import TagFilter
|
90
|
+
from huaweicloudsdkram.v1.model.tag_resource_req_body import TagResourceReqBody
|
91
|
+
from huaweicloudsdkram.v1.model.untag import Untag
|
92
|
+
from huaweicloudsdkram.v1.model.untag_resource_req_body import UntagResourceReqBody
|
93
|
+
from huaweicloudsdkram.v1.model.update_resource_share_req_body import UpdateResourceShareReqBody
|
94
|
+
from huaweicloudsdkram.v1.model.update_resource_share_request import UpdateResourceShareRequest
|
95
|
+
from huaweicloudsdkram.v1.model.update_resource_share_response import UpdateResourceShareResponse
|
96
|
+
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
# import models into model package
|
6
|
+
from huaweicloudsdkram.v1.model.accept_resource_share_invitation_request import AcceptResourceShareInvitationRequest
|
7
|
+
from huaweicloudsdkram.v1.model.accept_resource_share_invitation_response import AcceptResourceShareInvitationResponse
|
8
|
+
from huaweicloudsdkram.v1.model.associate_permission_req_body import AssociatePermissionReqBody
|
9
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_permission_request import AssociateResourceSharePermissionRequest
|
10
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_permission_response import AssociateResourceSharePermissionResponse
|
11
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_request import AssociateResourceShareRequest
|
12
|
+
from huaweicloudsdkram.v1.model.associate_resource_share_response import AssociateResourceShareResponse
|
13
|
+
from huaweicloudsdkram.v1.model.associated_permission import AssociatedPermission
|
14
|
+
from huaweicloudsdkram.v1.model.batch_create_resource_share_tags_request import BatchCreateResourceShareTagsRequest
|
15
|
+
from huaweicloudsdkram.v1.model.batch_create_resource_share_tags_response import BatchCreateResourceShareTagsResponse
|
16
|
+
from huaweicloudsdkram.v1.model.batch_delete_resource_share_tags_request import BatchDeleteResourceShareTagsRequest
|
17
|
+
from huaweicloudsdkram.v1.model.batch_delete_resource_share_tags_response import BatchDeleteResourceShareTagsResponse
|
18
|
+
from huaweicloudsdkram.v1.model.create_resource_share_req_body import CreateResourceShareReqBody
|
19
|
+
from huaweicloudsdkram.v1.model.create_resource_share_request import CreateResourceShareRequest
|
20
|
+
from huaweicloudsdkram.v1.model.create_resource_share_response import CreateResourceShareResponse
|
21
|
+
from huaweicloudsdkram.v1.model.delete_resource_share_request import DeleteResourceShareRequest
|
22
|
+
from huaweicloudsdkram.v1.model.delete_resource_share_response import DeleteResourceShareResponse
|
23
|
+
from huaweicloudsdkram.v1.model.disable_organization_share_request import DisableOrganizationShareRequest
|
24
|
+
from huaweicloudsdkram.v1.model.disable_organization_share_response import DisableOrganizationShareResponse
|
25
|
+
from huaweicloudsdkram.v1.model.disassociate_permission_req_body import DisassociatePermissionReqBody
|
26
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_permission_request import DisassociateResourceSharePermissionRequest
|
27
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_permission_response import DisassociateResourceSharePermissionResponse
|
28
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_request import DisassociateResourceShareRequest
|
29
|
+
from huaweicloudsdkram.v1.model.disassociate_resource_share_response import DisassociateResourceShareResponse
|
30
|
+
from huaweicloudsdkram.v1.model.enable_organization_share_request import EnableOrganizationShareRequest
|
31
|
+
from huaweicloudsdkram.v1.model.enable_organization_share_response import EnableOrganizationShareResponse
|
32
|
+
from huaweicloudsdkram.v1.model.list_permission_versions_request import ListPermissionVersionsRequest
|
33
|
+
from huaweicloudsdkram.v1.model.list_permission_versions_response import ListPermissionVersionsResponse
|
34
|
+
from huaweicloudsdkram.v1.model.list_permissions_request import ListPermissionsRequest
|
35
|
+
from huaweicloudsdkram.v1.model.list_permissions_response import ListPermissionsResponse
|
36
|
+
from huaweicloudsdkram.v1.model.list_quota_request import ListQuotaRequest
|
37
|
+
from huaweicloudsdkram.v1.model.list_quota_response import ListQuotaResponse
|
38
|
+
from huaweicloudsdkram.v1.model.list_resource_share_permissions_request import ListResourceSharePermissionsRequest
|
39
|
+
from huaweicloudsdkram.v1.model.list_resource_share_permissions_response import ListResourceSharePermissionsResponse
|
40
|
+
from huaweicloudsdkram.v1.model.list_resource_share_tags_request import ListResourceShareTagsRequest
|
41
|
+
from huaweicloudsdkram.v1.model.list_resource_share_tags_response import ListResourceShareTagsResponse
|
42
|
+
from huaweicloudsdkram.v1.model.list_resource_shares_by_tags_request import ListResourceSharesByTagsRequest
|
43
|
+
from huaweicloudsdkram.v1.model.list_resource_shares_by_tags_response import ListResourceSharesByTagsResponse
|
44
|
+
from huaweicloudsdkram.v1.model.list_resource_types_request import ListResourceTypesRequest
|
45
|
+
from huaweicloudsdkram.v1.model.list_resource_types_response import ListResourceTypesResponse
|
46
|
+
from huaweicloudsdkram.v1.model.match import Match
|
47
|
+
from huaweicloudsdkram.v1.model.page_info import PageInfo
|
48
|
+
from huaweicloudsdkram.v1.model.page_info_marker_by_key import PageInfoMarkerByKey
|
49
|
+
from huaweicloudsdkram.v1.model.permission import Permission
|
50
|
+
from huaweicloudsdkram.v1.model.permission_summary import PermissionSummary
|
51
|
+
from huaweicloudsdkram.v1.model.quota_resources_dto import QuotaResourcesDto
|
52
|
+
from huaweicloudsdkram.v1.model.quotas import Quotas
|
53
|
+
from huaweicloudsdkram.v1.model.reject_resource_share_invitation_request import RejectResourceShareInvitationRequest
|
54
|
+
from huaweicloudsdkram.v1.model.reject_resource_share_invitation_response import RejectResourceShareInvitationResponse
|
55
|
+
from huaweicloudsdkram.v1.model.resource_dto import ResourceDTO
|
56
|
+
from huaweicloudsdkram.v1.model.resource_share import ResourceShare
|
57
|
+
from huaweicloudsdkram.v1.model.resource_share_association import ResourceShareAssociation
|
58
|
+
from huaweicloudsdkram.v1.model.resource_share_association_req_body import ResourceShareAssociationReqBody
|
59
|
+
from huaweicloudsdkram.v1.model.resource_share_invitation import ResourceShareInvitation
|
60
|
+
from huaweicloudsdkram.v1.model.resource_shares_by_tags_req_body import ResourceSharesByTagsReqBody
|
61
|
+
from huaweicloudsdkram.v1.model.resource_types_summary import ResourceTypesSummary
|
62
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_req_body import SearchResourceShareAssociationsReqBody
|
63
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_request import SearchResourceShareAssociationsRequest
|
64
|
+
from huaweicloudsdkram.v1.model.search_resource_share_associations_response import SearchResourceShareAssociationsResponse
|
65
|
+
from huaweicloudsdkram.v1.model.search_resource_share_count_by_tags_request import SearchResourceShareCountByTagsRequest
|
66
|
+
from huaweicloudsdkram.v1.model.search_resource_share_count_by_tags_response import SearchResourceShareCountByTagsResponse
|
67
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_req_body import SearchResourceShareInvitationReqBody
|
68
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_request import SearchResourceShareInvitationRequest
|
69
|
+
from huaweicloudsdkram.v1.model.search_resource_share_invitation_response import SearchResourceShareInvitationResponse
|
70
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_req_body import SearchResourceSharesReqBody
|
71
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_request import SearchResourceSharesRequest
|
72
|
+
from huaweicloudsdkram.v1.model.search_resource_shares_response import SearchResourceSharesResponse
|
73
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_req_body import SearchSharedPrincipalsReqBody
|
74
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_request import SearchSharedPrincipalsRequest
|
75
|
+
from huaweicloudsdkram.v1.model.search_shared_principals_response import SearchSharedPrincipalsResponse
|
76
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_req_body import SearchSharedResourcesReqBody
|
77
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_request import SearchSharedResourcesRequest
|
78
|
+
from huaweicloudsdkram.v1.model.search_shared_resources_response import SearchSharedResourcesResponse
|
79
|
+
from huaweicloudsdkram.v1.model.shared_principal import SharedPrincipal
|
80
|
+
from huaweicloudsdkram.v1.model.shared_resource import SharedResource
|
81
|
+
from huaweicloudsdkram.v1.model.show_organization_share_request import ShowOrganizationShareRequest
|
82
|
+
from huaweicloudsdkram.v1.model.show_organization_share_response import ShowOrganizationShareResponse
|
83
|
+
from huaweicloudsdkram.v1.model.show_permission_request import ShowPermissionRequest
|
84
|
+
from huaweicloudsdkram.v1.model.show_permission_response import ShowPermissionResponse
|
85
|
+
from huaweicloudsdkram.v1.model.tag import Tag
|
86
|
+
from huaweicloudsdkram.v1.model.tag_dto import TagDTO
|
87
|
+
from huaweicloudsdkram.v1.model.tag_filter import TagFilter
|
88
|
+
from huaweicloudsdkram.v1.model.tag_resource_req_body import TagResourceReqBody
|
89
|
+
from huaweicloudsdkram.v1.model.untag import Untag
|
90
|
+
from huaweicloudsdkram.v1.model.untag_resource_req_body import UntagResourceReqBody
|
91
|
+
from huaweicloudsdkram.v1.model.update_resource_share_req_body import UpdateResourceShareReqBody
|
92
|
+
from huaweicloudsdkram.v1.model.update_resource_share_request import UpdateResourceShareRequest
|
93
|
+
from huaweicloudsdkram.v1.model.update_resource_share_response import UpdateResourceShareResponse
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AcceptResourceShareInvitationRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
sensitive_list.append('x_security_token')
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'x_security_token': 'str',
|
22
|
+
'resource_share_invitation_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_security_token': 'X-Security-Token',
|
27
|
+
'resource_share_invitation_id': 'resource_share_invitation_id'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, x_security_token=None, resource_share_invitation_id=None):
|
31
|
+
r"""AcceptResourceShareInvitationRequest
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
36
|
+
:type x_security_token: str
|
37
|
+
:param resource_share_invitation_id: 资源共享邀请的ID。
|
38
|
+
:type resource_share_invitation_id: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
self._x_security_token = None
|
44
|
+
self._resource_share_invitation_id = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if x_security_token is not None:
|
48
|
+
self.x_security_token = x_security_token
|
49
|
+
self.resource_share_invitation_id = resource_share_invitation_id
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_security_token(self):
|
53
|
+
r"""Gets the x_security_token of this AcceptResourceShareInvitationRequest.
|
54
|
+
|
55
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
56
|
+
|
57
|
+
:return: The x_security_token of this AcceptResourceShareInvitationRequest.
|
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
|
+
r"""Sets the x_security_token of this AcceptResourceShareInvitationRequest.
|
65
|
+
|
66
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
67
|
+
|
68
|
+
:param x_security_token: The x_security_token of this AcceptResourceShareInvitationRequest.
|
69
|
+
:type x_security_token: str
|
70
|
+
"""
|
71
|
+
self._x_security_token = x_security_token
|
72
|
+
|
73
|
+
@property
|
74
|
+
def resource_share_invitation_id(self):
|
75
|
+
r"""Gets the resource_share_invitation_id of this AcceptResourceShareInvitationRequest.
|
76
|
+
|
77
|
+
资源共享邀请的ID。
|
78
|
+
|
79
|
+
:return: The resource_share_invitation_id of this AcceptResourceShareInvitationRequest.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._resource_share_invitation_id
|
83
|
+
|
84
|
+
@resource_share_invitation_id.setter
|
85
|
+
def resource_share_invitation_id(self, resource_share_invitation_id):
|
86
|
+
r"""Sets the resource_share_invitation_id of this AcceptResourceShareInvitationRequest.
|
87
|
+
|
88
|
+
资源共享邀请的ID。
|
89
|
+
|
90
|
+
:param resource_share_invitation_id: The resource_share_invitation_id of this AcceptResourceShareInvitationRequest.
|
91
|
+
:type resource_share_invitation_id: str
|
92
|
+
"""
|
93
|
+
self._resource_share_invitation_id = resource_share_invitation_id
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, AcceptResourceShareInvitationRequest):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class AcceptResourceShareInvitationResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'resource_share_invitation': 'ResourceShareInvitation'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'resource_share_invitation': 'resource_share_invitation'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, resource_share_invitation=None):
|
29
|
+
r"""AcceptResourceShareInvitationResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param resource_share_invitation:
|
34
|
+
:type resource_share_invitation: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(AcceptResourceShareInvitationResponse, self).__init__()
|
38
|
+
|
39
|
+
self._resource_share_invitation = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if resource_share_invitation is not None:
|
43
|
+
self.resource_share_invitation = resource_share_invitation
|
44
|
+
|
45
|
+
@property
|
46
|
+
def resource_share_invitation(self):
|
47
|
+
r"""Gets the resource_share_invitation of this AcceptResourceShareInvitationResponse.
|
48
|
+
|
49
|
+
:return: The resource_share_invitation of this AcceptResourceShareInvitationResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
51
|
+
"""
|
52
|
+
return self._resource_share_invitation
|
53
|
+
|
54
|
+
@resource_share_invitation.setter
|
55
|
+
def resource_share_invitation(self, resource_share_invitation):
|
56
|
+
r"""Sets the resource_share_invitation of this AcceptResourceShareInvitationResponse.
|
57
|
+
|
58
|
+
:param resource_share_invitation: The resource_share_invitation of this AcceptResourceShareInvitationResponse.
|
59
|
+
:type resource_share_invitation: :class:`huaweicloudsdkram.v1.ResourceShareInvitation`
|
60
|
+
"""
|
61
|
+
self._resource_share_invitation = resource_share_invitation
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, AcceptResourceShareInvitationResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AssociatePermissionReqBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'replace': 'bool',
|
21
|
+
'permission_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'replace': 'replace',
|
26
|
+
'permission_id': 'permission_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, replace=None, permission_id=None):
|
30
|
+
r"""AssociatePermissionReqBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param replace: 指定特定的权限替换或绑定到与资源共享实例关联的现有资源类型。设置为\"true\"可将相同的资源类型的权限替换为当前权限。设置为\"false\"将权限绑定到当前资源类型。默认值为\"false\"。资源共享实例中的每个资源类型只能绑定一个权限。如果资源共享实例中已具有指定资源类型的权限,并且将\"replace\"设置为\"false\",则操作返回错误。这有助于防止意外覆盖权限。
|
35
|
+
:type replace: bool
|
36
|
+
:param permission_id: 共享资源权限的ID。
|
37
|
+
:type permission_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._replace = None
|
43
|
+
self._permission_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if replace is not None:
|
47
|
+
self.replace = replace
|
48
|
+
self.permission_id = permission_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def replace(self):
|
52
|
+
r"""Gets the replace of this AssociatePermissionReqBody.
|
53
|
+
|
54
|
+
指定特定的权限替换或绑定到与资源共享实例关联的现有资源类型。设置为\"true\"可将相同的资源类型的权限替换为当前权限。设置为\"false\"将权限绑定到当前资源类型。默认值为\"false\"。资源共享实例中的每个资源类型只能绑定一个权限。如果资源共享实例中已具有指定资源类型的权限,并且将\"replace\"设置为\"false\",则操作返回错误。这有助于防止意外覆盖权限。
|
55
|
+
|
56
|
+
:return: The replace of this AssociatePermissionReqBody.
|
57
|
+
:rtype: bool
|
58
|
+
"""
|
59
|
+
return self._replace
|
60
|
+
|
61
|
+
@replace.setter
|
62
|
+
def replace(self, replace):
|
63
|
+
r"""Sets the replace of this AssociatePermissionReqBody.
|
64
|
+
|
65
|
+
指定特定的权限替换或绑定到与资源共享实例关联的现有资源类型。设置为\"true\"可将相同的资源类型的权限替换为当前权限。设置为\"false\"将权限绑定到当前资源类型。默认值为\"false\"。资源共享实例中的每个资源类型只能绑定一个权限。如果资源共享实例中已具有指定资源类型的权限,并且将\"replace\"设置为\"false\",则操作返回错误。这有助于防止意外覆盖权限。
|
66
|
+
|
67
|
+
:param replace: The replace of this AssociatePermissionReqBody.
|
68
|
+
:type replace: bool
|
69
|
+
"""
|
70
|
+
self._replace = replace
|
71
|
+
|
72
|
+
@property
|
73
|
+
def permission_id(self):
|
74
|
+
r"""Gets the permission_id of this AssociatePermissionReqBody.
|
75
|
+
|
76
|
+
共享资源权限的ID。
|
77
|
+
|
78
|
+
:return: The permission_id of this AssociatePermissionReqBody.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._permission_id
|
82
|
+
|
83
|
+
@permission_id.setter
|
84
|
+
def permission_id(self, permission_id):
|
85
|
+
r"""Sets the permission_id of this AssociatePermissionReqBody.
|
86
|
+
|
87
|
+
共享资源权限的ID。
|
88
|
+
|
89
|
+
:param permission_id: The permission_id of this AssociatePermissionReqBody.
|
90
|
+
:type permission_id: str
|
91
|
+
"""
|
92
|
+
self._permission_id = permission_id
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, AssociatePermissionReqBody):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|