google-apis-billingbudgets_v1beta1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3951a4681f1f318f38b516aea7096b1816228a2161ca02c96ac1d9bd7727c55
4
- data.tar.gz: 651b5e2d21e94d325b304ccbdb6aa7abef83e6aa6163daa0b82f2757ec78cfd5
3
+ metadata.gz: d54e38557f4e167af039ed5c3f7ff983f7fe203fe8480052ed738e6e0706c1f8
4
+ data.tar.gz: 31eae2a7a31f915089c52373d1721499d8e9308d32f69503564541ed4d5a8640
5
5
  SHA512:
6
- metadata.gz: 9f638168abacf4f18ab6870f6b761a1e105d6463e6223c7f9ab3a7bbe1f78ded684e75cc0958466095ca6b9c6cbe92085ba355eac2704a8b3abb71d772bb18e8
7
- data.tar.gz: 23d151e76cedd81bc842caaa1ba0a1dd7515bdca4a18c1d245d10d8c32bc9bf6ddb3c71349a3d071316a210c08c76d3816092ccf7590a0559e2e4aeb6084bfea
6
+ metadata.gz: 0e7e9802735b01222709c793fa0ac1525bb3559a20b76110cd601bd0f8733a87c8739c28490ad2bd6c1c550ae911aa912c0193324d4be3d0c8ce1657ca78f39d
7
+ data.tar.gz: 03abf5169702698837e3c435b5fd8d51789e5874917823c8cc9ee4ca7791aeeaecfbccf9d35c743b728cb45675acbff62876001e521e47eb0faea26981788ffc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-billingbudgets_v1beta1
2
2
 
3
+ ### v0.6.0 (2021-04-16)
4
+
5
+ * Regenerated from discovery document revision 20210412
6
+
7
+ ### v0.5.0 (2021-03-25)
8
+
9
+ * Regenerated from discovery document revision 20210319
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Regenerated from discovery document revision 20210220
15
+
16
+ ### v0.3.0 (2021-02-17)
17
+
18
+ * Regenerated from discovery document revision 20210213
19
+ * Regenerated using generator version 0.1.2
20
+
21
+ ### v0.2.0 (2021-01-13)
22
+
23
+ * Regenerated from discovery document revision 20210109
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -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
- # View and manage your data across Google Cloud Platform services
36
+ # See, edit, configure, and delete your Google Cloud Platform data
37
37
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
38
  end
39
39
  end
@@ -50,19 +50,20 @@ module Google
50
50
  # published, in the form `projects/`project_id`/topics/`topic_id``. Updates are
51
51
  # sent at regular intervals to the topic. The topic needs to be created before
52
52
  # the budget is created; see https://cloud.google.com/billing/docs/how-to/
53
- # budgets#manage-notifications for more details. Caller is expected to have `
54
- # pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget,
55
- # otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.
56
- # google.com/billing/docs/how-to/budgets-programmatic-notifications for more
57
- # details on Pub/Sub roles and permissions.
53
+ # budgets-programmatic-notifications for more details. Caller is expected to
54
+ # have `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
55
+ # budget, otherwise, the API call will fail with PERMISSION_DENIED. See https://
56
+ # cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#
57
+ # permissions_required_for_this_task for more details on Pub/Sub roles and
58
+ # permissions.
58
59
  # Corresponds to the JSON property `pubsubTopic`
59
60
  # @return [String]
60
61
  attr_accessor :pubsub_topic
61
62
 
62
- # Optional. The schema version of the notification sent to `pubsub_topic`. Only "
63
- # 1.0" is accepted. It represents the JSON schema as defined in https://cloud.
64
- # google.com/billing/docs/how-to/budgets-programmatic-notifications#
65
- # notification_format
63
+ # Optional. Required when AllUpdatesRule.pubsub_topic is set. The schema version
64
+ # of the notification sent to AllUpdatesRule.pubsub_topic. Only "1.0" is
65
+ # accepted. It represents the JSON schema as defined in https://cloud.google.com/
66
+ # billing/docs/how-to/budgets-programmatic-notifications#notification_format.
66
67
  # Corresponds to the JSON property `schemaVersion`
