google-apis-billingbudgets_v1 0.8.0 → 0.12.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 +16 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/billingbudgets_v1/classes.rb +56 -38
- data/lib/google/apis/billingbudgets_v1/gem_version.rb +3 -3
- data/lib/google/apis/billingbudgets_v1.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56fe84917e91d0aed6fea0372b84af7407a174a9fcbbb3de7623629fb522d4d
|
4
|
+
data.tar.gz: c49f73a92d54680f45450349e09510feec20b14c9943636fbe5a04fbd2ccffc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39071462f66ac9869ed3b04215ca9423469a35947e63201d7e7673a3f0ecc31b206936a4f39448c4b67e0b862956f7ab6e5bc594983ce0551fae07b3d67b0fd
|
7
|
+
data.tar.gz: d03dc74bd44dc722de1fda5c272da53fd7d4629af60dc5954579b78e9d96c16d1e5f2c5aba1d8fc9e68ccd7e08e859a4c15d3a6bafbb149f67474f2a69a8b8ae
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-billingbudgets_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.11.0 (2021-10-20)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.10.0 (2021-09-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210813
|
14
|
+
|
15
|
+
### v0.9.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated using generator version 0.4.0
|
18
|
+
|
3
19
|
### v0.8.0 (2021-06-24)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210621
|
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
|
@@ -162,10 +160,10 @@ module Google
|
|
162
160
|
include Google::Apis::Core::Hashable
|
163
161
|
|
164
162
|
# Optional. Specifies to track usage for recurring calendar period. For example,
|
165
|
-
# assume that CalendarPeriod.QUARTER is set. The budget
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
163
|
+
# assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April
|
164
|
+
# 1 to June 30, when the current calendar month is April, May, June. After that,
|
165
|
+
# it tracks usage from July 1 to September 30 when the current calendar month is
|
166
|
+
# July, August, September, so on.
|
169
167
|
# Corresponds to the JSON property `calendarPeriod`
|
170
168
|
# @return [String]
|
171
169
|
attr_accessor :calendar_period
|
@@ -191,27 +189,28 @@ module Google
|
|
191
189
|
attr_accessor :custom_period
|
192
190
|
|
193
191
|
# 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
|
-
#
|
192
|
+
# set of labeled resources should be included in the budget. If omitted, the
|
193
|
+
# report includes all labeled and unlabeled usage. An object containing a single
|
194
|
+
# `"key": value` pair. Example: `` "name": "wrench" ``. _Currently, multiple
|
195
|
+
# entries or multiple values per entry are not allowed._
|
197
196
|
# Corresponds to the JSON property `labels`
|
198
197
|
# @return [Hash<String,Array<Object>>]
|
199
198
|
attr_accessor :labels
|
200
199
|
|
201
200
|
# Optional. A set of projects of the form `projects/`project``, specifying that
|
202
201
|
# usage from only this set of projects should be included in the budget. If
|
203
|
-
# omitted, the report
|
204
|
-
#
|
205
|
-
#
|
202
|
+
# omitted, the report includes all usage for the billing account, regardless of
|
203
|
+
# which project the usage occurred on. Only zero or one project can be specified
|
204
|
+
# currently.
|
206
205
|
# Corresponds to the JSON property `projects`
|
207
206
|
# @return [Array<String>]
|
208
207
|
attr_accessor :projects
|
209
208
|
|
210
209
|
# Optional. A set of services of the form `services/`service_id``, specifying
|
211
210
|
# that usage from only this set of services should be included in the budget. If
|
212
|
-
# omitted, the report
|
213
|
-
#
|
214
|
-
#
|
211
|
+
# omitted, the report includes usage for all the services. The service names are
|
212
|
+
# available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/
|
213
|
+
# catalog-api.
|
215
214
|
# Corresponds to the JSON property `services`
|
216
215
|
# @return [Array<String>]
|
217
216
|
attr_accessor :services
|
@@ -219,8 +218,8 @@ module Google
|
|
219
218
|
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
|
220
219
|
# specifying that usage from only this set of subaccounts should be included in
|
221
220
|
# the budget. If a subaccount is set to the name of the parent account, usage
|
222
|
-
# from the parent account
|
223
|
-
#
|
221
|
+
# from the parent account is included. If the field is omitted, the report
|
222
|
+
# includes usage from the parent account and all subaccounts, if they exist.
|
224
223
|
# Corresponds to the JSON property `subaccounts`
|
225
224
|
# @return [Array<String>]
|
226
225
|
attr_accessor :subaccounts
|
@@ -244,10 +243,8 @@ module Google
|
|
244
243
|
|
245
244
|
# Describes a budget amount targeted to the last Filter.calendar_period spend.
|
246
245
|
# 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.
|
246
|
+
# spend; that is, there are no other options yet. LastPeriodAmount cannot be set
|
247
|
+
# for a budget configured with a Filter.custom_period.
|
251
248
|
class GoogleCloudBillingBudgetsV1LastPeriodAmount
|
252
249
|
include Google::Apis::Core::Hashable
|
253
250
|
|
@@ -300,25 +297,46 @@ module Google
|
|
300
297
|
attr_accessor :disable_default_iam_recipients
|
301
298
|
alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
|
302
299
|
|
303
|
-
# Optional.
|
304
|
-
# is in addition to
|
305
|
-
#
|
306
|
-
# the form `projects/`
|
307
|
-
#
|
308
|
-
#
|
300
|
+
# Optional. Email targets to send notifications to when a threshold is exceeded.
|
301
|
+
# This is in addition to the `DefaultIamRecipients` who receive alert emails
|
302
|
+
# based on their billing account IAM role. The value is the full REST resource
|
303
|
+
# name of a Cloud Monitoring email notification channel with the form `projects/`
|
304
|
+
# project_id`/notificationChannels/`channel_id``. A maximum of 5 email
|
305
|
+
# notifications are allowed. To customize budget alert email recipients with
|
306
|
+
# monitoring notification channels, you _must create the monitoring notification
|
307
|
+
# channels before you link them to a budget_. For guidance on setting up
|
308
|
+
# notification channels to use with budgets, see [Customize budget alert email
|
309
|
+
# recipients](https://cloud.google.com/billing/docs/how-to/budgets-notification-
|
310
|
+
# recipients). For Cloud Billing budget alerts, you _must use email notification
|
311
|
+
# channels_. The other types of notification channels are _not_ supported, such
|
312
|
+
# as Slack, SMS, or PagerDuty. If you want to [send budget notifications to
|
313
|
+
# Slack](https://cloud.google.com/billing/docs/how-to/notify#
|
314
|
+
# send_notifications_to_slack), use a pubsubTopic and configure [programmatic
|
315
|
+
# notifications](https://cloud.google.com/billing/docs/how-to/budgets-
|
316
|
+
# programmatic-notifications).
|
309
317
|
# Corresponds to the JSON property `monitoringNotificationChannels`
|
310
318
|
# @return [Array<String>]
|
311
319
|
attr_accessor :monitoring_notification_channels
|
312
320
|
|
313
|
-
# Optional. The name of the Pub/Sub topic where budget
|
321
|
+
# Optional. The name of the Pub/Sub topic where budget-related messages are
|
314
322
|
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates are
|
315
|
-
# sent at regular intervals
|
316
|
-
# the
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
323
|
+
# sent to the topic at regular intervals; the timing of the updates is not
|
324
|
+
# dependent on the [threshold rules](#thresholdrule) you've set. Note that if
|
325
|
+
# you want your [Pub/Sub JSON object](https://cloud.google.com/billing/docs/how-
|
326
|
+
# to/budgets-programmatic-notifications#notification_format) to contain data for
|
327
|
+
# `alertThresholdExceeded`, you need at least one [alert threshold rule](#
|
328
|
+
# thresholdrule). When you set threshold rules, you must also enable at least
|
329
|
+
# one of the email notification options, either using the default IAM recipients
|
330
|
+
# or Cloud Monitoring email notification channels. To use Pub/Sub topics with
|
331
|
+
# budgets, you must do the following: 1. Create the Pub/Sub topic before
|
332
|
+
# connecting it to your budget. For guidance, see [Manage programmatic budget
|
333
|
+
# alert notifications](https://cloud.google.com/billing/docs/how-to/budgets-
|
334
|
+
# programmatic-notifications). 2. Grant the API caller the `pubsub.topics.
|
335
|
+
# setIamPolicy` permission on the Pub/Sub topic. If not set, the API call fails
|
336
|
+
# with PERMISSION_DENIED. For additional details on Pub/Sub roles and
|
337
|
+
# permissions, see [Permissions required for this task](https://cloud.google.com/
|
338
|
+
# billing/docs/how-to/budgets-programmatic-notifications#
|
339
|
+
# permissions_required_for_this_task).
|
322
340
|
# Corresponds to the JSON property `pubsubTopic`
|
323
341
|
# @return [String]
|
324
342
|
attr_accessor :pubsub_topic
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210813"
|
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.12.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-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.12.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.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Billing Budget API V1
|