google-apis-billingbudgets_v1 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30ead54c4016357144ff99f9cbb36ed0a25c963b25daf0b4c049ac1756d795cd
4
- data.tar.gz: f17884a636bfa9055e43a60da5a62148b37167dcafe1233cd36d5b3434dda85b
3
+ metadata.gz: bace1f73c25c94be2960c488997793d466edbfd2134dbe2ba10a2558148b3775
4
+ data.tar.gz: ac2d1be740a5f72901fbb844025729c3588c1e95cad83ac681e2d4445bda9f73
5
5
  SHA512:
6
- metadata.gz: c16126f0aec099b0fda22ffe66756c938c4a2d9e03793832457db33b25f83334ef5e9936414ee587c16a92257484ca022650e6142b8b8b9600c58d507dfb4a01
7
- data.tar.gz: 3244b6f6ef352a0ab39d33447771fde56a41ab95c6512af178a97171e3bab1878a151436a90aa9e275f25eb7e3a4259cd616af9be7a58c932d4d9fdc40196e24
6
+ metadata.gz: 9da66ca3c2af6b05624226a571462c7f12da36b4776797f5a40e566ae6084d22a3a2230798d6fcb4c1adc76ef71de5d3f0a0f7f3033a3fca26bc66af3c3e7e57
7
+ data.tar.gz: c4017ecea25f2abdcea15ddcc9b99ad97d675460f827ebd6a2afa0257b0c3cc72bee23434ffa5743b8899a430f60db9785725cd9b378dbb4e799bd5afcf5642b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-billingbudgets_v1
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
@@ -24,9 +24,9 @@ module Google
24
24
 
25
25
  # A budget is a plan that describes what you expect to spend on Cloud projects,
26
26
  # plus the rules to execute as spend is tracked against that plan, (for example,
27
- # send an alert when 90% of the target spend is met). Currently all plans are
28
- # monthly budgets so the usage period(s) tracked are implied (calendar months of
29
- # usage back-to-back).
27
+ # send an alert when 90% of the target spend is met). The budget time period is
28
+ # configurable, with options such as month (default), quarter, year, or custom
29
+ # time period.
30
30
  class GoogleCloudBillingBudgetsV1Budget
31
31
  include Google::Apis::Core::Hashable
32
32
 
@@ -115,10 +115,58 @@ module Google
115
115
  end
116
116
  end
117
117
 
118
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
119
+ class GoogleCloudBillingBudgetsV1CustomPeriod
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # Represents a whole or partial calendar date, such as a birthday. The time of
123
+ # day and time zone are either specified elsewhere or are insignificant. The
124
+ # date is relative to the Gregorian Calendar. This can represent one of the
125
+ # following: * A full date, with non-zero year, month, and day values * A month
126
+ # and day value, with a zero year, such as an anniversary * A year on its own,
127
+ # with zero month and day values * A year and month value, with a zero day, such
128
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
129
+ # google.protobuf.Timestamp`.
130
+ # Corresponds to the JSON property `endDate`
131
+ # @return [Google::Apis::BillingbudgetsV1::GoogleTypeDate]
132
+ attr_accessor :end_date
133
+
134
+ # Represents a whole or partial calendar date, such as a birthday. The time of
135
+ # day and time zone are either specified elsewhere or are insignificant. The
136
+ # date is relative to the Gregorian Calendar. This can represent one of the
137
+ # following: * A full date, with non-zero year, month, and day values * A month
138
+ # and day value, with a zero year, such as an anniversary * A year on its own,
139
+ # with zero month and day values * A year and month value, with a zero day, such
140
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
141
+ # google.protobuf.Timestamp`.
142
+ # Corresponds to the JSON property `startDate`
143
+ # @return [Google::Apis::BillingbudgetsV1::GoogleTypeDate]
144
+ attr_accessor :start_date
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ @end_date = args[:end_date] if args.key?(:end_date)
153
+ @start_date = args[:start_date] if args.key?(:start_date)
154
+ end
155
+ end
156
+
118
157
  # A filter for a budget, limiting the scope of the cost to calculate.
119
158
  class GoogleCloudBillingBudgetsV1Filter
120
159
  include Google::Apis::Core::Hashable
121
160
 
161
+ # Optional. Specifies to track usage for recurring calendar period. E.g. Assume
162
+ # that CalendarPeriod.QUARTER is set. The budget will track usage from April 1
163
+ # to June 30, when current calendar month is April, May, June. After that, it
164
+ # will track usage from July 1 to September 30 when current calendar month is
165
+ # July, August, September, and so on.
166
+ # Corresponds to the JSON property `calendarPeriod`
167
+ # @return [String]
168
+ attr_accessor :calendar_period
169
+
122
170
  # Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this
123
171
  # is a list of credit types to be subtracted from gross cost to determine the
124
172
  # spend for threshold calculations. If Filter.credit_types_treatment is **not**
