ibm-platform-services 0.53.7__tar.gz → 0.54.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.53.7/ibm_platform_services.egg-info → ibm-platform-services-0.54.0}/PKG-INFO +2 -2
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/README.md +1 -1
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/usage_reports_v4.py +53 -30
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/version.py +1 -1
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0/ibm_platform_services.egg-info}/PKG-INFO +2 -2
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/setup.py +1 -1
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/LICENSE +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/MANIFEST.in +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/__init__.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/case_management_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/catalog_management_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/common.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/context_based_restrictions_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/enterprise_billing_units_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/enterprise_management_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/enterprise_usage_reports_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/global_catalog_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/global_search_v2.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/global_tagging_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/iam_access_groups_v2.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/iam_identity_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/iam_policy_management_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/ibm_cloud_shell_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/open_service_broker_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/partner_billing_units_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/partner_usage_reports_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/resource_controller_v2.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/resource_manager_v2.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/usage_metering_v4.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/user_management_v1.py +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services.egg-info/SOURCES.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services.egg-info/dependency_links.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services.egg-info/requires.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services.egg-info/top_level.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services.egg-info/zip-safe +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/pyproject.toml +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/requirements-dev.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/requirements.txt +0 -0
- {ibm-platform-services-0.53.7 → ibm-platform-services-0.54.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.54.0
|
|
4
4
|
Summary: Python client library for IBM Cloud Platform Services
|
|
5
5
|
Home-page: https://github.com/IBM/platform-services-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -33,7 +33,7 @@ License-File: LICENSE
|
|
|
33
33
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
# IBM Cloud Platform Services Python SDK Version 0.
|
|
36
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.0
|
|
37
37
|
|
|
38
38
|
Python client library to interact with various
|
|
39
39
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
# IBM Cloud Platform Services Python SDK Version 0.
|
|
11
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.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.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
|
-
:
|
|
3393
|
-
:
|
|
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
|
|
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
|
-
:
|
|
4174
|
-
configured.
|
|
4175
|
-
:
|
|
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
|
-
:
|
|
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'
|
|
4205
|
-
args['account_id'] =
|
|
4206
|
-
if 'cos_bucket'
|
|
4207
|
-
args['cos_bucket'] =
|
|
4208
|
-
if 'cos_location'
|
|
4209
|
-
args['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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.54.0
|
|
4
4
|
Summary: Python client library for IBM Cloud Platform Services
|
|
5
5
|
Home-page: https://github.com/IBM/platform-services-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -33,7 +33,7 @@ License-File: LICENSE
|
|
|
33
33
|
[](https://cla-assistant.io/IBM/platform-services-python-sdk)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
# IBM Cloud Platform Services Python SDK Version 0.
|
|
36
|
+
# IBM Cloud Platform Services Python SDK Version 0.54.0
|
|
37
37
|
|
|
38
38
|
Python client library to interact with various
|
|
39
39
|
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.53.7 → ibm-platform-services-0.54.0}/ibm_platform_services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.53.7 → ibm-platform-services-0.54.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|