google-cloud-bigquery-reservation-v1 0.8.1 → 0.10.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: a1ebe2c7f28d8f507a068f66471eaf1f00e01a43a8e471e4d32de33e903ea8ff
4
- data.tar.gz: 84da11db6bfb0ed7198822170f17aca01e5bea02868608e21f422e6312611253
3
+ metadata.gz: 63dc408d725f4c9d347af84311e7f515ff48dfde8dd1a04b98618524163d7ec2
4
+ data.tar.gz: 6c8668ab239a9afe8e19b300e5f59141ca0542f4a28f3c049f355d6640ff5295
5
5
  SHA512:
6
- metadata.gz: 3d6b3c696eb7c5dbadbc7c4399e7db060c93284351657abaeeddb9d42d4376a850ed2dfc2456fd51548909c64402cfd7fd8e896516e8090d9ed31ad36977b625
7
- data.tar.gz: 82df1ab50ab0d885106497b4476b2d0b2deae3b7238e2c1e6717681d3df23947c0398f3a29187ca75f17c788ed0ba373c47abbab886d3022062d1bc52754714b
6
+ metadata.gz: 213696cfed3c8179f8054f49325824408910f05ebf55354cb8adde2932fe0b60da06af0f2bb19a0f365fb28d58827e8f57a0232310c996b2836d1303c5c4399b
7
+ data.tar.gz: 521b87f9da1a9e34496dac1c2f8107af97a6069fb76c10bf76db2d03ad891a73b249e536770d3b81e2024a3afbc52b93f7203386f091d4bf6daba996312f9c03
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/bigquery/reservation/v1/reservation.proto
3
4
 
@@ -12,204 +13,34 @@ require 'google/protobuf/field_mask_pb'
12
13
  require 'google/protobuf/timestamp_pb'
13
14
  require 'google/rpc/status_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/bigquery/reservation/v1/reservation.proto", :syntax => :proto3) do
