ibm-platform-services 0.47.1__tar.gz → 0.48.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.
- {ibm-platform-services-0.47.1/ibm_platform_services.egg-info → ibm-platform-services-0.48.1}/PKG-INFO +2 -2
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/README.md +1 -1
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/usage_reports_v4.py +157 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/version.py +1 -1
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1/ibm_platform_services.egg-info}/PKG-INFO +2 -2
- ibm-platform-services-0.48.1/ibm_platform_services.egg-info/requires.txt +1 -0
- ibm-platform-services-0.48.1/requirements.txt +1 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/setup.py +1 -1
- ibm-platform-services-0.47.1/ibm_platform_services.egg-info/requires.txt +0 -1
- ibm-platform-services-0.47.1/requirements.txt +0 -1
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/LICENSE +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/MANIFEST.in +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/__init__.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/case_management_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/catalog_management_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/common.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/context_based_restrictions_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/enterprise_billing_units_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/enterprise_management_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/enterprise_usage_reports_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/global_catalog_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/global_search_v2.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/global_tagging_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/iam_access_groups_v2.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/iam_identity_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/iam_policy_management_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/ibm_cloud_shell_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/open_service_broker_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/resource_controller_v2.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/resource_manager_v2.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/usage_metering_v4.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/user_management_v1.py +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services.egg-info/SOURCES.txt +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services.egg-info/dependency_links.txt +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services.egg-info/top_level.txt +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services.egg-info/zip-safe +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/pyproject.toml +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/requirements-dev.txt +0 -0
- {ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/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.48.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
|
[](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.48.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
|
[](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.48.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).
|
|
@@ -819,6 +819,85 @@ class UsageReportsV4(BaseService):
|
|
|
819
819
|
response = self.send(request, **kwargs)
|
|
820
820
|
return response
|
|
821
821
|
|
|
822
|
+
def validate_reports_snapshot_config(
|
|
823
|
+
self,
|
|
824
|
+
account_id: str,
|
|
825
|
+
*,
|
|
826
|
+
interval: str = None,
|
|
827
|
+
cos_bucket: str = None,
|
|
828
|
+
cos_location: str = None,
|
|
829
|
+
cos_reports_folder: str = None,
|
|
830
|
+
report_types: List[str] = None,
|
|
831
|
+
versioning: str = None,
|
|
832
|
+
**kwargs,
|
|
833
|
+
) -> DetailedResponse:
|
|
834
|
+
"""
|
|
835
|
+
Verify billing to COS authorization.
|
|
836
|
+
|
|
837
|
+
Verify billing service to COS bucket authorization for the given account_id. If
|
|
838
|
+
COS bucket information is not provided, COS bucket information is retrieved from
|
|
839
|
+
the configuration file.
|
|
840
|
+
|
|
841
|
+
:param str account_id: Account ID for which billing report snapshot is
|
|
842
|
+
configured.
|
|
843
|
+
:param str interval: (optional) Frequency of taking the snapshot of the
|
|
844
|
+
billing reports.
|
|
845
|
+
:param str cos_bucket: (optional) The name of the COS bucket to store the
|
|
846
|
+
snapshot of the billing reports.
|
|
847
|
+
:param str cos_location: (optional) Region of the COS instance.
|
|
848
|
+
:param str cos_reports_folder: (optional) The billing reports root folder
|
|
849
|
+
to store the billing reports snapshots. Defaults to
|
|
850
|
+
"IBMCloud-Billing-Reports".
|
|
851
|
+
:param List[str] report_types: (optional) The type of billing reports to
|
|
852
|
+
take snapshot of. Possible values are [account_summary, enterprise_summary,
|
|
853
|
+
account_resource_instance_usage].
|
|
854
|
+
:param str versioning: (optional) A new version of report is created or the
|
|
855
|
+
existing report version is overwritten with every update. Defaults to
|
|
856
|
+
"new".
|
|
857
|
+
:param dict headers: A `dict` containing the request headers
|
|
858
|
+
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
|
|
859
|
+
:rtype: DetailedResponse with `dict` result representing a `SnapshotConfigValidateResponse` object
|
|
860
|
+
"""
|
|
861
|
+
|
|
862
|
+
if account_id is None:
|
|
863
|
+
raise ValueError('account_id must be provided')
|
|
864
|
+
headers = {}
|
|
865
|
+
sdk_headers = get_sdk_headers(
|
|
866
|
+
service_name=self.DEFAULT_SERVICE_NAME,
|
|
867
|
+
service_version='V4',
|
|
868
|
+
operation_id='validate_reports_snapshot_config',
|
|
869
|
+
)
|
|
870
|
+
headers.update(sdk_headers)
|
|
871
|
+
|
|
872
|
+
data = {
|
|
873
|
+
'account_id': account_id,
|
|
874
|
+
'interval': interval,
|
|
875
|
+
'cos_bucket': cos_bucket,
|
|
876
|
+
'cos_location': cos_location,
|
|
877
|
+
'cos_reports_folder': cos_reports_folder,
|
|
878
|
+
'report_types': report_types,
|
|
879
|
+
'versioning': versioning,
|
|
880
|
+
}
|
|
881
|
+
data = {k: v for (k, v) in data.items() if v is not None}
|
|
882
|
+
data = json.dumps(data)
|
|
883
|
+
headers['content-type'] = 'application/json'
|
|
884
|
+
|
|
885
|
+
if 'headers' in kwargs:
|
|
886
|
+
headers.update(kwargs.get('headers'))
|
|
887
|
+
del kwargs['headers']
|
|
888
|
+
headers['Accept'] = 'application/json'
|
|
889
|
+
|
|
890
|
+
url = '/v1/billing-reports-snapshot-config/validate'
|
|
891
|
+
request = self.prepare_request(
|
|
892
|
+
method='POST',
|
|
893
|
+
url=url,
|
|
894
|
+
headers=headers,
|
|
895
|
+
data=data,
|
|
896
|
+
)
|
|
897
|
+
|
|
898
|
+
response = self.send(request, **kwargs)
|
|
899
|
+
return response
|
|
900
|
+
|
|
822
901
|
def get_reports_snapshot(
|
|
823
902
|
self,
|
|
824
903
|
account_id: str,
|
|
@@ -3937,6 +4016,84 @@ class SnapshotConfig:
|
|
|
3937
4016
|
ACCOUNT_RESOURCE_INSTANCE_USAGE = 'account_resource_instance_usage'
|
|
3938
4017
|
|
|
3939
4018
|
|
|
4019
|
+
class SnapshotConfigValidateResponse:
|
|
4020
|
+
"""
|
|
4021
|
+
Validated billing service to COS bucket authorization.
|
|
4022
|
+
|
|
4023
|
+
:attr str account_id: (optional) Account ID for which billing report snapshot is
|
|
4024
|
+
configured.
|
|
4025
|
+
:attr str cos_bucket: (optional) The name of the COS bucket to store the
|
|
4026
|
+
snapshot of the billing reports.
|
|
4027
|
+
:attr str cos_location: (optional) Region of the COS instance.
|
|
4028
|
+
"""
|
|
4029
|
+
|
|
4030
|
+
def __init__(
|
|
4031
|
+
self,
|
|
4032
|
+
*,
|
|
4033
|
+
account_id: str = None,
|
|
4034
|
+
cos_bucket: str = None,
|
|
4035
|
+
cos_location: str = None,
|
|
4036
|
+
) -> None:
|
|
4037
|
+
"""
|
|
4038
|
+
Initialize a SnapshotConfigValidateResponse object.
|
|
4039
|
+
|
|
4040
|
+
:param str account_id: (optional) Account ID for which billing report
|
|
4041
|
+
snapshot is configured.
|
|
4042
|
+
:param str cos_bucket: (optional) The name of the COS bucket to store the
|
|
4043
|
+
snapshot of the billing reports.
|
|
4044
|
+
:param str cos_location: (optional) Region of the COS instance.
|
|
4045
|
+
"""
|
|
4046
|
+
self.account_id = account_id
|
|
4047
|
+
self.cos_bucket = cos_bucket
|
|
4048
|
+
self.cos_location = cos_location
|
|
4049
|
+
|
|
4050
|
+
@classmethod
|
|
4051
|
+
def from_dict(cls, _dict: Dict) -> 'SnapshotConfigValidateResponse':
|
|
4052
|
+
"""Initialize a SnapshotConfigValidateResponse object from a json dictionary."""
|
|
4053
|
+
args = {}
|
|
4054
|
+
if 'account_id' in _dict:
|
|
4055
|
+
args['account_id'] = _dict.get('account_id')
|
|
4056
|
+
if 'cos_bucket' in _dict:
|
|
4057
|
+
args['cos_bucket'] = _dict.get('cos_bucket')
|
|
4058
|
+
if 'cos_location' in _dict:
|
|
4059
|
+
args['cos_location'] = _dict.get('cos_location')
|
|
4060
|
+
return cls(**args)
|
|
4061
|
+
|
|
4062
|
+
@classmethod
|
|
4063
|
+
def _from_dict(cls, _dict):
|
|
4064
|
+
"""Initialize a SnapshotConfigValidateResponse object from a json dictionary."""
|
|
4065
|
+
return cls.from_dict(_dict)
|
|
4066
|
+
|
|
4067
|
+
def to_dict(self) -> Dict:
|
|
4068
|
+
"""Return a json dictionary representing this model."""
|
|
4069
|
+
_dict = {}
|
|
4070
|
+
if hasattr(self, 'account_id') and self.account_id is not None:
|
|
4071
|
+
_dict['account_id'] = self.account_id
|
|
4072
|
+
if hasattr(self, 'cos_bucket') and self.cos_bucket is not None:
|
|
4073
|
+
_dict['cos_bucket'] = self.cos_bucket
|
|
4074
|
+
if hasattr(self, 'cos_location') and self.cos_location is not None:
|
|
4075
|
+
_dict['cos_location'] = self.cos_location
|
|
4076
|
+
return _dict
|
|
4077
|
+
|
|
4078
|
+
def _to_dict(self):
|
|
4079
|
+
"""Return a json dictionary representing this model."""
|
|
4080
|
+
return self.to_dict()
|
|
4081
|
+
|
|
4082
|
+
def __str__(self) -> str:
|
|
4083
|
+
"""Return a `str` version of this SnapshotConfigValidateResponse object."""
|
|
4084
|
+
return json.dumps(self.to_dict(), indent=2)
|
|
4085
|
+
|
|
4086
|
+
def __eq__(self, other: 'SnapshotConfigValidateResponse') -> bool:
|
|
4087
|
+
"""Return `true` when self and other are equal, false otherwise."""
|
|
4088
|
+
if not isinstance(other, self.__class__):
|
|
4089
|
+
return False
|
|
4090
|
+
return self.__dict__ == other.__dict__
|
|
4091
|
+
|
|
4092
|
+
def __ne__(self, other: 'SnapshotConfigValidateResponse') -> bool:
|
|
4093
|
+
"""Return `true` when self and other are not equal, false otherwise."""
|
|
4094
|
+
return not self == other
|
|
4095
|
+
|
|
4096
|
+
|
|
3940
4097
|
class Subscription:
|
|
3941
4098
|
"""
|
|
3942
4099
|
Subscription.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-platform-services
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.48.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
|
[](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.48.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).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ibm_cloud_sdk_core<4.0.0,>=3.18.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ibm_cloud_sdk_core>=3.18.1,<4.0.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ibm_cloud_sdk_core<4.0.0,>=3.17.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ibm_cloud_sdk_core>=3.17.0,<4.0.0
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/ibm_platform_services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm-platform-services-0.47.1 → ibm-platform-services-0.48.1}/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
|