67
68
  # @return [String]
68
69
  attr_accessor :schema_version
@@ -82,9 +83,9 @@ module Google
82
83
 
83
84
  # A budget is a plan that describes what you expect to spend on Cloud projects,
84
85
  # plus the rules to execute as spend is tracked against that plan, (for example,
85
- # send an alert when 90% of the target spend is met). Currently all plans are
86
- # monthly budgets so the usage period(s) tracked are implied (calendar months of
87
- # usage back-to-back).
86
+ # send an alert when 90% of the target spend is met). The budget time period is
87
+ # configurable, with options such as month (default), quarter, year, or custom
88
+ # time period.
88
89
  class GoogleCloudBillingBudgetsV1beta1Budget
89
90
  include Google::Apis::Core::Hashable
90
91
 
@@ -148,10 +149,12 @@ module Google
148
149
  class GoogleCloudBillingBudgetsV1beta1BudgetAmount
149
150
  include Google::Apis::Core::Hashable
150
151
 
151
- # Describes a budget amount targeted to last period's spend. At this time, the
152
- # amount is automatically 100% of last period's spend; that is, there are no
153
- # other options yet. Future configuration will be described here (for example,
154
- # configuring a percentage of last period's spend).
152
+ # Describes a budget amount targeted to the last Filter.calendar_period spend.
153
+ # At this time, the amount is automatically 100% of the last calendar period's
154
+ # spend; that is, there are no other options yet. Future configuration options
155
+ # will be described here (for example, configuring a percentage of last period's
156
+ # spend). LastPeriodAmount cannot be set for a budget configured with a Filter.
157
+ # custom_period.
155
158
  # Corresponds to the JSON property `lastPeriodAmount`
156
159
  # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount]
157
160
  attr_accessor :last_period_amount
@@ -178,9 +181,9 @@ module Google
178
181
 
179
182
  # A budget is a plan that describes what you expect to spend on Cloud projects,
180
183
  # plus the rules to execute as spend is tracked against that plan, (for example,
181
- # send an alert when 90% of the target spend is met). Currently all plans are
182
- # monthly budgets so the usage period(s) tracked are implied (calendar months of
183
- # usage back-to-back).
184
+ # send an alert when 90% of the target spend is met). The budget time period is
185
+ # configurable, with options such as month (default), quarter, year, or custom
186
+ # time period.
184
187
  # Corresponds to the JSON property `budget`
185
188
  # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
186
189
  attr_accessor :budget
@@ -195,16 +198,64 @@ module Google
195
198
  end
196
199
  end
197
200
 
201
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
202
+ class GoogleCloudBillingBudgetsV1beta1CustomPeriod
203
+ include Google::Apis::Core::Hashable
204
+
205
+ # Represents a whole or partial calendar date, such as a birthday. The time of
206
+ # day and time zone are either specified elsewhere or are insignificant. The
207
+ # date is relative to the Gregorian Calendar. This can represent one of the
208
+ # following: * A full date, with non-zero year, month, and day values * A month
209
+ # and day value, with a zero year, such as an anniversary * A year on its own,
210
+ # with zero month and day values * A year and month value, with a zero day, such
211
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
212
+ # google.protobuf.Timestamp`.
213
+ # Corresponds to the JSON property `endDate`
214
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate]
215
+ attr_accessor :end_date
216
+
217
+ # Represents a whole or partial calendar date, such as a birthday. The time of
218
+ # day and time zone are either specified elsewhere or are insignificant. The
219
+ # date is relative to the Gregorian Calendar. This can represent one of the
220
+ # following: * A full date, with non-zero year, month, and day values * A month
221
+ # and day value, with a zero year, such as an anniversary * A year on its own,
222
+ # with zero month and day values * A year and month value, with a zero day, such
223
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
224
+ # google.protobuf.Timestamp`.
225
+ # Corresponds to the JSON property `startDate`
226
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate]
227
+ attr_accessor :start_date
228
+
229
+ def initialize(**args)
230
+ update!(**args)
231
+ end
232
+
233
+ # Update properties of this object
234
+ def update!(**args)
235
+ @end_date = args[:end_date] if args.key?(:end_date)
236
+ @start_date = args[:start_date] if args.key?(:start_date)
237
+ end
238
+ end
239
+
198
240
  # A filter for a budget, limiting the scope of the cost to calculate.