@@ -134,6 +182,11 @@ module Google
134
182
  # @return [String]
135
183
  attr_accessor :credit_types_treatment
136
184
 
185
+ # All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).
186
+ # Corresponds to the JSON property `customPeriod`
187
+ # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1CustomPeriod]
188
+ attr_accessor :custom_period
189
+
137
190
  # Optional. A single label and value pair specifying that usage from only this
138
191
  # set of labeled resources should be included in the budget. Currently, multiple
139
192
  # entries or multiple values per entry are not allowed. If omitted, the report
@@ -175,8 +228,10 @@ module Google
175
228
 
176
229
  # Update properties of this object
177
230
  def update!(**args)
231
+ @calendar_period = args[:calendar_period] if args.key?(:calendar_period)
178
232
  @credit_types = args[:credit_types] if args.key?(:credit_types)
179
233
  @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
234
+ @custom_period = args[:custom_period] if args.key?(:custom_period)
180
235
  @labels = args[:labels] if args.key?(:labels)
181
236
  @projects = args[:projects] if args.key?(:projects)
182
237
  @services = args[:services] if args.key?(:services)
@@ -333,6 +388,47 @@ module Google
333
388
  end
334
389
  end
335
390
 
391
+ # Represents a whole or partial calendar date, such as a birthday. The time of
392
+ # day and time zone are either specified elsewhere or are insignificant. The
393
+ # date is relative to the Gregorian Calendar. This can represent one of the
394
+ # following: * A full date, with non-zero year, month, and day values * A month
395
+ # and day value, with a zero year, such as an anniversary * A year on its own,
396
+ # with zero month and day values * A year and month value, with a zero day, such
397
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
398
+ # google.protobuf.Timestamp`.
399
+ class GoogleTypeDate
400
+ include Google::Apis::Core::Hashable
401
+
402
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
403
+ # specify a year by itself or a year and month where the day isn't significant.
404
+ # Corresponds to the JSON property `day`
405
+ # @return [Fixnum]
406
+ attr_accessor :day
407
+
408
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
409
+ # and day.
410
+ # Corresponds to the JSON property `month`
411
+ # @return [Fixnum]
412
+ attr_accessor :month
413
+
414
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
415
+ # year.
416
+ # Corresponds to the JSON property `year`
417
+ # @return [Fixnum]
418
+ attr_accessor :year
419
+
420
+ def initialize(**args)
421
+ update!(**args)
422
+ end
423
+
424
+ # Update properties of this object
425
+ def update!(**args)
426
+ @day = args[:day] if args.key?(:day)
427
+ @month = args[:month] if args.key?(:month)
428
+ @year = args[:year] if args.key?(:year)
429
+ end
430
+ end
431
+
336
432
  # Represents an amount of money with its currency type.
337
433
  class GoogleTypeMoney
338
434
  include Google::Apis::Core::Hashable
@@ -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.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
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleCloudBillingBudgetsV1CustomPeriod
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class GoogleCloudBillingBudgetsV1Filter
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -70,6 +76,12 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class GoogleTypeDate
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class GoogleTypeMoney
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -103,11 +115,24 @@ module Google
103
115
  end
104
116
  end
105
117
 
118
+ class GoogleCloudBillingBudgetsV1CustomPeriod
119
+ # @private
120
+ class Representation < Google::Apis::Core::JsonRepresentation
121
+ property :end_date, as: 'endDate', class: Google::Apis::BillingbudgetsV1::GoogleTypeDate, decorator: Google::Apis::BillingbudgetsV1::GoogleTypeDate::Representation
122
+
123
+ property :start_date, as: 'startDate', class: Google::Apis::BillingbudgetsV1::GoogleTypeDate, decorator: Google::Apis::BillingbudgetsV1::GoogleTypeDate::Representation
124
+
125
+ end
126
+ end
127
+
106
128
  class GoogleCloudBillingBudgetsV1Filter
107
129
  # @private
108
130
  class Representation < Google::Apis::Core::JsonRepresentation
131
+ property :calendar_period, as: 'calendarPeriod'
109
132
  collection :credit_types, as: 'creditTypes'
110
133
  property :credit_types_treatment, as: 'creditTypesTreatment'
134
+ property :custom_period, as: 'customPeriod', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1CustomPeriod, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1CustomPeriod::Representation
135
+
111
136
  hash :labels, as: 'labels', :class => Array do
112
137
  include Representable::JSON::Collection
113
138
  items
@@ -158,6 +183,15 @@ module Google
158
183
  end
159
184
  end
160
185
 
186
+ class GoogleTypeDate
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :day, as: 'day'
190
+ property :month, as: 'month'
191
+ property :year, as: 'year'
192
+ end
193
+ end
194
+
161
195
  class GoogleTypeMoney
162
196
  # @private
163
197
  class Representation < Google::Apis::Core::JsonRepresentation
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.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_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-billingbudgets_v1
57
57
  post_install_message:
58
58
  rdoc_options: []