17
- add_message "google.cloud.bigquery.reservation.v1.Reservation" do
18
- optional :name, :string, 1
19
- optional :slot_capacity, :int64, 2
20
- optional :ignore_idle_slots, :bool, 4
21
- optional :autoscale, :message, 7, "google.cloud.bigquery.reservation.v1.Reservation.Autoscale"
22
- optional :concurrency, :int64, 16
23
- optional :creation_time, :message, 8, "google.protobuf.Timestamp"
24
- optional :update_time, :message, 9, "google.protobuf.Timestamp"
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
31
- end
32
- add_message "google.cloud.bigquery.reservation.v1.CapacityCommitment" do
33
- optional :name, :string, 1
34
- optional :slot_count, :int64, 2
35
- optional :plan, :enum, 3, "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan"
36
- optional :state, :enum, 4, "google.cloud.bigquery.reservation.v1.CapacityCommitment.State"
37
- optional :commitment_start_time, :message, 9, "google.protobuf.Timestamp"
38
- optional :commitment_end_time, :message, 5, "google.protobuf.Timestamp"
39
- optional :failure_status, :message, 7, "google.rpc.Status"
40
- optional :renewal_plan, :enum, 8, "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan"
41
- optional :multi_region_auxiliary, :bool, 10
42
- optional :edition, :enum, 12, "google.cloud.bigquery.reservation.v1.Edition"
43
- end
44
- add_enum "google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan" do
45
- value :COMMITMENT_PLAN_UNSPECIFIED, 0
46
- value :FLEX, 3
47
- value :FLEX_FLAT_RATE, 7
48
- value :TRIAL, 5
49
- value :MONTHLY, 2
50
- value :MONTHLY_FLAT_RATE, 8
51
- value :ANNUAL, 4
52
- value :ANNUAL_FLAT_RATE, 9
53
- value :THREE_YEAR, 10
54
- value :NONE, 6
55
- end
56
- add_enum "google.cloud.bigquery.reservation.v1.CapacityCommitment.State" do
57
- value :STATE_UNSPECIFIED, 0
58
- value :PENDING, 1
59
- value :ACTIVE, 2
60
- value :FAILED, 3
61
- end
62
- add_message "google.cloud.bigquery.reservation.v1.CreateReservationRequest" do
63
- optional :parent, :string, 1
64
- optional :reservation_id, :string, 2
65
- optional :reservation, :message, 3, "google.cloud.bigquery.reservation.v1.Reservation"
66
- end
67
- add_message "google.cloud.bigquery.reservation.v1.ListReservationsRequest" do
68
- optional :parent, :string, 1
69
- optional :page_size, :int32, 2
70
- optional :page_token, :string, 3
71
- end
72
- add_message "google.cloud.bigquery.reservation.v1.ListReservationsResponse" do
73
- repeated :reservations, :message, 1, "google.cloud.bigquery.reservation.v1.Reservation"
74
- optional :next_page_token, :string, 2
75
- end
76
- add_message "google.cloud.bigquery.reservation.v1.GetReservationRequest" do
77
- optional :name, :string, 1
78
- end
79
- add_message "google.cloud.bigquery.reservation.v1.DeleteReservationRequest" do
80
- optional :name, :string, 1
81
- end
82
- add_message "google.cloud.bigquery.reservation.v1.UpdateReservationRequest" do
83
- optional :reservation, :message, 1, "google.cloud.bigquery.reservation.v1.Reservation"
84
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
85
- end
86
- add_message "google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest" do
87
- optional :parent, :string, 1
88
- optional :capacity_commitment, :message, 2, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
89
- optional :enforce_single_admin_project_per_org, :bool, 4
90
- optional :capacity_commitment_id, :string, 5
91
- end
92
- add_message "google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest" do
93
- optional :parent, :string, 1
94
- optional :page_size, :int32, 2
95
- optional :page_token, :string, 3
96
- end
97
- add_message "google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse" do
98
- repeated :capacity_commitments, :message, 1, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
99
- optional :next_page_token, :string, 2
100
- end
101
- add_message "google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest" do
102
- optional :name, :string, 1
103
- end
104
- add_message "google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest" do
105
- optional :name, :string, 1
106
- optional :force, :bool, 3
107
- end
108
- add_message "google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest" do
109
- optional :capacity_commitment, :message, 1, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
110
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
111
- end
112
- add_message "google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest" do
113
- optional :name, :string, 1
114
- optional :slot_count, :int64, 2
115
- end
116
- add_message "google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse" do
117
- optional :first, :message, 1, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
118
- optional :second, :message, 2, "google.cloud.bigquery.reservation.v1.CapacityCommitment"
119
- end
120
- add_message "google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest" do
121
- optional :parent, :string, 1
122
- repeated :capacity_commitment_ids, :string, 2
123
- end
124
- add_message "google.cloud.bigquery.reservation.v1.Assignment" do
125
- optional :name, :string, 1
126
- optional :assignee, :string, 4
127
- optional :job_type, :enum, 3, "google.cloud.bigquery.reservation.v1.Assignment.JobType"
128
- optional :state, :enum, 6, "google.cloud.bigquery.reservation.v1.Assignment.State"
129
- end
130
- add_enum "google.cloud.bigquery.reservation.v1.Assignment.JobType" do
131
- value :JOB_TYPE_UNSPECIFIED, 0
132
- value :PIPELINE, 1
133
- value :QUERY, 2
134
- value :ML_EXTERNAL, 3
135
- value :BACKGROUND, 4
136
- end
137
- add_enum "google.cloud.bigquery.reservation.v1.Assignment.State" do
138
- value :STATE_UNSPECIFIED, 0
139
- value :PENDING, 1
140
- value :ACTIVE, 2
141
- end
142
- add_message "google.cloud.bigquery.reservation.v1.CreateAssignmentRequest" do
143
- optional :parent, :string, 1
144
- optional :assignment, :message, 2, "google.cloud.bigquery.reservation.v1.Assignment"
145
- optional :assignment_id, :string, 4
146
- end
147
- add_message "google.cloud.bigquery.reservation.v1.ListAssignmentsRequest" do
148
- optional :parent, :string, 1
149
- optional :page_size, :int32, 2
150
- optional :page_token, :string, 3
151
- end
152
- add_message "google.cloud.bigquery.reservation.v1.ListAssignmentsResponse" do
153
- repeated :assignments, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
154
- optional :next_page_token, :string, 2
155
- end
156
- add_message "google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest" do
157
- optional :name, :string, 1
158
- end
159
- add_message "google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest" do
160
- optional :parent, :string, 1
161
- optional :query, :string, 2
162
- optional :page_size, :int32, 3
163
- optional :page_token, :string, 4
164
- end
165
- add_message "google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest" do
166
- optional :parent, :string, 1
167
- optional :query, :string, 2
168
- optional :page_size, :int32, 3
169
- optional :page_token, :string, 4
170
- end
171
- add_message "google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse" do
172
- repeated :assignments, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
173
- optional :next_page_token, :string, 2
174
- end
175
- add_message "google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse" do
176
- repeated :assignments, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
177
- optional :next_page_token, :string, 2
178
- end
179
- add_message "google.cloud.bigquery.reservation.v1.MoveAssignmentRequest" do
180
- optional :name, :string, 1
181
- optional :destination_id, :string, 3
182
- optional :assignment_id, :string, 5
183
- end
184
- add_message "google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest" do
185
- optional :assignment, :message, 1, "google.cloud.bigquery.reservation.v1.Assignment"
186
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
187
- end
188
- add_message "google.cloud.bigquery.reservation.v1.TableReference" do
189
- optional :project_id, :string, 1
190
- optional :dataset_id, :string, 2
191
- optional :table_id, :string, 3
192
- end
193
- add_message "google.cloud.bigquery.reservation.v1.BiReservation" do
194
- optional :name, :string, 1
195
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
196
- optional :size, :int64, 4
197
- repeated :preferred_tables, :message, 5, "google.cloud.bigquery.reservation.v1.TableReference"
198
- end
199
- add_message "google.cloud.bigquery.reservation.v1.GetBiReservationRequest" do
200
- optional :name, :string, 1
201
- end
202
- add_message "google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest" do
203
- optional :bi_reservation, :message, 1, "google.cloud.bigquery.reservation.v1.BiReservation"
204
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
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
16
+
17
+ descriptor_data = "\n6google/cloud/bigquery/reservation/v1/reservation.proto\x12$google.cloud.bigquery.reservation.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xb5\x04\n\x0bReservation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rslot_capacity\x18\x02 \x01(\x03\x12\x19\n\x11ignore_idle_slots\x18\x04 \x01(\x08\x12N\n\tautoscale\x18\x07 \x01(\x0b\x32;.google.cloud.bigquery.reservation.v1.Reservation.Autoscale\x12\x13\n\x0b\x63oncurrency\x18\x10 \x01(\x03\x12\x36\n\rcreation_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x16multi_region_auxiliary\x18\x0e \x01(\x08\x12>\n\x07\x65\x64ition\x18\x11 \x01(\x0e\x32-.google.cloud.bigquery.reservation.v1.Edition\x1a:\n\tAutoscale\x12\x1a\n\rcurrent_slots\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\tmax_slots\x18\x02 \x01(\x03:w\xea\x41t\n.bigqueryreservation.googleapis.com/Reservation\x12\x42projects/{project}/locations/{location}/reservations/{reservation}\"\xf3\x07\n\x12\x43\x61pacityCommitment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\nslot_count\x18\x02 \x01(\x03\x12U\n\x04plan\x18\x03 \x01(\x0e\x32G.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan\x12R\n\x05state\x18\x04 \x01(\x0e\x32>.google.cloud.bigquery.reservation.v1.CapacityCommitment.StateB\x03\xe0\x41\x03\x12>\n\x15\x63ommitment_start_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13\x63ommitment_end_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0e\x66\x61ilure_status\x18\x07 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12]\n\x0crenewal_plan\x18\x08 \x01(\x0e\x32G.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan\x12\x1e\n\x16multi_region_auxiliary\x18\n \x01(\x08\x12>\n\x07\x65\x64ition\x18\x0c \x01(\x0e\x32-.google.cloud.bigquery.reservation.v1.Edition\"\xc6\x01\n\x0e\x43ommitmentPlan\x12\x1f\n\x1b\x43OMMITMENT_PLAN_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46LEX\x10\x03\x12\x16\n\x0e\x46LEX_FLAT_RATE\x10\x07\x1a\x02\x08\x01\x12\t\n\x05TRIAL\x10\x05\x12\x0b\n\x07MONTHLY\x10\x02\x12\x19\n\x11MONTHLY_FLAT_RATE\x10\x08\x1a\x02\x08\x01\x12\n\n\x06\x41NNUAL\x10\x04\x12\x18\n\x10\x41NNUAL_FLAT_RATE\x10\t\x1a\x02\x08\x01\x12\x0e\n\nTHREE_YEAR\x10\n\x12\x08\n\x04NONE\x10\x06\"C\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:\x8e\x01\xea\x41\x8a\x01\n5bigqueryreservation.googleapis.com/CapacityCommitment\x12Qprojects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}\"\xc2\x01\n\x18\x43reateReservationRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.bigqueryreservation.googleapis.com/Reservation\x12\x16\n\x0ereservation_id\x18\x02 \x01(\t\x12\x46\n\x0breservation\x18\x03 \x01(\x0b\x32\x31.google.cloud.bigquery.reservation.v1.Reservation\"\x88\x01\n\x17ListReservationsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.bigqueryreservation.googleapis.com/Reservation\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"|\n\x18ListReservationsResponse\x12G\n\x0creservations\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.reservation.v1.Reservation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x15GetReservationRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.bigqueryreservation.googleapis.com/Reservation\"`\n\x18\x44\x65leteReservationRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.bigqueryreservation.googleapis.com/Reservation\"\x93\x01\n\x18UpdateReservationRequest\x12\x46\n\x0breservation\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.reservation.v1.Reservation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x95\x02\n\x1f\x43reateCapacityCommitmentRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x62igqueryreservation.googleapis.com/CapacityCommitment\x12U\n\x13\x63\x61pacity_commitment\x18\x02 \x01(\x0b\x32\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\x12,\n$enforce_single_admin_project_per_org\x18\x04 \x01(\x08\x12\x1e\n\x16\x63\x61pacity_commitment_id\x18\x05 \x01(\t\"\x96\x01\n\x1eListCapacityCommitmentsRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x62igqueryreservation.googleapis.com/CapacityCommitment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x92\x01\n\x1fListCapacityCommitmentsResponse\x12V\n\x14\x63\x61pacity_commitments\x18\x01 \x03(\x0b\x32\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"k\n\x1cGetCapacityCommitmentRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5bigqueryreservation.googleapis.com/CapacityCommitment\"}\n\x1f\x44\x65leteCapacityCommitmentRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5bigqueryreservation.googleapis.com/CapacityCommitment\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\"\xa9\x01\n\x1fUpdateCapacityCommitmentRequest\x12U\n\x13\x63\x61pacity_commitment\x18\x01 \x01(\x0b\x32\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x81\x01\n\x1eSplitCapacityCommitmentRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5bigqueryreservation.googleapis.com/CapacityCommitment\x12\x12\n\nslot_count\x18\x02 \x01(\x03\"\xb4\x01\n\x1fSplitCapacityCommitmentResponse\x12G\n\x05\x66irst\x18\x01 \x01(\x0b\x32\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\x12H\n\x06second\x18\x02 \x01(\x0b\x32\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\"\x8e\x01\n\x1fMergeCapacityCommitmentsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xfa\x41\x37\x12\x35\x62igqueryreservation.googleapis.com/CapacityCommitment\x12\x1f\n\x17\x63\x61pacity_commitment_ids\x18\x02 \x03(\t\"\xf4\x03\n\nAssignment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x08\x61ssignee\x18\x04 \x01(\t\x12J\n\x08job_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.bigquery.reservation.v1.Assignment.JobType\x12J\n\x05state\x18\x06 \x01(\x0e\x32\x36.google.cloud.bigquery.reservation.v1.Assignment.StateB\x03\xe0\x41\x03\"]\n\x07JobType\x12\x18\n\x14JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PIPELINE\x10\x01\x12\t\n\x05QUERY\x10\x02\x12\x0f\n\x0bML_EXTERNAL\x10\x03\x12\x0e\n\nBACKGROUND\x10\x04\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02:\x90\x01\xea\x41\x8c\x01\n-bigqueryreservation.googleapis.com/Assignment\x12[projects/{project}/locations/{location}/reservations/{reservation}/assignments/{assignment}\"\xbd\x01\n\x17\x43reateAssignmentRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigqueryreservation.googleapis.com/Assignment\x12\x44\n\nassignment\x18\x02 \x01(\x0b\x32\x30.google.cloud.bigquery.reservation.v1.Assignment\x12\x15\n\rassignment_id\x18\x04 \x01(\t\"\x86\x01\n\x16ListAssignmentsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigqueryreservation.googleapis.com/Assignment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x17ListAssignmentsResponse\x12\x45\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x30.google.cloud.bigquery.reservation.v1.Assignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x17\x44\x65leteAssignmentRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigqueryreservation.googleapis.com/Assignment\"\x8b\x01\n\x18SearchAssignmentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05query\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x8e\x01\n\x1bSearchAllAssignmentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05query\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"{\n\x19SearchAssignmentsResponse\x12\x45\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x30.google.cloud.bigquery.reservation.v1.Assignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"~\n\x1cSearchAllAssignmentsResponse\x12\x45\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x30.google.cloud.bigquery.reservation.v1.Assignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbf\x01\n\x15MoveAssignmentRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigqueryreservation.googleapis.com/Assignment\x12J\n\x0e\x64\x65stination_id\x18\x03 \x01(\tB2\xfa\x41/\x12-bigqueryreservation.googleapis.com/Assignment\x12\x15\n\rassignment_id\x18\x05 \x01(\t\"\x90\x01\n\x17UpdateAssignmentRequest\x12\x44\n\nassignment\x18\x01 \x01(\x0b\x32\x30.google.cloud.bigquery.reservation.v1.Assignment\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"J\n\x0eTableReference\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\ndataset_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"\x9f\x02\n\rBiReservation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04size\x18\x04 \x01(\x03\x12N\n\x10preferred_tables\x18\x05 \x03(\x0b\x32\x34.google.cloud.bigquery.reservation.v1.TableReference:l\xea\x41i\n0bigqueryreservation.googleapis.com/BiReservation\x12\x35projects/{project}/locations/{location}/biReservation\"a\n\x17GetBiReservationRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0bigqueryreservation.googleapis.com/BiReservation\"\x9a\x01\n\x1aUpdateBiReservationRequest\x12K\n\x0e\x62i_reservation\x18\x01 \x01(\x0b\x32\x33.google.cloud.bigquery.reservation.v1.BiReservation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask*U\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0e\n\nENTERPRISE\x10\x02\x12\x13\n\x0f\x45NTERPRISE_PLUS\x10\x03\x32\xc1\'\n\x12ReservationService\x12\xf1\x01\n\x11\x43reateReservation\x12>.google.cloud.bigquery.reservation.v1.CreateReservationRequest\x1a\x31.google.cloud.bigquery.reservation.v1.Reservation\"i\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/reservations:\x0breservation\xda\x41!parent,reservation,reservation_id\x12\xd4\x01\n\x10ListReservations\x12=.google.cloud.bigquery.reservation.v1.ListReservationsRequest\x1a>.google.cloud.bigquery.reservation.v1.ListReservationsResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/reservations\xda\x41\x06parent\x12\xc1\x01\n\x0eGetReservation\x12;.google.cloud.bigquery.reservation.v1.GetReservationRequest\x1a\x31.google.cloud.bigquery.reservation.v1.Reservation\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/reservations/*}\xda\x41\x04name\x12\xac\x01\n\x11\x44\x65leteReservation\x12>.google.cloud.bigquery.reservation.v1.DeleteReservationRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/reservations/*}\xda\x41\x04name\x12\xf3\x01\n\x11UpdateReservation\x12>.google.cloud.bigquery.reservation.v1.UpdateReservationRequest\x1a\x31.google.cloud.bigquery.reservation.v1.Reservation\"k\x82\xd3\xe4\x93\x02K2</v1/{reservation.name=projects/*/locations/*/reservations/*}:\x0breservation\xda\x41\x17reservation,update_mask\x12\x8e\x02\n\x18\x43reateCapacityCommitment\x12\x45.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest\x1a\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\"q\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/capacityCommitments:\x13\x63\x61pacity_commitment\xda\x41\x1aparent,capacity_commitment\x12\xf0\x01\n\x17ListCapacityCommitments\x12\x44.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest\x1a\x45.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/capacityCommitments\xda\x41\x06parent\x12\xdd\x01\n\x15GetCapacityCommitment\x12\x42.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest\x1a\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/capacityCommitments/*}\xda\x41\x04name\x12\xc1\x01\n\x18\x44\x65leteCapacityCommitment\x12\x45.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest\x1a\x16.google.protobuf.Empty\"F\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/capacityCommitments/*}\xda\x41\x04name\x12\xa8\x02\n\x18UpdateCapacityCommitment\x12\x45.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest\x1a\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\"\x8a\x01\x82\xd3\xe4\x93\x02\x62\x32K/v1/{capacity_commitment.name=projects/*/locations/*/capacityCommitments/*}:\x13\x63\x61pacity_commitment\xda\x41\x1f\x63\x61pacity_commitment,update_mask\x12\x82\x02\n\x17SplitCapacityCommitment\x12\x44.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest\x1a\x45.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse\"Z\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/capacityCommitments/*}:split:\x01*\xda\x41\x0fname,slot_count\x12\x86\x02\n\x18MergeCapacityCommitments\x12\x45.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest\x1a\x38.google.cloud.bigquery.reservation.v1.CapacityCommitment\"i\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*}/capacityCommitments:merge:\x01*\xda\x41\x1eparent,capacity_commitment_ids\x12\xeb\x01\n\x10\x43reateAssignment\x12=.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest\x1a\x30.google.cloud.bigquery.reservation.v1.Assignment\"f\x82\xd3\xe4\x93\x02L\">/v1/{parent=projects/*/locations/*/reservations/*}/assignments:\nassignment\xda\x41\x11parent,assignment\x12\xdf\x01\n\x0fListAssignments\x12<.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest\x1a=.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/reservations/*}/assignments\xda\x41\x06parent\x12\xb8\x01\n\x10\x44\x65leteAssignment\x12=.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest\x1a\x16.google.protobuf.Empty\"M\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/reservations/*/assignments/*}\xda\x41\x04name\x12\xe5\x01\n\x11SearchAssignments\x12>.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest\x1a?.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse\"O\x88\x02\x01\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}:searchAssignments\xda\x41\x0cparent,query\x12\xee\x01\n\x14SearchAllAssignments\x12\x41.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest\x1a\x42.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse\"O\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}:searchAllAssignments\xda\x41\x0cparent,query\x12\xe5\x01\n\x0eMoveAssignment\x12;.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest\x1a\x30.google.cloud.bigquery.reservation.v1.Assignment\"d\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/reservations/*/assignments/*}:move:\x01*\xda\x41\x13name,destination_id\x12\xfb\x01\n\x10UpdateAssignment\x12=.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest\x1a\x30.google.cloud.bigquery.reservation.v1.Assignment\"v\x82\xd3\xe4\x93\x02W2I/v1/{assignment.name=projects/*/locations/*/reservations/*/assignments/*}:\nassignment\xda\x41\x16\x61ssignment,update_mask\x12\xc6\x01\n\x10GetBiReservation\x12=.google.cloud.bigquery.reservation.v1.GetBiReservationRequest\x1a\x33.google.cloud.bigquery.reservation.v1.BiReservation\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/biReservation}\xda\x41\x04name\x12\x81\x02\n\x13UpdateBiReservation\x12@.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest\x1a\x33.google.cloud.bigquery.reservation.v1.BiReservation\"s\x82\xd3\xe4\x93\x02P2>/v1/{bi_reservation.name=projects/*/locations/*/biReservation}:\x0e\x62i_reservation\xda\x41\x1a\x62i_reservation,update_mask\x1a\x7f\xca\x41\"bigqueryreservation.googleapis.com\xd2\x41Whttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xd8\x01\n(com.google.cloud.bigquery.reservation.v1B\x10ReservationProtoP\x01ZJcloud.google.com/go/bigquery/reservation/apiv1/reservationpb;reservationpb\xaa\x02$Google.Cloud.BigQuery.Reservation.V1\xca\x02$Google\\Cloud\\BigQuery\\Reservation\\V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["google.rpc.Status", "google/rpc/status.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
211
40
  end
212
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
213
44
  end
214
45
 
215
46
  module Google
@@ -206,7 +206,7 @@ module Google
206
206
  credentials = @config.credentials
207
207
  # Use self-signed JWT if the endpoint is unchanged from default,
208
208
  # but only if the default endpoint does not have a region prefix.
209
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
209
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
210
210
  !@config.endpoint.split(".").first.include?("-")
211
211
  credentials ||= Credentials.default scope: @config.scope,
212
212
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -221,7 +221,8 @@ module Google
221
221
  credentials: credentials,
222
222
  endpoint: @config.endpoint,
223
223
  channel_args: @config.channel_args,
224
- interceptors: @config.interceptors
224
+ interceptors: @config.interceptors,
225
+ channel_pool_config: @config.channel_pool
225
226
  )
