google-cloud-bigquery-reservation-v1 0.3.1 → 0.4.1
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 +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_pb.rb +21 -2
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb +667 -165
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/paths.rb +2 -2
- data/lib/google/cloud/bigquery/reservation/v1/reservation_services_pb.rb +27 -1
- data/lib/google/cloud/bigquery/reservation/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb +80 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cbf765f55b385d57d78df6ee03d94926125269badf4316365a3f24f4e3e9e81
|
4
|
+
data.tar.gz: 1e478f1588ce6838ea125b06a22c84359b2c6802d912fbcc94b7de6a7d5e2e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc7b8174922325541b8405e7418dff7aae3fb4fdecd5ebf837f6a1828d9338fb3766eed22718fe9675e691fb9fb423edc0dcaf47a8ed0dff77f92067ad8c6bc
|
7
|
+
data.tar.gz: fa6c5c6612d23f4329503614b89124745c3c02cb8ffb54eddffd96ccc3ecd1c76a59e0d72ceb799cb26d60d87c164894af8ae030ac39f7600ae2267b14d39b0d
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-bigquery-reservation-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Bigquery::Reservation::V1::ReservationService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `BIGQUERY_RESERVATION_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `BIGQUERY_RESERVATION_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/bigquery/reservation/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Bigquery::Reservation::V1::ReservationService::Client.
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/bigquery/reservation/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Bigquery::Reservation::V1::ReservationService::Client.
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/bigquery/reservation/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/bigquery/reservation/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Bigquery::Reservation::V1::ReservationService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Bigquery::Reservation::V1::CreateReservationRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_reservation request
|
38
38
|
```
|
39
39
|
|
@@ -1,8 +1,6 @@
|
|
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
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -11,18 +9,23 @@ require 'google/protobuf/empty_pb'
|
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
13
11
|
require 'google/rpc/status_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/bigquery/reservation/v1/reservation.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.cloud.bigquery.reservation.v1.Reservation" do
|
17
17
|
optional :name, :string, 1
|
18
18
|
optional :slot_capacity, :int64, 2
|
19
19
|
optional :ignore_idle_slots, :bool, 4
|
20
|
+
optional :creation_time, :message, 8, "google.protobuf.Timestamp"
|
21
|
+
optional :update_time, :message, 9, "google.protobuf.Timestamp"
|
20
22
|
end
|
21
23
|
add_message "google.cloud.bigquery.reservation.v1.CapacityCommitment" do
|
22
24
|
optional :name, :string, 1
|
23
25
|
optional :slot_count, :int64, 2
|
24
26
|
optional :plan, :enum, 3, "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan"
|
25
27
|
optional :state, :enum, 4, "google.cloud.bigquery.reservation.v1.CapacityCommitment.State"
|
28
|
+
optional :commitment_start_time, :message, 9, "google.protobuf.Timestamp"
|
26
29
|
optional :commitment_end_time, :message, 5, "google.protobuf.Timestamp"
|
27
30
|
optional :failure_status, :message, 7, "google.rpc.Status"
|
28
31
|
optional :renewal_plan, :enum, 8, "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan"
|
@@ -68,6 +71,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
68
71
|
optional :parent, :string, 1
|
69
72
|
optional :capacity_commitment, :message, 2, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
|
70
73
|
optional :enforce_single_admin_project_per_org, :bool, 4
|
74
|
+
optional :capacity_commitment_id, :string, 5
|
71
75
|
end
|
72
76
|
add_message "google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest" do
|
73
77
|
optional :parent, :string, 1
|
@@ -83,6 +87,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
87
|
end
|
84
88
|
add_message "google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest" do
|
85
89
|
optional :name, :string, 1
|
90
|
+
optional :force, :bool, 3
|
86
91
|
end
|
87
92
|
add_message "google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest" do
|
88
93
|
optional :capacity_commitment, :message, 1, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
|
@@ -110,6 +115,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
110
115
|
value :JOB_TYPE_UNSPECIFIED, 0
|
111
116
|
value :PIPELINE, 1
|
112
117
|
value :QUERY, 2
|
118
|
+
value :ML_EXTERNAL, 3
|
113
119
|
end
|
114
120
|
add_enum "google.cloud.bigquery.reservation.v1.Assignment.State" do
|
115
121
|
value :STATE_UNSPECIFIED, 0
|
@@ -119,6 +125,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
119
125
|
add_message "google.cloud.bigquery.reservation.v1.CreateAssignmentRequest" do
|
120
126
|
optional :parent, :string, 1
|
121
127
|
optional :assignment, :message, 2, "google.cloud.bigquery.reservation.v1.Assignment"
|
128
|
+
optional :assignment_id, :string, 4
|
122
129
|
end
|
123
130
|
add_message "google.cloud.bigquery.reservation.v1.ListAssignmentsRequest" do
|
124
131
|
optional :parent, :string, 1
|
@@ -138,10 +145,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
138
145
|
optional :page_size, :int32, 3
|
139
146
|
optional :page_token, :string, 4
|
140
147
|
end
|
148
|
+
add_message "google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest" do
|
149
|
+
optional :parent, :string, 1
|
150
|
+
optional :query, :string, 2
|
151
|
+
optional :page_size, :int32, 3
|
152
|
+
optional :page_token, :string, 4
|
153
|
+
end
|
141
154
|
add_message "google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse" do
|
142
155
|
repeated :assignments, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
|
143
156
|
optional :next_page_token, :string, 2
|
144
157
|
end
|
158
|
+
add_message "google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse" do
|
159
|
+
repeated :assignments, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
|
160
|
+
optional :next_page_token, :string, 2
|
161
|
+
end
|
145
162
|
add_message "google.cloud.bigquery.reservation.v1.MoveAssignmentRequest" do
|
146
163
|
optional :name, :string, 1
|
147
164
|
optional :destination_id, :string, 3
|
@@ -193,7 +210,9 @@ module Google
|
|
193
210
|
ListAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.ListAssignmentsResponse").msgclass
|
194
211
|
DeleteAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest").msgclass
|
195
212
|
SearchAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest").msgclass
|
213
|
+
SearchAllAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest").msgclass
|
196
214
|
SearchAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse").msgclass
|
215
|
+
SearchAllAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse").msgclass
|
197
216
|
MoveAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.MoveAssignmentRequest").msgclass
|
198
217
|
BiReservation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.BiReservation").msgclass
|
199
218
|
GetBiReservationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.reservation.v1.GetBiReservationRequest").msgclass
|