google-apis-billingbudgets_v1 0.9.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/billingbudgets_v1/classes.rb +61 -62
- data/lib/google/apis/billingbudgets_v1/gem_version.rb +3 -3
- data/lib/google/apis/billingbudgets_v1.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa2d0e6c650d297d9e006510d2c37750fee7087b0e905928dbaa11388c65d3dd
|
4
|
+
data.tar.gz: c9e755203343055b79900f5478b0b9660124cd26a2f13387d55460e366ba4f20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4c31b3bf975178a71f368df2d443991636353afdf141a0f4fbde3a1cac81e8ee053b588e4f42d47f913bc8073c9926b0fc6020716b40fed36ed4d41dc7b924
|
7
|
+
data.tar.gz: '0866194a5bc3ca8e0a2e3dfa59c5d043fa82bcada01d8ddda08bbc33dc148c6fa9ea47f5b0e89a60e8c2b38913f9dba350efb42ec6ac283c74e8264938b71165'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-billingbudgets_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2022-02-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220129
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.12.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.11.0 (2021-10-20)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.10.0 (2021-09-01)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210813
|
19
|
+
|
3
20
|
### v0.9.0 (2021-06-29)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.4.0
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/billingbudgets_v1"
|
|
51
51
|
client = Google::Apis::BillingbudgetsV1::CloudBillingBudgetService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Billingbudgets service in particular.)
|
67
67
|
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
attr_accessor :display_name
|
48
48
|
|
49
49
|
# Optional. Etag to validate that the object is unchanged for a read-modify-
|
50
|
-
# write operation. An empty etag
|
50
|
+
# write operation. An empty etag causes an update to overwrite other changes.
|
51
51
|
# Corresponds to the JSON property `etag`
|
52
52
|
# @return [String]
|
53
53
|
attr_accessor :etag
|
@@ -94,10 +94,8 @@ module Google
|
|
94
94
|
|
95
95
|
# Describes a budget amount targeted to the last Filter.calendar_period spend.
|
96
96
|
# At this time, the amount is automatically 100% of the last calendar period's
|
97
|
-
# spend; that is, there are no other options yet.
|
98
|
-
#
|
99
|
-
# spend). LastPeriodAmount cannot be set for a budget configured with a Filter.
|
100
|
-
# custom_period.
|
97
|
+
# spend; that is, there are no other options yet. LastPeriodAmount cannot be set
|
98
|
+
# for a budget configured with a Filter.custom_period.
|
101
99
|
# Corresponds to the JSON property `lastPeriodAmount`
|
102
100
|
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount]
|
103
101
|
attr_accessor :last_period_amount
|
@@ -122,26 +120,14 @@ module Google
|
|
122
120
|
class GoogleCloudBillingBudgetsV1CustomPeriod
|
123
121
|
include Google::Apis::Core::Hashable
|
124
122
|
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
129
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
130
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
131
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
132
|
-
# google.protobuf.Timestamp`.
|
123
|
+
# Optional. The end date of the time period. Budgets with elapsed end date won't
|
124
|
+
# be processed. If unset, specifies to track all usage incurred since the
|
125
|
+
# start_date.
|
133
126
|
# Corresponds to the JSON property `endDate`
|
134
127
|
# @return [Google::Apis::BillingbudgetsV1::GoogleTypeDate]
|
135
128
|
attr_accessor :end_date
|
136
129
|
|
137
|
-
#
|
138
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
139
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
140
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
141
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
142
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
143
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
144
|
-
# google.protobuf.Timestamp`.
|
130
|
+
# Required. The start date must be after January 1, 2017.
|
145
131
|
# Corresponds to the JSON property `startDate`
|
146
132
|
# @return [Google::Apis::BillingbudgetsV1::GoogleTypeDate]
|
147
133
|
attr_accessor :start_date
|
@@ -162,10 +148,10 @@ module Google
|
|
162
148
|
include Google::Apis::Core::Hashable
|
163
149
|
|
164
150
|
# Optional. Specifies to track usage for recurring calendar period. For example,
|
165
|
-
# assume that CalendarPeriod.QUARTER is set. The budget
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
151
|
+
# assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April
|
152
|
+
# 1 to June 30, when the current calendar month is April, May, June. After that,
|
153
|
+
# it tracks usage from July 1 to September 30 when the current calendar month is
|
154
|
+
# July, August, September, so on.
|
169
155
|
# Corresponds to the JSON property `calendarPeriod`
|
170
156
|
# @return [String]
|
171
157
|
attr_accessor :calendar_period
|
@@ -191,27 +177,28 @@ module Google
|
|
191
177
|
attr_accessor :custom_period
|
192
178
|
|
193
179
|
# Optional. A single label and value pair specifying that usage from only this
|
194
|
-
# set of labeled resources should be included in the budget.
|
195
|
-
#
|
196
|
-
#
|
180
|
+
# set of labeled resources should be included in the budget. If omitted, the
|
181
|
+
# report includes all labeled and unlabeled usage. An object containing a single
|
182
|
+
# `"key": value` pair. Example: `` "name": "wrench" ``. _Currently, multiple
|
183
|
+
# entries or multiple values per entry are not allowed._
|
197
184
|
# Corresponds to the JSON property `labels`
|
198
185
|
# @return [Hash<String,Array<Object>>]
|
199
186
|
attr_accessor :labels
|
200
187
|
|
201
188
|
# Optional. A set of projects of the form `projects/`project``, specifying that
|
202
189
|
# usage from only this set of projects should be included in the budget. If
|
203
|
-
# omitted, the report
|
204
|
-
#
|
205
|
-
#
|
190
|
+
# omitted, the report includes all usage for the billing account, regardless of
|
191
|
+
# which project the usage occurred on. Only zero or one project can be specified
|
192
|
+
# currently.
|
206
193
|
# Corresponds to the JSON property `projects`
|
207
194
|
# @return [Array<String>]
|
208
195
|
attr_accessor :projects
|
209
196
|
|
210
197
|
# Optional. A set of services of the form `services/`service_id``, specifying
|
211
198
|
# that usage from only this set of services should be included in the budget. If
|
212
|
-
# omitted, the report
|
213
|
-
#
|
214
|
-
#
|
199
|
+
# omitted, the report includes usage for all the services. The service names are
|
200
|
+
# available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/
|
201
|
+
# catalog-api.
|
215
202
|
# Corresponds to the JSON property `services`
|
216
203
|
# @return [Array<String>]
|
217
204
|
attr_accessor :services
|
@@ -219,8 +206,8 @@ module Google
|
|
219
206
|
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
|
220
207
|
# specifying that usage from only this set of subaccounts should be included in
|
221
208
|
# the budget. If a subaccount is set to the name of the parent account, usage
|
222
|
-
# from the parent account
|
223
|
-
#
|
209
|
+
# from the parent account is included. If the field is omitted, the report
|
210
|
+
# includes usage from the parent account and all subaccounts, if they exist.
|
224
211
|
# Corresponds to the JSON property `subaccounts`
|
225
212
|
# @return [Array<String>]
|
226
213
|
attr_accessor :subaccounts
|
@@ -244,10 +231,8 @@ module Google
|
|
244
231
|
|
245
232
|
# Describes a budget amount targeted to the last Filter.calendar_period spend.
|
246
233
|
# At this time, the amount is automatically 100% of the last calendar period's
|
247
|
-
# spend; that is, there are no other options yet.
|
248
|
-
#
|
249
|
-
# spend). LastPeriodAmount cannot be set for a budget configured with a Filter.
|
250
|
-
# custom_period.
|
234
|
+
# spend; that is, there are no other options yet. LastPeriodAmount cannot be set
|
235
|
+
# for a budget configured with a Filter.custom_period.
|
251
236
|
class GoogleCloudBillingBudgetsV1LastPeriodAmount
|
252
237
|
include Google::Apis::Core::Hashable
|
253
238
|
|
@@ -300,25 +285,46 @@ module Google
|
|
300
285
|
attr_accessor :disable_default_iam_recipients
|
301
286
|
alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
|
302
287
|
|
303
|
-
# Optional.
|
304
|
-
# is in addition to
|
305
|
-
#
|
306
|
-
# the form `projects/`
|
307
|
-
#
|
308
|
-
#
|
288
|
+
# Optional. Email targets to send notifications to when a threshold is exceeded.
|
289
|
+
# This is in addition to the `DefaultIamRecipients` who receive alert emails
|
290
|
+
# based on their billing account IAM role. The value is the full REST resource
|
291
|
+
# name of a Cloud Monitoring email notification channel with the form `projects/`
|
292
|
+
# project_id`/notificationChannels/`channel_id``. A maximum of 5 email
|
293
|
+
# notifications are allowed. To customize budget alert email recipients with
|
294
|
+
# monitoring notification channels, you _must create the monitoring notification
|
295
|
+
# channels before you link them to a budget_. For guidance on setting up
|
296
|
+
# notification channels to use with budgets, see [Customize budget alert email
|
297
|
+
# recipients](https://cloud.google.com/billing/docs/how-to/budgets-notification-
|
298
|
+
# recipients). For Cloud Billing budget alerts, you _must use email notification
|
299
|
+
# channels_. The other types of notification channels are _not_ supported, such
|
300
|
+
# as Slack, SMS, or PagerDuty. If you want to [send budget notifications to
|
301
|
+
# Slack](https://cloud.google.com/billing/docs/how-to/notify#
|
302
|
+
# send_notifications_to_slack), use a pubsubTopic and configure [programmatic
|
303
|
+
# notifications](https://cloud.google.com/billing/docs/how-to/budgets-
|
304
|
+
# programmatic-notifications).
|
309
305
|
# Corresponds to the JSON property `monitoringNotificationChannels`
|
310
306
|
# @return [Array<String>]
|
311
307
|
attr_accessor :monitoring_notification_channels
|
312
308
|
|
313
|
-
# Optional. The name of the Pub/Sub topic where budget
|
309
|
+
# Optional. The name of the Pub/Sub topic where budget-related messages are
|
314
310
|
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates are
|
315
|
-
# sent at regular intervals
|
316
|
-
# the
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
311
|
+
# sent to the topic at regular intervals; the timing of the updates is not
|
312
|
+
# dependent on the [threshold rules](#thresholdrule) you've set. Note that if
|
313
|
+
# you want your [Pub/Sub JSON object](https://cloud.google.com/billing/docs/how-
|
314
|
+
# to/budgets-programmatic-notifications#notification_format) to contain data for
|
315
|
+
# `alertThresholdExceeded`, you need at least one [alert threshold rule](#
|
316
|
+
# thresholdrule). When you set threshold rules, you must also enable at least
|
317
|
+
# one of the email notification options, either using the default IAM recipients
|
318
|
+
# or Cloud Monitoring email notification channels. To use Pub/Sub topics with
|
319
|
+
# budgets, you must do the following: 1. Create the Pub/Sub topic before
|
320
|
+
# connecting it to your budget. For guidance, see [Manage programmatic budget
|
321
|
+
# alert notifications](https://cloud.google.com/billing/docs/how-to/budgets-
|
322
|
+
# programmatic-notifications). 2. Grant the API caller the `pubsub.topics.
|
323
|
+
# setIamPolicy` permission on the Pub/Sub topic. If not set, the API call fails
|
324
|
+
# with PERMISSION_DENIED. For additional details on Pub/Sub roles and
|
325
|
+
# permissions, see [Permissions required for this task](https://cloud.google.com/
|
326
|
+
# billing/docs/how-to/budgets-programmatic-notifications#
|
327
|
+
# permissions_required_for_this_task).
|
322
328
|
# Corresponds to the JSON property `pubsubTopic`
|
323
329
|
# @return [String]
|
324
330
|
attr_accessor :pubsub_topic
|
@@ -400,14 +406,7 @@ module Google
|
|
400
406
|
end
|
401
407
|
end
|
402
408
|
|
403
|
-
#
|
404
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
405
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
406
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
407
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
408
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
409
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
410
|
-
# google.protobuf.Timestamp`.
|
409
|
+
#
|
411
410
|
class GoogleTypeDate
|
412
411
|
include Google::Apis::Core::Hashable
|
413
412
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BillingbudgetsV1
|
18
18
|
# Version of the google-apis-billingbudgets_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220129"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
# View and manage your Google Cloud Platform billing accounts
|
34
34
|
AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'
|
35
35
|
|
36
|
-
# See, edit, configure, and delete your Google Cloud
|
36
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
37
37
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-billingbudgets_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-billingbudgets_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1/v0.13.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-billingbudgets_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Billing Budget API V1
|