226
227
  end
227
228
 
@@ -2380,7 +2381,9 @@ module Google
2380
2381
  class Configuration
2381
2382
  extend ::Gapic::Config
2382
2383
 
2383
- config_attr :endpoint, "bigqueryreservation.googleapis.com", ::String
2384
+ DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com"
2385
+
2386
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2384
2387
  config_attr :credentials, nil do |value|
2385
2388
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2386
2389
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -2415,6 +2418,14 @@ module Google
2415
2418
  end
2416
2419
  end
2417
2420
 
2421
+ ##
2422
+ # Configuration for the channel pool
2423
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2424
+ #
2425
+ def channel_pool
2426
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2427
+ end
2428
+
2418
2429
  ##
2419
2430
  # Configuration RPC class for the ReservationService API.
2420
2431
  #
@@ -202,7 +202,7 @@ module Google
202
202
  credentials = @config.credentials
203
203
  # Use self-signed JWT if the endpoint is unchanged from default,
204
204
  # but only if the default endpoint does not have a region prefix.
205
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
205
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
206
206
  !@config.endpoint.split(".").first.include?("-")
207
207
  credentials ||= Credentials.default scope: @config.scope,
208
208
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -252,6 +252,22 @@ module Google
252
252
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
253
253
  #
254
254
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
255
+ #
256
+ # @example Basic example
257
+ # require "google/cloud/bigquery/reservation/v1"
258
+ #
259
+ # # Create a client object. The client can be reused for multiple calls.
260
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
261
+ #
262
+ # # Create a request. To set request fields, pass in keyword arguments.
263
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateReservationRequest.new
264
+ #
265
+ # # Call the create_reservation method.
266
+ # result = client.create_reservation request
267
+ #
268
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
269
+ # p result
270
+ #
255
271
  def create_reservation request, options = nil
