ibm-platform-services 0.53.7__tar.gz → 0.54.1__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.
Files changed (39) hide show
  1. {ibm-platform-services-0.53.7/ibm_platform_services.egg-info → ibm-platform-services-0.54.1}/PKG-INFO +2 -2
  2. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/README.md +1 -1
  3. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/global_tagging_v1.py +16 -3
  4. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/usage_reports_v4.py +53 -30
  5. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/version.py +1 -1
  6. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1/ibm_platform_services.egg-info}/PKG-INFO +2 -2
  7. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/setup.py +1 -1
  8. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/LICENSE +0 -0
  9. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/MANIFEST.in +0 -0
  10. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/__init__.py +0 -0
  11. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/case_management_v1.py +0 -0
  12. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/catalog_management_v1.py +0 -0
  13. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/common.py +0 -0
  14. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/context_based_restrictions_v1.py +0 -0
  15. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/enterprise_billing_units_v1.py +0 -0
  16. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/enterprise_management_v1.py +0 -0
  17. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/enterprise_usage_reports_v1.py +0 -0
  18. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/global_catalog_v1.py +0 -0
  19. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/global_search_v2.py +0 -0
  20. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/iam_access_groups_v2.py +0 -0
  21. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/iam_identity_v1.py +0 -0
  22. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/iam_policy_management_v1.py +0 -0
  23. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/ibm_cloud_shell_v1.py +0 -0
  24. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/open_service_broker_v1.py +0 -0
  25. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/partner_billing_units_v1.py +0 -0
  26. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/partner_usage_reports_v1.py +0 -0
  27. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/resource_controller_v2.py +0 -0
  28. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/resource_manager_v2.py +0 -0
  29. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/usage_metering_v4.py +0 -0
  30. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services/user_management_v1.py +0 -0
  31. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services.egg-info/SOURCES.txt +0 -0
  32. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services.egg-info/dependency_links.txt +0 -0
  33. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services.egg-info/requires.txt +0 -0
  34. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services.egg-info/top_level.txt +0 -0
  35. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/ibm_platform_services.egg-info/zip-safe +0 -0
  36. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/pyproject.toml +0 -0
  37. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/requirements-dev.txt +0 -0
  38. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/requirements.txt +0 -0
  39. {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ibm-platform-services
3
- Version: 0.53.7
3
+ Version: 0.54.1
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
  [![CLA assistant](https://cla-assistant.io/readme/badge/IBM/platform-services-python-sdk)](https://cla-assistant.io/IBM/platform-services-python-sdk)
34
34
 
35
35
 
36
- # IBM Cloud Platform Services Python SDK Version 0.53.7
36
+ # IBM Cloud Platform Services Python SDK Version 0.54.1
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
  [![CLA assistant](https://cla-assistant.io/readme/badge/IBM/platform-services-python-sdk)](https://cla-assistant.io/IBM/platform-services-python-sdk)
9
9
 
10
10
 
11
- # IBM Cloud Platform Services Python SDK Version 0.53.7
11
+ # IBM Cloud Platform Services Python SDK Version 0.54.1
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 'true' if you want to replace all the list of tags attached to
501
- the resource. Default value is false.
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.87.0-91c7c775-20240320-213027
17
+ # IBM OpenAPI SDK Code Generator Version: 3.89.0-f33c767b-20240410-144451
18
18
 
19
19
  """
20
20
  Usage reports for IBM Cloud accounts
@@ -892,12 +892,12 @@ class UsageReportsV4(BaseService):
892
892
  self,
893
893
  account_id: str,
894
894
  *,
895
- interval: str = None,
896
- cos_bucket: str = None,
897
- cos_location: str = None,
898
- cos_reports_folder: str = None,
899
- report_types: List[str] = None,
900
- versioning: str = None,
895
+ interval: Optional[str] = None,
896
+ cos_bucket: Optional[str] = None,
897
+ cos_location: Optional[str] = None,
898
+ cos_reports_folder: Optional[str] = None,
899
+ report_types: Optional[List[str]] = None,
900
+ versioning: Optional[str] = None,
901
901
  **kwargs,
902
902
  ) -> DetailedResponse:
903
903
  """
@@ -972,10 +972,10 @@ class UsageReportsV4(BaseService):
972
972
  account_id: str,
973
973
  month: str,
974
974
  *,
975
- date_from: int = None,
976
- date_to: int = None,
977
- limit: int = None,
978
- start: str = None,
975
+ date_from: Optional[int] = None,
976
+ date_to: Optional[int] = None,
977
+ limit: Optional[int] = None,
978
+ start: Optional[str] = None,
979
979
  **kwargs,
980
980
  ) -> DetailedResponse:
981
981
  """
@@ -1998,6 +1998,10 @@ class Metric:
1998
1998
  :param bool non_chargeable: (optional) When set to `true`, the cost is for
1999
1999
  informational purpose and is not included while calculating the plan charges.
2000
2000
  :param List[Discount] discounts: All the discounts applicable to the metric.
2001
+ :param float volume_discount: (optional) This percentage reflects the reduction
2002
+ to the original cost that you receive under a volume based pricing structure.
2003
+ :param float volume_cost: (optional) The original cost adjusted for volume based
2004
+ discounts that are applied at the account level.
2001
2005
  """
2002
2006
 
2003
2007
  def __init__(
@@ -2014,6 +2018,8 @@ class Metric:
2014
2018
  unit: Optional[str] = None,
2015
2019
  unit_name: Optional[str] = None,
2016
2020
  non_chargeable: Optional[bool] = None,
2021
+ volume_discount: Optional[float] = None,
2022
+ volume_cost: Optional[float] = None,
2017
2023
  ) -> None:
2018
2024
  """
2019
2025
  Initialize a Metric object.
@@ -2034,6 +2040,11 @@ class Metric:
2034
2040
  :param bool non_chargeable: (optional) When set to `true`, the cost is for
2035
2041
  informational purpose and is not included while calculating the plan
2036
2042
  charges.
2043
+ :param float volume_discount: (optional) This percentage reflects the
2044
+ reduction to the original cost that you receive under a volume based
2045
+ pricing structure.
2046
+ :param float volume_cost: (optional) The original cost adjusted for volume
2047
+ based discounts that are applied at the account level.
2037
2048
  """
2038
2049
  self.metric = metric
2039
2050
  self.metric_name = metric_name
@@ -2046,6 +2057,8 @@ class Metric:
2046
2057
  self.unit_name = unit_name
2047
2058
  self.non_chargeable = non_chargeable
2048
2059
  self.discounts = discounts
2060
+ self.volume_discount = volume_discount
2061
+ self.volume_cost = volume_cost
2049
2062
 
2050
2063
  @classmethod
2051
2064
  def from_dict(cls, _dict: Dict) -> 'Metric':
@@ -2083,6 +2096,10 @@ class Metric:
2083
2096
  args['discounts'] = [Discount.from_dict(v) for v in discounts]
2084
2097
  else:
2085
2098
  raise ValueError('Required property \'discounts\' not present in Metric JSON')
2099
+ if (volume_discount := _dict.get('volume_discount')) is not None:
2100
+ args['volume_discount'] = volume_discount
2101
+ if (volume_cost := _dict.get('volume_cost')) is not None:
2102
+ args['volume_cost'] = volume_cost
2086
2103
  return cls(**args)
2087
2104
 
2088
2105
  @classmethod
@@ -2121,6 +2138,10 @@ class Metric:
2121
2138
  else:
2122
2139
  discounts_list.append(v.to_dict())
2123
2140
  _dict['discounts'] = discounts_list
2141
+ if hasattr(self, 'volume_discount') and self.volume_discount is not None:
2142
+ _dict['volume_discount'] = self.volume_discount
2143
+ if hasattr(self, 'volume_cost') and self.volume_cost is not None:
2144
+ _dict['volume_cost'] = self.volume_cost
2124
2145
  return _dict
2125
2146
 
2126
2147
  def _to_dict(self):
@@ -3389,21 +3410,23 @@ class SnapshotListNext:
3389
3410
  """
3390
3411
  Reference to the next page of the search query if any.
3391
3412
 
3392
- :attr str href: (optional)
3393
- :attr str offset: (optional)
3413
+ :param str href: (optional)
3414
+ :param str offset: (optional) The value of the `_start` query parameter to fetch
3415
+ the next page.
3394
3416
  """
3395
3417
 
3396
3418
  def __init__(
3397
3419
  self,
3398
3420
  *,
3399
- href: str = None,
3400
- offset: str = None,
3421
+ href: Optional[str] = None,
3422
+ offset: Optional[str] = None,
3401
3423
  ) -> None:
3402
3424
  """
3403
3425
  Initialize a SnapshotListNext object.
3404
3426
 
3405
3427
  :param str href: (optional)
3406
- :param str offset: (optional)
3428
+ :param str offset: (optional) The value of the `_start` query parameter to
3429
+ fetch the next page.
3407
3430
  """
3408
3431
  self.href = href
3409
3432
  self.offset = offset
@@ -3460,7 +3483,7 @@ class SnapshotListSnapshotsItem:
3460
3483
  :param str month: (optional) Month of captured snapshot.
3461
3484
  :param str account_type: (optional) Type of account. Possible values are
3462
3485
  [enterprise, account].
3463
- :param float expected_processed_at: (optional) Timestamp of snapshot processed.
3486
+ :param int expected_processed_at: (optional) Timestamp of snapshot processed.
3464
3487
  :param str state: (optional) Status of the billing snapshot configuration.
3465
3488
  Possible values are [enabled, disabled].
3466
3489
  :param SnapshotListSnapshotsItemBillingPeriod billing_period: (optional) Period
@@ -4170,19 +4193,19 @@ class SnapshotConfigValidateResponse:
4170
4193
  """
4171
4194
  Validated billing service to COS bucket authorization.
4172
4195
 
4173
- :attr str account_id: (optional) Account ID for which billing report snapshot is
4174
- configured.
4175
- :attr str cos_bucket: (optional) The name of the COS bucket to store the
4196
+ :param str account_id: (optional) Account ID for which billing report snapshot
4197
+ is configured.
4198
+ :param str cos_bucket: (optional) The name of the COS bucket to store the
4176
4199
  snapshot of the billing reports.
4177
- :attr str cos_location: (optional) Region of the COS instance.
4200
+ :param str cos_location: (optional) Region of the COS instance.
4178
4201
  """
4179
4202
 
4180
4203
  def __init__(
4181
4204
  self,
4182
4205
  *,
4183
- account_id: str = None,
4184
- cos_bucket: str = None,
4185
- cos_location: str = None,
4206
+ account_id: Optional[str] = None,
4207
+ cos_bucket: Optional[str] = None,
4208
+ cos_location: Optional[str] = None,
4186
4209
  ) -> None:
4187
4210
  """
4188
4211
  Initialize a SnapshotConfigValidateResponse object.
@@ -4201,12 +4224,12 @@ class SnapshotConfigValidateResponse:
4201
4224
  def from_dict(cls, _dict: Dict) -> 'SnapshotConfigValidateResponse':
4202
4225
  """Initialize a SnapshotConfigValidateResponse object from a json dictionary."""
4203
4226
  args = {}
4204
- if 'account_id' in _dict:
4205
- args['account_id'] = _dict.get('account_id')
4206
- if 'cos_bucket' in _dict:
4207
- args['cos_bucket'] = _dict.get('cos_bucket')
4208
- if 'cos_location' in _dict:
4209
- args['cos_location'] = _dict.get('cos_location')
4227
+ if (account_id := _dict.get('account_id')) is not None:
4228
+ args['account_id'] = account_id
4229
+ if (cos_bucket := _dict.get('cos_bucket')) is not None:
4230
+ args['cos_bucket'] = cos_bucket
4231
+ if (cos_location := _dict.get('cos_location')) is not None:
4232
+ args['cos_location'] = cos_location
4210
4233
  return cls(**args)
4211
4234
 
4212
4235
  @classmethod
@@ -2,4 +2,4 @@
2
2
  Version of platform_services
3
3
  """
4
4
 
5
- __version__ = '0.53.7'
5
+ __version__ = '0.54.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ibm-platform-services
3
- Version: 0.53.7
3
+ Version: 0.54.1
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
  [![CLA assistant](https://cla-assistant.io/readme/badge/IBM/platform-services-python-sdk)](https://cla-assistant.io/IBM/platform-services-python-sdk)
34
34
 
35
35
 
36
- # IBM Cloud Platform Services Python SDK Version 0.53.7
36
+ # IBM Cloud Platform Services Python SDK Version 0.54.1
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).
@@ -19,7 +19,7 @@ import os
19
19
  import sys
20
20
  import pkg_resources
21
21
 
22
- __version__ = '0.53.7'
22
+ __version__ = '0.54.1'
23
23
  PACKAGE_NAME = 'ibm_platform_services'
24
24
  PACKAGE_DESC = 'Python client library for IBM Cloud Platform Services'
25
25