ibm-platform-services 0.56.0__py3-none-any.whl → 0.57.1__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.
@@ -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.92.1-44330004-20240620-143510
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) Any additional properties.
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 _key, _value in kwargs.items():
1862
- setattr(self, _key, _value)
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
- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
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 _key in [k for k in vars(self).keys() if k not in Credentials._properties]:
1904
- _dict[_key] = getattr(self, _key)
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 a dictionary of arbitrary properties from this instance of Credentials"""
1974
+ """Return the additional properties from this instance of Credentials in the form of a dict."""
1913
1975
  _dict = {}
1914
-
1915
- for _key in [k for k in vars(self).keys() if k not in Credentials._properties]:
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 arbitrary properties to this instance of Credentials"""
1921
- for _key in [k for k in vars(self).keys() if k not in Credentials._properties]:
1922
- delattr(self, _key)
1923
-
1924
- for _key, _value in _dict.items():
1925
- if _key not in Credentials._properties:
1926
- setattr(self, _key, _value)
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) Any additional properties.
3004
+ :param object **kwargs: (optional) Additional properties of type object
2939
3005
  """
2940
3006
  self.serviceid_crn = serviceid_crn
2941
- for _key, _value in kwargs.items():
2942
- setattr(self, _key, _value)
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
- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
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 _key in [k for k in vars(self).keys() if k not in ResourceBindingPostParameters._properties]:
2964
- _dict[_key] = getattr(self, _key)
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 a dictionary of arbitrary properties from this instance of ResourceBindingPostParameters"""
3047
+ """Return the additional properties from this instance of ResourceBindingPostParameters in the form of a dict."""
2973
3048
  _dict = {}
2974
-
2975
- for _key in [k for k in vars(self).keys() if k not in ResourceBindingPostParameters._properties]:
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 arbitrary properties to this instance of ResourceBindingPostParameters"""
2981
- for _key in [k for k in vars(self).keys() if k not in ResourceBindingPostParameters._properties]:
2982
- delattr(self, _key)
2983
-
2984
- for _key, _value in _dict.items():
2985
- if _key not in ResourceBindingPostParameters._properties:
2986
- setattr(self, _key, _value)
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 resource
3148
- aliases for the instance.
3149
- :param str resource_bindings_url: (optional) The relative path to the resource
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 to the
3271
- resource aliases for the instance.
3272
- :param str resource_bindings_url: (optional) The relative path to the
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) Any additional properties.
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 _key, _value in kwargs.items():
3627
- setattr(self, _key, _value)
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
- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
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 _key in [k for k in vars(self).keys() if k not in ResourceInstanceLastOperation._properties]:
3693
- _dict[_key] = getattr(self, _key)
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 a dictionary of arbitrary properties from this instance of ResourceInstanceLastOperation"""
3789
+ """Return the additional properties from this instance of ResourceInstanceLastOperation in the form of a dict."""
3702
3790
  _dict = {}
3703
-
3704
- for _key in [k for k in vars(self).keys() if k not in ResourceInstanceLastOperation._properties]:
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 arbitrary properties to this instance of ResourceInstanceLastOperation"""
3710
- for _key in [k for k in vars(self).keys() if k not in ResourceInstanceLastOperation._properties]:
3711
- delattr(self, _key)
3712
-
3713
- for _key, _value in _dict.items():
3714
- if _key not in ResourceInstanceLastOperation._properties:
3715
- setattr(self, _key, _value)
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) Any additional properties.
4210
+ :param object **kwargs: (optional) Additional properties of type object
4119
4211
  """
4120
4212
  self.serviceid_crn = serviceid_crn
4121
- for _key, _value in kwargs.items():
4122
- setattr(self, _key, _value)
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
- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
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 _key in [k for k in vars(self).keys() if k not in ResourceKeyPostParameters._properties]:
4144
- _dict[_key] = getattr(self, _key)
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 a dictionary of arbitrary properties from this instance of ResourceKeyPostParameters"""
4253
+ """Return the additional properties from this instance of ResourceKeyPostParameters in the form of a dict."""
4153
4254
  _dict = {}
4154
-
4155
- for _key in [k for k in vars(self).keys() if k not in ResourceKeyPostParameters._properties]:
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 arbitrary properties to this instance of ResourceKeyPostParameters"""
4161
- for _key in [k for k in vars(self).keys() if k not in ResourceKeyPostParameters._properties]:
4162
- delattr(self, _key)
4163
-
4164
- for _key, _value in _dict.items():
4165
- if _key not in ResourceKeyPostParameters._properties:
4166
- setattr(self, _key, _value)
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."""
@@ -2,4 +2,4 @@
2
2
  Version of platform_services
3
3
  """
