google-cloud-billing-budgets-v1 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/billing/budgets/v1/budget_model_pb.rb +2 -2
- data/lib/google/cloud/billing/budgets/v1/budget_service/client.rb +106 -15
- data/lib/google/cloud/billing/budgets/v1/budget_service_pb.rb +2 -2
- data/lib/google/cloud/billing/budgets/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe41e9f94887d72fbaef74774f429da5707e888ce8fd8eda07ad6abfa5e8ccc1
|
4
|
+
data.tar.gz: 215cc596d6d0998ff392c934ef6a193785187d54d850cf4862d94e521bfa3ed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb4543eceb183f682a8647491d5b505621415f320ba03f7b8aea58e64266dc0af8f0dfa0a9e18bab3f2e72352acbf6e8df1631846b9dd547e6c0adec88cbd295
|
7
|
+
data.tar.gz: a17c8614a56ca85a748460359f9f54892e00d72211defc8250b1b2c4c643ba86716676469bf49fd903efa7120f5e3ddbe9e1e18db48439210a492ca7b176572a
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/billing/budgets/v1/budget_model.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/struct_pb'
|
9
7
|
require 'google/type/date_pb'
|
10
8
|
require 'google/type/money_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/billing/budgets/v1/budget_model.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.billing.budgets.v1.Budget" do
|
@@ -202,6 +202,21 @@ module Google
|
|
202
202
|
#
|
203
203
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
204
204
|
#
|
205
|
+
# @example Basic example
|
206
|
+
# require "google/cloud/billing/budgets/v1"
|
207
|
+
#
|
208
|
+
# # Create a client object. The client can be reused for multiple calls.
|
209
|
+
# client = Google::Cloud::Billing::Budgets::V1::BudgetService::Client.new
|
210
|
+
#
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
212
|
+
# request = Google::Cloud::Billing::Budgets::V1::CreateBudgetRequest.new
|
213
|
+
#
|
214
|
+
# # Call the create_budget method.
|
215
|
+
# result = client.create_budget request
|
216
|
+
#
|
217
|
+
# # The returned object is of type Google::Cloud::Billing::Budgets::V1::Budget.
|
218
|
+
# p result
|
219
|
+
#
|
205
220
|
def create_budget request, options = nil
|
206
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
222
|
|
@@ -219,9 +234,11 @@ module Google
|
|
219
234
|
gapic_version: ::Google::Cloud::Billing::Budgets::V1::VERSION
|
220
235
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
221
236
|
|
222
|
-
header_params = {
|
223
|
-
|
224
|
-
|
237
|
+
header_params = {}
|
238
|
+
if request.parent
|
239
|
+
header_params["parent"] = request.parent
|
240
|
+
end
|
241
|
+
|
225
242
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
226
243
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
227
244
|
|
@@ -282,6 +299,21 @@ module Google
|
|
282
299
|
#
|
283
300
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
301
|
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/billing/budgets/v1"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Billing::Budgets::V1::BudgetService::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Billing::Budgets::V1::UpdateBudgetRequest.new
|
310
|
+
#
|
311
|
+
# # Call the update_budget method.
|
312
|
+
# result = client.update_budget request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Billing::Budgets::V1::Budget.
|
315
|
+
# p result
|
316
|
+
#
|
285
317
|
def update_budget request, options = nil
|
286
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
319
|
|
@@ -299,9 +331,11 @@ module Google
|
|
299
331
|
gapic_version: ::Google::Cloud::Billing::Budgets::V1::VERSION
|
300
332
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
333
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
334
|
+
header_params = {}
|
335
|
+
if request.budget&.name
|
336
|
+
header_params["budget.name"] = request.budget.name
|
337
|
+
end
|
338
|
+
|
305
339
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
340
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
341
|
|
@@ -356,6 +390,21 @@ module Google
|
|
356
390
|
#
|
357
391
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
358
392
|
#
|
393
|
+
# @example Basic example
|
394
|
+
# require "google/cloud/billing/budgets/v1"
|
395
|
+
#
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
397
|
+
# client = Google::Cloud::Billing::Budgets::V1::BudgetService::Client.new
|
398
|
+
#
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
400
|
+
# request = Google::Cloud::Billing::Budgets::V1::GetBudgetRequest.new
|
401
|
+
#
|
402
|
+
# # Call the get_budget method.
|
403
|
+
# result = client.get_budget request
|
404
|
+
#
|
405
|
+
# # The returned object is of type Google::Cloud::Billing::Budgets::V1::Budget.
|
406
|
+
# p result
|
407
|
+
#
|
359
408
|
def get_budget request, options = nil
|
360
409
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
410
|
|
@@ -373,9 +422,11 @@ module Google
|
|
373
422
|
gapic_version: ::Google::Cloud::Billing::Budgets::V1::VERSION
|
374
423
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
375
424
|
|
376
|
-
header_params = {
|
377
|
-
|
378
|
-
|
425
|
+
header_params = {}
|
426
|
+
if request.name
|
427
|
+
header_params["name"] = request.name
|
428
|
+
end
|
429
|
+
|
379
430
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
380
431
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
381
432
|
|
@@ -437,6 +488,27 @@ module Google
|
|
437
488
|
#
|
438
489
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
439
490
|
#
|
491
|
+
# @example Basic example
|
492
|
+
# require "google/cloud/billing/budgets/v1"
|
493
|
+
#
|
494
|
+
# # Create a client object. The client can be reused for multiple calls.
|
495
|
+
# client = Google::Cloud::Billing::Budgets::V1::BudgetService::Client.new
|
496
|
+
#
|
497
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
498
|
+
# request = Google::Cloud::Billing::Budgets::V1::ListBudgetsRequest.new
|
499
|
+
#
|
500
|
+
# # Call the list_budgets method.
|
501
|
+
# result = client.list_budgets request
|
502
|
+
#
|
503
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
504
|
+
# # iterate over all elements by calling #each, and the enumerable
|
505
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
506
|
+
# # methods are also available for managing paging directly.
|
507
|
+
# result.each do |response|
|
508
|
+
# # Each element is of type ::Google::Cloud::Billing::Budgets::V1::Budget.
|
509
|
+
# p response
|
510
|
+
# end
|
511
|
+
#
|
440
512
|
def list_budgets request, options = nil
|
441
513
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
442
514
|
|
@@ -454,9 +526,11 @@ module Google
|
|
454
526
|
gapic_version: ::Google::Cloud::Billing::Budgets::V1::VERSION
|
455
527
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
456
528
|
|
457
|
-
header_params = {
|
458
|
-
|
459
|
-
|
529
|
+
header_params = {}
|
530
|
+
if request.parent
|
531
|
+
header_params["parent"] = request.parent
|
532
|
+
end
|
533
|
+
|
460
534
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
461
535
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
462
536
|
|
@@ -507,6 +581,21 @@ module Google
|
|
507
581
|
#
|
508
582
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
509
583
|
#
|
584
|
+
# @example Basic example
|
585
|
+
# require "google/cloud/billing/budgets/v1"
|
586
|
+
#
|
587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
588
|
+
# client = Google::Cloud::Billing::Budgets::V1::BudgetService::Client.new
|
589
|
+
#
|
590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
591
|
+
# request = Google::Cloud::Billing::Budgets::V1::DeleteBudgetRequest.new
|
592
|
+
#
|
593
|
+
# # Call the delete_budget method.
|
594
|
+
# result = client.delete_budget request
|
595
|
+
#
|
596
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
597
|
+
# p result
|
598
|
+
#
|
510
599
|
def delete_budget request, options = nil
|
511
600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
512
601
|
|
@@ -524,9 +613,11 @@ module Google
|
|
524
613
|
gapic_version: ::Google::Cloud::Billing::Budgets::V1::VERSION
|
525
614
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
526
615
|
|
527
|
-
header_params = {
|
528
|
-
|
529
|
-
|
616
|
+
header_params = {}
|
617
|
+
if request.name
|
618
|
+
header_params["name"] = request.name
|
619
|
+
end
|
620
|
+
|
530
621
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
531
622
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
532
623
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/billing/budgets/v1/budget_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/billing/budgets/v1/budget_model_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/billing/budgets/v1/budget_service.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.billing.budgets.v1.CreateBudgetRequest" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-billing-budgets-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|