ibm-platform-services 0.68.1__py3-none-any.whl → 0.68.2__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.
- ibm_platform_services/iam_identity_v1.py +121 -11
- ibm_platform_services/version.py +1 -1
- {ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/METADATA +2 -2
- {ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/RECORD +7 -7
- {ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/WHEEL +0 -0
- {ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/licenses/LICENSE +0 -0
- {ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/top_level.txt +0 -0
|
@@ -2196,6 +2196,78 @@ class IamIdentityV1(BaseService):
|
|
|
2196
2196
|
response = self.send(request, **kwargs)
|
|
2197
2197
|
return response
|
|
2198
2198
|
|
|
2199
|
+
def delete_link_by_parameters(
|
|
2200
|
+
self,
|
|
2201
|
+
profile_id: str,
|
|
2202
|
+
type: str,
|
|
2203
|
+
*,
|
|
2204
|
+
crn: Optional[str] = None,
|
|
2205
|
+
namespace: Optional[str] = None,
|
|
2206
|
+
name: Optional[str] = None,
|
|
2207
|
+
component_type: Optional[str] = None,
|
|
2208
|
+
component_name: Optional[str] = None,
|
|
2209
|
+
**kwargs,
|
|
2210
|
+
) -> DetailedResponse:
|
|
2211
|
+
"""
|
|
2212
|
+
Delete compute resource link to profile by given parameters.
|
|
2213
|
+
|
|
2214
|
+
Deletes compute resource link of a Trusted Profile matching the given parameters.
|
|
2215
|
+
|
|
2216
|
+
:param str profile_id: The unique ID of the Trusted Profile.
|
|
2217
|
+
:param str type: The compute resource type. Valid values are VSI, BMS,
|
|
2218
|
+
IKS_SA, ROKS_SA, CE.
|
|
2219
|
+
:param str crn: (optional) CRN of the compute resource (IKS/ROKS/VSI/BMS).
|
|
2220
|
+
:param str namespace: (optional) Namespace of the compute resource
|
|
2221
|
+
(IKS/ROKS).
|
|
2222
|
+
:param str name: (optional) Name of the compute resource (IKS/ROKS).
|
|
2223
|
+
:param str component_type: (optional) Component type of the compute
|
|
2224
|
+
resource, only required if type is CE.
|
|
2225
|
+
:param str component_name: (optional) Component name of the compute
|
|
2226
|
+
resource, only required if type is CE.
|
|
2227
|
+
:param dict headers: A `dict` containing the request headers
|
|
2228
|
+
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
2229
|
+
:rtype: DetailedResponse
|
|
2230
|
+
"""
|
|
2231
|
+
|
|
2232
|
+
if not profile_id:
|
|
2233
|
+
raise ValueError('profile_id must be provided')
|
|
2234
|
+
if not type:
|
|
2235
|
+
raise ValueError('type must be provided')
|
|
2236
|
+
headers = {}
|
|
2237
|
+
sdk_headers = get_sdk_headers(
|
|
2238
|
+
service_name=self.DEFAULT_SERVICE_NAME,
|
|
2239
|
+
service_version='V1',
|
|
2240
|
+
operation_id='delete_link_by_parameters',
|
|
2241
|
+
)
|
|
2242
|
+
headers.update(sdk_headers)
|
|
2243
|
+
|
|
2244
|
+
params = {
|
|
2245
|
+
'type': type,
|
|
2246
|
+
'crn': crn,
|
|
2247
|
+
'namespace': namespace,
|
|
2248
|
+
'name': name,
|
|
2249
|
+
'component_type': component_type,
|
|
2250
|
+
'component_name': component_name,
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
if 'headers' in kwargs:
|
|
2254
|
+
headers.update(kwargs.get('headers'))
|
|
2255
|
+
del kwargs['headers']
|
|
2256
|
+
|
|
2257
|
+
path_param_keys = ['profile-id']
|
|
2258
|
+
path_param_values = self.encode_path_vars(profile_id)
|
|
2259
|
+
path_param_dict = dict(zip(path_param_keys, path_param_values))
|
|
2260
|
+
url = '/v1/profiles/{profile-id}/links'.format(**path_param_dict)
|
|
2261
|
+
request = self.prepare_request(
|
|
2262
|
+
method='DELETE',
|
|
2263
|
+
url=url,
|
|
2264
|
+
headers=headers,
|
|
2265
|
+
params=params,
|
|
2266
|
+
)
|
|
2267
|
+
|
|
2268
|
+
response = self.send(request, **kwargs)
|
|
2269
|
+
return response
|
|
2270
|
+
|
|
2199
2271
|
def get_link(
|
|
2200
2272
|
self,
|
|
2201
2273
|
profile_id: str,
|
|
@@ -8665,31 +8737,43 @@ class CreateProfileLinkRequestLink:
|
|
|
8665
8737
|
Link details.
|
|
8666
8738
|
|
|
8667
8739
|
:param str crn: The CRN of the compute resource.
|
|
8668
|
-
:param str namespace: The compute resource namespace, only required
|
|
8669
|
-
is IKS_SA or ROKS_SA.
|
|
8740
|
+
:param str namespace: (optional) The compute resource namespace, only required
|
|
8741
|
+
if cr_type is IKS_SA or ROKS_SA.
|
|
8670
8742
|
:param str name: (optional) Name of the compute resource, only required if
|
|
8671
8743
|
cr_type is IKS_SA or ROKS_SA.
|
|
8744
|
+
:param str component_type: (optional) Component type of the compute resource,
|
|
8745
|
+
only required if cr_type is CE.
|
|
8746
|
+
:param str component_name: (optional) Component name of the compute resource,
|
|
8747
|
+
only required if cr_type is CE.
|
|
8672
8748
|
"""
|
|
8673
8749
|
|
|
8674
8750
|
def __init__(
|
|
8675
8751
|
self,
|
|
8676
8752
|
crn: str,
|
|
8677
|
-
namespace: str,
|
|
8678
8753
|
*,
|
|
8754
|
+
namespace: Optional[str] = None,
|
|
8679
8755
|
name: Optional[str] = None,
|
|
8756
|
+
component_type: Optional[str] = None,
|
|
8757
|
+
component_name: Optional[str] = None,
|
|
8680
8758
|
) -> None:
|
|
8681
8759
|
"""
|
|
8682
8760
|
Initialize a CreateProfileLinkRequestLink object.
|
|
8683
8761
|
|
|
8684
8762
|
:param str crn: The CRN of the compute resource.
|
|
8685
|
-
:param str namespace: The compute resource namespace, only
|
|
8686
|
-
cr_type is IKS_SA or ROKS_SA.
|
|
8763
|
+
:param str namespace: (optional) The compute resource namespace, only
|
|
8764
|
+
required if cr_type is IKS_SA or ROKS_SA.
|
|
8687
8765
|
:param str name: (optional) Name of the compute resource, only required if
|
|
8688
8766
|
cr_type is IKS_SA or ROKS_SA.
|
|
8767
|
+
:param str component_type: (optional) Component type of the compute
|
|
8768
|
+
resource, only required if cr_type is CE.
|
|
8769
|
+
:param str component_name: (optional) Component name of the compute
|
|
8770
|
+
resource, only required if cr_type is CE.
|
|
8689
8771
|
"""
|
|
8690
8772
|
self.crn = crn
|
|
8691
8773
|
self.namespace = namespace
|
|
8692
8774
|
self.name = name
|
|
8775
|
+
self.component_type = component_type
|
|
8776
|
+
self.component_name = component_name
|
|
8693
8777
|
|
|
8694
8778
|
@classmethod
|
|
8695
8779
|
def from_dict(cls, _dict: Dict) -> 'CreateProfileLinkRequestLink':
|
|
@@ -8701,10 +8785,12 @@ class CreateProfileLinkRequestLink:
|
|
|
8701
8785
|
raise ValueError('Required property \'crn\' not present in CreateProfileLinkRequestLink JSON')
|
|
8702
8786
|
if (namespace := _dict.get('namespace')) is not None:
|
|
8703
8787
|
args['namespace'] = namespace
|
|
8704
|
-
else:
|
|
8705
|
-
raise ValueError('Required property \'namespace\' not present in CreateProfileLinkRequestLink JSON')
|
|
8706
8788
|
if (name := _dict.get('name')) is not None:
|
|
8707
8789
|
args['name'] = name
|
|
8790
|
+
if (component_type := _dict.get('component_type')) is not None:
|
|
8791
|
+
args['component_type'] = component_type
|
|
8792
|
+
if (component_name := _dict.get('component_name')) is not None:
|
|
8793
|
+
args['component_name'] = component_name
|
|
8708
8794
|
return cls(**args)
|
|
8709
8795
|
|
|
8710
8796
|
@classmethod
|
|
@@ -8721,6 +8807,10 @@ class CreateProfileLinkRequestLink:
|
|
|
8721
8807
|
_dict['namespace'] = self.namespace
|
|
8722
8808
|
if hasattr(self, 'name') and self.name is not None:
|
|
8723
8809
|
_dict['name'] = self.name
|
|
8810
|
+
if hasattr(self, 'component_type') and self.component_type is not None:
|
|
8811
|
+
_dict['component_type'] = self.component_type
|
|
8812
|
+
if hasattr(self, 'component_name') and self.component_name is not None:
|
|
8813
|
+
_dict['component_name'] = self.component_name
|
|
8724
8814
|
return _dict
|
|
8725
8815
|
|
|
8726
8816
|
def _to_dict(self):
|
|
@@ -10645,8 +10735,8 @@ class ProfileLink:
|
|
|
10645
10735
|
:param datetime modified_at: If set contains a date time string of the last
|
|
10646
10736
|
modification date in ISO format.
|
|
10647
10737
|
:param str name: (optional) Optional name of the Link.
|
|
10648
|
-
:param str cr_type: The compute resource type. Valid values are VSI,
|
|
10649
|
-
ROKS_SA.
|
|
10738
|
+
:param str cr_type: The compute resource type. Valid values are VSI, BMS,
|
|
10739
|
+
IKS_SA, ROKS_SA, CE.
|
|
10650
10740
|
:param ProfileLinkLink link:
|
|
10651
10741
|
"""
|
|
10652
10742
|
|
|
@@ -10670,8 +10760,8 @@ class ProfileLink:
|
|
|
10670
10760
|
creation date in ISO format.
|
|
10671
10761
|
:param datetime modified_at: If set contains a date time string of the last
|
|
10672
10762
|
modification date in ISO format.
|
|
10673
|
-
:param str cr_type: The compute resource type. Valid values are VSI,
|
|
10674
|
-
IKS_SA, ROKS_SA.
|
|
10763
|
+
:param str cr_type: The compute resource type. Valid values are VSI, BMS,
|
|
10764
|
+
IKS_SA, ROKS_SA, CE.
|
|
10675
10765
|
:param ProfileLinkLink link:
|
|
10676
10766
|
:param str name: (optional) Optional name of the Link.
|
|
10677
10767
|
"""
|
|
@@ -10770,6 +10860,10 @@ class ProfileLinkLink:
|
|
|
10770
10860
|
if cr_type is IKS_SA or ROKS_SA.
|
|
10771
10861
|
:param str name: (optional) Name of the compute resource, only required if
|
|
10772
10862
|
cr_type is IKS_SA or ROKS_SA.
|
|
10863
|
+
:param str component_type: (optional) Component type of the compute resource,
|
|
10864
|
+
only required if cr_type is CE.
|
|
10865
|
+
:param str component_name: (optional) Component name of the compute resource,
|
|
10866
|
+
only required if cr_type is CE.
|
|
10773
10867
|
"""
|
|
10774
10868
|
|
|
10775
10869
|
def __init__(
|
|
@@ -10778,6 +10872,8 @@ class ProfileLinkLink:
|
|
|
10778
10872
|
crn: Optional[str] = None,
|
|
10779
10873
|
namespace: Optional[str] = None,
|
|
10780
10874
|
name: Optional[str] = None,
|
|
10875
|
+
component_type: Optional[str] = None,
|
|
10876
|
+
component_name: Optional[str] = None,
|
|
10781
10877
|
) -> None:
|
|
10782
10878
|
"""
|
|
10783
10879
|
Initialize a ProfileLinkLink object.
|
|
@@ -10787,10 +10883,16 @@ class ProfileLinkLink:
|
|
|
10787
10883
|
required if cr_type is IKS_SA or ROKS_SA.
|
|
10788
10884
|
:param str name: (optional) Name of the compute resource, only required if
|
|
10789
10885
|
cr_type is IKS_SA or ROKS_SA.
|
|
10886
|
+
:param str component_type: (optional) Component type of the compute
|
|
10887
|
+
resource, only required if cr_type is CE.
|
|
10888
|
+
:param str component_name: (optional) Component name of the compute
|
|
10889
|
+
resource, only required if cr_type is CE.
|
|
10790
10890
|
"""
|
|
10791
10891
|
self.crn = crn
|
|
10792
10892
|
self.namespace = namespace
|
|
10793
10893
|
self.name = name
|
|
10894
|
+
self.component_type = component_type
|
|
10895
|
+
self.component_name = component_name
|
|
10794
10896
|
|
|
10795
10897
|
@classmethod
|
|
10796
10898
|
def from_dict(cls, _dict: Dict) -> 'ProfileLinkLink':
|
|
@@ -10802,6 +10904,10 @@ class ProfileLinkLink:
|
|
|
10802
10904
|
args['namespace'] = namespace
|
|
10803
10905
|
if (name := _dict.get('name')) is not None:
|
|
10804
10906
|
args['name'] = name
|
|
10907
|
+
if (component_type := _dict.get('component_type')) is not None:
|
|
10908
|
+
args['component_type'] = component_type
|
|
10909
|
+
if (component_name := _dict.get('component_name')) is not None:
|
|
10910
|
+
args['component_name'] = component_name
|
|
10805
10911
|
return cls(**args)
|
|
10806
10912
|
|
|
10807
10913
|
@classmethod
|
|
@@ -10818,6 +10924,10 @@ class ProfileLinkLink:
|
|
|
10818
10924
|
_dict['namespace'] = self.namespace
|
|
10819
10925
|
if hasattr(self, 'name') and self.name is not None:
|
|
10820
10926
|
_dict['name'] = self.name
|
|
10927
|
+
if hasattr(self, 'component_type') and self.component_type is not None:
|
|
10928
|
+
_dict['component_type'] = self.component_type
|
|
10929
|
+
if hasattr(self, 'component_name') and self.component_name is not None:
|
|
10930
|
+
_dict['component_name'] = self.component_name
|
|
10821
10931
|
return _dict
|
|
10822
10932
|
|
|
10823
10933
|
def _to_dict(self):
|
ibm_platform_services/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.68.
|
|
3
|
+
Version: 0.68.2
|
|
4
4
|
Summary: Python client library for IBM Cloud Platform Services
|
|
5
5
|
Author-email: IBM <devxsdk@us.ibm.com>
|
|
6
6
|
Project-URL: Repository, https://github.com/IBM/platform-services-python-sdk
|
|
@@ -51,7 +51,7 @@ Dynamic: license-file
|
|
|
51
51
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
# IBM Cloud Platform Services Python SDK Version 0.68.
|
|
54
|
+
# IBM Cloud Platform Services Python SDK Version 0.68.2
|
|
55
55
|
|
|
56
56
|
Python client library to interact with various
|
|
57
57
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
@@ -10,7 +10,7 @@ ibm_platform_services/global_catalog_v1.py,sha256=j-B3d-4LIL_ktuphGo8YBbJLSoFG5c
|
|
|
10
10
|
ibm_platform_services/global_search_v2.py,sha256=XcJlil7LPYv-haukeMxru0Ba9ieQZeumCtol1GNQ-fc,21764
|
|
11
11
|
ibm_platform_services/global_tagging_v1.py,sha256=VqaXwyWSN6jKEaR5uu7bq-AGJrsJ_GDEmde7mR7TjKI,65663
|
|
12
12
|
ibm_platform_services/iam_access_groups_v2.py,sha256=E9ope8EFmlt_oxEZqUruAimbN6uXQ8rhBIij706Q6is,320399
|
|
13
|
-
ibm_platform_services/iam_identity_v1.py,sha256=
|
|
13
|
+
ibm_platform_services/iam_identity_v1.py,sha256=RCFmH7I1E-HvDxmE-p48iNaI_G3BlxhUODVkOHLCNPM,595056
|
|
14
14
|
ibm_platform_services/iam_policy_management_v1.py,sha256=lShjffDOKeXCg1jUrwZlgxcXn52yJzV5nFmQiWKVBaI,506343
|
|
15
15
|
ibm_platform_services/ibm_cloud_shell_v1.py,sha256=T996gx6pgDkT_kVIp79ApFj77hb_ddYwHLcjtAVlJ3Y,20063
|
|
16
16
|
ibm_platform_services/open_service_broker_v1.py,sha256=MCoRClB3CvpMJgklfZ2OFuzX9Hn2l9eiVTd7yBQABCE,83453
|
|
@@ -20,9 +20,9 @@ ibm_platform_services/resource_manager_v2.py,sha256=Jw6VwK0EGb0Rixa0r63dQSR3NTLK
|
|
|
20
20
|
ibm_platform_services/usage_metering_v4.py,sha256=3a8OPVs-v6nW391uz4mjl4k1j8S1fy2c7ulx0Sj6tI0,19366
|
|
21
21
|
ibm_platform_services/usage_reports_v4.py,sha256=WvKUbWkp1BAvCGm1_9Hqb6_FOdwZMTfFju1jE3DfcrI,218767
|
|
22
22
|
ibm_platform_services/user_management_v1.py,sha256=r8cQn9Op1EE521dTqxh8TeXekBacKxe5Ka-ikGZ6A-g,61887
|
|
23
|
-
ibm_platform_services/version.py,sha256=
|
|
24
|
-
ibm_platform_services-0.68.
|
|
25
|
-
ibm_platform_services-0.68.
|
|
26
|
-
ibm_platform_services-0.68.
|
|
27
|
-
ibm_platform_services-0.68.
|
|
28
|
-
ibm_platform_services-0.68.
|
|
23
|
+
ibm_platform_services/version.py,sha256=4b1zzDFmxL1RkSNVkFhGwJgXbqTk7WbcaZjmGzDccz0,61
|
|
24
|
+
ibm_platform_services-0.68.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
25
|
+
ibm_platform_services-0.68.2.dist-info/METADATA,sha256=gG8NlsC-WJJR3TwB_qD9r4b8SvoDiVzcay59wUS4IUc,9026
|
|
26
|
+
ibm_platform_services-0.68.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
ibm_platform_services-0.68.2.dist-info/top_level.txt,sha256=S7qPS0hODAYsGpClGheV5YKaJTTt9RNC6dwEx1qZhUc,22
|
|
28
|
+
ibm_platform_services-0.68.2.dist-info/RECORD,,
|
|
File without changes
|
{ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{ibm_platform_services-0.68.1.dist-info → ibm_platform_services-0.68.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|