4
4
 
5
- __version__ = '0.56.0'
5
+ __version__ = '0.57.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ibm-platform-services
3
- Version: 0.56.0
3
+ Version: 0.57.1
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
@@ -28,7 +28,7 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
28
28
  Requires-Python: >=3.8
29
29
  Description-Content-Type: text/markdown
30
30
  License-File: LICENSE
31
- Requires-Dist: ibm-cloud-sdk-core <4.0.0,>=3.20.6
31
+ Requires-Dist: ibm-cloud-sdk-core <4.0.0,>=3.21.0
32
32
  Provides-Extra: dev
33
33
  Requires-Dist: coverage <8.0.0,>=7.3.2 ; extra == 'dev'
34
34
  Requires-Dist: pylint <4.0.0,>=3.0.0 ; extra == 'dev'
@@ -50,7 +50,7 @@ Requires-Dist: twine ; extra == 'publish'
50
50
  [![CLA assistant](https://cla-assistant.io/readme/badge/IBM/platform-services-python-sdk)](https://cla-assistant.io/IBM/platform-services-python-sdk)
51
51
 
52
52
 
53
- # IBM Cloud Platform Services Python SDK Version 0.56.0
53
+ # IBM Cloud Platform Services Python SDK Version 0.57.1
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).
@@ -16,14 +16,14 @@ ibm_platform_services/ibm_cloud_shell_v1.py,sha256=T996gx6pgDkT_kVIp79ApFj77hb_d
16
16
  ibm_platform_services/open_service_broker_v1.py,sha256=MCoRClB3CvpMJgklfZ2OFuzX9Hn2l9eiVTd7yBQABCE,83453
17
17
  ibm_platform_services/partner_billing_units_v1.py,sha256=wAoH64Hod09WqRFsfmHw6V9eHpKSMWhzxMD1AxaEDFw,57440
18
18
  ibm_platform_services/partner_usage_reports_v1.py,sha256=wmJeotzKPeWVwy41k9EeNGRKJdeh2vVywcy4Szjp7Nw,45915
19
- ibm_platform_services/resource_controller_v2.py,sha256=vn3W-P5rIh3mDt-11jQW_QJhM7-7h-9iwn-V95FddOE,205901
19
+ ibm_platform_services/resource_controller_v2.py,sha256=upV6fJ0_1c098PReenUJBWzuiaqUgYum2BLvMPjBacY,211601
20
20
  ibm_platform_services/resource_manager_v2.py,sha256=Jw6VwK0EGb0Rixa0r63dQSR3NTLKJQYExDy8jrclwk0,42647
21
21
  ibm_platform_services/usage_metering_v4.py,sha256=3a8OPVs-v6nW391uz4mjl4k1j8S1fy2c7ulx0Sj6tI0,19366
22
22
  ibm_platform_services/usage_reports_v4.py,sha256=bdMCzmRTre752JtP2p3i-w5RwBmWhOC7KerdFM8uA0U,215721
23
23
  ibm_platform_services/user_management_v1.py,sha256=r8cQn9Op1EE521dTqxh8TeXekBacKxe5Ka-ikGZ6A-g,61887
24
- ibm_platform_services/version.py,sha256=nnIRIBAhurFfe9HMy88kssIFNvyVk-Uu7lWoMXZ8ZlE,61
25
- ibm_platform_services-0.56.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
- ibm_platform_services-0.56.0.dist-info/METADATA,sha256=0oVuBmE5T7gxZJSXxBJI1Je7LD42kIK1v5ypr7NW48Q,9142
27
- ibm_platform_services-0.56.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
28
- ibm_platform_services-0.56.0.dist-info/top_level.txt,sha256=S7qPS0hODAYsGpClGheV5YKaJTTt9RNC6dwEx1qZhUc,22
29
- ibm_platform_services-0.56.0.dist-info/RECORD,,
24
+ ibm_platform_services/version.py,sha256=w8Vf-b1CtIEBXDcC5e1BQczrPkdO3isNqYWOdGSAKe4,61
25
+ ibm_platform_services-0.57.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
+ ibm_platform_services-0.57.1.dist-info/METADATA,sha256=ae3ml9dTviQSzWVM0dvukSrIkW4vYWaFwtbCXzIDp1o,9142
27
+ ibm_platform_services-0.57.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
28
+ ibm_platform_services-0.57.1.dist-info/top_level.txt,sha256=S7qPS0hODAYsGpClGheV5YKaJTTt9RNC6dwEx1qZhUc,22
29
+ ibm_platform_services-0.57.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5