256
272
  raise ::ArgumentError, "request must be provided" if request.nil?
257
273
 
@@ -319,6 +335,26 @@ module Google
319
335
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Reservation>]
320
336
  #
321
337
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
338
+ #
339
+ # @example Basic example
340
+ # require "google/cloud/bigquery/reservation/v1"
341
+ #
342
+ # # Create a client object. The client can be reused for multiple calls.
343
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
344
+ #
345
+ # # Create a request. To set request fields, pass in keyword arguments.
346
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListReservationsRequest.new
347
+ #
348
+ # # Call the list_reservations method.
349
+ # result = client.list_reservations request
350
+ #
351
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
352
+ # # over elements, and API calls will be issued to fetch pages as needed.
353
+ # result.each do |item|
354
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Reservation.
355
+ # p item
356
+ # end
357
+ #
322
358
  def list_reservations request, options = nil
323
359
  raise ::ArgumentError, "request must be provided" if request.nil?
324
360
 
@@ -383,6 +419,22 @@ module Google
383
419
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
384
420
  #
385
421
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
422
+ #
423
+ # @example Basic example
424
+ # require "google/cloud/bigquery/reservation/v1"
425
+ #
426
+ # # Create a client object. The client can be reused for multiple calls.
427
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
428
+ #
429
+ # # Create a request. To set request fields, pass in keyword arguments.
430
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetReservationRequest.new
431
+ #
432
+ # # Call the get_reservation method.
433
+ # result = client.get_reservation request
434
+ #
435
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
436
+ # p result
437
+ #
386
438
  def get_reservation request, options = nil
