ibm-platform-services 0.56.0__tar.gz → 0.57.0__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.56.0/ibm_platform_services.egg-info → ibm_platform_services-0.57.0}/PKG-INFO +2 -2
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/README.md +1 -1
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/resource_controller_v2.py +184 -81
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/version.py +1 -1
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0/ibm_platform_services.egg-info}/PKG-INFO +2 -2
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/pyproject.toml +1 -1
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/LICENSE +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/MANIFEST.in +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/__init__.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/case_management_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/catalog_management_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/common.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/context_based_restrictions_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/enterprise_billing_units_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/enterprise_management_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/enterprise_usage_reports_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/global_catalog_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/global_search_v2.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/global_tagging_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/iam_access_groups_v2.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/iam_identity_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/iam_policy_management_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/ibm_cloud_shell_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/open_service_broker_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/partner_billing_units_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/partner_usage_reports_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/resource_manager_v2.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/usage_metering_v4.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/usage_reports_v4.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/user_management_v1.py +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services.egg-info/SOURCES.txt +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services.egg-info/dependency_links.txt +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services.egg-info/requires.txt +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services.egg-info/top_level.txt +0 -0
- {ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.57.0
|
|
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
|
|
@@ -50,7 +50,7 @@ Requires-Dist: twine; extra == "publish"
|
|
|
50
50
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
# IBM Cloud Platform Services Python SDK Version 0.
|
|
53
|
+
# IBM Cloud Platform Services Python SDK Version 0.57.0
|
|
54
54
|
|
|
55
55
|
Python client library to interact with various
|
|
56
56
|
[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.
|
|
11
|
+
# IBM Cloud Platform Services Python SDK Version 0.57.0
|
|
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).
|
|
@@ -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.94.1-71478489-20240820-161623
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
20
|
Manage lifecycle of your Cloud resources using Resource Controller APIs. Resources are
|
|
@@ -28,6 +28,7 @@ from datetime import datetime
|
|
|
28
28
|
from enum import Enum
|
|
29
29
|
from typing import Dict, List, Optional
|
|
30
30
|
import json
|
|
31
|
+
import logging
|
|
31
32
|
|
|
32
33
|
from ibm_cloud_sdk_core import BaseService, DetailedResponse, get_query_param
|
|
33
34
|
from ibm_cloud_sdk_core.authenticators.authenticator import Authenticator
|
|
@@ -459,8 +460,12 @@ class ResourceControllerV2(BaseService):
|
|
|
459
460
|
:param dict headers: A `dict` containing the request headers
|
|
460
461
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
461
462
|
:rtype: DetailedResponse with `dict` result representing a `ResourceAliasesList` object
|
|
463
|
+
|
|
464
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
462
465
|
"""
|
|
463
466
|
|
|
467
|
+
logging.warning('A deprecated operation has been invoked: list_resource_aliases_for_instance')
|
|
468
|
+
|
|
464
469
|
if not id:
|
|
465
470
|
raise ValueError('id must be provided')
|
|
466
471
|
headers = {}
|
|
@@ -1023,8 +1028,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1023
1028
|
:param dict headers: A `dict` containing the request headers
|
|
1024
1029
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1025
1030
|
:rtype: DetailedResponse with `dict` result representing a `ResourceBindingsList` object
|
|
1031
|
+
|
|
1032
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1026
1033
|
"""
|
|
1027
1034
|
|
|
1035
|
+
logging.warning('A deprecated operation has been invoked: list_resource_bindings')
|
|
1036
|
+
|
|
1028
1037
|
headers = {}
|
|
1029
1038
|
sdk_headers = get_sdk_headers(
|
|
1030
1039
|
service_name=self.DEFAULT_SERVICE_NAME,
|
|
@@ -1093,8 +1102,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1093
1102
|
:param dict headers: A `dict` containing the request headers
|
|
1094
1103
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1095
1104
|
:rtype: DetailedResponse with `dict` result representing a `ResourceBinding` object
|
|
1105
|
+
|
|
1106
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1096
1107
|
"""
|
|
1097
1108
|
|
|
1109
|
+
logging.warning('A deprecated operation has been invoked: create_resource_binding')
|
|
1110
|
+
|
|
1098
1111
|
if source is None:
|
|
1099
1112
|
raise ValueError('source must be provided')
|
|
1100
1113
|
if target is None:
|
|
@@ -1151,8 +1164,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1151
1164
|
:param dict headers: A `dict` containing the request headers
|
|
1152
1165
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1153
1166
|
:rtype: DetailedResponse with `dict` result representing a `ResourceBinding` object
|
|
1167
|
+
|
|
1168
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1154
1169
|
"""
|
|
1155
1170
|
|
|
1171
|
+
logging.warning('A deprecated operation has been invoked: get_resource_binding')
|
|
1172
|
+
|
|
1156
1173
|
if not id:
|
|
1157
1174
|
raise ValueError('id must be provided')
|
|
1158
1175
|
headers = {}
|
|
@@ -1196,8 +1213,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1196
1213
|
:param dict headers: A `dict` containing the request headers
|
|
1197
1214
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1198
1215
|
:rtype: DetailedResponse
|
|
1216
|
+
|
|
1217
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1199
1218
|
"""
|
|
1200
1219
|
|
|
1220
|
+
logging.warning('A deprecated operation has been invoked: delete_resource_binding')
|
|
1221
|
+
|
|
1201
1222
|
if not id:
|
|
1202
1223
|
raise ValueError('id must be provided')
|
|
1203
1224
|
headers = {}
|
|
@@ -1243,8 +1264,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1243
1264
|
:param dict headers: A `dict` containing the request headers
|
|
1244
1265
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1245
1266
|
:rtype: DetailedResponse with `dict` result representing a `ResourceBinding` object
|
|
1267
|
+
|
|
1268
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1246
1269
|
"""
|
|
1247
1270
|
|
|
1271
|
+
logging.warning('A deprecated operation has been invoked: update_resource_binding')
|
|
1272
|
+
|
|
1248
1273
|
if not id:
|
|
1249
1274
|
raise ValueError('id must be provided')
|
|
1250
1275
|
if name is None:
|
|
@@ -1328,8 +1353,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1328
1353
|
:param dict headers: A `dict` containing the request headers
|
|
1329
1354
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1330
1355
|
:rtype: DetailedResponse with `dict` result representing a `ResourceAliasesList` object
|
|
1356
|
+
|
|
1357
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1331
1358
|
"""
|
|
1332
1359
|
|
|
1360
|
+
logging.warning('A deprecated operation has been invoked: list_resource_aliases')
|
|
1361
|
+
|
|
1333
1362
|
headers = {}
|
|
1334
1363
|
sdk_headers = get_sdk_headers(
|
|
1335
1364
|
service_name=self.DEFAULT_SERVICE_NAME,
|
|
@@ -1387,8 +1416,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1387
1416
|
:param dict headers: A `dict` containing the request headers
|
|
1388
1417
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1389
1418
|
:rtype: DetailedResponse with `dict` result representing a `ResourceAlias` object
|
|
1419
|
+
|
|
1420
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1390
1421
|
"""
|
|
1391
1422
|
|
|
1423
|
+
logging.warning('A deprecated operation has been invoked: create_resource_alias')
|
|
1424
|
+
|
|
1392
1425
|
if name is None:
|
|
1393
1426
|
raise ValueError('name must be provided')
|
|
1394
1427
|
if source is None:
|
|
@@ -1443,8 +1476,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1443
1476
|
:param dict headers: A `dict` containing the request headers
|
|
1444
1477
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1445
1478
|
:rtype: DetailedResponse with `dict` result representing a `ResourceAlias` object
|
|
1479
|
+
|
|
1480
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1446
1481
|
"""
|
|
1447
1482
|
|
|
1483
|
+
logging.warning('A deprecated operation has been invoked: get_resource_alias')
|
|
1484
|
+
|
|
1448
1485
|
if not id:
|
|
1449
1486
|
raise ValueError('id must be provided')
|
|
1450
1487
|
headers = {}
|
|
@@ -1493,8 +1530,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1493
1530
|
:param dict headers: A `dict` containing the request headers
|
|
1494
1531
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1495
1532
|
:rtype: DetailedResponse
|
|
1533
|
+
|
|
1534
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1496
1535
|
"""
|
|
1497
1536
|
|
|
1537
|
+
logging.warning('A deprecated operation has been invoked: delete_resource_alias')
|
|
1538
|
+
|
|
1498
1539
|
if not id:
|
|
1499
1540
|
raise ValueError('id must be provided')
|
|
1500
1541
|
headers = {}
|
|
@@ -1544,8 +1585,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1544
1585
|
:param dict headers: A `dict` containing the request headers
|
|
1545
1586
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1546
1587
|
:rtype: DetailedResponse with `dict` result representing a `ResourceAlias` object
|
|
1588
|
+
|
|
1589
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1547
1590
|
"""
|
|
1548
1591
|
|
|
1592
|
+
logging.warning('A deprecated operation has been invoked: update_resource_alias')
|
|
1593
|
+
|
|
1549
1594
|
if not id:
|
|
1550
1595
|
raise ValueError('id must be provided')
|
|
1551
1596
|
if name is None:
|
|
@@ -1607,8 +1652,12 @@ class ResourceControllerV2(BaseService):
|
|
|
1607
1652
|
:param dict headers: A `dict` containing the request headers
|
|
1608
1653
|
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
1609
1654
|
:rtype: DetailedResponse with `dict` result representing a `ResourceBindingsList` object
|
|
1655
|
+
|
|
1656
|
+
Deprecated: this method is deprecated and may be removed in a future release.
|
|
1610
1657
|
"""
|
|
1611
1658
|
|
|
1659
|
+
logging.warning('A deprecated operation has been invoked: list_resource_bindings_for_alias')
|
|
1660
|
+
|
|
1612
1661
|
if not id:
|
|
1613
1662
|
raise ValueError('id must be provided')
|
|
1614
1663
|
headers = {}
|
|
@@ -1808,6 +1857,9 @@ class Credentials:
|
|
|
1808
1857
|
credentials.
|
|
1809
1858
|
:param str iam_serviceid_crn: (optional) The Cloud Resource Name for the service
|
|
1810
1859
|
ID of the credentials.
|
|
1860
|
+
|
|
1861
|
+
This type supports additional properties of type object. Additional key-value pairs
|
|
1862
|
+
from the resource broker.
|
|
1811
1863
|
"""
|
|
1812
1864
|
|
|
1813
1865
|
# The set of defined properties for the class
|
|
@@ -1832,7 +1884,7 @@ class Credentials:
|
|
|
1832
1884
|
iam_apikey_name: Optional[str] = None,
|
|
1833
1885
|
iam_role_crn: Optional[str] = None,
|
|
1834
1886
|
iam_serviceid_crn: Optional[str] = None,
|
|
1835
|
-
**kwargs,
|
|
1887
|
+
**kwargs: Optional[object],
|
|
1836
1888
|
) -> None:
|
|
1837
1889
|
"""
|
|
1838
1890
|
Initialize a Credentials object.
|
|
@@ -1850,7 +1902,8 @@ class Credentials:
|
|
|
1850
1902
|
the credentials.
|
|
1851
1903
|
:param str iam_serviceid_crn: (optional) The Cloud Resource Name for the
|
|
1852
1904
|
service ID of the credentials.
|
|
1853
|
-
:param **kwargs: (optional)
|
|
1905
|
+
:param object **kwargs: (optional) Additional key-value pairs from the
|
|
1906
|
+
resource broker.
|
|
1854
1907
|
"""
|
|
1855
1908
|
self.redacted = redacted
|
|
1856
1909
|
self.apikey = apikey
|
|
@@ -1858,8 +1911,13 @@ class Credentials:
|
|
|
1858
1911
|
self.iam_apikey_name = iam_apikey_name
|
|
1859
1912
|
self.iam_role_crn = iam_role_crn
|
|
1860
1913
|
self.iam_serviceid_crn = iam_serviceid_crn
|
|
1861
|
-
for
|
|
1862
|
-
|
|
1914
|
+
for k, v in kwargs.items():
|
|
1915
|
+
if k not in Credentials._properties:
|
|
1916
|
+
if not isinstance(v, object):
|
|
1917
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
1918
|
+
setattr(self, k, v)
|
|
1919
|
+
else:
|
|
1920
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(k))
|
|
1863
1921
|
|
|
1864
1922
|
@classmethod
|
|
1865
1923
|
def from_dict(cls, _dict: Dict) -> 'Credentials':
|
|
@@ -1877,7 +1935,11 @@ class Credentials:
|
|
|
1877
1935
|
args['iam_role_crn'] = iam_role_crn
|
|
1878
1936
|
if (iam_serviceid_crn := _dict.get('iam_serviceid_crn')) is not None:
|
|
1879
1937
|
args['iam_serviceid_crn'] = iam_serviceid_crn
|
|
1880
|
-
|
|
1938
|
+
for k, v in _dict.items():
|
|
1939
|
+
if k not in cls._properties:
|
|
1940
|
+
if not isinstance(v, object):
|
|
1941
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
1942
|
+
args[k] = v
|
|
1881
1943
|
return cls(**args)
|
|
1882
1944
|
|
|
1883
1945
|
@classmethod
|
|
@@ -1900,8 +1962,8 @@ class Credentials:
|
|
|
1900
1962
|
_dict['iam_role_crn'] = self.iam_role_crn
|
|
1901
1963
|
if hasattr(self, 'iam_serviceid_crn') and self.iam_serviceid_crn is not None:
|
|
1902
1964
|
_dict['iam_serviceid_crn'] = self.iam_serviceid_crn
|
|
1903
|
-
for
|
|
1904
|
-
_dict[
|
|
1965
|
+
for k in [_k for _k in vars(self).keys() if _k not in Credentials._properties]:
|
|
1966
|
+
_dict[k] = getattr(self, k)
|
|
1905
1967
|
return _dict
|
|
1906
1968
|
|
|
1907
1969
|
def _to_dict(self):
|
|
@@ -1909,21 +1971,23 @@ class Credentials:
|
|
|
1909
1971
|
return self.to_dict()
|
|
1910
1972
|
|
|
1911
1973
|
def get_properties(self) -> Dict:
|
|
1912
|
-
"""Return
|
|
1974
|
+
"""Return the additional properties from this instance of Credentials in the form of a dict."""
|
|
1913
1975
|
_dict = {}
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
_dict[_key] = getattr(self, _key)
|
|
1976
|
+
for k in [_k for _k in vars(self).keys() if _k not in Credentials._properties]:
|
|
1977
|
+
_dict[k] = getattr(self, k)
|
|
1917
1978
|
return _dict
|
|
1918
1979
|
|
|
1919
1980
|
def set_properties(self, _dict: dict):
|
|
1920
|
-
"""Set a dictionary of
|
|
1921
|
-
for
|
|
1922
|
-
delattr(self,
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1981
|
+
"""Set a dictionary of additional properties in this instance of Credentials"""
|
|
1982
|
+
for k in [_k for _k in vars(self).keys() if _k not in Credentials._properties]:
|
|
1983
|
+
delattr(self, k)
|
|
1984
|
+
for k, v in _dict.items():
|
|
1985
|
+
if k not in Credentials._properties:
|
|
1986
|
+
if not isinstance(v, object):
|
|
1987
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
1988
|
+
setattr(self, k, v)
|
|
1989
|
+
else:
|
|
1990
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
|
|
1927
1991
|
|
|
1928
1992
|
def __str__(self) -> str:
|
|
1929
1993
|
"""Return a `str` version of this Credentials object."""
|
|
@@ -2919,6 +2983,8 @@ class ResourceBindingPostParameters:
|
|
|
2919
2983
|
|
|
2920
2984
|
:param str serviceid_crn: (optional) An optional platform defined option to
|
|
2921
2985
|
reuse an existing IAM serviceId for the role assignment.
|
|
2986
|
+
|
|
2987
|
+
This type supports additional properties of type object.
|
|
2922
2988
|
"""
|
|
2923
2989
|
|
|
2924
2990
|
# The set of defined properties for the class
|
|
@@ -2928,18 +2994,23 @@ class ResourceBindingPostParameters:
|
|
|
2928
2994
|
self,
|
|
2929
2995
|
*,
|
|
2930
2996
|
serviceid_crn: Optional[str] = None,
|
|
2931
|
-
**kwargs,
|
|
2997
|
+
**kwargs: Optional[object],
|
|
2932
2998
|
) -> None:
|
|
2933
2999
|
"""
|
|
2934
3000
|
Initialize a ResourceBindingPostParameters object.
|
|
2935
3001
|
|
|
2936
3002
|
:param str serviceid_crn: (optional) An optional platform defined option to
|
|
2937
3003
|
reuse an existing IAM serviceId for the role assignment.
|
|
2938
|
-
:param **kwargs: (optional)
|
|
3004
|
+
:param object **kwargs: (optional) Additional properties of type object
|
|
2939
3005
|
"""
|
|
2940
3006
|
self.serviceid_crn = serviceid_crn
|
|
2941
|
-
for
|
|
2942
|
-
|
|
3007
|
+
for k, v in kwargs.items():
|
|
3008
|
+
if k not in ResourceBindingPostParameters._properties:
|
|
3009
|
+
if not isinstance(v, object):
|
|
3010
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3011
|
+
setattr(self, k, v)
|
|
3012
|
+
else:
|
|
3013
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(k))
|
|
2943
3014
|
|
|
2944
3015
|
@classmethod
|
|
2945
3016
|
def from_dict(cls, _dict: Dict) -> 'ResourceBindingPostParameters':
|
|
@@ -2947,7 +3018,11 @@ class ResourceBindingPostParameters:
|
|
|
2947
3018
|
args = {}
|
|
2948
3019
|
if (serviceid_crn := _dict.get('serviceid_crn')) is not None:
|
|
2949
3020
|
args['serviceid_crn'] = serviceid_crn
|
|
2950
|
-
|
|
3021
|
+
for k, v in _dict.items():
|
|
3022
|
+
if k not in cls._properties:
|
|
3023
|
+
if not isinstance(v, object):
|
|
3024
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3025
|
+
args[k] = v
|
|
2951
3026
|
return cls(**args)
|
|
2952
3027
|
|
|
2953
3028
|
@classmethod
|
|
@@ -2960,8 +3035,8 @@ class ResourceBindingPostParameters:
|
|
|
2960
3035
|
_dict = {}
|
|
2961
3036
|
if hasattr(self, 'serviceid_crn') and self.serviceid_crn is not None:
|
|
2962
3037
|
_dict['serviceid_crn'] = self.serviceid_crn
|
|
2963
|
-
for
|
|
2964
|
-
_dict[
|
|
3038
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceBindingPostParameters._properties]:
|
|
3039
|
+
_dict[k] = getattr(self, k)
|
|
2965
3040
|
return _dict
|
|
2966
3041
|
|
|
2967
3042
|
def _to_dict(self):
|
|
@@ -2969,21 +3044,23 @@ class ResourceBindingPostParameters:
|
|
|
2969
3044
|
return self.to_dict()
|
|
2970
3045
|
|
|
2971
3046
|
def get_properties(self) -> Dict:
|
|
2972
|
-
"""Return
|
|
3047
|
+
"""Return the additional properties from this instance of ResourceBindingPostParameters in the form of a dict."""
|
|
2973
3048
|
_dict = {}
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
_dict[_key] = getattr(self, _key)
|
|
3049
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceBindingPostParameters._properties]:
|
|
3050
|
+
_dict[k] = getattr(self, k)
|
|
2977
3051
|
return _dict
|
|
2978
3052
|
|
|
2979
3053
|
def set_properties(self, _dict: dict):
|
|
2980
|
-
"""Set a dictionary of
|
|
2981
|
-
for
|
|
2982
|
-
delattr(self,
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
3054
|
+
"""Set a dictionary of additional properties in this instance of ResourceBindingPostParameters"""
|
|
3055
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceBindingPostParameters._properties]:
|
|
3056
|
+
delattr(self, k)
|
|
3057
|
+
for k, v in _dict.items():
|
|
3058
|
+
if k not in ResourceBindingPostParameters._properties:
|
|
3059
|
+
if not isinstance(v, object):
|
|
3060
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3061
|
+
setattr(self, k, v)
|
|
3062
|
+
else:
|
|
3063
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
|
|
2987
3064
|
|
|
2988
3065
|
def __str__(self) -> str:
|
|
2989
3066
|
"""Return a `str` version of this ResourceBindingPostParameters object."""
|
|
@@ -3144,10 +3221,10 @@ class ResourceInstance:
|
|
|
3144
3221
|
administrative features of the instance.
|
|
3145
3222
|
:param ResourceInstanceLastOperation last_operation: (optional) The status of
|
|
3146
3223
|
the last operation requested on the instance.
|
|
3147
|
-
:param str resource_aliases_url: (optional) The relative path to the
|
|
3148
|
-
aliases for the instance.
|
|
3149
|
-
:param str resource_bindings_url: (optional) The relative path to
|
|
3150
|
-
bindings for the instance.
|
|
3224
|
+
:param str resource_aliases_url: (optional) Deprecated: The relative path to the
|
|
3225
|
+
resource aliases for the instance.
|
|
3226
|
+
:param str resource_bindings_url: (optional) Deprecated: The relative path to
|
|
3227
|
+
the resource bindings for the instance.
|
|
3151
3228
|
:param str resource_keys_url: (optional) The relative path to the resource keys
|
|
3152
3229
|
for the instance.
|
|
3153
3230
|
:param List[PlanHistoryItem] plan_history: (optional) The plan history of the
|
|
@@ -3267,10 +3344,10 @@ class ResourceInstance:
|
|
|
3267
3344
|
access administrative features of the instance.
|
|
3268
3345
|
:param ResourceInstanceLastOperation last_operation: (optional) The status
|
|
3269
3346
|
of the last operation requested on the instance.
|
|
3270
|
-
:param str resource_aliases_url: (optional) The relative path
|
|
3271
|
-
resource aliases for the instance.
|
|
3272
|
-
:param str resource_bindings_url: (optional) The relative path
|
|
3273
|
-
resource bindings for the instance.
|
|
3347
|
+
:param str resource_aliases_url: (optional) Deprecated: The relative path
|
|
3348
|
+
to the resource aliases for the instance.
|
|
3349
|
+
:param str resource_bindings_url: (optional) Deprecated: The relative path
|
|
3350
|
+
to the resource bindings for the instance.
|
|
3274
3351
|
:param str resource_keys_url: (optional) The relative path to the resource
|
|
3275
3352
|
keys for the instance.
|
|
3276
3353
|
:param List[PlanHistoryItem] plan_history: (optional) The plan history of
|
|
@@ -3560,6 +3637,8 @@ class ResourceInstanceLastOperation:
|
|
|
3560
3637
|
operation is cancelable or not.
|
|
3561
3638
|
:param bool poll: A boolean that indicates if the resource broker's last
|
|
3562
3639
|
operation can be polled or not.
|
|
3640
|
+
|
|
3641
|
+
This type supports additional properties of type object.
|
|
3563
3642
|
"""
|
|
3564
3643
|
|
|
3565
3644
|
# The set of defined properties for the class
|
|
@@ -3590,7 +3669,7 @@ class ResourceInstanceLastOperation:
|
|
|
3590
3669
|
sub_type: Optional[str] = None,
|
|
3591
3670
|
reason_code: Optional[str] = None,
|
|
3592
3671
|
poll_after: Optional[float] = None,
|
|
3593
|
-
**kwargs,
|
|
3672
|
+
**kwargs: Optional[object],
|
|
3594
3673
|
) -> None:
|
|
3595
3674
|
"""
|
|
3596
3675
|
Initialize a ResourceInstanceLastOperation object.
|
|
@@ -3612,7 +3691,7 @@ class ResourceInstanceLastOperation:
|
|
|
3612
3691
|
code for the last operation state change.
|
|
3613
3692
|
:param float poll_after: (optional) A field which indicates the time after
|
|
3614
3693
|
which the instance's last operation is to be polled.
|
|
3615
|
-
:param **kwargs: (optional)
|
|
3694
|
+
:param object **kwargs: (optional) Additional properties of type object
|
|
3616
3695
|
"""
|
|
3617
3696
|
self.type = type
|
|
3618
3697
|
self.state = state
|
|
@@ -3623,8 +3702,13 @@ class ResourceInstanceLastOperation:
|
|
|
3623
3702
|
self.poll_after = poll_after
|
|
3624
3703
|
self.cancelable = cancelable
|
|
3625
3704
|
self.poll = poll
|
|
3626
|
-
for
|
|
3627
|
-
|
|
3705
|
+
for k, v in kwargs.items():
|
|
3706
|
+
if k not in ResourceInstanceLastOperation._properties:
|
|
3707
|
+
if not isinstance(v, object):
|
|
3708
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3709
|
+
setattr(self, k, v)
|
|
3710
|
+
else:
|
|
3711
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(k))
|
|
3628
3712
|
|
|
3629
3713
|
@classmethod
|
|
3630
3714
|
def from_dict(cls, _dict: Dict) -> 'ResourceInstanceLastOperation':
|
|
@@ -3660,7 +3744,11 @@ class ResourceInstanceLastOperation:
|
|
|
3660
3744
|
args['poll'] = poll
|
|
3661
3745
|
else:
|
|
3662
3746
|
raise ValueError('Required property \'poll\' not present in ResourceInstanceLastOperation JSON')
|
|
3663
|
-
|
|
3747
|
+
for k, v in _dict.items():
|
|
3748
|
+
if k not in cls._properties:
|
|
3749
|
+
if not isinstance(v, object):
|
|
3750
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3751
|
+
args[k] = v
|
|
3664
3752
|
return cls(**args)
|
|
3665
3753
|
|
|
3666
3754
|
@classmethod
|
|
@@ -3689,8 +3777,8 @@ class ResourceInstanceLastOperation:
|
|
|
3689
3777
|
_dict['cancelable'] = self.cancelable
|
|
3690
3778
|
if hasattr(self, 'poll') and self.poll is not None:
|
|
3691
3779
|
_dict['poll'] = self.poll
|
|
3692
|
-
for
|
|
3693
|
-
_dict[
|
|
3780
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceInstanceLastOperation._properties]:
|
|
3781
|
+
_dict[k] = getattr(self, k)
|
|
3694
3782
|
return _dict
|
|
3695
3783
|
|
|
3696
3784
|
def _to_dict(self):
|
|
@@ -3698,21 +3786,23 @@ class ResourceInstanceLastOperation:
|
|
|
3698
3786
|
return self.to_dict()
|
|
3699
3787
|
|
|
3700
3788
|
def get_properties(self) -> Dict:
|
|
3701
|
-
"""Return
|
|
3789
|
+
"""Return the additional properties from this instance of ResourceInstanceLastOperation in the form of a dict."""
|
|
3702
3790
|
_dict = {}
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
_dict[_key] = getattr(self, _key)
|
|
3791
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceInstanceLastOperation._properties]:
|
|
3792
|
+
_dict[k] = getattr(self, k)
|
|
3706
3793
|
return _dict
|
|
3707
3794
|
|
|
3708
3795
|
def set_properties(self, _dict: dict):
|
|
3709
|
-
"""Set a dictionary of
|
|
3710
|
-
for
|
|
3711
|
-
delattr(self,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3796
|
+
"""Set a dictionary of additional properties in this instance of ResourceInstanceLastOperation"""
|
|
3797
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceInstanceLastOperation._properties]:
|
|
3798
|
+
delattr(self, k)
|
|
3799
|
+
for k, v in _dict.items():
|
|
3800
|
+
if k not in ResourceInstanceLastOperation._properties:
|
|
3801
|
+
if not isinstance(v, object):
|
|
3802
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
3803
|
+
setattr(self, k, v)
|
|
3804
|
+
else:
|
|
3805
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
|
|
3716
3806
|
|
|
3717
3807
|
def __str__(self) -> str:
|
|
3718
3808
|
"""Return a `str` version of this ResourceInstanceLastOperation object."""
|
|
@@ -4099,6 +4189,8 @@ class ResourceKeyPostParameters:
|
|
|
4099
4189
|
|
|
4100
4190
|
:param str serviceid_crn: (optional) An optional platform defined option to
|
|
4101
4191
|
reuse an existing IAM serviceId for the role assignment.
|
|
4192
|
+
|
|
4193
|
+
This type supports additional properties of type object.
|
|
4102
4194
|
"""
|
|
4103
4195
|
|
|
4104
4196
|
# The set of defined properties for the class
|
|
@@ -4108,18 +4200,23 @@ class ResourceKeyPostParameters:
|
|
|
4108
4200
|
self,
|
|
4109
4201
|
*,
|
|
4110
4202
|
serviceid_crn: Optional[str] = None,
|
|
4111
|
-
**kwargs,
|
|
4203
|
+
**kwargs: Optional[object],
|
|
4112
4204
|
) -> None:
|
|
4113
4205
|
"""
|
|
4114
4206
|
Initialize a ResourceKeyPostParameters object.
|
|
4115
4207
|
|
|
4116
4208
|
:param str serviceid_crn: (optional) An optional platform defined option to
|
|
4117
4209
|
reuse an existing IAM serviceId for the role assignment.
|
|
4118
|
-
:param **kwargs: (optional)
|
|
4210
|
+
:param object **kwargs: (optional) Additional properties of type object
|
|
4119
4211
|
"""
|
|
4120
4212
|
self.serviceid_crn = serviceid_crn
|
|
4121
|
-
for
|
|
4122
|
-
|
|
4213
|
+
for k, v in kwargs.items():
|
|
4214
|
+
if k not in ResourceKeyPostParameters._properties:
|
|
4215
|
+
if not isinstance(v, object):
|
|
4216
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
4217
|
+
setattr(self, k, v)
|
|
4218
|
+
else:
|
|
4219
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(k))
|
|
4123
4220
|
|
|
4124
4221
|
@classmethod
|
|
4125
4222
|
def from_dict(cls, _dict: Dict) -> 'ResourceKeyPostParameters':
|
|
@@ -4127,7 +4224,11 @@ class ResourceKeyPostParameters:
|
|
|
4127
4224
|
args = {}
|
|
4128
4225
|
if (serviceid_crn := _dict.get('serviceid_crn')) is not None:
|
|
4129
4226
|
args['serviceid_crn'] = serviceid_crn
|
|
4130
|
-
|
|
4227
|
+
for k, v in _dict.items():
|
|
4228
|
+
if k not in cls._properties:
|
|
4229
|
+
if not isinstance(v, object):
|
|
4230
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
4231
|
+
args[k] = v
|
|
4131
4232
|
return cls(**args)
|
|
4132
4233
|
|
|
4133
4234
|
@classmethod
|
|
@@ -4140,8 +4241,8 @@ class ResourceKeyPostParameters:
|
|
|
4140
4241
|
_dict = {}
|
|
4141
4242
|
if hasattr(self, 'serviceid_crn') and self.serviceid_crn is not None:
|
|
4142
4243
|
_dict['serviceid_crn'] = self.serviceid_crn
|
|
4143
|
-
for
|
|
4144
|
-
_dict[
|
|
4244
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceKeyPostParameters._properties]:
|
|
4245
|
+
_dict[k] = getattr(self, k)
|
|
4145
4246
|
return _dict
|
|
4146
4247
|
|
|
4147
4248
|
def _to_dict(self):
|
|
@@ -4149,21 +4250,23 @@ class ResourceKeyPostParameters:
|
|
|
4149
4250
|
return self.to_dict()
|
|
4150
4251
|
|
|
4151
4252
|
def get_properties(self) -> Dict:
|
|
4152
|
-
"""Return
|
|
4253
|
+
"""Return the additional properties from this instance of ResourceKeyPostParameters in the form of a dict."""
|
|
4153
4254
|
_dict = {}
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
_dict[_key] = getattr(self, _key)
|
|
4255
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceKeyPostParameters._properties]:
|
|
4256
|
+
_dict[k] = getattr(self, k)
|
|
4157
4257
|
return _dict
|
|
4158
4258
|
|
|
4159
4259
|
def set_properties(self, _dict: dict):
|
|
4160
|
-
"""Set a dictionary of
|
|
4161
|
-
for
|
|
4162
|
-
delattr(self,
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4260
|
+
"""Set a dictionary of additional properties in this instance of ResourceKeyPostParameters"""
|
|
4261
|
+
for k in [_k for _k in vars(self).keys() if _k not in ResourceKeyPostParameters._properties]:
|
|
4262
|
+
delattr(self, k)
|
|
4263
|
+
for k, v in _dict.items():
|
|
4264
|
+
if k not in ResourceKeyPostParameters._properties:
|
|
4265
|
+
if not isinstance(v, object):
|
|
4266
|
+
raise ValueError('Value for additional property {} must be of type object'.format(k))
|
|
4267
|
+
setattr(self, k, v)
|
|
4268
|
+
else:
|
|
4269
|
+
raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
|
|
4167
4270
|
|
|
4168
4271
|
def __str__(self) -> str:
|
|
4169
4272
|
"""Return a `str` version of this ResourceKeyPostParameters object."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.57.0
|
|
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
|
|
@@ -50,7 +50,7 @@ Requires-Dist: twine; extra == "publish"
|
|
|
50
50
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
# IBM Cloud Platform Services Python SDK Version 0.
|
|
53
|
+
# IBM Cloud Platform Services Python SDK Version 0.57.0
|
|
54
54
|
|
|
55
55
|
Python client library to interact with various
|
|
56
56
|
[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.56.0 → ibm_platform_services-0.57.0}/ibm_platform_services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm_platform_services-0.56.0 → ibm_platform_services-0.57.0}/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
|