@@ -55,9 +55,7 @@ def new_instance(
55
55
parameters and external configuration.
56
56
"""
57
57
authenticator = get_authenticator_from_environment (service_name )
58
- service = cls (
59
- authenticator
60
- )
58
+ service = cls (authenticator )
61
59
service .configure_service (service_name )
62
60
return service
63
61
@@ -255,7 +253,9 @@ def get_resource_group_usage(
255
253
path_param_keys = ['account_id' , 'resource_group_id' , 'billingmonth' ]
256
254
path_param_values = self .encode_path_vars (account_id , resource_group_id , billingmonth )
257
255
path_param_dict = dict (zip (path_param_keys , path_param_values ))
258
- url = '/v4/accounts/{account_id}/resource_groups/{resource_group_id}/usage/{billingmonth}' .format (** path_param_dict )
256
+ url = '/v4/accounts/{account_id}/resource_groups/{resource_group_id}/usage/{billingmonth}' .format (
257
+ ** path_param_dict
258
+ )
259
259
request = self .prepare_request (
260
260
method = 'GET' ,
261
261
url = url ,
@@ -445,7 +445,9 @@ def get_resource_usage_resource_group(
445
445
path_param_keys = ['account_id' , 'resource_group_id' , 'billingmonth' ]
446
446
path_param_values = self .encode_path_vars (account_id , resource_group_id , billingmonth )
447
447
path_param_dict = dict (zip (path_param_keys , path_param_values ))
448
- url = '/v4/accounts/{account_id}/resource_groups/{resource_group_id}/resource_instances/usage/{billingmonth}' .format (** path_param_dict )
448
+ url = '/v4/accounts/{account_id}/resource_groups/{resource_group_id}/resource_instances/usage/{billingmonth}' .format (
449
+ ** path_param_dict
450
+ )
449
451
request = self .prepare_request (
450
452
method = 'GET' ,
451
453
url = url ,
@@ -539,7 +541,11 @@ def get_resource_usage_org(
539
541
path_param_keys = ['account_id' , 'organization_id' , 'billingmonth' ]
540
542
path_param_values = self .encode_path_vars (account_id , organization_id , billingmonth )
541
543
path_param_dict = dict (zip (path_param_keys , path_param_values ))
542
- url = '/v4/accounts/{account_id}/organizations/{organization_id}/resource_instances/usage/{billingmonth}' .format (** path_param_dict )
544
+ url = (
545
+ '/v4/accounts/{account_id}/organizations/{organization_id}/resource_instances/usage/{billingmonth}' .format (
546
+ ** path_param_dict
547
+ )
548
+ )
543
549
request = self .prepare_request (
544
550
method = 'GET' ,
545
551
url = url ,
@@ -3066,7 +3072,6 @@ class StateEnum(str, Enum):
3066
3072
ENABLED = 'enabled'
3067
3073
DISABLED = 'disabled'
3068
3074
3069
-
3070
3075
class AccountTypeEnum (str , Enum ):
3071
3076
"""
3072
3077
Type of account. Possible values [enterprise, account].
@@ -3075,15 +3080,13 @@ class AccountTypeEnum(str, Enum):
3075
3080
ACCOUNT = 'account'
3076
3081
ENTERPRISE = 'enterprise'
3077
3082
3078
-
3079
3083
class IntervalEnum (str , Enum ):
3080
3084
"""
3081
3085
Frequency of taking the snapshot of the billing reports.
3082
3086
"""
3083
3087
3084
3088
DAILY = 'daily'
3085
3089
3086
-
3087
3090
class VersioningEnum (str , Enum ):
3088
3091
"""
3089
3092
A new version of report is created or the existing report version is overwritten
@@ -3093,7 +3096,6 @@ class VersioningEnum(str, Enum):
3093
3096
NEW = 'new'
3094
3097
OVERWRITE = 'overwrite'
3095
3098
3096
-
3097
3099
class ReportTypesEnum (str , Enum ):
3098
3100
"""
3099
3101
report_types.
@@ -3104,7 +3106,6 @@ class ReportTypesEnum(str, Enum):
3104
3106
ACCOUNT_RESOURCE_INSTANCE_USAGE = 'account_resource_instance_usage'
3105
3107
3106
3108
3107
-
3108
3109
class SnapshotList :
3109
3110
"""
3110
3111
List of billing reports snapshots.
@@ -3447,7 +3448,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotListSnapshotsItem':
3447
3448
if 'created_on' in _dict :
3448
3449
args ['created_on' ] = _dict .get ('created_on' )
3449
3450
if 'report_types' in _dict :
3450
- args ['report_types' ] = [SnapshotListSnapshotsItemReportTypesItem .from_dict (v ) for v in _dict .get ('report_types' )]
3451
+ args ['report_types' ] = [
3452
+ SnapshotListSnapshotsItemReportTypesItem .from_dict (v ) for v in _dict .get ('report_types' )
3453
+ ]
3451
3454
if 'files' in _dict :
3452
3455
args ['files' ] = [SnapshotListSnapshotsItemFilesItem .from_dict (v ) for v in _dict .get ('files' )]
3453
3456
if 'processed_at' in _dict :
@@ -3537,7 +3540,6 @@ class AccountTypeEnum(str, Enum):
3537
3540
ACCOUNT = 'account'
3538
3541
ENTERPRISE = 'enterprise'
3539
3542
3540
-
3541
3543
class StateEnum (str , Enum ):
3542
3544
"""
3543
3545
Status of the billing snapshot configuration. Possible values are [enabled,
@@ -3548,7 +3550,6 @@ class StateEnum(str, Enum):
3548
3550
DISABLED = 'disabled'
3549
3551
3550
3552
3551
-
3552
3553
class SnapshotListSnapshotsItemBillingPeriod :
3553
3554
"""
3554
3555
Period of billing in snapshot.
@@ -3711,7 +3712,6 @@ class ReportTypesEnum(str, Enum):
3711
3712
ACCOUNT_RESOURCE_INSTANCE_USAGE = 'account_resource_instance_usage'
3712
3713
3713
3714
3714
-
3715
3715
class SnapshotListSnapshotsItemReportTypesItem :
3716
3716
"""
3717
3717
SnapshotListSnapshotsItemReportTypesItem.
@@ -3792,7 +3792,6 @@ class TypeEnum(str, Enum):
3792
3792
ACCOUNT_RESOURCE_INSTANCE_USAGE = 'account_resource_instance_usage'
3793
3793
3794
3794
3795
-
3796
3795
class SnapshotConfig :
3797
3796
"""
3798
3797
Billing reports snapshot configuration.
@@ -4004,7 +4003,6 @@ class StateEnum(str, Enum):
4004
4003
ENABLED = 'enabled'
4005
4004
DISABLED = 'disabled'
4006
4005
4007
-
4008
4006
class AccountTypeEnum (str , Enum ):
4009
4007
"""
4010
4008
Type of account. Possible values are [enterprise, account].
@@ -4013,15 +4011,13 @@ class AccountTypeEnum(str, Enum):
4013
4011
ACCOUNT = 'account'
4014
4012
ENTERPRISE = 'enterprise'
4015
4013
4016
-
4017
4014
class IntervalEnum (str , Enum ):
4018
4015
"""
4019
4016
Frequency of taking the snapshot of the billing reports.
4020
4017
"""
4021
4018
4022
4019
DAILY = 'daily'
4023
4020
4024
-
4025
4021
class VersioningEnum (str , Enum ):
4026
4022
"""
4027
4023
A new version of report is created or the existing report version is overwritten
@@ -4031,7 +4027,6 @@ class VersioningEnum(str, Enum):
4031
4027
NEW = 'new'
4032
4028
OVERWRITE = 'overwrite'
4033
4029
4034
-
4035
4030
class ReportTypesEnum (str , Enum ):
4036
4031
"""
4037
4032
report_types.
@@ -4042,7 +4037,6 @@ class ReportTypesEnum(str, Enum):
4042
4037
ACCOUNT_RESOURCE_INSTANCE_USAGE = 'account_resource_instance_usage'
4043
4038
4044
4039
4045
-
4046
4040
class Subscription :
4047
4041
"""
4048
4042
Subscription.
@@ -4515,6 +4509,7 @@ def __ne__(self, other: 'SupportSummary') -> bool:
4515
4509
"""Return `true` when self and other are not equal, false otherwise."""
4516
4510
return not self == other
4517
4511
4512
+
4518
4513
##############################################################################
4519
4514
# Pagers
4520
4515
##############################################################################
0 commit comments