387
439
  raise ::ArgumentError, "request must be provided" if request.nil?
388
440
 
@@ -448,6 +500,22 @@ module Google
448
500
  # @return [::Google::Protobuf::Empty]
449
501
  #
450
502
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
503
+ #
504
+ # @example Basic example
505
+ # require "google/cloud/bigquery/reservation/v1"
506
+ #
507
+ # # Create a client object. The client can be reused for multiple calls.
508
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
509
+ #
510
+ # # Create a request. To set request fields, pass in keyword arguments.
511
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteReservationRequest.new
512
+ #
513
+ # # Call the delete_reservation method.
514
+ # result = client.delete_reservation request
515
+ #
516
+ # # The returned object is of type Google::Protobuf::Empty.
517
+ # p result
518
+ #
451
519
  def delete_reservation request, options = nil
452
520
  raise ::ArgumentError, "request must be provided" if request.nil?
453
521
 
@@ -512,6 +580,22 @@ module Google
512
580
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
513
581
  #
514
582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
583
+ #
584
+ # @example Basic example
585
+ # require "google/cloud/bigquery/reservation/v1"
586
+ #
587
+ # # Create a client object. The client can be reused for multiple calls.
588
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
589
+ #
590
+ # # Create a request. To set request fields, pass in keyword arguments.
591
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateReservationRequest.new
592
+ #
593
+ # # Call the update_reservation method.
594
+ # result = client.update_reservation request
595
+ #
596
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
597
+ # p result
598
+ #
515
599
  def update_reservation request, options = nil
516
600
  raise ::ArgumentError, "request must be provided" if request.nil?
517
601
 
@@ -586,6 +670,22 @@ module Google
586
670
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
587
671
  #
588
672
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
673
+ #
674
+ # @example Basic example
675
+ # require "google/cloud/bigquery/reservation/v1"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateCapacityCommitmentRequest.new
682
+ #
683
+ # # Call the create_capacity_commitment method.
684
+ # result = client.create_capacity_commitment request
685
+ #
686
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
687
+ # p result
688
+ #
589
689
  def create_capacity_commitment request, options = nil
590
690
  raise ::ArgumentError, "request must be provided" if request.nil?
591
691
 
@@ -653,6 +753,26 @@ module Google
653
753
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment>]
654
754
  #
655
755
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
756
+ #
757
+ # @example Basic example
758
+ # require "google/cloud/bigquery/reservation/v1"
759
+ #
760
+ # # Create a client object. The client can be reused for multiple calls.
761
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
762
+ #
763
+ # # Create a request. To set request fields, pass in keyword arguments.
764
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsRequest.new
765
+ #
766
+ # # Call the list_capacity_commitments method.
767
+ # result = client.list_capacity_commitments request
768
+ #
769
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
770
+ # # over elements, and API calls will be issued to fetch pages as needed.
771
+ # result.each do |item|
772
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
773
+ # p item
774
+ # end
775
+ #
656
776
  def list_capacity_commitments request, options = nil
657
777
  raise ::ArgumentError, "request must be provided" if request.nil?
658
778
 
@@ -717,6 +837,22 @@ module Google
717
837
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
718
838
  #
719
839
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
840
+ #
841
+ # @example Basic example
842
+ # require "google/cloud/bigquery/reservation/v1"
843
+ #
844
+ # # Create a client object. The client can be reused for multiple calls.
845
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
846
+ #
847
+ # # Create a request. To set request fields, pass in keyword arguments.
848
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetCapacityCommitmentRequest.new
849
+ #
850
+ # # Call the get_capacity_commitment method.
851
+ # result = client.get_capacity_commitment request
852
+ #
853
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
854
+ # p result
855
+ #
720
856
  def get_capacity_commitment request, options = nil
721
857
  raise ::ArgumentError, "request must be provided" if request.nil?
722
858
 
@@ -786,6 +922,22 @@ module Google
786
922
  # @return [::Google::Protobuf::Empty]
787
923
  #
