google-cloud-billing-v1 0.4.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +208 -208
- data/lib/google/cloud/billing/v1/cloud_billing/credentials.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing/paths.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +76 -76
- data/lib/google/cloud/billing/v1/cloud_catalog/credentials.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/paths.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog.rb +1 -1
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/lib/google/cloud/billing/v1.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +48 -48
- data/proto_docs/google/cloud/billing/v1/cloud_catalog.rb +66 -66
- data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
- data/proto_docs/google/iam/v1/options.rb +3 -3
- data/proto_docs/google/iam/v1/policy.rb +26 -26
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/type/expr.rb +6 -6
- data/proto_docs/google/type/money.rb +5 -5
- metadata +2 -2
@@ -24,83 +24,83 @@ module Google
|
|
24
24
|
# A billing account in [GCP Console](https://console.cloud.google.com/).
|
25
25
|
# You can assign a billing account to one or more projects.
|
26
26
|
# @!attribute [rw] name
|
27
|
-
# @return [String]
|
27
|
+
# @return [::String]
|
28
28
|
# The resource name of the billing account. The resource name has the form
|
29
29
|
# `billingAccounts/{billing_account_id}`. For example,
|
30
30
|
# `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
31
31
|
# billing account `012345-567890-ABCDEF`.
|
32
32
|
# @!attribute [r] open
|
33
|
-
# @return [Boolean]
|
33
|
+
# @return [::Boolean]
|
34
34
|
# Output only. True if the billing account is open, and will therefore be charged for any
|
35
35
|
# usage on associated projects. False if the billing account is closed, and
|
36
36
|
# therefore projects associated with it will be unable to use paid services.
|
37
37
|
# @!attribute [rw] display_name
|
38
|
-
# @return [String]
|
38
|
+
# @return [::String]
|
39
39
|
# The display name given to the billing account, such as `My Billing
|
40
40
|
# Account`. This name is displayed in the GCP Console.
|
41
41
|
# @!attribute [rw] master_billing_account
|
42
|
-
# @return [String]
|
42
|
+
# @return [::String]
|
43
43
|
# If this account is a
|
44
44
|
# [subaccount](https://cloud.google.com/billing/docs/concepts), then this
|
45
45
|
# will be the resource name of the master billing account that it is being
|
46
46
|
# resold through.
|
47
47
|
# Otherwise this will be empty.
|
48
48
|
class BillingAccount
|
49
|
-
include Google::Protobuf::MessageExts
|
50
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
51
|
end
|
52
52
|
|
53
53
|
# Encapsulation of billing information for a GCP Console project. A project
|
54
54
|
# has at most one associated billing account at a time (but a billing account
|
55
55
|
# can be assigned to multiple projects).
|
56
56
|
# @!attribute [rw] name
|
57
|
-
# @return [String]
|
57
|
+
# @return [::String]
|
58
58
|
# The resource name for the `ProjectBillingInfo`; has the form
|
59
59
|
# `projects/{project_id}/billingInfo`. For example, the resource name for the
|
60
60
|
# billing information for project `tokyo-rain-123` would be
|
61
61
|
# `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
62
62
|
# @!attribute [rw] project_id
|
63
|
-
# @return [String]
|
63
|
+
# @return [::String]
|
64
64
|
# The ID of the project that this `ProjectBillingInfo` represents, such as
|
65
65
|
# `tokyo-rain-123`. This is a convenience field so that you don't need to
|
66
66
|
# parse the `name` field to obtain a project ID. This field is read-only.
|
67
67
|
# @!attribute [rw] billing_account_name
|
68
|
-
# @return [String]
|
68
|
+
# @return [::String]
|
69
69
|
# The resource name of the billing account associated with the project, if
|
70
70
|
# any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
71
71
|
# @!attribute [rw] billing_enabled
|
72
|
-
# @return [Boolean]
|
72
|
+
# @return [::Boolean]
|
73
73
|
# True if the project is associated with an open billing account, to which
|
74
74
|
# usage on the project is charged. False if the project is associated with a
|
75
75
|
# closed billing account, or no billing account at all, and therefore cannot
|
76
76
|
# use paid services. This field is read-only.
|
77
77
|
class ProjectBillingInfo
|
78
|
-
include Google::Protobuf::MessageExts
|
79
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
80
|
end
|
81
81
|
|
82
82
|
# Request message for `GetBillingAccount`.
|
83
83
|
# @!attribute [rw] name
|
84
|
-
# @return [String]
|
84
|
+
# @return [::String]
|
85
85
|
# Required. The resource name of the billing account to retrieve. For example,
|
86
86
|
# `billingAccounts/012345-567890-ABCDEF`.
|
87
87
|
class GetBillingAccountRequest
|
88
|
-
include Google::Protobuf::MessageExts
|
89
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
90
|
end
|
91
91
|
|
92
92
|
# Request message for `ListBillingAccounts`.
|
93
93
|
# @!attribute [rw] page_size
|
94
|
-
# @return [Integer]
|
94
|
+
# @return [::Integer]
|
95
95
|
# Requested page size. The maximum page size is 100; this is also the
|
96
96
|
# default.
|
97
97
|
# @!attribute [rw] page_token
|
98
|
-
# @return [String]
|
98
|
+
# @return [::String]
|
99
99
|
# A token identifying a page of results to return. This should be a
|
100
100
|
# `next_page_token` value returned from a previous `ListBillingAccounts`
|
101
101
|
# call. If unspecified, the first page of results is returned.
|
102
102
|
# @!attribute [rw] filter
|
103
|
-
# @return [String]
|
103
|
+
# @return [::String]
|
104
104
|
# Options for how to filter the returned billing accounts.
|
105
105
|
# Currently this only supports filtering for
|
106
106
|
# [subaccounts](https://cloud.google.com/billing/docs/concepts) under a
|
@@ -108,108 +108,108 @@ module Google
|
|
108
108
|
# (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
|
109
109
|
# Boolean algebra and other fields are not currently supported.
|
110
110
|
class ListBillingAccountsRequest
|
111
|
-
include Google::Protobuf::MessageExts
|
112
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
113
|
end
|
114
114
|
|
115
115
|
# Response message for `ListBillingAccounts`.
|
116
116
|
# @!attribute [rw] billing_accounts
|
117
|
-
# @return [Array
|
117
|
+
# @return [::Array<::Google::Cloud::Billing::V1::BillingAccount>]
|
118
118
|
# A list of billing accounts.
|
119
119
|
# @!attribute [rw] next_page_token
|
120
|
-
# @return [String]
|
120
|
+
# @return [::String]
|
121
121
|
# A token to retrieve the next page of results. To retrieve the next page,
|
122
122
|
# call `ListBillingAccounts` again with the `page_token` field set to this
|
123
123
|
# value. This field is empty if there are no more results to retrieve.
|
124
124
|
class ListBillingAccountsResponse
|
125
|
-
include Google::Protobuf::MessageExts
|
126
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
127
|
end
|
128
128
|
|
129
129
|
# Request message for `CreateBillingAccount`.
|
130
130
|
# @!attribute [rw] billing_account
|
131
|
-
# @return [Google::Cloud::Billing::V1::BillingAccount]
|
131
|
+
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
132
132
|
# Required. The billing account resource to create.
|
133
133
|
# Currently CreateBillingAccount only supports subaccount creation, so
|
134
134
|
# any created billing accounts must be under a provided master billing
|
135
135
|
# account.
|
136
136
|
class CreateBillingAccountRequest
|
137
|
-
include Google::Protobuf::MessageExts
|
138
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
139
|
end
|
140
140
|
|
141
141
|
# Request message for `UpdateBillingAccount`.
|
142
142
|
# @!attribute [rw] name
|
143
|
-
# @return [String]
|
143
|
+
# @return [::String]
|
144
144
|
# Required. The name of the billing account resource to be updated.
|
145
145
|
# @!attribute [rw] account
|
146
|
-
# @return [Google::Cloud::Billing::V1::BillingAccount]
|
146
|
+
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
147
147
|
# Required. The billing account resource to replace the resource on the server.
|
148
148
|
# @!attribute [rw] update_mask
|
149
|
-
# @return [Google::Protobuf::FieldMask]
|
149
|
+
# @return [::Google::Protobuf::FieldMask]
|
150
150
|
# The update mask applied to the resource.
|
151
151
|
# Only "display_name" is currently supported.
|
152
152
|
class UpdateBillingAccountRequest
|
153
|
-
include Google::Protobuf::MessageExts
|
154
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
155
|
end
|
156
156
|
|
157
157
|
# Request message for `ListProjectBillingInfo`.
|
158
158
|
# @!attribute [rw] name
|
159
|
-
# @return [String]
|
159
|
+
# @return [::String]
|
160
160
|
# Required. The resource name of the billing account associated with the projects that
|
161
161
|
# you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
162
162
|
# @!attribute [rw] page_size
|
163
|
-
# @return [Integer]
|
163
|
+
# @return [::Integer]
|
164
164
|
# Requested page size. The maximum page size is 100; this is also the
|
165
165
|
# default.
|
166
166
|
# @!attribute [rw] page_token
|
167
|
-
# @return [String]
|
167
|
+
# @return [::String]
|
168
168
|
# A token identifying a page of results to be returned. This should be a
|
169
169
|
# `next_page_token` value returned from a previous `ListProjectBillingInfo`
|
170
170
|
# call. If unspecified, the first page of results is returned.
|
171
171
|
class ListProjectBillingInfoRequest
|
172
|
-
include Google::Protobuf::MessageExts
|
173
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
174
|
end
|
175
175
|
|
176
176
|
# Request message for `ListProjectBillingInfoResponse`.
|
177
177
|
# @!attribute [rw] project_billing_info
|
178
|
-
# @return [Array
|
178
|
+
# @return [::Array<::Google::Cloud::Billing::V1::ProjectBillingInfo>]
|
179
179
|
# A list of `ProjectBillingInfo` resources representing the projects
|
180
180
|
# associated with the billing account.
|
181
181
|
# @!attribute [rw] next_page_token
|
182
|
-
# @return [String]
|
182
|
+
# @return [::String]
|
183
183
|
# A token to retrieve the next page of results. To retrieve the next page,
|
184
184
|
# call `ListProjectBillingInfo` again with the `page_token` field set to this
|
185
185
|
# value. This field is empty if there are no more results to retrieve.
|
186
186
|
class ListProjectBillingInfoResponse
|
187
|
-
include Google::Protobuf::MessageExts
|
188
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
187
|
+
include ::Google::Protobuf::MessageExts
|
188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
189
189
|
end
|
190
190
|
|
191
191
|
# Request message for `GetProjectBillingInfo`.
|
192
192
|
# @!attribute [rw] name
|
193
|
-
# @return [String]
|
193
|
+
# @return [::String]
|
194
194
|
# Required. The resource name of the project for which billing information is
|
195
195
|
# retrieved. For example, `projects/tokyo-rain-123`.
|
196
196
|
class GetProjectBillingInfoRequest
|
197
|
-
include Google::Protobuf::MessageExts
|
198
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
197
|
+
include ::Google::Protobuf::MessageExts
|
198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
199
|
end
|
200
200
|
|
201
201
|
# Request message for `UpdateProjectBillingInfo`.
|
202
202
|
# @!attribute [rw] name
|
203
|
-
# @return [String]
|
203
|
+
# @return [::String]
|
204
204
|
# Required. The resource name of the project associated with the billing information
|
205
205
|
# that you want to update. For example, `projects/tokyo-rain-123`.
|
206
206
|
# @!attribute [rw] project_billing_info
|
207
|
-
# @return [Google::Cloud::Billing::V1::ProjectBillingInfo]
|
207
|
+
# @return [::Google::Cloud::Billing::V1::ProjectBillingInfo]
|
208
208
|
# The new billing information for the project. Read-only fields are ignored;
|
209
209
|
# thus, you can leave empty all fields except `billing_account_name`.
|
210
210
|
class UpdateProjectBillingInfoRequest
|
211
|
-
include Google::Protobuf::MessageExts
|
212
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
211
|
+
include ::Google::Protobuf::MessageExts
|
212
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
213
213
|
end
|
214
214
|
end
|
215
215
|
end
|
@@ -23,82 +23,82 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Encapsulates a single service in Google Cloud Platform.
|
25
25
|
# @!attribute [rw] name
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# The resource name for the service.
|
28
28
|
# Example: "services/DA34-426B-A397"
|
29
29
|
# @!attribute [rw] service_id
|
30
|
-
# @return [String]
|
30
|
+
# @return [::String]
|
31
31
|
# The identifier for the service.
|
32
32
|
# Example: "DA34-426B-A397"
|
33
33
|
# @!attribute [rw] display_name
|
34
|
-
# @return [String]
|
34
|
+
# @return [::String]
|
35
35
|
# A human readable display name for this service.
|
36
36
|
# @!attribute [rw] business_entity_name
|
37
|
-
# @return [String]
|
37
|
+
# @return [::String]
|
38
38
|
# The business under which the service is offered.
|
39
39
|
# Ex. "businessEntities/GCP", "businessEntities/Maps"
|
40
40
|
class Service
|
41
|
-
include Google::Protobuf::MessageExts
|
42
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
43
|
end
|
44
44
|
|
45
45
|
# Encapsulates a single SKU in Google Cloud Platform
|
46
46
|
# @!attribute [rw] name
|
47
|
-
# @return [String]
|
47
|
+
# @return [::String]
|
48
48
|
# The resource name for the SKU.
|
49
49
|
# Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
50
50
|
# @!attribute [rw] sku_id
|
51
|
-
# @return [String]
|
51
|
+
# @return [::String]
|
52
52
|
# The identifier for the SKU.
|
53
53
|
# Example: "AA95-CD31-42FE"
|
54
54
|
# @!attribute [rw] description
|
55
|
-
# @return [String]
|
55
|
+
# @return [::String]
|
56
56
|
# A human readable description of the SKU, has a maximum length of 256
|
57
57
|
# characters.
|
58
58
|
# @!attribute [rw] category
|
59
|
-
# @return [Google::Cloud::Billing::V1::Category]
|
59
|
+
# @return [::Google::Cloud::Billing::V1::Category]
|
60
60
|
# The category hierarchy of this SKU, purely for organizational purpose.
|
61
61
|
# @!attribute [rw] service_regions
|
62
|
-
# @return [Array
|
62
|
+
# @return [::Array<::String>]
|
63
63
|
# List of service regions this SKU is offered at.
|
64
64
|
# Example: "asia-east1"
|
65
65
|
# Service regions can be found at https://cloud.google.com/about/locations/
|
66
66
|
# @!attribute [rw] pricing_info
|
67
|
-
# @return [Array
|
67
|
+
# @return [::Array<::Google::Cloud::Billing::V1::PricingInfo>]
|
68
68
|
# A timeline of pricing info for this SKU in chronological order.
|
69
69
|
# @!attribute [rw] service_provider_name
|
70
|
-
# @return [String]
|
70
|
+
# @return [::String]
|
71
71
|
# Identifies the service provider.
|
72
72
|
# This is 'Google' for first party services in Google Cloud Platform.
|
73
73
|
class Sku
|
74
|
-
include Google::Protobuf::MessageExts
|
75
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
76
|
end
|
77
77
|
|
78
78
|
# Represents the category hierarchy of a SKU.
|
79
79
|
# @!attribute [rw] service_display_name
|
80
|
-
# @return [String]
|
80
|
+
# @return [::String]
|
81
81
|
# The display name of the service this SKU belongs to.
|
82
82
|
# @!attribute [rw] resource_family
|
83
|
-
# @return [String]
|
83
|
+
# @return [::String]
|
84
84
|
# The type of product the SKU refers to.
|
85
85
|
# Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
|
86
86
|
# @!attribute [rw] resource_group
|
87
|
-
# @return [String]
|
87
|
+
# @return [::String]
|
88
88
|
# A group classification for related SKUs.
|
89
89
|
# Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
|
90
90
|
# @!attribute [rw] usage_type
|
91
|
-
# @return [String]
|
91
|
+
# @return [::String]
|
92
92
|
# Represents how the SKU is consumed.
|
93
93
|
# Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
|
94
94
|
class Category
|
95
|
-
include Google::Protobuf::MessageExts
|
96
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
97
|
end
|
98
98
|
|
99
99
|
# Represents the pricing information for a SKU at a single point of time.
|
100
100
|
# @!attribute [rw] effective_time
|
101
|
-
# @return [Google::Protobuf::Timestamp]
|
101
|
+
# @return [::Google::Protobuf::Timestamp]
|
102
102
|
# The timestamp from which this pricing was effective within the requested
|
103
103
|
# time range. This is guaranteed to be greater than or equal to the
|
104
104
|
# start_time field in the request and less than the end_time field in the
|
@@ -106,26 +106,26 @@ module Google
|
|
106
106
|
# be equivalent to a time within the last 12 hours, indicating the latest
|
107
107
|
# pricing info.
|
108
108
|
# @!attribute [rw] summary
|
109
|
-
# @return [String]
|
109
|
+
# @return [::String]
|
110
110
|
# An optional human readable summary of the pricing information, has a
|
111
111
|
# maximum length of 256 characters.
|
112
112
|
# @!attribute [rw] pricing_expression
|
113
|
-
# @return [Google::Cloud::Billing::V1::PricingExpression]
|
113
|
+
# @return [::Google::Cloud::Billing::V1::PricingExpression]
|
114
114
|
# Expresses the pricing formula. See `PricingExpression` for an example.
|
115
115
|
# @!attribute [rw] aggregation_info
|
116
|
-
# @return [Google::Cloud::Billing::V1::AggregationInfo]
|
116
|
+
# @return [::Google::Cloud::Billing::V1::AggregationInfo]
|
117
117
|
# Aggregation Info. This can be left unspecified if the pricing expression
|
118
118
|
# doesn't require aggregation.
|
119
119
|
# @!attribute [rw] currency_conversion_rate
|
120
|
-
# @return [Float]
|
120
|
+
# @return [::Float]
|
121
121
|
# Conversion rate used for currency conversion, from USD to the currency
|
122
122
|
# specified in the request. This includes any surcharge collected for billing
|
123
123
|
# in non USD currency. If a currency is not specified in the request this
|
124
124
|
# defaults to 1.0.
|
125
125
|
# Example: USD * currency_conversion_rate = JPY
|
126
126
|
class PricingInfo
|
127
|
-
include Google::Protobuf::MessageExts
|
128
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
129
|
end
|
130
130
|
|
131
131
|
# Expresses a mathematical pricing formula. For Example:-
|
@@ -139,30 +139,30 @@ module Google
|
|
139
139
|
# next 80GB is priced at $10 per GB followed by $5 per GB for additional
|
140
140
|
# usage.
|
141
141
|
# @!attribute [rw] usage_unit
|
142
|
-
# @return [String]
|
142
|
+
# @return [::String]
|
143
143
|
# The short hand for unit of usage this pricing is specified in.
|
144
144
|
# Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
|
145
145
|
# @!attribute [rw] usage_unit_description
|
146
|
-
# @return [String]
|
146
|
+
# @return [::String]
|
147
147
|
# The unit of usage in human readable form.
|
148
148
|
# Example: "gibi byte".
|
149
149
|
# @!attribute [rw] base_unit
|
150
|
-
# @return [String]
|
150
|
+
# @return [::String]
|
151
151
|
# The base unit for the SKU which is the unit used in usage exports.
|
152
152
|
# Example: "By"
|
153
153
|
# @!attribute [rw] base_unit_description
|
154
|
-
# @return [String]
|
154
|
+
# @return [::String]
|
155
155
|
# The base unit in human readable form.
|
156
156
|
# Example: "byte".
|
157
157
|
# @!attribute [rw] base_unit_conversion_factor
|
158
|
-
# @return [Float]
|
158
|
+
# @return [::Float]
|
159
159
|
# Conversion factor for converting from price per usage_unit to price per
|
160
160
|
# base_unit, and start_usage_amount to start_usage_amount in base_unit.
|
161
161
|
# unit_price / base_unit_conversion_factor = price per base_unit.
|
162
162
|
# start_usage_amount * base_unit_conversion_factor = start_usage_amount in
|
163
163
|
# base_unit.
|
164
164
|
# @!attribute [rw] display_quantity
|
165
|
-
# @return [Float]
|
165
|
+
# @return [::Float]
|
166
166
|
# The recommended quantity of units for displaying pricing info. When
|
167
167
|
# displaying pricing info it is recommended to display:
|
168
168
|
# (unit_price * display_quantity) per display_quantity usage_unit.
|
@@ -172,43 +172,43 @@ module Google
|
|
172
172
|
# the display_quantity is "1000" then the recommended way of displaying the
|
173
173
|
# pricing info is "0.10 USD per 1000 GB"
|
174
174
|
# @!attribute [rw] tiered_rates
|
175
|
-
# @return [Array
|
175
|
+
# @return [::Array<::Google::Cloud::Billing::V1::PricingExpression::TierRate>]
|
176
176
|
# The list of tiered rates for this pricing. The total cost is computed by
|
177
177
|
# applying each of the tiered rates on usage. This repeated list is sorted
|
178
178
|
# by ascending order of start_usage_amount.
|
179
179
|
class PricingExpression
|
180
|
-
include Google::Protobuf::MessageExts
|
181
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
182
|
|
183
183
|
# The price rate indicating starting usage and its corresponding price.
|
184
184
|
# @!attribute [rw] start_usage_amount
|
185
|
-
# @return [Float]
|
185
|
+
# @return [::Float]
|
186
186
|
# Usage is priced at this rate only after this amount.
|
187
187
|
# Example: start_usage_amount of 10 indicates that the usage will be priced
|
188
188
|
# at the unit_price after the first 10 usage_units.
|
189
189
|
# @!attribute [rw] unit_price
|
190
|
-
# @return [Google::Type::Money]
|
190
|
+
# @return [::Google::Type::Money]
|
191
191
|
# The price per unit of usage.
|
192
192
|
# Example: unit_price of amount $10 indicates that each unit will cost $10.
|
193
193
|
class TierRate
|
194
|
-
include Google::Protobuf::MessageExts
|
195
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
include ::Google::Protobuf::MessageExts
|
195
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
199
199
|
# Represents the aggregation level and interval for pricing of a single SKU.
|
200
200
|
# @!attribute [rw] aggregation_level
|
201
|
-
# @return [Google::Cloud::Billing::V1::AggregationInfo::AggregationLevel]
|
201
|
+
# @return [::Google::Cloud::Billing::V1::AggregationInfo::AggregationLevel]
|
202
202
|
# @!attribute [rw] aggregation_interval
|
203
|
-
# @return [Google::Cloud::Billing::V1::AggregationInfo::AggregationInterval]
|
203
|
+
# @return [::Google::Cloud::Billing::V1::AggregationInfo::AggregationInterval]
|
204
204
|
# @!attribute [rw] aggregation_count
|
205
|
-
# @return [Integer]
|
205
|
+
# @return [::Integer]
|
206
206
|
# The number of intervals to aggregate over.
|
207
207
|
# Example: If aggregation_level is "DAILY" and aggregation_count is 14,
|
208
208
|
# aggregation will be over 14 days.
|
209
209
|
class AggregationInfo
|
210
|
-
include Google::Protobuf::MessageExts
|
211
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
210
|
+
include ::Google::Protobuf::MessageExts
|
211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
212
212
|
|
213
213
|
# The level at which usage is aggregated to compute cost.
|
214
214
|
# Example: "ACCOUNT" aggregation level indicates that usage for tiered
|
@@ -235,39 +235,39 @@ module Google
|
|
235
235
|
|
236
236
|
# Request message for `ListServices`.
|
237
237
|
# @!attribute [rw] page_size
|
238
|
-
# @return [Integer]
|
238
|
+
# @return [::Integer]
|
239
239
|
# Requested page size. Defaults to 5000.
|
240
240
|
# @!attribute [rw] page_token
|
241
|
-
# @return [String]
|
241
|
+
# @return [::String]
|
242
242
|
# A token identifying a page of results to return. This should be a
|
243
243
|
# `next_page_token` value returned from a previous `ListServices`
|
244
244
|
# call. If unspecified, the first page of results is returned.
|
245
245
|
class ListServicesRequest
|
246
|
-
include Google::Protobuf::MessageExts
|
247
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
246
|
+
include ::Google::Protobuf::MessageExts
|
247
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
248
248
|
end
|
249
249
|
|
250
250
|
# Response message for `ListServices`.
|
251
251
|
# @!attribute [rw] services
|
252
|
-
# @return [Array
|
252
|
+
# @return [::Array<::Google::Cloud::Billing::V1::Service>]
|
253
253
|
# A list of services.
|
254
254
|
# @!attribute [rw] next_page_token
|
255
|
-
# @return [String]
|
255
|
+
# @return [::String]
|
256
256
|
# A token to retrieve the next page of results. To retrieve the next page,
|
257
257
|
# call `ListServices` again with the `page_token` field set to this
|
258
258
|
# value. This field is empty if there are no more results to retrieve.
|
259
259
|
class ListServicesResponse
|
260
|
-
include Google::Protobuf::MessageExts
|
261
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
262
|
end
|
263
263
|
|
264
264
|
# Request message for `ListSkus`.
|
265
265
|
# @!attribute [rw] parent
|
266
|
-
# @return [String]
|
266
|
+
# @return [::String]
|
267
267
|
# Required. The name of the service.
|
268
268
|
# Example: "services/DA34-426B-A397"
|
269
269
|
# @!attribute [rw] start_time
|
270
|
-
# @return [Google::Protobuf::Timestamp]
|
270
|
+
# @return [::Google::Protobuf::Timestamp]
|
271
271
|
# Optional inclusive start time of the time range for which the pricing
|
272
272
|
# versions will be returned. Timestamps in the future are not allowed.
|
273
273
|
# The time range has to be within a single calendar month in
|
@@ -275,7 +275,7 @@ module Google
|
|
275
275
|
# specified, the latest pricing will be returned (up to 12 hours old at
|
276
276
|
# most).
|
277
277
|
# @!attribute [rw] end_time
|
278
|
-
# @return [Google::Protobuf::Timestamp]
|
278
|
+
# @return [::Google::Protobuf::Timestamp]
|
279
279
|
# Optional exclusive end time of the time range for which the pricing
|
280
280
|
# versions will be returned. Timestamps in the future are not allowed.
|
281
281
|
# The time range has to be within a single calendar month in
|
@@ -283,35 +283,35 @@ module Google
|
|
283
283
|
# specified, the latest pricing will be returned (up to 12 hours old at
|
284
284
|
# most).
|
285
285
|
# @!attribute [rw] currency_code
|
286
|
-
# @return [String]
|
286
|
+
# @return [::String]
|
287
287
|
# The ISO 4217 currency code for the pricing info in the response proto.
|
288
288
|
# Will use the conversion rate as of start_time.
|
289
289
|
# Optional. If not specified USD will be used.
|
290
290
|
# @!attribute [rw] page_size
|
291
|
-
# @return [Integer]
|
291
|
+
# @return [::Integer]
|
292
292
|
# Requested page size. Defaults to 5000.
|
293
293
|
# @!attribute [rw] page_token
|
294
|
-
# @return [String]
|
294
|
+
# @return [::String]
|
295
295
|
# A token identifying a page of results to return. This should be a
|
296
296
|
# `next_page_token` value returned from a previous `ListSkus`
|
297
297
|
# call. If unspecified, the first page of results is returned.
|
298
298
|
class ListSkusRequest
|
299
|
-
include Google::Protobuf::MessageExts
|
300
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
299
|
+
include ::Google::Protobuf::MessageExts
|
300
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
301
301
|
end
|
302
302
|
|
303
303
|
# Response message for `ListSkus`.
|
304
304
|
# @!attribute [rw] skus
|
305
|
-
# @return [Array
|
305
|
+
# @return [::Array<::Google::Cloud::Billing::V1::Sku>]
|
306
306
|
# The list of public SKUs of the given service.
|
307
307
|
# @!attribute [rw] next_page_token
|
308
|
-
# @return [String]
|
308
|
+
# @return [::String]
|
309
309
|
# A token to retrieve the next page of results. To retrieve the next page,
|
310
310
|
# call `ListSkus` again with the `page_token` field set to this
|
311
311
|
# value. This field is empty if there are no more results to retrieve.
|
312
312
|
class ListSkusResponse
|
313
|
-
include Google::Protobuf::MessageExts
|
314
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
313
|
+
include ::Google::Protobuf::MessageExts
|
314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
315
315
|
end
|
316
316
|
end
|
317
317
|
end
|