ibm-platform-services 0.54.0__tar.gz → 0.54.2__tar.gz
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.
- {ibm-platform-services-0.54.0/ibm_platform_services.egg-info → ibm-platform-services-0.54.2}/PKG-INFO +2 -2
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/README.md +1 -1
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/global_tagging_v1.py +16 -3
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/iam_policy_management_v1.py +21 -427
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/version.py +1 -1
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2/ibm_platform_services.egg-info}/PKG-INFO +2 -2
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/setup.py +1 -1
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/LICENSE +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/MANIFEST.in +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/__init__.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/case_management_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/catalog_management_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/common.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/context_based_restrictions_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/enterprise_billing_units_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/enterprise_management_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/enterprise_usage_reports_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/global_catalog_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/global_search_v2.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/iam_access_groups_v2.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/iam_identity_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/ibm_cloud_shell_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/open_service_broker_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/partner_billing_units_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/partner_usage_reports_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/resource_controller_v2.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/resource_manager_v2.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/usage_metering_v4.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/usage_reports_v4.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/user_management_v1.py +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services.egg-info/SOURCES.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services.egg-info/dependency_links.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services.egg-info/requires.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services.egg-info/top_level.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services.egg-info/zip-safe +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/pyproject.toml +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/requirements-dev.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/requirements.txt +0 -0
- {ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.54.
|
|
3
|
+
Version: 0.54.2
|
|
4
4
|
Summary: Python client library for IBM Cloud Platform Services
|
|
5
5
|
Home-page: https://github.com/IBM/platform-services-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -33,7 +33,7 @@ License-File: LICENSE
|
|
|
33
33
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
# IBM Cloud Platform Services Python SDK Version 0.54.
|
|
36
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.2
|
|
37
37
|
|
|
38
38
|
Python client library to interact with various
|
|
39
39
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
# IBM Cloud Platform Services Python SDK Version 0.54.
|
|
11
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.2
|
|
12
12
|
|
|
13
13
|
Python client library to interact with various
|
|
14
14
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
@@ -24,7 +24,9 @@ unique within a billing account. You can create tags in two formats: `key:value`
|
|
|
24
24
|
`service` tags cannot be attached to IMS resources. `service` tags must be in the form
|
|
25
25
|
`service_prefix:tag_label` where `service_prefix` identifies the Service owning the tag.
|
|
26
26
|
`access` tags cannot be attached to IMS and Cloud Foundry resources. They must be in the
|
|
27
|
-
form `key:value`.
|
|
27
|
+
form `key:value`. You can replace all resource's tags using the `replace` query parameter
|
|
28
|
+
in the attach operation. You can update the `value` of a resource's tag in the format
|
|
29
|
+
`key:value`, using the `update` query parameter in the attach operation.
|
|
28
30
|
|
|
29
31
|
API Version: 1.2.0
|
|
30
32
|
"""
|
|
@@ -460,6 +462,7 @@ class GlobalTaggingV1(BaseService):
|
|
|
460
462
|
account_id: Optional[str] = None,
|
|
461
463
|
tag_type: Optional[str] = None,
|
|
462
464
|
replace: Optional[bool] = None,
|
|
465
|
+
update: Optional[bool] = None,
|
|
463
466
|
**kwargs,
|
|
464
467
|
) -> DetailedResponse:
|
|
465
468
|
"""
|
|
@@ -497,8 +500,17 @@ class GlobalTaggingV1(BaseService):
|
|
|
497
500
|
`user`, `service` and `access`. `service` and `access` are not supported
|
|
498
501
|
for IMS resources.
|
|
499
502
|
:param bool replace: (optional) Flag to request replacement of all attached
|
|
500
|
-
tags. Set
|
|
501
|
-
the
|
|
503
|
+
tags. Set `true` if you want to replace all tags attached to the resource
|
|
504
|
+
with the current ones. Default value is false.
|
|
505
|
+
:param bool update: (optional) Flag to request update of attached tags in
|
|
506
|
+
the format `key:value`. Here's how it works for each tag in the request
|
|
507
|
+
body: If the tag to attach is in the format `key:value`, the System will
|
|
508
|
+
atomically detach all existing tags starting with `key:` and attach the new
|
|
509
|
+
`key:value` tag. If no such tags exist, a new `key:value` tag will be
|
|
510
|
+
attached. If the tag is not in the `key:value` format (e.g., a simple
|
|
511
|
+
label), the System will attach the label as usual. The update query
|
|
512
|
+
parameter is available for user and access management tags, but not for
|
|
513
|
+
service tags.
|
|
502
514
|
:param dict headers: A `dict` containing the request headers
|
|
503
515
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
504
516
|
:rtype: DetailedResponse with `dict` result representing a `TagResults` object
|
|
@@ -522,6 +534,7 @@ class GlobalTaggingV1(BaseService):
|
|
|
522
534
|
'account_id': account_id,
|
|
523
535
|
'tag_type': tag_type,
|
|
524
536
|
'replace': replace,
|
|
537
|
+
'update': update,
|
|
525
538
|
}
|
|
526
539
|
|
|
527
540
|
data = {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
# See the License for the specific language governing permissions and
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
|
-
# IBM OpenAPI SDK Code Generator Version: 3.
|
|
17
|
+
# IBM OpenAPI SDK Code Generator Version: 3.90.1-64fd3296-20240515-180710
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
20
|
IAM Policy Management API
|
|
@@ -2338,7 +2338,6 @@ class IamPolicyManagementV1(BaseService):
|
|
|
2338
2338
|
self,
|
|
2339
2339
|
version: str,
|
|
2340
2340
|
target: 'AssignmentTargetDetails',
|
|
2341
|
-
options: 'PolicyAssignmentV1Options',
|
|
2342
2341
|
templates: List['AssignmentTemplateDetails'],
|
|
2343
2342
|
*,
|
|
2344
2343
|
accept_language: Optional[str] = None,
|
|
@@ -2352,8 +2351,6 @@ class IamPolicyManagementV1(BaseService):
|
|
|
2352
2351
|
|
|
2353
2352
|
:param str version: specify version of response body format.
|
|
2354
2353
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
2355
|
-
:param PolicyAssignmentV1Options options: The set of properties required
|
|
2356
|
-
for a policy assignment.
|
|
2357
2354
|
:param List[AssignmentTemplateDetails] templates: List of template details
|
|
2358
2355
|
for policy assignment.
|
|
2359
2356
|
:param str accept_language: (optional) Language code for translations
|
|
@@ -2377,12 +2374,9 @@ class IamPolicyManagementV1(BaseService):
|
|
|
2377
2374
|
raise ValueError('version must be provided')
|
|
2378
2375
|
if target is None:
|
|
2379
2376
|
raise ValueError('target must be provided')
|
|
2380
|
-
if options is None:
|
|
2381
|
-
raise ValueError('options must be provided')
|
|
2382
2377
|
if templates is None:
|
|
2383
2378
|
raise ValueError('templates must be provided')
|
|
2384
2379
|
target = convert_model(target)
|
|
2385
|
-
options = convert_model(options)
|
|
2386
2380
|
templates = [convert_model(x) for x in templates]
|
|
2387
2381
|
headers = {
|
|
2388
2382
|
'Accept-Language': accept_language,
|
|
@@ -2400,7 +2394,6 @@ class IamPolicyManagementV1(BaseService):
|
|
|
2400
2394
|
|
|
2401
2395
|
data = {
|
|
2402
2396
|
'target': target,
|
|
2403
|
-
'options': options,
|
|
2404
2397
|
'templates': templates,
|
|
2405
2398
|
}
|
|
2406
2399
|
data = {k: v for (k, v) in data.items() if v is not None}
|
|
@@ -4145,116 +4138,6 @@ class Policy:
|
|
|
4145
4138
|
DELETED = 'deleted'
|
|
4146
4139
|
|
|
4147
4140
|
|
|
4148
|
-
class PolicyAssignmentOptions:
|
|
4149
|
-
"""
|
|
4150
|
-
The set of properties required for a policy assignment.
|
|
4151
|
-
|
|
4152
|
-
:param str subject_type: The policy subject type; either 'iam_id' or
|
|
4153
|
-
'access_group_id'.
|
|
4154
|
-
:param str subject_id: The policy subject id.
|
|
4155
|
-
:param str root_requester_id: The policy assignment requester id.
|
|
4156
|
-
:param str root_template_id: (optional) The template id where this policy is
|
|
4157
|
-
being assigned from.
|
|
4158
|
-
:param str root_template_version: (optional) The template version where this
|
|
4159
|
-
policy is being assigned from.
|
|
4160
|
-
"""
|
|
4161
|
-
|
|
4162
|
-
def __init__(
|
|
4163
|
-
self,
|
|
4164
|
-
subject_type: str,
|
|
4165
|
-
subject_id: str,
|
|
4166
|
-
root_requester_id: str,
|
|
4167
|
-
*,
|
|
4168
|
-
root_template_id: Optional[str] = None,
|
|
4169
|
-
root_template_version: Optional[str] = None,
|
|
4170
|
-
) -> None:
|
|
4171
|
-
"""
|
|
4172
|
-
Initialize a PolicyAssignmentOptions object.
|
|
4173
|
-
|
|
4174
|
-
:param str subject_type: The policy subject type; either 'iam_id' or
|
|
4175
|
-
'access_group_id'.
|
|
4176
|
-
:param str subject_id: The policy subject id.
|
|
4177
|
-
:param str root_requester_id: The policy assignment requester id.
|
|
4178
|
-
:param str root_template_id: (optional) The template id where this policy
|
|
4179
|
-
is being assigned from.
|
|
4180
|
-
:param str root_template_version: (optional) The template version where
|
|
4181
|
-
this policy is being assigned from.
|
|
4182
|
-
"""
|
|
4183
|
-
self.subject_type = subject_type
|
|
4184
|
-
self.subject_id = subject_id
|
|
4185
|
-
self.root_requester_id = root_requester_id
|
|
4186
|
-
self.root_template_id = root_template_id
|
|
4187
|
-
self.root_template_version = root_template_version
|
|
4188
|
-
|
|
4189
|
-
@classmethod
|
|
4190
|
-
def from_dict(cls, _dict: Dict) -> 'PolicyAssignmentOptions':
|
|
4191
|
-
"""Initialize a PolicyAssignmentOptions object from a json dictionary."""
|
|
4192
|
-
args = {}
|
|
4193
|
-
if (subject_type := _dict.get('subject_type')) is not None:
|
|
4194
|
-
args['subject_type'] = subject_type
|
|
4195
|
-
else:
|
|
4196
|
-
raise ValueError('Required property \'subject_type\' not present in PolicyAssignmentOptions JSON')
|
|
4197
|
-
if (subject_id := _dict.get('subject_id')) is not None:
|
|
4198
|
-
args['subject_id'] = subject_id
|
|
4199
|
-
else:
|
|
4200
|
-
raise ValueError('Required property \'subject_id\' not present in PolicyAssignmentOptions JSON')
|
|
4201
|
-
if (root_requester_id := _dict.get('root_requester_id')) is not None:
|
|
4202
|
-
args['root_requester_id'] = root_requester_id
|
|
4203
|
-
else:
|
|
4204
|
-
raise ValueError('Required property \'root_requester_id\' not present in PolicyAssignmentOptions JSON')
|
|
4205
|
-
if (root_template_id := _dict.get('root_template_id')) is not None:
|
|
4206
|
-
args['root_template_id'] = root_template_id
|
|
4207
|
-
if (root_template_version := _dict.get('root_template_version')) is not None:
|
|
4208
|
-
args['root_template_version'] = root_template_version
|
|
4209
|
-
return cls(**args)
|
|
4210
|
-
|
|
4211
|
-
@classmethod
|
|
4212
|
-
def _from_dict(cls, _dict):
|
|
4213
|
-
"""Initialize a PolicyAssignmentOptions object from a json dictionary."""
|
|
4214
|
-
return cls.from_dict(_dict)
|
|
4215
|
-
|
|
4216
|
-
def to_dict(self) -> Dict:
|
|
4217
|
-
"""Return a json dictionary representing this model."""
|
|
4218
|
-
_dict = {}
|
|
4219
|
-
if hasattr(self, 'subject_type') and self.subject_type is not None:
|
|
4220
|
-
_dict['subject_type'] = self.subject_type
|
|
4221
|
-
if hasattr(self, 'subject_id') and self.subject_id is not None:
|
|
4222
|
-
_dict['subject_id'] = self.subject_id
|
|
4223
|
-
if hasattr(self, 'root_requester_id') and self.root_requester_id is not None:
|
|
4224
|
-
_dict['root_requester_id'] = self.root_requester_id
|
|
4225
|
-
if hasattr(self, 'root_template_id') and self.root_template_id is not None:
|
|
4226
|
-
_dict['root_template_id'] = self.root_template_id
|
|
4227
|
-
if hasattr(self, 'root_template_version') and self.root_template_version is not None:
|
|
4228
|
-
_dict['root_template_version'] = self.root_template_version
|
|
4229
|
-
return _dict
|
|
4230
|
-
|
|
4231
|
-
def _to_dict(self):
|
|
4232
|
-
"""Return a json dictionary representing this model."""
|
|
4233
|
-
return self.to_dict()
|
|
4234
|
-
|
|
4235
|
-
def __str__(self) -> str:
|
|
4236
|
-
"""Return a `str` version of this PolicyAssignmentOptions object."""
|
|
4237
|
-
return json.dumps(self.to_dict(), indent=2)
|
|
4238
|
-
|
|
4239
|
-
def __eq__(self, other: 'PolicyAssignmentOptions') -> bool:
|
|
4240
|
-
"""Return `true` when self and other are equal, false otherwise."""
|
|
4241
|
-
if not isinstance(other, self.__class__):
|
|
4242
|
-
return False
|
|
4243
|
-
return self.__dict__ == other.__dict__
|
|
4244
|
-
|
|
4245
|
-
def __ne__(self, other: 'PolicyAssignmentOptions') -> bool:
|
|
4246
|
-
"""Return `true` when self and other are not equal, false otherwise."""
|
|
4247
|
-
return not self == other
|
|
4248
|
-
|
|
4249
|
-
class SubjectTypeEnum(str, Enum):
|
|
4250
|
-
"""
|
|
4251
|
-
The policy subject type; either 'iam_id' or 'access_group_id'.
|
|
4252
|
-
"""
|
|
4253
|
-
|
|
4254
|
-
IAM_ID = 'iam_id'
|
|
4255
|
-
ACCESS_GROUP_ID = 'access_group_id'
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
4141
|
class PolicyAssignmentResourcePolicy:
|
|
4259
4142
|
"""
|
|
4260
4143
|
Set of properties for the assigned resource.
|
|
@@ -4413,8 +4296,6 @@ class PolicyAssignmentV1:
|
|
|
4413
4296
|
The set of properties associated with the policy template assignment.
|
|
4414
4297
|
|
|
4415
4298
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
4416
|
-
:param PolicyAssignmentV1Options options: The set of properties required for a
|
|
4417
|
-
policy assignment.
|
|
4418
4299
|
:param str id: (optional) Policy assignment ID.
|
|
4419
4300
|
:param str account_id: (optional) The account GUID that the policies assignments
|
|
4420
4301
|
belong to..
|
|
@@ -4439,7 +4320,6 @@ class PolicyAssignmentV1:
|
|
|
4439
4320
|
def __init__(
|
|
4440
4321
|
self,
|
|
4441
4322
|
target: 'AssignmentTargetDetails',
|
|
4442
|
-
options: 'PolicyAssignmentV1Options',
|
|
4443
4323
|
resources: List['PolicyAssignmentV1Resources'],
|
|
4444
4324
|
template: 'AssignmentTemplateDetails',
|
|
4445
4325
|
status: str,
|
|
@@ -4457,8 +4337,6 @@ class PolicyAssignmentV1:
|
|
|
4457
4337
|
Initialize a PolicyAssignmentV1 object.
|
|
4458
4338
|
|
|
4459
4339
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
4460
|
-
:param PolicyAssignmentV1Options options: The set of properties required
|
|
4461
|
-
for a policy assignment.
|
|
4462
4340
|
:param List[PolicyAssignmentV1Resources] resources: Object for each account
|
|
4463
4341
|
assigned.
|
|
4464
4342
|
:param AssignmentTemplateDetails template: policy template details.
|
|
@@ -4467,7 +4345,6 @@ class PolicyAssignmentV1:
|
|
|
4467
4345
|
access type assignment.
|
|
4468
4346
|
"""
|
|
4469
4347
|
self.target = target
|
|
4470
|
-
self.options = options
|
|
4471
4348
|
self.id = id
|
|
4472
4349
|
self.account_id = account_id
|
|
4473
4350
|
self.href = href
|
|
@@ -4488,10 +4365,6 @@ class PolicyAssignmentV1:
|
|
|
4488
4365
|
args['target'] = AssignmentTargetDetails.from_dict(target)
|
|
4489
4366
|
else:
|
|
4490
4367
|
raise ValueError('Required property \'target\' not present in PolicyAssignmentV1 JSON')
|
|
4491
|
-
if (options := _dict.get('options')) is not None:
|
|
4492
|
-
args['options'] = PolicyAssignmentV1Options.from_dict(options)
|
|
4493
|
-
else:
|
|
4494
|
-
raise ValueError('Required property \'options\' not present in PolicyAssignmentV1 JSON')
|
|
4495
4368
|
if (id := _dict.get('id')) is not None:
|
|
4496
4369
|
args['id'] = id
|
|
4497
4370
|
if (account_id := _dict.get('account_id')) is not None:
|
|
@@ -4535,11 +4408,6 @@ class PolicyAssignmentV1:
|
|
|
4535
4408
|
_dict['target'] = self.target
|
|
4536
4409
|
else:
|
|
4537
4410
|
_dict['target'] = self.target.to_dict()
|
|
4538
|
-
if hasattr(self, 'options') and self.options is not None:
|
|
4539
|
-
if isinstance(self.options, dict):
|
|
4540
|
-
_dict['options'] = self.options
|
|
4541
|
-
else:
|
|
4542
|
-
_dict['options'] = self.options.to_dict()
|
|
4543
4411
|
if hasattr(self, 'id') and getattr(self, 'id') is not None:
|
|
4544
4412
|
_dict['id'] = getattr(self, 'id')
|
|
4545
4413
|
if hasattr(self, 'account_id') and getattr(self, 'account_id') is not None:
|
|
@@ -4671,222 +4539,12 @@ class PolicyAssignmentV1Collection:
|
|
|
4671
4539
|
return not self == other
|
|
4672
4540
|
|
|
4673
4541
|
|
|
4674
|
-
class PolicyAssignmentV1Options:
|
|
4675
|
-
"""
|
|
4676
|
-
The set of properties required for a policy assignment.
|
|
4677
|
-
|
|
4678
|
-
:param PolicyAssignmentV1OptionsRoot root:
|
|
4679
|
-
"""
|
|
4680
|
-
|
|
4681
|
-
def __init__(
|
|
4682
|
-
self,
|
|
4683
|
-
root: 'PolicyAssignmentV1OptionsRoot',
|
|
4684
|
-
) -> None:
|
|
4685
|
-
"""
|
|
4686
|
-
Initialize a PolicyAssignmentV1Options object.
|
|
4687
|
-
|
|
4688
|
-
:param PolicyAssignmentV1OptionsRoot root:
|
|
4689
|
-
"""
|
|
4690
|
-
self.root = root
|
|
4691
|
-
|
|
4692
|
-
@classmethod
|
|
4693
|
-
def from_dict(cls, _dict: Dict) -> 'PolicyAssignmentV1Options':
|
|
4694
|
-
"""Initialize a PolicyAssignmentV1Options object from a json dictionary."""
|
|
4695
|
-
args = {}
|
|
4696
|
-
if (root := _dict.get('root')) is not None:
|
|
4697
|
-
args['root'] = PolicyAssignmentV1OptionsRoot.from_dict(root)
|
|
4698
|
-
else:
|
|
4699
|
-
raise ValueError('Required property \'root\' not present in PolicyAssignmentV1Options JSON')
|
|
4700
|
-
return cls(**args)
|
|
4701
|
-
|
|
4702
|
-
@classmethod
|
|
4703
|
-
def _from_dict(cls, _dict):
|
|
4704
|
-
"""Initialize a PolicyAssignmentV1Options object from a json dictionary."""
|
|
4705
|
-
return cls.from_dict(_dict)
|
|
4706
|
-
|
|
4707
|
-
def to_dict(self) -> Dict:
|
|
4708
|
-
"""Return a json dictionary representing this model."""
|
|
4709
|
-
_dict = {}
|
|
4710
|
-
if hasattr(self, 'root') and self.root is not None:
|
|
4711
|
-
if isinstance(self.root, dict):
|
|
4712
|
-
_dict['root'] = self.root
|
|
4713
|
-
else:
|
|
4714
|
-
_dict['root'] = self.root.to_dict()
|
|
4715
|
-
return _dict
|
|
4716
|
-
|
|
4717
|
-
def _to_dict(self):
|
|
4718
|
-
"""Return a json dictionary representing this model."""
|
|
4719
|
-
return self.to_dict()
|
|
4720
|
-
|
|
4721
|
-
def __str__(self) -> str:
|
|
4722
|
-
"""Return a `str` version of this PolicyAssignmentV1Options object."""
|
|
4723
|
-
return json.dumps(self.to_dict(), indent=2)
|
|
4724
|
-
|
|
4725
|
-
def __eq__(self, other: 'PolicyAssignmentV1Options') -> bool:
|
|
4726
|
-
"""Return `true` when self and other are equal, false otherwise."""
|
|
4727
|
-
if not isinstance(other, self.__class__):
|
|
4728
|
-
return False
|
|
4729
|
-
return self.__dict__ == other.__dict__
|
|
4730
|
-
|
|
4731
|
-
def __ne__(self, other: 'PolicyAssignmentV1Options') -> bool:
|
|
4732
|
-
"""Return `true` when self and other are not equal, false otherwise."""
|
|
4733
|
-
return not self == other
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
class PolicyAssignmentV1OptionsRoot:
|
|
4737
|
-
"""
|
|
4738
|
-
PolicyAssignmentV1OptionsRoot.
|
|
4739
|
-
|
|
4740
|
-
:param str requester_id: (optional)
|
|
4741
|
-
:param str assignment_id: (optional) Passed in value to correlate with other
|
|
4742
|
-
assignments.
|
|
4743
|
-
:param PolicyAssignmentV1OptionsRootTemplate template: (optional)
|
|
4744
|
-
"""
|
|
4745
|
-
|
|
4746
|
-
def __init__(
|
|
4747
|
-
self,
|
|
4748
|
-
*,
|
|
4749
|
-
requester_id: Optional[str] = None,
|
|
4750
|
-
assignment_id: Optional[str] = None,
|
|
4751
|
-
template: Optional['PolicyAssignmentV1OptionsRootTemplate'] = None,
|
|
4752
|
-
) -> None:
|
|
4753
|
-
"""
|
|
4754
|
-
Initialize a PolicyAssignmentV1OptionsRoot object.
|
|
4755
|
-
|
|
4756
|
-
:param str requester_id: (optional)
|
|
4757
|
-
:param str assignment_id: (optional) Passed in value to correlate with
|
|
4758
|
-
other assignments.
|
|
4759
|
-
:param PolicyAssignmentV1OptionsRootTemplate template: (optional)
|
|
4760
|
-
"""
|
|
4761
|
-
self.requester_id = requester_id
|
|
4762
|
-
self.assignment_id = assignment_id
|
|
4763
|
-
self.template = template
|
|
4764
|
-
|
|
4765
|
-
@classmethod
|
|
4766
|
-
def from_dict(cls, _dict: Dict) -> 'PolicyAssignmentV1OptionsRoot':
|
|
4767
|
-
"""Initialize a PolicyAssignmentV1OptionsRoot object from a json dictionary."""
|
|
4768
|
-
args = {}
|
|
4769
|
-
if (requester_id := _dict.get('requester_id')) is not None:
|
|
4770
|
-
args['requester_id'] = requester_id
|
|
4771
|
-
if (assignment_id := _dict.get('assignment_id')) is not None:
|
|
4772
|
-
args['assignment_id'] = assignment_id
|
|
4773
|
-
if (template := _dict.get('template')) is not None:
|
|
4774
|
-
args['template'] = PolicyAssignmentV1OptionsRootTemplate.from_dict(template)
|
|
4775
|
-
return cls(**args)
|
|
4776
|
-
|
|
4777
|
-
@classmethod
|
|
4778
|
-
def _from_dict(cls, _dict):
|
|
4779
|
-
"""Initialize a PolicyAssignmentV1OptionsRoot object from a json dictionary."""
|
|
4780
|
-
return cls.from_dict(_dict)
|
|
4781
|
-
|
|
4782
|
-
def to_dict(self) -> Dict:
|
|
4783
|
-
"""Return a json dictionary representing this model."""
|
|
4784
|
-
_dict = {}
|
|
4785
|
-
if hasattr(self, 'requester_id') and self.requester_id is not None:
|
|
4786
|
-
_dict['requester_id'] = self.requester_id
|
|
4787
|
-
if hasattr(self, 'assignment_id') and self.assignment_id is not None:
|
|
4788
|
-
_dict['assignment_id'] = self.assignment_id
|
|
4789
|
-
if hasattr(self, 'template') and self.template is not None:
|
|
4790
|
-
if isinstance(self.template, dict):
|
|
4791
|
-
_dict['template'] = self.template
|
|
4792
|
-
else:
|
|
4793
|
-
_dict['template'] = self.template.to_dict()
|
|
4794
|
-
return _dict
|
|
4795
|
-
|
|
4796
|
-
def _to_dict(self):
|
|
4797
|
-
"""Return a json dictionary representing this model."""
|
|
4798
|
-
return self.to_dict()
|
|
4799
|
-
|
|
4800
|
-
def __str__(self) -> str:
|
|
4801
|
-
"""Return a `str` version of this PolicyAssignmentV1OptionsRoot object."""
|
|
4802
|
-
return json.dumps(self.to_dict(), indent=2)
|
|
4803
|
-
|
|
4804
|
-
def __eq__(self, other: 'PolicyAssignmentV1OptionsRoot') -> bool:
|
|
4805
|
-
"""Return `true` when self and other are equal, false otherwise."""
|
|
4806
|
-
if not isinstance(other, self.__class__):
|
|
4807
|
-
return False
|
|
4808
|
-
return self.__dict__ == other.__dict__
|
|
4809
|
-
|
|
4810
|
-
def __ne__(self, other: 'PolicyAssignmentV1OptionsRoot') -> bool:
|
|
4811
|
-
"""Return `true` when self and other are not equal, false otherwise."""
|
|
4812
|
-
return not self == other
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
class PolicyAssignmentV1OptionsRootTemplate:
|
|
4816
|
-
"""
|
|
4817
|
-
PolicyAssignmentV1OptionsRootTemplate.
|
|
4818
|
-
|
|
4819
|
-
:param str id: (optional) The template id where this policy is being assigned
|
|
4820
|
-
from.
|
|
4821
|
-
:param str version: (optional) The template version where this policy is being
|
|
4822
|
-
assigned from.
|
|
4823
|
-
"""
|
|
4824
|
-
|
|
4825
|
-
def __init__(
|
|
4826
|
-
self,
|
|
4827
|
-
*,
|
|
4828
|
-
id: Optional[str] = None,
|
|
4829
|
-
version: Optional[str] = None,
|
|
4830
|
-
) -> None:
|
|
4831
|
-
"""
|
|
4832
|
-
Initialize a PolicyAssignmentV1OptionsRootTemplate object.
|
|
4833
|
-
|
|
4834
|
-
:param str id: (optional) The template id where this policy is being
|
|
4835
|
-
assigned from.
|
|
4836
|
-
:param str version: (optional) The template version where this policy is
|
|
4837
|
-
being assigned from.
|
|
4838
|
-
"""
|
|
4839
|
-
self.id = id
|
|
4840
|
-
self.version = version
|
|
4841
|
-
|
|
4842
|
-
@classmethod
|
|
4843
|
-
def from_dict(cls, _dict: Dict) -> 'PolicyAssignmentV1OptionsRootTemplate':
|
|
4844
|
-
"""Initialize a PolicyAssignmentV1OptionsRootTemplate object from a json dictionary."""
|
|
4845
|
-
args = {}
|
|
4846
|
-
if (id := _dict.get('id')) is not None:
|
|
4847
|
-
args['id'] = id
|
|
4848
|
-
if (version := _dict.get('version')) is not None:
|
|
4849
|
-
args['version'] = version
|
|
4850
|
-
return cls(**args)
|
|
4851
|
-
|
|
4852
|
-
@classmethod
|
|
4853
|
-
def _from_dict(cls, _dict):
|
|
4854
|
-
"""Initialize a PolicyAssignmentV1OptionsRootTemplate object from a json dictionary."""
|
|
4855
|
-
return cls.from_dict(_dict)
|
|
4856
|
-
|
|
4857
|
-
def to_dict(self) -> Dict:
|
|
4858
|
-
"""Return a json dictionary representing this model."""
|
|
4859
|
-
_dict = {}
|
|
4860
|
-
if hasattr(self, 'id') and self.id is not None:
|
|
4861
|
-
_dict['id'] = self.id
|
|
4862
|
-
if hasattr(self, 'version') and self.version is not None:
|
|
4863
|
-
_dict['version'] = self.version
|
|
4864
|
-
return _dict
|
|
4865
|
-
|
|
4866
|
-
def _to_dict(self):
|
|
4867
|
-
"""Return a json dictionary representing this model."""
|
|
4868
|
-
return self.to_dict()
|
|
4869
|
-
|
|
4870
|
-
def __str__(self) -> str:
|
|
4871
|
-
"""Return a `str` version of this PolicyAssignmentV1OptionsRootTemplate object."""
|
|
4872
|
-
return json.dumps(self.to_dict(), indent=2)
|
|
4873
|
-
|
|
4874
|
-
def __eq__(self, other: 'PolicyAssignmentV1OptionsRootTemplate') -> bool:
|
|
4875
|
-
"""Return `true` when self and other are equal, false otherwise."""
|
|
4876
|
-
if not isinstance(other, self.__class__):
|
|
4877
|
-
return False
|
|
4878
|
-
return self.__dict__ == other.__dict__
|
|
4879
|
-
|
|
4880
|
-
def __ne__(self, other: 'PolicyAssignmentV1OptionsRootTemplate') -> bool:
|
|
4881
|
-
"""Return `true` when self and other are not equal, false otherwise."""
|
|
4882
|
-
return not self == other
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
4542
|
class PolicyAssignmentV1Resources:
|
|
4886
4543
|
"""
|
|
4887
4544
|
The policy assignment resources.
|
|
4888
4545
|
|
|
4889
|
-
:param
|
|
4546
|
+
:param AssignmentTargetDetails target: (optional) assignment target account and
|
|
4547
|
+
type.
|
|
4890
4548
|
:param PolicyAssignmentResourcePolicy policy: (optional) Set of properties for
|
|
4891
4549
|
the assigned resource.
|
|
4892
4550
|
"""
|
|
@@ -4894,14 +4552,14 @@ class PolicyAssignmentV1Resources:
|
|
|
4894
4552
|
def __init__(
|
|
4895
4553
|
self,
|
|
4896
4554
|
*,
|
|
4897
|
-
target: Optional['
|
|
4555
|
+
target: Optional['AssignmentTargetDetails'] = None,
|
|
4898
4556
|
policy: Optional['PolicyAssignmentResourcePolicy'] = None,
|
|
4899
4557
|
) -> None:
|
|
4900
4558
|
"""
|
|
4901
4559
|
Initialize a PolicyAssignmentV1Resources object.
|
|
4902
4560
|
|
|
4903
|
-
:param
|
|
4904
|
-
|
|
4561
|
+
:param AssignmentTargetDetails target: (optional) assignment target account
|
|
4562
|
+
and type.
|
|
4905
4563
|
:param PolicyAssignmentResourcePolicy policy: (optional) Set of properties
|
|
4906
4564
|
for the assigned resource.
|
|
4907
4565
|
"""
|
|
@@ -4913,7 +4571,7 @@ class PolicyAssignmentV1Resources:
|
|
|
4913
4571
|
"""Initialize a PolicyAssignmentV1Resources object from a json dictionary."""
|
|
4914
4572
|
args = {}
|
|
4915
4573
|
if (target := _dict.get('target')) is not None:
|
|
4916
|
-
args['target'] =
|
|
4574
|
+
args['target'] = AssignmentTargetDetails.from_dict(target)
|
|
4917
4575
|
if (policy := _dict.get('policy')) is not None:
|
|
4918
4576
|
args['policy'] = PolicyAssignmentResourcePolicy.from_dict(policy)
|
|
4919
4577
|
return cls(**args)
|
|
@@ -6949,8 +6607,8 @@ class TemplatePolicy:
|
|
|
6949
6607
|
:param str description: (optional) Description of the policy. This is shown in
|
|
6950
6608
|
child accounts when an access group or trusted profile template uses the policy
|
|
6951
6609
|
template to assign access.
|
|
6952
|
-
:param V2PolicyResource resource: The resource attributes to which
|
|
6953
|
-
grants access.
|
|
6610
|
+
:param V2PolicyResource resource: (optional) The resource attributes to which
|
|
6611
|
+
the policy grants access.
|
|
6954
6612
|
:param V2PolicySubject subject: (optional) The subject attributes for whom the
|
|
6955
6613
|
policy grants access.
|
|
6956
6614
|
:param str pattern: (optional) Indicates pattern of rule, either
|
|
@@ -6958,30 +6616,30 @@ class TemplatePolicy:
|
|
|
6958
6616
|
'time-based-conditions:weekly:custom-hours'.
|
|
6959
6617
|
:param V2PolicyRule rule: (optional) Additional access conditions associated
|
|
6960
6618
|
with the policy.
|
|
6961
|
-
:param Control control: Specifies the type of access granted by the
|
|
6619
|
+
:param Control control: (optional) Specifies the type of access granted by the
|
|
6620
|
+
policy.
|
|
6962
6621
|
"""
|
|
6963
6622
|
|
|
6964
6623
|
def __init__(
|
|
6965
6624
|
self,
|
|
6966
6625
|
type: str,
|
|
6967
|
-
resource: 'V2PolicyResource',
|
|
6968
|
-
control: 'Control',
|
|
6969
6626
|
*,
|
|
6970
6627
|
description: Optional[str] = None,
|
|
6628
|
+
resource: Optional['V2PolicyResource'] = None,
|
|
6971
6629
|
subject: Optional['V2PolicySubject'] = None,
|
|
6972
6630
|
pattern: Optional[str] = None,
|
|
6973
6631
|
rule: Optional['V2PolicyRule'] = None,
|
|
6632
|
+
control: Optional['Control'] = None,
|
|
6974
6633
|
) -> None:
|
|
6975
6634
|
"""
|
|
6976
6635
|
Initialize a TemplatePolicy object.
|
|
6977
6636
|
|
|
6978
6637
|
:param str type: The policy type; either 'access' or 'authorization'.
|
|
6979
|
-
:param V2PolicyResource resource: The resource attributes to which the
|
|
6980
|
-
policy grants access.
|
|
6981
|
-
:param Control control: Specifies the type of access granted by the policy.
|
|
6982
6638
|
:param str description: (optional) Description of the policy. This is shown
|
|
6983
6639
|
in child accounts when an access group or trusted profile template uses the
|
|
6984
6640
|
policy template to assign access.
|
|
6641
|
+
:param V2PolicyResource resource: (optional) The resource attributes to
|
|
6642
|
+
which the policy grants access.
|
|
6985
6643
|
:param V2PolicySubject subject: (optional) The subject attributes for whom
|
|
6986
6644
|
the policy grants access.
|
|
6987
6645
|
:param str pattern: (optional) Indicates pattern of rule, either
|
|
@@ -6989,6 +6647,8 @@ class TemplatePolicy:
|
|
|
6989
6647
|
'time-based-conditions:weekly:custom-hours'.
|
|
6990
6648
|
:param V2PolicyRule rule: (optional) Additional access conditions
|
|
6991
6649
|
associated with the policy.
|
|
6650
|
+
:param Control control: (optional) Specifies the type of access granted by
|
|
6651
|
+
the policy.
|
|
6992
6652
|
"""
|
|
6993
6653
|
self.type = type
|
|
6994
6654
|
self.description = description
|
|
@@ -7010,8 +6670,6 @@ class TemplatePolicy:
|
|
|
7010
6670
|
args['description'] = description
|
|
7011
6671
|
if (resource := _dict.get('resource')) is not None:
|
|
7012
6672
|
args['resource'] = V2PolicyResource.from_dict(resource)
|
|
7013
|
-
else:
|
|
7014
|
-
raise ValueError('Required property \'resource\' not present in TemplatePolicy JSON')
|
|
7015
6673
|
if (subject := _dict.get('subject')) is not None:
|
|
7016
6674
|
args['subject'] = V2PolicySubject.from_dict(subject)
|
|
7017
6675
|
if (pattern := _dict.get('pattern')) is not None:
|
|
@@ -7020,8 +6678,6 @@ class TemplatePolicy:
|
|
|
7020
6678
|
args['rule'] = rule
|
|
7021
6679
|
if (control := _dict.get('control')) is not None:
|
|
7022
6680
|
args['control'] = Control.from_dict(control)
|
|
7023
|
-
else:
|
|
7024
|
-
raise ValueError('Required property \'control\' not present in TemplatePolicy JSON')
|
|
7025
6681
|
return cls(**args)
|
|
7026
6682
|
|
|
7027
6683
|
@classmethod
|
|
@@ -8206,8 +7862,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8206
7862
|
assignments.
|
|
8207
7863
|
:param str target_type: (optional) Assignment target type.
|
|
8208
7864
|
:param str target: (optional) ID of the target account.
|
|
8209
|
-
:param List[PolicyAssignmentOptions] options: (optional) List of objects with
|
|
8210
|
-
required properties for a policy assignment.
|
|
8211
7865
|
:param str id: (optional) Policy assignment ID.
|
|
8212
7866
|
:param str account_id: (optional) The account GUID that the policies assignments
|
|
8213
7867
|
belong to..
|
|
@@ -8234,7 +7888,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8234
7888
|
assignment_id: Optional[str] = None,
|
|
8235
7889
|
target_type: Optional[str] = None,
|
|
8236
7890
|
target: Optional[str] = None,
|
|
8237
|
-
options: Optional[List['PolicyAssignmentOptions']] = None,
|
|
8238
7891
|
id: Optional[str] = None,
|
|
8239
7892
|
account_id: Optional[str] = None,
|
|
8240
7893
|
href: Optional[str] = None,
|
|
@@ -8254,8 +7907,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8254
7907
|
other assignments.
|
|
8255
7908
|
:param str target_type: (optional) Assignment target type.
|
|
8256
7909
|
:param str target: (optional) ID of the target account.
|
|
8257
|
-
:param List[PolicyAssignmentOptions] options: (optional) List of objects
|
|
8258
|
-
with required properties for a policy assignment.
|
|
8259
7910
|
:param List[PolicyAssignmentResources] resources: (optional) Object for
|
|
8260
7911
|
each account assigned.
|
|
8261
7912
|
:param str status: (optional) The policy assignment status.
|
|
@@ -8266,7 +7917,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8266
7917
|
self.assignment_id = assignment_id
|
|
8267
7918
|
self.target_type = target_type
|
|
8268
7919
|
self.target = target
|
|
8269
|
-
self.options = options
|
|
8270
7920
|
self.id = id
|
|
8271
7921
|
self.account_id = account_id
|
|
8272
7922
|
self.href = href
|
|
@@ -8291,8 +7941,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8291
7941
|
args['target_type'] = target_type
|
|
8292
7942
|
if (target := _dict.get('target')) is not None:
|
|
8293
7943
|
args['target'] = target
|
|
8294
|
-
if (options := _dict.get('options')) is not None:
|
|
8295
|
-
args['options'] = [PolicyAssignmentOptions.from_dict(v) for v in options]
|
|
8296
7944
|
if (id := _dict.get('id')) is not None:
|
|
8297
7945
|
args['id'] = id
|
|
8298
7946
|
if (account_id := _dict.get('account_id')) is not None:
|
|
@@ -8331,14 +7979,6 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8331
7979
|
_dict['target_type'] = self.target_type
|
|
8332
7980
|
if hasattr(self, 'target') and self.target is not None:
|
|
8333
7981
|
_dict['target'] = self.target
|
|
8334
|
-
if hasattr(self, 'options') and self.options is not None:
|
|
8335
|
-
options_list = []
|
|
8336
|
-
for v in self.options:
|
|
8337
|
-
if isinstance(v, dict):
|
|
8338
|
-
options_list.append(v)
|
|
8339
|
-
else:
|
|
8340
|
-
options_list.append(v.to_dict())
|
|
8341
|
-
_dict['options'] = options_list
|
|
8342
7982
|
if hasattr(self, 'id') and getattr(self, 'id') is not None:
|
|
8343
7983
|
_dict['id'] = getattr(self, 'id')
|
|
8344
7984
|
if hasattr(self, 'account_id') and getattr(self, 'account_id') is not None:
|
|
@@ -8389,6 +8029,8 @@ class GetPolicyAssignmentResponsePolicyAssignment(GetPolicyAssignmentResponse):
|
|
|
8389
8029
|
"""
|
|
8390
8030
|
|
|
8391
8031
|
ACCOUNT = 'Account'
|
|
8032
|
+
ACCOUNTGROUP = 'AccountGroup'
|
|
8033
|
+
ENTERPRISE = 'Enterprise'
|
|
8392
8034
|
|
|
8393
8035
|
class StatusEnum(str, Enum):
|
|
8394
8036
|
"""
|
|
@@ -8406,8 +8048,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8406
8048
|
The set of properties associated with the policy template assignment.
|
|
8407
8049
|
|
|
8408
8050
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
8409
|
-
:param PolicyAssignmentV1Options options: The set of properties required for a
|
|
8410
|
-
policy assignment.
|
|
8411
8051
|
:param str id: (optional) Policy assignment ID.
|
|
8412
8052
|
:param str account_id: (optional) The account GUID that the policies assignments
|
|
8413
8053
|
belong to..
|
|
@@ -8432,7 +8072,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8432
8072
|
def __init__(
|
|
8433
8073
|
self,
|
|
8434
8074
|
target: 'AssignmentTargetDetails',
|
|
8435
|
-
options: 'PolicyAssignmentV1Options',
|
|
8436
8075
|
resources: List['PolicyAssignmentV1Resources'],
|
|
8437
8076
|
template: 'AssignmentTemplateDetails',
|
|
8438
8077
|
status: str,
|
|
@@ -8450,8 +8089,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8450
8089
|
Initialize a GetPolicyAssignmentResponsePolicyAssignmentV1 object.
|
|
8451
8090
|
|
|
8452
8091
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
8453
|
-
:param PolicyAssignmentV1Options options: The set of properties required
|
|
8454
|
-
for a policy assignment.
|
|
8455
8092
|
:param List[PolicyAssignmentV1Resources] resources: Object for each account
|
|
8456
8093
|
assigned.
|
|
8457
8094
|
:param AssignmentTemplateDetails template: policy template details.
|
|
@@ -8461,7 +8098,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8461
8098
|
"""
|
|
8462
8099
|
# pylint: disable=super-init-not-called
|
|
8463
8100
|
self.target = target
|
|
8464
|
-
self.options = options
|
|
8465
8101
|
self.id = id
|
|
8466
8102
|
self.account_id = account_id
|
|
8467
8103
|
self.href = href
|
|
@@ -8484,12 +8120,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8484
8120
|
raise ValueError(
|
|
8485
8121
|
'Required property \'target\' not present in GetPolicyAssignmentResponsePolicyAssignmentV1 JSON'
|
|
8486
8122
|
)
|
|
8487
|
-
if (options := _dict.get('options')) is not None:
|
|
8488
|
-
args['options'] = PolicyAssignmentV1Options.from_dict(options)
|
|
8489
|
-
else:
|
|
8490
|
-
raise ValueError(
|
|
8491
|
-
'Required property \'options\' not present in GetPolicyAssignmentResponsePolicyAssignmentV1 JSON'
|
|
8492
|
-
)
|
|
8493
8123
|
if (id := _dict.get('id')) is not None:
|
|
8494
8124
|
args['id'] = id
|
|
8495
8125
|
if (account_id := _dict.get('account_id')) is not None:
|
|
@@ -8539,11 +8169,6 @@ class GetPolicyAssignmentResponsePolicyAssignmentV1(GetPolicyAssignmentResponse)
|
|
|
8539
8169
|
_dict['target'] = self.target
|
|
8540
8170
|
else:
|
|
8541
8171
|
_dict['target'] = self.target.to_dict()
|
|
8542
|
-
if hasattr(self, 'options') and self.options is not None:
|
|
8543
|
-
if isinstance(self.options, dict):
|
|
8544
|
-
_dict['options'] = self.options
|
|
8545
|
-
else:
|
|
8546
|
-
_dict['options'] = self.options.to_dict()
|
|
8547
8172
|
if hasattr(self, 'id') and getattr(self, 'id') is not None:
|
|
8548
8173
|
_dict['id'] = getattr(self, 'id')
|
|
8549
8174
|
if hasattr(self, 'account_id') and getattr(self, 'account_id') is not None:
|
|
@@ -8818,8 +8443,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8818
8443
|
assignments.
|
|
8819
8444
|
:param str target_type: (optional) Assignment target type.
|
|
8820
8445
|
:param str target: (optional) ID of the target account.
|
|
8821
|
-
:param List[PolicyAssignmentOptions] options: (optional) List of objects with
|
|
8822
|
-
required properties for a policy assignment.
|
|
8823
8446
|
:param str id: (optional) Policy assignment ID.
|
|
8824
8447
|
:param str account_id: (optional) The account GUID that the policies assignments
|
|
8825
8448
|
belong to..
|
|
@@ -8846,7 +8469,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8846
8469
|
assignment_id: Optional[str] = None,
|
|
8847
8470
|
target_type: Optional[str] = None,
|
|
8848
8471
|
target: Optional[str] = None,
|
|
8849
|
-
options: Optional[List['PolicyAssignmentOptions']] = None,
|
|
8850
8472
|
id: Optional[str] = None,
|
|
8851
8473
|
account_id: Optional[str] = None,
|
|
8852
8474
|
href: Optional[str] = None,
|
|
@@ -8866,8 +8488,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8866
8488
|
other assignments.
|
|
8867
8489
|
:param str target_type: (optional) Assignment target type.
|
|
8868
8490
|
:param str target: (optional) ID of the target account.
|
|
8869
|
-
:param List[PolicyAssignmentOptions] options: (optional) List of objects
|
|
8870
|
-
with required properties for a policy assignment.
|
|
8871
8491
|
:param List[PolicyAssignmentResources] resources: (optional) Object for
|
|
8872
8492
|
each account assigned.
|
|
8873
8493
|
:param str status: (optional) The policy assignment status.
|
|
@@ -8878,7 +8498,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8878
8498
|
self.assignment_id = assignment_id
|
|
8879
8499
|
self.target_type = target_type
|
|
8880
8500
|
self.target = target
|
|
8881
|
-
self.options = options
|
|
8882
8501
|
self.id = id
|
|
8883
8502
|
self.account_id = account_id
|
|
8884
8503
|
self.href = href
|
|
@@ -8903,8 +8522,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8903
8522
|
args['target_type'] = target_type
|
|
8904
8523
|
if (target := _dict.get('target')) is not None:
|
|
8905
8524
|
args['target'] = target
|
|
8906
|
-
if (options := _dict.get('options')) is not None:
|
|
8907
|
-
args['options'] = [PolicyAssignmentOptions.from_dict(v) for v in options]
|
|
8908
8525
|
if (id := _dict.get('id')) is not None:
|
|
8909
8526
|
args['id'] = id
|
|
8910
8527
|
if (account_id := _dict.get('account_id')) is not None:
|
|
@@ -8943,14 +8560,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
8943
8560
|
_dict['target_type'] = self.target_type
|
|
8944
8561
|
if hasattr(self, 'target') and self.target is not None:
|
|
8945
8562
|
_dict['target'] = self.target
|
|
8946
|
-
if hasattr(self, 'options') and self.options is not None:
|
|
8947
|
-
options_list = []
|
|
8948
|
-
for v in self.options:
|
|
8949
|
-
if isinstance(v, dict):
|
|
8950
|
-
options_list.append(v)
|
|
8951
|
-
else:
|
|
8952
|
-
options_list.append(v.to_dict())
|
|
8953
|
-
_dict['options'] = options_list
|
|
8954
8563
|
if hasattr(self, 'id') and getattr(self, 'id') is not None:
|
|
8955
8564
|
_dict['id'] = getattr(self, 'id')
|
|
8956
8565
|
if hasattr(self, 'account_id') and getattr(self, 'account_id') is not None:
|
|
@@ -9001,6 +8610,8 @@ class PolicyTemplateAssignmentItemsPolicyAssignment(PolicyTemplateAssignmentItem
|
|
|
9001
8610
|
"""
|
|
9002
8611
|
|
|
9003
8612
|
ACCOUNT = 'Account'
|
|
8613
|
+
ACCOUNTGROUP = 'AccountGroup'
|
|
8614
|
+
ENTERPRISE = 'Enterprise'
|
|
9004
8615
|
|
|
9005
8616
|
class StatusEnum(str, Enum):
|
|
9006
8617
|
"""
|
|
@@ -9018,8 +8629,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9018
8629
|
The set of properties associated with the policy template assignment.
|
|
9019
8630
|
|
|
9020
8631
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
9021
|
-
:param PolicyAssignmentV1Options options: The set of properties required for a
|
|
9022
|
-
policy assignment.
|
|
9023
8632
|
:param str id: (optional) Policy assignment ID.
|
|
9024
8633
|
:param str account_id: (optional) The account GUID that the policies assignments
|
|
9025
8634
|
belong to..
|
|
@@ -9044,7 +8653,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9044
8653
|
def __init__(
|
|
9045
8654
|
self,
|
|
9046
8655
|
target: 'AssignmentTargetDetails',
|
|
9047
|
-
options: 'PolicyAssignmentV1Options',
|
|
9048
8656
|
resources: List['PolicyAssignmentV1Resources'],
|
|
9049
8657
|
template: 'AssignmentTemplateDetails',
|
|
9050
8658
|
status: str,
|
|
@@ -9062,8 +8670,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9062
8670
|
Initialize a PolicyTemplateAssignmentItemsPolicyAssignmentV1 object.
|
|
9063
8671
|
|
|
9064
8672
|
:param AssignmentTargetDetails target: assignment target account and type.
|
|
9065
|
-
:param PolicyAssignmentV1Options options: The set of properties required
|
|
9066
|
-
for a policy assignment.
|
|
9067
8673
|
:param List[PolicyAssignmentV1Resources] resources: Object for each account
|
|
9068
8674
|
assigned.
|
|
9069
8675
|
:param AssignmentTemplateDetails template: policy template details.
|
|
@@ -9073,7 +8679,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9073
8679
|
"""
|
|
9074
8680
|
# pylint: disable=super-init-not-called
|
|
9075
8681
|
self.target = target
|
|
9076
|
-
self.options = options
|
|
9077
8682
|
self.id = id
|
|
9078
8683
|
self.account_id = account_id
|
|
9079
8684
|
self.href = href
|
|
@@ -9096,12 +8701,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9096
8701
|
raise ValueError(
|
|
9097
8702
|
'Required property \'target\' not present in PolicyTemplateAssignmentItemsPolicyAssignmentV1 JSON'
|
|
9098
8703
|
)
|
|
9099
|
-
if (options := _dict.get('options')) is not None:
|
|
9100
|
-
args['options'] = PolicyAssignmentV1Options.from_dict(options)
|
|
9101
|
-
else:
|
|
9102
|
-
raise ValueError(
|
|
9103
|
-
'Required property \'options\' not present in PolicyTemplateAssignmentItemsPolicyAssignmentV1 JSON'
|
|
9104
|
-
)
|
|
9105
8704
|
if (id := _dict.get('id')) is not None:
|
|
9106
8705
|
args['id'] = id
|
|
9107
8706
|
if (account_id := _dict.get('account_id')) is not None:
|
|
@@ -9151,11 +8750,6 @@ class PolicyTemplateAssignmentItemsPolicyAssignmentV1(PolicyTemplateAssignmentIt
|
|
|
9151
8750
|
_dict['target'] = self.target
|
|
9152
8751
|
else:
|
|
9153
8752
|
_dict['target'] = self.target.to_dict()
|
|
9154
|
-
if hasattr(self, 'options') and self.options is not None:
|
|
9155
|
-
if isinstance(self.options, dict):
|
|
9156
|
-
_dict['options'] = self.options
|
|
9157
|
-
else:
|
|
9158
|
-
_dict['options'] = self.options.to_dict()
|
|
9159
8753
|
if hasattr(self, 'id') and getattr(self, 'id') is not None:
|
|
9160
8754
|
_dict['id'] = getattr(self, 'id')
|
|
9161
8755
|
if hasattr(self, 'account_id') and getattr(self, 'account_id') is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.54.
|
|
3
|
+
Version: 0.54.2
|
|
4
4
|
Summary: Python client library for IBM Cloud Platform Services
|
|
5
5
|
Home-page: https://github.com/IBM/platform-services-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -33,7 +33,7 @@ License-File: LICENSE
|
|
|
33
33
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
# IBM Cloud Platform Services Python SDK Version 0.54.
|
|
36
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.2
|
|
37
37
|
|
|
38
38
|
Python client library to interact with various
|
|
39
39
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.54.0 → ibm-platform-services-0.54.2}/ibm_platform_services/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|