788
924
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
925
+ #
926
+ # @example Basic example
927
+ # require "google/cloud/bigquery/reservation/v1"
928
+ #
929
+ # # Create a client object. The client can be reused for multiple calls.
930
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
931
+ #
932
+ # # Create a request. To set request fields, pass in keyword arguments.
933
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteCapacityCommitmentRequest.new
934
+ #
935
+ # # Call the delete_capacity_commitment method.
936
+ # result = client.delete_capacity_commitment request
937
+ #
938
+ # # The returned object is of type Google::Protobuf::Empty.
939
+ # p result
940
+ #
789
941
  def delete_capacity_commitment request, options = nil
790
942
  raise ::ArgumentError, "request must be provided" if request.nil?
791
943
 
@@ -856,6 +1008,22 @@ module Google
856
1008
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
857
1009
  #
858
1010
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1011
+ #
1012
+ # @example Basic example
1013
+ # require "google/cloud/bigquery/reservation/v1"
1014
+ #
1015
+ # # Create a client object. The client can be reused for multiple calls.
1016
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1017
+ #
1018
+ # # Create a request. To set request fields, pass in keyword arguments.
1019
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateCapacityCommitmentRequest.new
1020
+ #
1021
+ # # Call the update_capacity_commitment method.
1022
+ # result = client.update_capacity_commitment request
1023
+ #
1024
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
1025
+ # p result
1026
+ #
859
1027
  def update_capacity_commitment request, options = nil
860
1028
  raise ::ArgumentError, "request must be provided" if request.nil?
861
1029
 
@@ -928,6 +1096,22 @@ module Google
928
1096
  # @return [::Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse]
929
1097
  #
930
1098
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1099
+ #
1100
+ # @example Basic example
1101
+ # require "google/cloud/bigquery/reservation/v1"
1102
+ #
1103
+ # # Create a client object. The client can be reused for multiple calls.
1104
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1105
+ #
1106
+ # # Create a request. To set request fields, pass in keyword arguments.
1107
+ # request = Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentRequest.new
1108
+ #
1109
+ # # Call the split_capacity_commitment method.
1110
+ # result = client.split_capacity_commitment request
1111
+ #
1112
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse.
1113
+ # p result
1114
+ #
931
1115
  def split_capacity_commitment request, options = nil
932
1116
  raise ::ArgumentError, "request must be provided" if request.nil?
933
1117
 
@@ -1003,6 +1187,22 @@ module Google
1003
1187
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
1004
1188
  #
1005
1189
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1190
+ #
1191
+ # @example Basic example
1192
+ # require "google/cloud/bigquery/reservation/v1"
1193
+ #
1194
+ # # Create a client object. The client can be reused for multiple calls.
1195
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1196
+ #
1197
+ # # Create a request. To set request fields, pass in keyword arguments.
1198
+ # request = Google::Cloud::Bigquery::Reservation::V1::MergeCapacityCommitmentsRequest.new
1199
+ #
1200
+ # # Call the merge_capacity_commitments method.
1201
+ # result = client.merge_capacity_commitments request
1202
+ #
1203
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
1204
+ # p result
1205
+ #
1006
1206
  def merge_capacity_commitments request, options = nil
1007
1207
  raise ::ArgumentError, "request must be provided" if request.nil?
1008
1208
 
@@ -1107,6 +1307,22 @@ module Google
1107
1307
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1108
1308
  #
1109
1309
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1310
+ #
1311
+ # @example Basic example
1312
+ # require "google/cloud/bigquery/reservation/v1"
1313
+ #
1314
+ # # Create a client object. The client can be reused for multiple calls.
1315
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1316
+ #
1317
+ # # Create a request. To set request fields, pass in keyword arguments.
1318
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateAssignmentRequest.new
1319
+ #
1320
+ # # Call the create_assignment method.
1321
+ # result = client.create_assignment request
1322
+ #
1323
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1324
+ # p result
1325
+ #
1110
1326
  def create_assignment request, options = nil
1111
1327
  raise ::ArgumentError, "request must be provided" if request.nil?
1112
1328
 
@@ -1199,6 +1415,26 @@ module Google
1199
1415
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1200
1416
  #
1201
1417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1418
+ #
1419
+ # @example Basic example
1420
+ # require "google/cloud/bigquery/reservation/v1"
1421
+ #
1422
+ # # Create a client object. The client can be reused for multiple calls.
1423
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1424
+ #
1425
+ # # Create a request. To set request fields, pass in keyword arguments.
1426
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsRequest.new
1427
+ #
1428
+ # # Call the list_assignments method.
1429
+ # result = client.list_assignments request
1430
+ #
1431
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1432
+ # # over elements, and API calls will be issued to fetch pages as needed.
1433
+ # result.each do |item|
1434
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1435
+ # p item
1436
+ # end
1437
+ #
1202
1438
  def list_assignments request, options = nil
1203
1439
  raise ::ArgumentError, "request must be provided" if request.nil?
1204
1440
 
@@ -1277,6 +1513,22 @@ module Google
1277
1513
  # @return [::Google::Protobuf::Empty]
1278
1514
  #
1279
1515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1516
+ #
1517
+ # @example Basic example
1518
+ # require "google/cloud/bigquery/reservation/v1"
1519
+ #
1520
+ # # Create a client object. The client can be reused for multiple calls.
1521
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1522
+ #
1523
+ # # Create a request. To set request fields, pass in keyword arguments.
1524
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteAssignmentRequest.new
1525
+ #
1526
+ # # Call the delete_assignment method.
1527
+ # result = client.delete_assignment request
1528
+ #
1529
+ # # The returned object is of type Google::Protobuf::Empty.
1530
+ # p result
1531
+ #
1280
1532
  def delete_assignment request, options = nil
1281
1533
  raise ::ArgumentError, "request must be provided" if request.nil?
1282
1534
 
@@ -1375,6 +1627,26 @@ module Google
1375
1627
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1376
1628
  #
1377
1629
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1630
+ #
1631
+ # @example Basic example
1632
+ # require "google/cloud/bigquery/reservation/v1"
1633
+ #
1634
+ # # Create a client object. The client can be reused for multiple calls.
1635
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1636
+ #
1637
+ # # Create a request. To set request fields, pass in keyword arguments.
1638
+ # request = Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsRequest.new
1639
+ #
1640
+ # # Call the search_assignments method.
1641
+ # result = client.search_assignments request
1642
+ #
1643
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1644
+ # # over elements, and API calls will be issued to fetch pages as needed.
1645
+ # result.each do |item|
1646
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1647
+ # p item
1648
+ # end
1649
+ #
1378
1650
  def search_assignments request, options = nil
