google-cloud-bigquery-reservation-v1 0.5.0 → 0.7.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: 47f112fc54de3426c4879a03e51d7dbea54814f3169a16cb18815b14c276cc0a
4
- data.tar.gz: 4c85cce74d96c2b59996a4012a6326fc9cc665e166c9eb2c31359a066fd98397
3
+ metadata.gz: 2fced309d84b0b3968da1ce270764f3534b96e3a7ea7f1cce0bd43a70b843b22
4
+ data.tar.gz: 425f3be26e9f9af5bd8871e30d985ebee53b52f6ff8913b69bf2bee9ffd76279
5
5
  SHA512:
6
- metadata.gz: df691d603622f10a5e6b2e75cfeae17b2dbe76800c0a60cf562747d47266225973fbbe4ac9f8d5c54620341e52a996fd847531a4ff8d000004118df4050a94a8
7
- data.tar.gz: fb8b44325f1e755625edf193e180249fc57f3f7a4bf312e3fb79f9a8210c64dc8028c67bcaea4b0e9a72ec452e76390f37b0bbbd728d8ed3086f3619d250a5f5
6
+ metadata.gz: 8ff4feb5aa7ccb0b060d29577fe0fa37562fb14808b93b45be061428356b5b73cbab73f7fa83280e1b2564bf76f1559083522953bb47d6837beae50a8a8d4f9c
7
+ data.tar.gz: '0986ed11755dae29f746c1bc44087facef37731c875159827caadff9244910346a45b62c7d8777cd78d707ae00f9a6bf658a47c76cef9f1672c3809ad1a462fa'
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the BigQuery Reservation V1 API
2
2
 
3
- API Client library for the BigQuery Reservation V1 API
3
+ A service to modify your BigQuery flat-rate reservations.
4
4
 
5
5
  The BigQuery Reservation API provides the mechanisms by which enterprise users can provision and manage dedicated resources such as slots and BigQuery BI Engine memory allocations.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/bigquery/reservation/v1/reservation.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
13
  require 'google/rpc/status_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/bigquery/reservation/v1/reservation.proto", :syntax => :proto3) do
@@ -365,13 +365,11 @@ module Google
365
365
  # # Call the list_reservations method.
366
366
  # result = client.list_reservations request
367
367
  #
368
- # # The returned object is of type Gapic::PagedEnumerable. You can
369
- # # iterate over all elements by calling #each, and the enumerable
370
- # # will lazily make API calls to fetch subsequent pages. Other
371
- # # methods are also available for managing paging directly.
372
- # result.each do |response|
368
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
369
+ # # over elements, and API calls will be issued to fetch pages as needed.
370
+ # result.each do |item|
373
371
  # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Reservation.
374
- # p response
372
+ # p item
375
373
  # end
376
374
  #
377
375
  def list_reservations request, options = nil
@@ -820,13 +818,11 @@ module Google
820
818
  # # Call the list_capacity_commitments method.
821
819
  # result = client.list_capacity_commitments request
822
820
  #
823
- # # The returned object is of type Gapic::PagedEnumerable. You can
824
- # # iterate over all elements by calling #each, and the enumerable
825
- # # will lazily make API calls to fetch subsequent pages. Other
826
- # # methods are also available for managing paging directly.
827
- # result.each do |response|
821
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
822
+ # # over elements, and API calls will be issued to fetch pages as needed.
823
+ # result.each do |item|
828
824
  # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
829
- # p response
825
+ # p item
830
826
  # end
831
827
  #
832
828
  def list_capacity_commitments request, options = nil
@@ -1533,13 +1529,11 @@ module Google
1533
1529
  # # Call the list_assignments method.
1534
1530
  # result = client.list_assignments request
1535
1531
  #
1536
- # # The returned object is of type Gapic::PagedEnumerable. You can
1537
- # # iterate over all elements by calling #each, and the enumerable
1538
- # # will lazily make API calls to fetch subsequent pages. Other
1539
- # # methods are also available for managing paging directly.
1540
- # result.each do |response|
1532
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1533
+ # # over elements, and API calls will be issued to fetch pages as needed.
1534
+ # result.each do |item|
1541
1535
  # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1542
- # p response
1536
+ # p item
1543
1537
  # end
1544
1538
  #
1545
1539
  def list_assignments request, options = nil
@@ -1763,13 +1757,11 @@ module Google
1763
1757
  # # Call the search_assignments method.
1764
1758
  # result = client.search_assignments request
1765
1759
  #
1766
- # # The returned object is of type Gapic::PagedEnumerable. You can
1767
- # # iterate over all elements by calling #each, and the enumerable
1768
- # # will lazily make API calls to fetch subsequent pages. Other
1769
- # # methods are also available for managing paging directly.
1770
- # result.each do |response|
1760
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1761
+ # # over elements, and API calls will be issued to fetch pages as needed.
1762
+ # result.each do |item|
1771
1763
  # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1772
- # p response
1764
+ # p item
1773
1765
  # end
1774
1766
  #
1775
1767
  def search_assignments request, options = nil
@@ -1888,13 +1880,11 @@ module Google
1888
1880
  # # Call the search_all_assignments method.
1889
1881
  # result = client.search_all_assignments request
1890
1882
  #
1891
- # # The returned object is of type Gapic::PagedEnumerable. You can
1892
- # # iterate over all elements by calling #each, and the enumerable
1893
- # # will lazily make API calls to fetch subsequent pages. Other
1894
- # # methods are also available for managing paging directly.
1895
- # result.each do |response|
1883
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1884
+ # # over elements, and API calls will be issued to fetch pages as needed.
1885
+ # result.each do |item|
1896
1886
  # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1897
- # p response
1887
+ # p item
1898
1888
  # end
1899
1889
  #
1900
1890
  def search_all_assignments request, options = nil