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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/bigquery/reservation/v1/reservation_pb.rb +2 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb +20 -30
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/client.rb +2066 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/service_stub.rb +1299 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest.rb +68 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service.rb +7 -1
- data/lib/google/cloud/bigquery/reservation/v1/rest.rb +39 -0
- data/lib/google/cloud/bigquery/reservation/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/reservation/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fced309d84b0b3968da1ce270764f3534b96e3a7ea7f1cce0bd43a70b843b22
|
4
|
+
data.tar.gz: 425f3be26e9f9af5bd8871e30d985ebee53b52f6ff8913b69bf2bee9ffd76279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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.
|
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.
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
# #
|
370
|
-
#
|
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
|
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
|
-
# #
|
825
|
-
#
|
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
|
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
|
-
# #
|
1538
|
-
#
|
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
|
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
|
-
# #
|
1768
|
-
#
|
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
|
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
|
-
# #
|
1893
|
-
#
|
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
|
1887
|
+
# p item
|
1898
1888
|
# end
|
1899
1889
|
#
|
1900
1890
|
def search_all_assignments request, options = nil
|