1379
1651
  raise ::ArgumentError, "request must be provided" if request.nil?
1380
1652
 
@@ -1471,6 +1743,26 @@ module Google
1471
1743
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1472
1744
  #
1473
1745
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1746
+ #
1747
+ # @example Basic example
1748
+ # require "google/cloud/bigquery/reservation/v1"
1749
+ #
1750
+ # # Create a client object. The client can be reused for multiple calls.
1751
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1752
+ #
1753
+ # # Create a request. To set request fields, pass in keyword arguments.
1754
+ # request = Google::Cloud::Bigquery::Reservation::V1::SearchAllAssignmentsRequest.new
1755
+ #
1756
+ # # Call the search_all_assignments method.
1757
+ # result = client.search_all_assignments request
1758
+ #
1759
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1760
+ # # over elements, and API calls will be issued to fetch pages as needed.
1761
+ # result.each do |item|
1762
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1763
+ # p item
1764
+ # end
1765
+ #
1474
1766
  def search_all_assignments request, options = nil
1475
1767
  raise ::ArgumentError, "request must be provided" if request.nil?
1476
1768
 
@@ -1549,6 +1841,22 @@ module Google
1549
1841
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1550
1842
  #
1551
1843
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1844
+ #
1845
+ # @example Basic example
1846
+ # require "google/cloud/bigquery/reservation/v1"
1847
+ #
1848
+ # # Create a client object. The client can be reused for multiple calls.
1849
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1850
+ #
1851
+ # # Create a request. To set request fields, pass in keyword arguments.
1852
+ # request = Google::Cloud::Bigquery::Reservation::V1::MoveAssignmentRequest.new
1853
+ #
1854
+ # # Call the move_assignment method.
1855
+ # result = client.move_assignment request
1856
+ #
1857
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1858
+ # p result
1859
+ #
1552
1860
  def move_assignment request, options = nil
1553
1861
  raise ::ArgumentError, "request must be provided" if request.nil?
1554
1862
 
@@ -1615,6 +1923,22 @@ module Google
1615
1923
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1616
1924
  #
1617
1925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1926
+ #
1927
+ # @example Basic example
1928
+ # require "google/cloud/bigquery/reservation/v1"
1929
+ #
1930
+ # # Create a client object. The client can be reused for multiple calls.
1931
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1932
+ #
1933
+ # # Create a request. To set request fields, pass in keyword arguments.
1934
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateAssignmentRequest.new
1935
+ #
1936
+ # # Call the update_assignment method.
1937
+ # result = client.update_assignment request
1938
+ #
1939
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1940
+ # p result
1941
+ #
1618
1942
  def update_assignment request, options = nil
1619
1943
  raise ::ArgumentError, "request must be provided" if request.nil?
1620
1944
 
@@ -1678,6 +2002,22 @@ module Google
1678
2002
  # @return [::Google::Cloud::Bigquery::Reservation::V1::BiReservation]
1679
2003
  #
1680
2004
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2005
+ #
2006
+ # @example Basic example
2007
+ # require "google/cloud/bigquery/reservation/v1"
2008
+ #
2009
+ # # Create a client object. The client can be reused for multiple calls.
2010
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
2011
+ #
2012
+ # # Create a request. To set request fields, pass in keyword arguments.
2013
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetBiReservationRequest.new
2014
+ #
2015
+ # # Call the get_bi_reservation method.
2016
+ # result = client.get_bi_reservation request
2017
+ #
2018
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::BiReservation.
2019
+ # p result
2020
+ #
1681
2021
  def get_bi_reservation request, options = nil
1682
2022
  raise ::ArgumentError, "request must be provided" if request.nil?
1683
2023
 
@@ -1749,6 +2089,22 @@ module Google
1749
2089
  # @return [::Google::Cloud::Bigquery::Reservation::V1::BiReservation]
1750
2090
  #
1751
2091
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2092
+ #
2093
+ # @example Basic example
2094
+ # require "google/cloud/bigquery/reservation/v1"
2095
+ #
2096
+ # # Create a client object. The client can be reused for multiple calls.
2097
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
2098
+ #
2099
+ # # Create a request. To set request fields, pass in keyword arguments.
2100
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateBiReservationRequest.new
2101
+ #
2102
+ # # Call the update_bi_reservation method.
2103
+ # result = client.update_bi_reservation request
2104
+ #
2105
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::BiReservation.
2106
+ # p result
2107
+ #
1752
2108
  def update_bi_reservation request, options = nil
1753
2109
  raise ::ArgumentError, "request must be provided" if request.nil?
1754
2110
 
@@ -1857,7 +2213,9 @@ module Google
1857
2213
  class Configuration
1858
2214
  extend ::Gapic::Config
1859
2215
 
1860
- config_attr :endpoint, "bigqueryreservation.googleapis.com", ::String
2216
+ DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com"
2217
+
2218
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1861
2219
  config_attr :credentials, nil do |value|
1862
2220
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1863
2221
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_reservation_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -98,7 +98,7 @@ module Google
98
98
 
99
99
  verb, uri, query_string_params, body = ServiceStub.transcode_list_reservations_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
101
+ query_string_params.to_h { |p| p.split "=", 2 }
102
102
  else
103
103
  {}
104
104
  end
@@ -136,7 +136,7 @@ module Google
136
136
 
137
137
  verb, uri, query_string_params, body = ServiceStub.transcode_get_reservation_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
139
+ query_string_params.to_h { |p| p.split "=", 2 }
140
140
  else
141
141
  {}
142
142
  end
@@ -174,7 +174,7 @@ module Google
174
174
 
175
175
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_reservation_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
177
+ query_string_params.to_h { |p| p.split "=", 2 }
178
178
  else
179
179
  {}
180
180
  end
@@ -212,7 +212,7 @@ module Google
212
212
 
213
213
  verb, uri, query_string_params, body = ServiceStub.transcode_update_reservation_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end
@@ -250,7 +250,7 @@ module Google
250
250
 
251
251
  verb, uri, query_string_params, body = ServiceStub.transcode_create_capacity_commitment_request request_pb
252
252
  query_string_params = if query_string_params.any?
253
- query_string_params.to_h { |p| p.split("=", 2) }
253
+ query_string_params.to_h { |p| p.split "=", 2 }
254
254
  else
255
255
  {}
256
256
  end
@@ -288,7 +288,7 @@ module Google
288
288
 
289
289
  verb, uri, query_string_params, body = ServiceStub.transcode_list_capacity_commitments_request request_pb
290
290
  query_string_params = if query_string_params.any?
