google-apis-billingbudgets_v1beta1 0.2.0 → 0.3.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: a5ab4751e099d92c04972cda880c8f45be1a43c98f8b189a12e1f412350c1a3f
4
- data.tar.gz: 306ce1be2938710df19a5ea2be2ac76e1d0d5ab57dbd92a2cdb68b144276d335
3
+ metadata.gz: 0f051210b826b5d09ab91280900380e4a136d8f238bc1ab175b9f6f8095e53b8
4
+ data.tar.gz: 78d2d3c7ee146ef1eccd871202b7ee7cf2f7dca4fd153cf4dfe550d6222d77d7
5
5
  SHA512:
6
- metadata.gz: cff17203092a1339a0890bd45939d7586b2e287204ca726516b46bd6b92c03ded6cdd641f1ba08092788c586478d368b8b2d17d97e60ab8062b61f0557ce9ccb
7
- data.tar.gz: f73e6736932ade9cd0e10f964ee0106087d5a3a70a5923d633124ca63ceb2cc284ef150c0d9ab1755724cde36d97e1b6d70d675832bd605e375fe8f4055b366e
6
+ metadata.gz: f758eb66a665e63a15bca132028944b8ea91507a5638d89470648f63855c1ff6d070b26c03b1a29d9396e032aacded094d26bc11a75571c05356ea55f618484a
7
+ data.tar.gz: 9df4fab9cd55c98784331a44d920156bb7a4a258cc6c1eff6be693baea0c3039dfc1fe57c80a38f8c425b23e4173528f2cf8d3e33e3d9f5be0f495a5f3883914
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-billingbudgets_v1beta1
2
2
 
3
+ ### v0.3.0 (2021-02-17)
4
+
5
+ * Regenerated from discovery document revision 20210213
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.2.0 (2021-01-13)
4
9
 
5
10
  * Regenerated from discovery document revision 20210109
@@ -50,11 +50,12 @@ 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
@@ -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
 
@@ -178,9 +179,9 @@ module Google
178
179
 
179
180
  # A budget is a plan that describes what you expect to spend on Cloud projects,
180
181
  # 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).
182
+ # send an alert when 90% of the target spend is met). The budget time period is
183
+ # configurable, with options such as month (default), quarter, year, or custom
184
+ # time period.
184
185
  # Corresponds to the JSON property `budget`
185
186
  # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
186
187
  attr_accessor :budget
@@ -195,10 +196,58 @@ module Google
195
196
  end
196
197
  end
197
198
 
199
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
200
+ class GoogleCloudBillingBudgetsV1beta1CustomPeriod
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # Represents a whole or partial calendar date, such as a birthday. The time of
204
+ # day and time zone are either specified elsewhere or are insignificant. The
205
+ # date is relative to the Gregorian Calendar. This can represent one of the
206
+ # following: * A full date, with non-zero year, month, and day values * A month
207
+ # and day value, with a zero year, such as an anniversary * A year on its own,
208
+ # with zero month and day values * A year and month value, with a zero day, such
209
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
210
+ # google.protobuf.Timestamp`.
211
+ # Corresponds to the JSON property `endDate`
212
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate]
213
+ attr_accessor :end_date
214
+
215
+ # Represents a whole or partial calendar date, such as a birthday. The time of
216
+ # day and time zone are either specified elsewhere or are insignificant. The
217
+ # date is relative to the Gregorian Calendar. This can represent one of the
218
+ # following: * A full date, with non-zero year, month, and day values * A month
219
+ # and day value, with a zero year, such as an anniversary * A year on its own,
220
+ # with zero month and day values * A year and month value, with a zero day, such
221
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
222
+ # google.protobuf.Timestamp`.
223
+ # Corresponds to the JSON property `startDate`
224
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleTypeDate]
225
+ attr_accessor :start_date
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @end_date = args[:end_date] if args.key?(:end_date)
234
+ @start_date = args[:start_date] if args.key?(:start_date)
235
+ end
236
+ end
237
+
198
238
  # A filter for a budget, limiting the scope of the cost to calculate.
