google-cloud-billing-budgets-v1beta1 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: 5108f1d063d42c2c6c68f33ef7338ec91c6630195457e4d7ff1f06ff3510d3af
4
- data.tar.gz: 4ee063c279061ae38c5104d89af67b8130de991270a82cff904875acd3aa0ebd
3
+ metadata.gz: 8d1ed759c5ae37db215edcb8672879884968cfadc3588bfe71fcf6b169a4670c
4
+ data.tar.gz: 261e46145fccb5a5260b5398f01a177bcd506f43686b389a47a8ee2f3cdae12b
5
5
  SHA512:
6
- metadata.gz: 3b2b28e4ff3696a6a220a58943f9f67dda6a37822cbf6c42932a78aa884e7af8e32b47c3db3a15f774e0cfd5a12f99579e1e2503d533ac5a3a39b5fdf3d88aba
7
- data.tar.gz: 79977811f31352a1f8f10cc0b5fd9a9c2b51b67cf018dce17ea672c33fef9276bc23d30c61ecc8ba0610b108793b70664d6d2f11b55d22420aee1d80a30a280d
6
+ metadata.gz: def7f24eae3c42ebbc7ac14bcbe5d724cf916cbd1542c8bc072b2b8bbdf367e89801861a474b10f3be41a6115bdc4e1b39ebff952ea0854e3aee343632ffadb7
7
+ data.tar.gz: '08d215ce17f27effff190b2020dffc7c4f9129eb7e1bf5f708205b4906d9435efaaa4fb70e07d2eb86d436736df253d672cf8ba9fc3b5061b36178b0b720f18e'
@@ -43,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
43
  end
44
44
  add_message "google.cloud.billing.budgets.v1beta1.Filter" do
45
45
  repeated :projects, :string, 1
46
+ repeated :credit_types, :string, 7
46
47
  optional :credit_types_treatment, :enum, 4, "google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment"
47
48
  repeated :services, :string, 3
48
49
  repeated :subaccounts, :string, 5
@@ -52,6 +53,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
52
53
  value :CREDIT_TYPES_TREATMENT_UNSPECIFIED, 0
53
54
  value :INCLUDE_ALL_CREDITS, 1
54
55
  value :EXCLUDE_ALL_CREDITS, 2
56
+ value :INCLUDE_SPECIFIED_CREDITS, 3
55
57
  end
56
58
  end
57
59
  end
@@ -38,29 +38,29 @@ module Google
38
38
  # Creates a new budget. See
39
39
  # <a href="https://cloud.google.com/billing/quotas">Quotas and limits</a>
40
40
  # for more information on the limits of the number of budgets you can create.
41
- rpc :CreateBudget, Google::Cloud::Billing::Budgets::V1beta1::CreateBudgetRequest, Google::Cloud::Billing::Budgets::V1beta1::Budget
41
+ rpc :CreateBudget, ::Google::Cloud::Billing::Budgets::V1beta1::CreateBudgetRequest, ::Google::Cloud::Billing::Budgets::V1beta1::Budget
42
42
  # Updates a budget and returns the updated budget.
43
43
  #
44
44
  # WARNING: There are some fields exposed on the Google Cloud Console that
45
45
  # aren't available on this API. Budget fields that are not exposed in
46
46
  # this API will not be changed by this method.
47
- rpc :UpdateBudget, Google::Cloud::Billing::Budgets::V1beta1::UpdateBudgetRequest, Google::Cloud::Billing::Budgets::V1beta1::Budget
47
+ rpc :UpdateBudget, ::Google::Cloud::Billing::Budgets::V1beta1::UpdateBudgetRequest, ::Google::Cloud::Billing::Budgets::V1beta1::Budget
48
48
  # Returns a budget.
49
49
  #
50
50
  # WARNING: There are some fields exposed on the Google Cloud Console that
51
51
  # aren't available on this API. When reading from the API, you will not
52
52
  # see these fields in the return value, though they may have been set
53
53
  # in the Cloud Console.
54
- rpc :GetBudget, Google::Cloud::Billing::Budgets::V1beta1::GetBudgetRequest, Google::Cloud::Billing::Budgets::V1beta1::Budget
54
+ rpc :GetBudget, ::Google::Cloud::Billing::Budgets::V1beta1::GetBudgetRequest, ::Google::Cloud::Billing::Budgets::V1beta1::Budget
55
55
  # Returns a list of budgets for a billing account.
56
56
  #
57
57
  # WARNING: There are some fields exposed on the Google Cloud Console that
58
58
  # aren't available on this API. When reading from the API, you will not
59
59
  # see these fields in the return value, though they may have been set
60
60
  # in the Cloud Console.
61
- rpc :ListBudgets, Google::Cloud::Billing::Budgets::V1beta1::ListBudgetsRequest, Google::Cloud::Billing::Budgets::V1beta1::ListBudgetsResponse
61
+ rpc :ListBudgets, ::Google::Cloud::Billing::Budgets::V1beta1::ListBudgetsRequest, ::Google::Cloud::Billing::Budgets::V1beta1::ListBudgetsResponse
62
62
  # Deletes a budget. Returns successfully if already deleted.
63
- rpc :DeleteBudget, Google::Cloud::Billing::Budgets::V1beta1::DeleteBudgetRequest, Google::Protobuf::Empty
63
+ rpc :DeleteBudget, ::Google::Cloud::Billing::Budgets::V1beta1::DeleteBudgetRequest, ::Google::Protobuf::Empty
64
64
  end
65
65
 
66
66
  Stub = Service.rpc_stub_class
@@ -22,7 +22,7 @@ module Google
22
22
  module Billing
23
23
  module Budgets
24
24
  module V1beta1
25
- VERSION = "0.2.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -153,8 +153,9 @@ module Google
153
153
  # @!attribute [rw] disable_default_iam_recipients
154
154
  # @return [::Boolean]
155
155
  # Optional. When set to true, disables default notifications sent when a
156
- # threshold is exceeded. Recipients are those with Billing Account
157
- # Administrators and Billing Account Users IAM roles for the target account.
156
+ # threshold is exceeded. Default notifications are sent to those with Billing
157
+ # Account Administrator and Billing Account User IAM roles for the target
158
+ # account.
158
159
  class AllUpdatesRule
159
160
  include ::Google::Protobuf::MessageExts
160
161
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -168,6 +169,15 @@ module Google
168
169
  # included in the budget. If omitted, the report will include all usage for
169
170
  # the billing account, regardless of which project the usage occurred on.
170
171
  # Only zero or one project can be specified currently.
172
+ # @!attribute [rw] credit_types
173
+ # @return [::Array<::String>]
174
+ # Optional. A list of credit types to be subtracted from gross cost to
175
+ # determine the spend for threshold calculations if and only if
176
+ # credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
177
+ # credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
178
+ # empty. See credits.type at
179
+ # https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
180
+ # for a list of acceptable credit type values in this field.
171
181
  # @!attribute [rw] credit_types_treatment
172
182
  # @return [::Google::Cloud::Billing::Budgets::V1beta1::Filter::CreditTypesTreatment]
173
183
  # Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
@@ -218,6 +228,10 @@ module Google
218
228
  # All types of credit are added to the net cost to determine the spend for
219
229
  # threshold calculations.
220
230
  EXCLUDE_ALL_CREDITS = 2
231
+
232
+ # Credit types specified in the credit_types field are subtracted from the
233
+ # gross cost to determine the spend for threshold calculations.
234
+ INCLUDE_SPECIFIED_CREDITS = 3
221
235
  end
222
236
  end
223
237
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-billing-budgets-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: 2020-09-16 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common