291
- query_string_params.to_h { |p| p.split("=", 2) }
291
+ query_string_params.to_h { |p| p.split "=", 2 }
292
292
  else
293
293
  {}
294
294
  end
@@ -326,7 +326,7 @@ module Google
326
326
 
327
327
  verb, uri, query_string_params, body = ServiceStub.transcode_get_capacity_commitment_request request_pb
328
328
  query_string_params = if query_string_params.any?
329
- query_string_params.to_h { |p| p.split("=", 2) }
329
+ query_string_params.to_h { |p| p.split "=", 2 }
330
330
  else
331
331
  {}
332
332
  end
@@ -364,7 +364,7 @@ module Google
364
364
 
365
365
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_capacity_commitment_request request_pb
366
366
  query_string_params = if query_string_params.any?
367
- query_string_params.to_h { |p| p.split("=", 2) }
367
+ query_string_params.to_h { |p| p.split "=", 2 }
368
368
  else
369
369
  {}
370
370
  end
@@ -402,7 +402,7 @@ module Google
402
402
 
403
403
  verb, uri, query_string_params, body = ServiceStub.transcode_update_capacity_commitment_request request_pb
404
404
  query_string_params = if query_string_params.any?
405
- query_string_params.to_h { |p| p.split("=", 2) }
405
+ query_string_params.to_h { |p| p.split "=", 2 }
406
406
  else
407
407
  {}
408
408
  end
@@ -440,7 +440,7 @@ module Google
440
440
 
441
441
  verb, uri, query_string_params, body = ServiceStub.transcode_split_capacity_commitment_request request_pb
442
442
  query_string_params = if query_string_params.any?
443
- query_string_params.to_h { |p| p.split("=", 2) }
443
+ query_string_params.to_h { |p| p.split "=", 2 }
444
444
  else
445
445
  {}
446
446
  end
@@ -478,7 +478,7 @@ module Google
478
478
 
479
479
  verb, uri, query_string_params, body = ServiceStub.transcode_merge_capacity_commitments_request request_pb
480
480
  query_string_params = if query_string_params.any?
481
- query_string_params.to_h { |p| p.split("=", 2) }
481
+ query_string_params.to_h { |p| p.split "=", 2 }
482
482
  else
483
483
  {}
484
484
  end
@@ -516,7 +516,7 @@ module Google
516
516
 
517
517
  verb, uri, query_string_params, body = ServiceStub.transcode_create_assignment_request request_pb
518
518
  query_string_params = if query_string_params.any?
519
- query_string_params.to_h { |p| p.split("=", 2) }
519
+ query_string_params.to_h { |p| p.split "=", 2 }
520
520
  else
521
521
  {}
522
522
  end
@@ -554,7 +554,7 @@ module Google
554
554
 
555
555
  verb, uri, query_string_params, body = ServiceStub.transcode_list_assignments_request request_pb
556
556
  query_string_params = if query_string_params.any?
557
- query_string_params.to_h { |p| p.split("=", 2) }
557
+ query_string_params.to_h { |p| p.split "=", 2 }
558
558
  else
559
559
  {}
560
560
  end
@@ -592,7 +592,7 @@ module Google
592
592
 
593
593
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_assignment_request request_pb
594
594
  query_string_params = if query_string_params.any?
595
- query_string_params.to_h { |p| p.split("=", 2) }
595
+ query_string_params.to_h { |p| p.split "=", 2 }
596
596
  else
597
597
  {}
598
598
  end
@@ -630,7 +630,7 @@ module Google
630
630
 
631
631
  verb, uri, query_string_params, body = ServiceStub.transcode_search_assignments_request request_pb
632
632
  query_string_params = if query_string_params.any?
633
- query_string_params.to_h { |p| p.split("=", 2) }
633
+ query_string_params.to_h { |p| p.split "=", 2 }
634
634
  else
635
635
  {}
636
636
  end
@@ -668,7 +668,7 @@ module Google
668
668
 
669
669
  verb, uri, query_string_params, body = ServiceStub.transcode_search_all_assignments_request request_pb
670
670
  query_string_params = if query_string_params.any?
671
- query_string_params.to_h { |p| p.split("=", 2) }
671
+ query_string_params.to_h { |p| p.split "=", 2 }
672
672
  else
673
673
  {}
674
674
  end
@@ -706,7 +706,7 @@ module Google
706
706
 
707
707
  verb, uri, query_string_params, body = ServiceStub.transcode_move_assignment_request request_pb
708
708
  query_string_params = if query_string_params.any?
709
- query_string_params.to_h { |p| p.split("=", 2) }
709
+ query_string_params.to_h { |p| p.split "=", 2 }
710
710
  else
711
711
  {}
712
712
  end
@@ -744,7 +744,7 @@ module Google
744
744
 
745
745
  verb, uri, query_string_params, body = ServiceStub.transcode_update_assignment_request request_pb
746
746
  query_string_params = if query_string_params.any?
747
- query_string_params.to_h { |p| p.split("=", 2) }
747
+ query_string_params.to_h { |p| p.split "=", 2 }
748
748
  else
749
749
  {}
750
750
  end
@@ -782,7 +782,7 @@ module Google
782
782
 
783
783
  verb, uri, query_string_params, body = ServiceStub.transcode_get_bi_reservation_request request_pb
784
784
  query_string_params = if query_string_params.any?
785
- query_string_params.to_h { |p| p.split("=", 2) }
785
+ query_string_params.to_h { |p| p.split "=", 2 }
786
786
  else
787
787
  {}
788
788
  end
@@ -820,7 +820,7 @@ module Google
820
820
 
821
821
  verb, uri, query_string_params, body = ServiceStub.transcode_update_bi_reservation_request request_pb
822
822
  query_string_params = if query_string_params.any?
823
- query_string_params.to_h { |p| p.split("=", 2) }
823
+ query_string_params.to_h { |p| p.split "=", 2 }
824
824
  else
825
825
  {}
826
826
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Reservation
24
24
  module V1
25
- VERSION = "0.8.1"
25
+ VERSION = "0.10.0"
26
26
  end
27
27
  end
28
28
  end
@@ -83,7 +83,7 @@ module Google
83
83
  # long-running operation pattern.
84
84
  # @!attribute [rw] new_issue_uri
85
85
  # @return [::String]
86
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
87
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
88
88
  # @!attribute [rw] documentation_uri
89
89
  # @return [::String]
@@ -353,6 +353,15 @@ module Google
353
353
 
354
354
  # Street View Org.
355
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
356
365
  end
357
366
 
358
367
  # To where should client libraries be published?
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-reservation-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.4.2
217
+ rubygems_version: 3.4.19
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: A service to modify your BigQuery flat-rate reservations.