google-cloud-bigquery-reservation-v1 0.6.0 → 0.8.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: deb045652e66e9f6507632bec7b77046c95f32c855d3dbb50d823bc2674443a4
4
- data.tar.gz: 6dee11cab19a9a5cc930554d540333ac5609850d4248e5326f9e3dbf1f08cf1d
3
+ metadata.gz: f700df3e772219789e42945c9882c85335102b4ab54144d2e15f18bc18e8c0a6
4
+ data.tar.gz: 5e4fa02dab05445bedebff685d6ae1168dbe884f3ba3d45cc5b0b1b63c69048a
5
5
  SHA512:
6
- metadata.gz: 739570aca307714d51967c9c30f43828cae68b7030b03e3091c94fb8f356d3b9c050a90132f6b423f5278aeb4a51024914057c97d4efcaf9cbea60e5fe6c5f83
7
- data.tar.gz: 59833edab229bfa222d2d48a503f0b25771b0bd8638b3dd6b51b5f92c9673c40fbc6a1c0398cd71e5ea4787816d25877542b7f4e7eb9037c1269782201d1334a
6
+ metadata.gz: 1fd72e1d6af15f41e10709c63d3b058bccd5d06f6ef57ce7bfc059c41ad8b91c152315a747eb7129d5946386e165288e436f9eea3fff3b20dd080db4d830af3d
7
+ data.tar.gz: 20c0b758fdd3d0a66ac3eb0890891e8eccdf980cc444ded4ee1b6526bc5e0ad7882cc52b0d9c8d1b49555483c6fb4283f332e3fd5a7fcd044fa32b93c03e1f71
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,8 +46,8 @@ 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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
53
53
 
@@ -18,10 +18,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :name, :string, 1
19
19
  optional :slot_capacity, :int64, 2
20
20
  optional :ignore_idle_slots, :bool, 4
21
+ optional :autoscale, :message, 7, "google.cloud.bigquery.reservation.v1.Reservation.Autoscale"
21
22
  optional :concurrency, :int64, 16
22
23
  optional :creation_time, :message, 8, "google.protobuf.Timestamp"
23
24
  optional :update_time, :message, 9, "google.protobuf.Timestamp"
24
25
  optional :multi_region_auxiliary, :bool, 14
26
+ optional :edition, :enum, 17, "google.cloud.bigquery.reservation.v1.Edition"
27
+ end
28
+ add_message "google.cloud.bigquery.reservation.v1.Reservation.Autoscale" do
29
+ optional :current_slots, :int64, 1
30
+ optional :max_slots, :int64, 2
25
31
  end
26
32
  add_message "google.cloud.bigquery.reservation.v1.CapacityCommitment" do
27
33
  optional :name, :string, 1
@@ -33,13 +39,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
33
39
  optional :failure_status, :message, 7, "google.rpc.Status"
34
40
  optional :renewal_plan, :enum, 8, "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan"
35
41
  optional :multi_region_auxiliary, :bool, 10
42
+ optional :edition, :enum, 12, "google.cloud.bigquery.reservation.v1.Edition"
36
43
  end
37
44
  add_enum "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan" do
38
45
  value :COMMITMENT_PLAN_UNSPECIFIED, 0
39
46
  value :FLEX, 3
47
+ value :FLEX_FLAT_RATE, 7
40
48
  value :TRIAL, 5
41
49
  value :MONTHLY, 2
50
+ value :MONTHLY_FLAT_RATE, 8
42
51
  value :ANNUAL, 4
52
+ value :ANNUAL_FLAT_RATE, 9
53
+ value :THREE_YEAR, 10
54
+ value :NONE, 6
43
55
  end
44
56
  add_enum "google.cloud.bigquery.reservation.v1.CapacityCommitment.State" do
45
57
  value :STATE_UNSPECIFIED, 0
@@ -120,6 +132,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
120
132
  value :PIPELINE, 1
121
133
  value :QUERY, 2
122
134
  value :ML_EXTERNAL, 3
135
+ value :BACKGROUND, 4
123
136
  end
124
137
  add_enum "google.cloud.bigquery.reservation.v1.Assignment.State" do
125
138
  value :STATE_UNSPECIFIED, 0
@@ -166,6 +179,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
166
179
  add_message "google.cloud.bigquery.reservation.v1.MoveAssignmentRequest" do