199
239
  class GoogleCloudBillingBudgetsV1beta1Filter
200
240
  include Google::Apis::Core::Hashable
201
241
 
242
+ # Optional. Specifies to track usage for recurring calendar period. E.g. Assume
243
+ # that CalendarPeriod.QUARTER is set. The budget will track usage from April 1
244
+ # to June 30, when current calendar month is April, May, June. After that, it
245
+ # will track usage from July 1 to September 30 when current calendar month is
246
+ # July, August, September, and so on.
247
+ # Corresponds to the JSON property `calendarPeriod`
248
+ # @return [String]
249
+ attr_accessor :calendar_period
250
+
202
251
  # Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this
203
252
  # is a list of credit types to be subtracted from gross cost to determine the
204
253
  # spend for threshold calculations. If Filter.credit_types_treatment is **not**
@@ -214,6 +263,11 @@ module Google
214
263
  # @return [String]
215
264
  attr_accessor :credit_types_treatment
216
265
 
266
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
267
+ # Corresponds to the JSON property `customPeriod`
268
+ # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CustomPeriod]
269
+ attr_accessor :custom_period
270
+
217
271
  # Optional. A single label and value pair specifying that usage from only this
218
272
  # set of labeled resources should be included in the budget. Currently, multiple
219
273
  # entries or multiple values per entry are not allowed. If omitted, the report
@@ -255,8 +309,10 @@ module Google
255
309
 
256
310
  # Update properties of this object
257
311
  def update!(**args)
312
+ @calendar_period = args[:calendar_period] if args.key?(:calendar_period)
258
313
  @credit_types = args[:credit_types] if args.key?(:credit_types)
259
314
  @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
315
+ @custom_period = args[:custom_period] if args.key?(:custom_period)
260
316
  @labels = args[:labels] if args.key?(:labels)
261
317
  @projects = args[:projects] if args.key?(:projects)
262
318
  @services = args[:services] if args.key?(:services)
@@ -344,9 +400,9 @@ module Google
344
400
 
345
401
  # A budget is a plan that describes what you expect to spend on Cloud projects,
346
402
  # 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).
403
+ # send an alert when 90% of the target spend is met). The budget time period is
404
+ # configurable, with options such as month (default), quarter, year, or custom
405
+ # time period.
350
406
  # Corresponds to the JSON property `budget`
351
407
  # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
352
408
  attr_accessor :budget
@@ -388,6 +444,47 @@ module Google
388
444
  end
389
445
  end
390
446
 
447
+ # Represents a whole or partial calendar date, such as a birthday. The time of
448
+ # day and time zone are either specified elsewhere or are insignificant. The
449
+ # date is relative to the Gregorian Calendar. This can represent one of the
450
+ # following: * A full date, with non-zero year, month, and day values * A month
451
+ # and day value, with a zero year, such as an anniversary * A year on its own,
452
+ # with zero month and day values * A year and month value, with a zero day, such
453
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
454
+ # google.protobuf.Timestamp`.
455
+ class GoogleTypeDate
456
+ include Google::Apis::Core::Hashable
457
+
458
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
459
+ # specify a year by itself or a year and month where the day isn't significant.
460
+ # Corresponds to the JSON property `day`
461
+ # @return [Fixnum]
462
+ attr_accessor :day
463
+
464
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
465
+ # and day.
466
+ # Corresponds to the JSON property `month`
467
+ # @return [Fixnum]
468
+ attr_accessor :month
469
+
470
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
471
+ # year.
472
+ # Corresponds to the JSON property `year`
473
+ # @return [Fixnum]
474
+ attr_accessor :year
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @day = args[:day] if args.key?(:day)
483
+ @month = args[:month] if args.key?(:month)
484
+ @year = args[:year] if args.key?(:year)
485
+ end
486
+ end
487
+
391
488
  # Represents an amount of money with its currency type.
392
489
  class GoogleTypeMoney
393
490
  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.2.0"
19
+ GEM_VERSION = "0.3.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.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210109"
25
+ REVISION = "20210213"
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.2.0
4
+ version: 0.3.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-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-22 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.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1beta1/v0.3.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: []