199
241
  class GoogleCloudBillingBudgetsV1beta1Filter
200
242
  include Google::Apis::Core::Hashable
201
243
 
244
+ # Optional. Specifies to track usage for recurring calendar period. For example,
245
+ # assume that CalendarPeriod.QUARTER is set. The budget will track usage from
246
+ # April 1 to June 30, when the current calendar month is April, May, June. After
247
+ # that, it will track usage from July 1 to September 30 when the current
248
+ # calendar month is July, August, September, so on.
249
+ # Corresponds to the JSON property `calendarPeriod`
250
+ # @return [String]
251
+ attr_accessor :calendar_period
252
+
202
253
  # Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this
203
254
  # is a list of credit types to be subtracted from gross cost to determine the
204
- # spend for threshold calculations. If Filter.credit_types_treatment is **not**
205
- # INCLUDE_SPECIFIED_CREDITS, this field must be empty. See [a list of acceptable
206
- # credit type values](https://cloud.google.com/billing/docs/how-to/export-data-
207
- # bigquery-tables#credits-type).
255
+ # spend for threshold calculations. See [a list of acceptable credit type values]
256
+ # (https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#
257
+ # credits-type). If Filter.credit_types_treatment is **not**
258
+ # INCLUDE_SPECIFIED_CREDITS, this field must be empty.
208
259
  # Corresponds to the JSON property `creditTypes`
209
260
  # @return [Array<String>]
210
261
  attr_accessor :credit_types
@@ -214,6 +265,11 @@ module Google
214
265
  # @return [String]
215
266
  attr_accessor :credit_types_treatment
216
267
 
268
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
269
+ # Corresponds to the JSON property `customPeriod`
270
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CustomPeriod]
271
+ attr_accessor :custom_period
272
+
217
273
  # Optional. A single label and value pair specifying that usage from only this
218
274
  # set of labeled resources should be included in the budget. Currently, multiple
219
275
  # entries or multiple values per entry are not allowed. If omitted, the report
@@ -255,8 +311,10 @@ module Google
255
311
 
256
312
  # Update properties of this object
257
313
  def update!(**args)
314
+ @calendar_period = args[:calendar_period] if args.key?(:calendar_period)
258
315
  @credit_types = args[:credit_types] if args.key?(:credit_types)
259
316
  @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
317
+ @custom_period = args[:custom_period] if args.key?(:custom_period)
260
318
  @labels = args[:labels] if args.key?(:labels)
261
319
  @projects = args[:projects] if args.key?(:projects)
262
320
  @services = args[:services] if args.key?(:services)
@@ -264,10 +322,12 @@ module Google
264
322
  end
265
323
  end
266
324
 
267
- # Describes a budget amount targeted to last period's spend. At this time, the
268
- # amount is automatically 100% of last period's spend; that is, there are no
269
- # other options yet. Future configuration will be described here (for example,
270
- # configuring a percentage of last period's spend).
325
+ # Describes a budget amount targeted to the last Filter.calendar_period spend.
326
+ # At this time, the amount is automatically 100% of the last calendar period's
327
+ # spend; that is, there are no other options yet. Future configuration options
328
+ # will be described here (for example, configuring a percentage of last period's
329
+ # spend). LastPeriodAmount cannot be set for a budget configured with a Filter.
330
+ # custom_period.
271
331
  class GoogleCloudBillingBudgetsV1beta1LastPeriodAmount
272
332
  include Google::Apis::Core::Hashable
273
333
 
@@ -344,9 +404,9 @@ module Google
344
404
 
345
405
  # A budget is a plan that describes what you expect to spend on Cloud projects,