167
180
  optional :name, :string, 1
168
181
  optional :destination_id, :string, 3
182
+ optional :assignment_id, :string, 5
169
183
  end
170
184
  add_message "google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest" do
171
185
  optional :assignment, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
@@ -189,6 +203,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
189
203
  optional :bi_reservation, :message, 1, "google.cloud.bigquery.reservation.v1.BiReservation"
190
204
  optional :update_mask, :message, 2, "google.protobuf.FieldMask"
191
205
  end
206
+ add_enum "google.cloud.bigquery.reservation.v1.Edition" do
207
+ value :EDITION_UNSPECIFIED, 0
208
+ value :STANDARD, 1
209
+ value :ENTERPRISE, 2
210
+ value :ENTERPRISE_PLUS, 3
211
+ end
192
212
  end
193
213
  end
194
214
 
@@ -198,6 +218,7 @@ module Google
198
218
  module Reservation
199
219
  module V1
200
220
  Reservation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.Reservation").msgclass
221
+ Reservation::Autoscale = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.Reservation.Autoscale").msgclass
201
222
  CapacityCommitment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.CapacityCommitment").msgclass
202
223
  CapacityCommitment::CommitmentPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan").enummodule
203
224
  CapacityCommitment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.CapacityCommitment.State").enummodule
@@ -233,6 +254,7 @@ module Google
233
254
  BiReservation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.BiReservation").msgclass
234
255
  GetBiReservationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.GetBiReservationRequest").msgclass
235
256
  UpdateBiReservationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest").msgclass
257
+ Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.Edition").enummodule
236
258
  end
237
259
  end
238
260
  end
@@ -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
@@ -1727,8 +1721,8 @@ module Google
1727
1721
  # the default parameter values, pass an empty Hash as a request object (see above).
1728
1722
  #
1729
1723
  # @param parent [::String]
1730
- # Required. The resource name of the admin project(containing project and location),
1731
- # e.g.:
1724
+ # Required. The resource name of the admin project(containing project and
1725
+ # location), e.g.:
1732
1726
  # `projects/myproject/locations/US`.
1733
1727
  # @param query [::String]
1734
1728
  # Please specify resource name as assignee in the query.
@@ -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
@@ -1852,8 +1844,8 @@ module Google
1852
1844
  # the default parameter values, pass an empty Hash as a request object (see above).
1853
1845
  #
1854
1846
  # @param parent [::String]
1855
- # Required. The resource name with location (project name could be the wildcard '-'),
1856
- # e.g.:
1847
+ # Required. The resource name with location (project name could be the
1848
+ # wildcard '-'), e.g.:
1857
1849
  # `projects/-/locations/US`.
1858
1850
  # @param query [::String]
1859
1851
  # Please specify resource name as assignee in the query.
@@ -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
@@ -1956,7 +1946,7 @@ module Google
1956
1946
  # @param options [::Gapic::CallOptions, ::Hash]
1957
1947
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1958
1948
  #
1959
- # @overload move_assignment(name: nil, destination_id: nil)
1949
+ # @overload move_assignment(name: nil, destination_id: nil, assignment_id: nil)
1960
1950
  # Pass arguments to `move_assignment` via keyword arguments. Note that at
1961
1951
  # least one keyword argument is required. To specify no parameters, or to keep all
1962
1952
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1968,6 +1958,12 @@ module Google
1968
1958
  # @param destination_id [::String]
1969
1959
  # The new reservation ID, e.g.:
1970
1960
  # `projects/myotherproject/locations/US/reservations/team2-prod`
1961
+ # @param assignment_id [::String]
1962
+ # The optional assignment ID. A new assignment name is generated if this
1963
+ # field is empty.
1964
+ #
1965
+ # This field can contain only lowercase alphanumeric characters or dashes.
1966
+ # Max length is 64 characters.
1971
1967
  #
1972
1968
  # @yield [response, operation] Access the result along with the RPC operation
1973
1969
  # @yieldparam response [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
@@ -2340,9 +2336,9 @@ module Google
2340
2336
  # * (`String`) The path to a service account key file in JSON format
2341
2337
  # * (`Hash`) A service account key as a Hash
2342
2338
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2343
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2339
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2344
2340
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2345
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2341
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2346
2342
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2347
2343
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2348
2344
  # * (`nil`) indicating no credentials