google-cloud-bigquery-reservation-v1 0.3.2 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/bigquery/reservation/v1/reservation_pb.rb +21 -2
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb +666 -134
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/paths.rb +2 -2
- data/lib/google/cloud/bigquery/reservation/v1/reservation_services_pb.rb +28 -2
- data/lib/google/cloud/bigquery/reservation/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb +80 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b296ad2acc74f6c083b9f6e6a56a4db3ddf22e7b6cdc496e77929da9dad5265a
|
4
|
+
data.tar.gz: a3d297a574aeb962bde8d51dcb9285e0e555364f01bfe3b04ab77c21d9ef6180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32dc7b60458624dbd7d064c60c041290316cbba0e82dc5a74035a946a555bb1f9bfd93f39cfd52e1f7e4939f5df7d6776057fdabf208d7c7de91e35d46d056f9
|
7
|
+
data.tar.gz: 0b81020e8b9bb204fe097205e1f4876980bf0757aba3a58cd596c8fb12c6547bdddde8213306b64e9006b2440d10baf5a70059069b0ccd1385b07fbc1aea703b
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
@@ -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
|