346
406
  # plus the rules to execute as spend is tracked against that plan, (for example,
347
- # send an alert when 90% of the target spend is met). Currently all plans are
348
- # monthly budgets so the usage period(s) tracked are implied (calendar months of
349
- # usage back-to-back).
407
+ # send an alert when 90% of the target spend is met). The budget time period is
408
+ # configurable, with options such as month (default), quarter, year, or custom
409
+ # time period.
350
410
  # Corresponds to the JSON property `budget`
351
411
  # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
352
412
  attr_accessor :budget
@@ -388,6 +448,47 @@ module Google
388
448
  end
389
449
  end
390
450
 
451
+ # Represents a whole or partial calendar date, such as a birthday. The time of
452
+ # day and time zone are either specified elsewhere or are insignificant. The
453
+ # date is relative to the Gregorian Calendar. This can represent one of the
454
+ # following: * A full date, with non-zero year, month, and day values * A month
455
+ # and day value, with a zero year, such as an anniversary * A year on its own,
456
+ # with zero month and day values * A year and month value, with a zero day, such
457
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
458
+ # google.protobuf.Timestamp`.
459
+ class GoogleTypeDate
460
+ include Google::Apis::Core::Hashable
461
+
462
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
463
+ # specify a year by itself or a year and month where the day isn't significant.
464
+ # Corresponds to the JSON property `day`
465
+ # @return [Fixnum]
466
+ attr_accessor :day
467
+
468
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
469
+ # and day.
470
+ # Corresponds to the JSON property `month`
471
+ # @return [Fixnum]
472
+ attr_accessor :month
473
+
474
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
475
+ # year.
476
+ # Corresponds to the JSON property `year`
477
+ # @return [Fixnum]
478
+ attr_accessor :year
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @day = args[:day] if args.key?(:day)
487
+ @month = args[:month] if args.key?(:month)
488
+ @year = args[:year] if args.key?(:year)
489
+ end
490
+ end
491
+
391
492
  # Represents an amount of money with its currency type.
392
493
  class GoogleTypeMoney
393
494
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BillingbudgetsV1beta1
18
18
  # Version of the google-apis-billingbudgets_v1beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201107"
25
+ REVISION = "20210412"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GoogleCloudBillingBudgetsV1beta1CustomPeriod
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class GoogleCloudBillingBudgetsV1beta1Filter
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -82,6 +88,12 @@ module Google
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class GoogleTypeDate
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class GoogleTypeMoney
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -133,11 +145,24 @@ module Google
133
145
  end
134
146
  end
135
147
 
148
+ class GoogleCloudBillingBudgetsV1beta1CustomPeriod
149
+ # @private
150
+ class Representation < Google::Apis::Core::JsonRepresentation
151
+ property :end_date, as: 'endDate', class: Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate::Representation
152
+
153
+ property :start_date, as: 'startDate', class: Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate::Representation
154
+
155
+ end
156
+ end
157
+
136
158
  class GoogleCloudBillingBudgetsV1beta1Filter
137
159
  # @private
138
160
  class Representation < Google::Apis::Core::JsonRepresentation
161
+ property :calendar_period, as: 'calendarPeriod'
139
162
  collection :credit_types, as: 'creditTypes'
140
163
  property :credit_types_treatment, as: 'creditTypesTreatment'
164
+ property :custom_period, as: 'customPeriod', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CustomPeriod, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CustomPeriod::Representation
165
+
141
166
  hash :labels, as: 'labels', :class => Array do
142
167
  include Representable::JSON::Collection
143
168
  items
@@ -187,6 +212,15 @@ module Google
187
212
  end
188
213
  end
189
214
 
215
+ class GoogleTypeDate
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ property :day, as: 'day'
219
+ property :month, as: 'month'
220
+ property :year, as: 'year'
221
+ end
222
+ end
223
+
190
224
  class GoogleTypeMoney
191
225
  # @private
192
226
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-billingbudgets_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-billingbudgets_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1beta1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-billingbudgets_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Billing Budget API V1beta1