google-cloud-metastore-v1beta 0.4.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71a6f62650164a0f55c61c3e21ca77ee52fae49edd74e73ec7c2e3ddfe3cfc79
4
- data.tar.gz: 7bc10fbf944b68f2fd3b211cb1cd1deb5426ec3ff9b272adba921d4682115416
3
+ metadata.gz: 8ae0682aa4e31a5bdecf16627228acb653dab71f2ed09d4ed269f7eac07e4353
4
+ data.tar.gz: 1cc546d8d4762f928ed084973edb7a1b1241d69042404480bb2a43310cb875e3
5
5
  SHA512:
6
- metadata.gz: 95cc5e8407a0b7a719efd1e2d9862858c6d97b00291d52f6c57105cdd1e5dd97c49e77c42c867639a7aa4c9cc87bf07e902a5384533f0c7eba606bf3747cb028
7
- data.tar.gz: 8f738642ae413e89a88acad7bc3aa1ac806b4111cfde56a0d739e2e540d338441496db4a1de6b4de05507a4fb1ec25ab32e733d6c3d27a4141046362aa728e00
6
+ metadata.gz: be448cf62f9546cb6b5d3b2c9315f178ae77e6e9e21596aa6d5bfdc6241fee82c2c8ce589d018d8aa393ebb5faae5f8f5aaf87cd790e2dc605f55ad2814e74eb
7
+ data.tar.gz: 4c4e2e015c59ba8b2feeb37da7fd87c1cb56b0b7cafba00dda0f1ead7b27a6ed0060ecf84db36bb4951ea2d1831514a9a662c39572f0cdb917ae34148105dc40
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Dataproc Metastore V1beta API
2
2
 
3
- API Client library for the Dataproc Metastore V1beta API
3
+ The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.
4
4
 
5
5
  Dataproc Metastore is a fully managed, highly available within a region, autohealing serverless Apache Hive metastore (HMS) on Google Cloud for data analytics products. It supports HMS and serves as a critical component for managing the metadata of relational entities and provides interoperability between data processing applications in the open source data ecosystem.
6
6
 
@@ -0,0 +1,231 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Metastore
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/metastore/v1beta/rest"
28
+ # client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Rest::Client.new
29
+ #
30
+ module V1beta
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Metastore"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1beta/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1beta/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
68
+
69
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
70
+ uri_method: :get,
71
+ uri_template: "/v1beta/{resource}:getIamPolicy",
72
+ matches: [
73
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
74
+ ],
75
+ body: nil
76
+ ),
77
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
78
+ uri_method: :get,
79
+ uri_template: "/v1beta/{resource}:getIamPolicy",
80
+ matches: [
81
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
82
+ ],
83
+ body: nil
84
+ ),
85
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
86
+ uri_method: :get,
87
+ uri_template: "/v1beta/{resource}:getIamPolicy",
88
+ matches: [
89
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
90
+ ],
91
+ body: nil
92
+ ),
93
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
94
+ uri_method: :get,
95
+ uri_template: "/v1beta/{resource}:getIamPolicy",
96
+ matches: [
97
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
98
+ ],
99
+ body: nil
100
+ ),
101
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
102
+ uri_method: :get,
103
+ uri_template: "/v1beta/{resource}:getIamPolicy",
104
+ matches: [
105
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
106
+ ],
107
+ body: nil
108
+ )
109
+ ]
110
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
111
+
112
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
113
+ uri_method: :post,
114
+ uri_template: "/v1beta/{resource}:setIamPolicy",
115
+ matches: [
116
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
117
+ ],
118
+ body: "*"
119
+ ),
120
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
121
+ uri_method: :post,
122
+ uri_template: "/v1beta/{resource}:setIamPolicy",
123
+ matches: [
124
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
125
+ ],
126
+ body: "*"
127
+ ),
128
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
129
+ uri_method: :post,
130
+ uri_template: "/v1beta/{resource}:setIamPolicy",
131
+ matches: [
132
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
133
+ ],
134
+ body: "*"
135
+ ),
136
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
137
+ uri_method: :post,
138
+ uri_template: "/v1beta/{resource}:setIamPolicy",
139
+ matches: [
140
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
141
+ ],
142
+ body: "*"
143
+ ),
144
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
145
+ uri_method: :post,
146
+ uri_template: "/v1beta/{resource}:setIamPolicy",
147
+ matches: [
148
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
149
+ ],
150
+ body: "*"
151
+ )
152
+ ]
153
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
154
+
155
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
156
+ uri_method: :post,
157
+ uri_template: "/v1beta/{resource}:testIamPermissions",
158
+ matches: [
159
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
160
+ ],
161
+ body: "*"
162
+ ),
163
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
164
+ uri_method: :post,
165
+ uri_template: "/v1beta/{resource}:testIamPermissions",
166
+ matches: [
167
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
168
+ ],
169
+ body: "*"
170
+ ),
171
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
172
+ uri_method: :post,
173
+ uri_template: "/v1beta/{resource}:testIamPermissions",
174
+ matches: [
175
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
176
+ ],
177
+ body: "*"
178
+ ),
179
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
180
+ uri_method: :post,
181
+ uri_template: "/v1beta/{resource}:testIamPermissions",
182
+ matches: [
183
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
184
+ ],
185
+ body: "*"
186
+ ),
187
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
188
+ uri_method: :post,
189
+ uri_template: "/v1beta/{resource}:testIamPermissions",
190
+ matches: [
191
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
192
+ ],
193
+ body: "*"
194
+ )
195
+ ]
196
+ default_config
197
+ end
198
+ yield @configure if block_given?
199
+ @configure
200
+ end
201
+
202
+ ##
203
+ # @private
204
+ # Configuration class for the google.cloud.metastore.v1beta package.
205
+ #
206
+ # This class contains common configuration for all services
207
+ # of the google.cloud.metastore.v1beta package.
208
+ #
209
+ # This configuration is for internal use of the client library classes,
210
+ # and it is not intended that the end-users will read or change it.
211
+ #
212
+ class Configuration
213
+ extend ::Gapic::Config
214
+
215
+ # @private
216
+ # Overrides for http bindings for the RPC of the mixins for this package.
217
+ # Services in this package should use these when creating clients for the mixin services.
218
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
219
+ config_attr :bindings_override, {}, ::Hash, nil
220
+
221
+ # @private
222
+ def initialize parent_config = nil
223
+ @parent_config = parent_config unless parent_config.nil?
224
+
225
+ yield self if block_given?
226
+ end
227
+ end
228
+ end
229
+ end
230
+ end
231
+ end
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/metastore/v1beta/metastore_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -178,6 +180,18 @@ module Google
178
180
  config.endpoint = @config.endpoint
179
181
  end
180
182
 
183
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
184
+ config.credentials = credentials
185
+ config.quota_project = @quota_project_id
186
+ config.endpoint = @config.endpoint
187
+ end
188
+
189
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
190
+ config.credentials = credentials
191
+ config.quota_project = @quota_project_id
192
+ config.endpoint = @config.endpoint
193
+ end
194
+
181
195
  @dataproc_metastore_stub = ::Gapic::ServiceStub.new(
182
196
  ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Stub,
183
197
  credentials: credentials,
@@ -194,6 +208,20 @@ module Google
194
208
  #
195
209
  attr_reader :operations_client
196
210
 
211
+ ##
212
+ # Get the associated client for mix-in of the Locations.
213
+ #
214
+ # @return [Google::Cloud::Location::Locations::Client]
215
+ #
216
+ attr_reader :location_client
217
+
218
+ ##
219
+ # Get the associated client for mix-in of the IAMPolicy.
220
+ #
221
+ # @return [Google::Iam::V1::IAMPolicy::Client]
222
+ #
223
+ attr_reader :iam_policy_client
224
+
197
225
  # Service calls
198
226
 
199
227
  ##
@@ -261,13 +289,11 @@ module Google
261
289
  # # Call the list_services method.
262
290
  # result = client.list_services request
263
291
  #
264
- # # The returned object is of type Gapic::PagedEnumerable. You can
265
- # # iterate over all elements by calling #each, and the enumerable
266
- # # will lazily make API calls to fetch subsequent pages. Other
267
- # # methods are also available for managing paging directly.
268
- # result.each do |response|
292
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
293
+ # # over elements, and API calls will be issued to fetch pages as needed.
294
+ # result.each do |item|
269
295
  # # Each element is of type ::Google::Cloud::Metastore::V1beta::Service.
270
- # p response
296
+ # p item
271
297
  # end
272
298
  #
273
299
  def list_services request, options = nil
@@ -468,14 +494,14 @@ module Google
468
494
  # # Call the create_service method.
469
495
  # result = client.create_service request
470
496
  #
471
- # # The returned object is of type Gapic::Operation. You can use this
472
- # # object to check the status of an operation, cancel it, or wait
473
- # # for results. Here is how to block until completion:
497
+ # # The returned object is of type Gapic::Operation. You can use it to
498
+ # # check the status of an operation, cancel it, or wait for results.
499
+ # # Here is how to wait for a response.
474
500
  # result.wait_until_done! timeout: 60
475
501
  # if result.response?
476
502
  # p result.response
477
503
  # else
478
- # puts "Error!"
504
+ # puts "No response received."
479
505
  # end
480
506
  #
481
507
  def create_service request, options = nil
@@ -583,14 +609,14 @@ module Google
583
609
  # # Call the update_service method.
584
610
  # result = client.update_service request
585
611
  #
586
- # # The returned object is of type Gapic::Operation. You can use this
587
- # # object to check the status of an operation, cancel it, or wait
588
- # # for results. Here is how to block until completion:
612
+ # # The returned object is of type Gapic::Operation. You can use it to
613
+ # # check the status of an operation, cancel it, or wait for results.
614
+ # # Here is how to wait for a response.
589
615
  # result.wait_until_done! timeout: 60
590
616
  # if result.response?
591
617
  # p result.response
592
618
  # else
593
- # puts "Error!"
619
+ # puts "No response received."
594
620
  # end
595
621
  #
596
622
  def update_service request, options = nil
@@ -692,14 +718,14 @@ module Google
692
718
  # # Call the delete_service method.
693
719
  # result = client.delete_service request
694
720
  #
695
- # # The returned object is of type Gapic::Operation. You can use this
696
- # # object to check the status of an operation, cancel it, or wait
697
- # # for results. Here is how to block until completion:
721
+ # # The returned object is of type Gapic::Operation. You can use it to
722
+ # # check the status of an operation, cancel it, or wait for results.
723
+ # # Here is how to wait for a response.
698
724
  # result.wait_until_done! timeout: 60
699
725
  # if result.response?
700
726
  # p result.response
701
727
  # else
702
- # puts "Error!"
728
+ # puts "No response received."
703
729
  # end
704
730
  #
705
731
  def delete_service request, options = nil
@@ -808,13 +834,11 @@ module Google
808
834
  # # Call the list_metadata_imports method.
809
835
  # result = client.list_metadata_imports request
810
836
  #
811
- # # The returned object is of type Gapic::PagedEnumerable. You can
812
- # # iterate over all elements by calling #each, and the enumerable
813
- # # will lazily make API calls to fetch subsequent pages. Other
814
- # # methods are also available for managing paging directly.
815
- # result.each do |response|
837
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
838
+ # # over elements, and API calls will be issued to fetch pages as needed.
839
+ # result.each do |item|
816
840
  # # Each element is of type ::Google::Cloud::Metastore::V1beta::MetadataImport.
817
- # p response
841
+ # p item
818
842
  # end
819
843
  #
820
844
  def list_metadata_imports request, options = nil
@@ -1015,14 +1039,14 @@ module Google
1015
1039
  # # Call the create_metadata_import method.
1016
1040
  # result = client.create_metadata_import request
1017
1041
  #
1018
- # # The returned object is of type Gapic::Operation. You can use this
1019
- # # object to check the status of an operation, cancel it, or wait
1020
- # # for results. Here is how to block until completion:
1042
+ # # The returned object is of type Gapic::Operation. You can use it to
1043
+ # # check the status of an operation, cancel it, or wait for results.
1044
+ # # Here is how to wait for a response.
1021
1045
  # result.wait_until_done! timeout: 60
1022
1046
  # if result.response?
1023
1047
  # p result.response
1024
1048
  # else
1025
- # puts "Error!"
1049
+ # puts "No response received."
1026
1050
  # end
1027
1051
  #
1028
1052
  def create_metadata_import request, options = nil
@@ -1131,14 +1155,14 @@ module Google
1131
1155
  # # Call the update_metadata_import method.
1132
1156
  # result = client.update_metadata_import request
1133
1157
  #
1134
- # # The returned object is of type Gapic::Operation. You can use this
1135
- # # object to check the status of an operation, cancel it, or wait
1136
- # # for results. Here is how to block until completion:
1158
+ # # The returned object is of type Gapic::Operation. You can use it to
1159
+ # # check the status of an operation, cancel it, or wait for results.
1160
+ # # Here is how to wait for a response.
1137
1161
  # result.wait_until_done! timeout: 60
1138
1162
  # if result.response?
1139
1163
  # p result.response
1140
1164
  # else
1141
- # puts "Error!"
1165
+ # puts "No response received."
1142
1166
  # end
1143
1167
  #
1144
1168
  def update_metadata_import request, options = nil
@@ -1247,14 +1271,14 @@ module Google
1247
1271
  # # Call the export_metadata method.
1248
1272
  # result = client.export_metadata request
1249
1273
  #
1250
- # # The returned object is of type Gapic::Operation. You can use this
1251
- # # object to check the status of an operation, cancel it, or wait
1252
- # # for results. Here is how to block until completion:
1274
+ # # The returned object is of type Gapic::Operation. You can use it to
1275
+ # # check the status of an operation, cancel it, or wait for results.
1276
+ # # Here is how to wait for a response.
1253
1277
  # result.wait_until_done! timeout: 60
1254
1278
  # if result.response?
1255
1279
  # p result.response
1256
1280
  # else
1257
- # puts "Error!"
1281
+ # puts "No response received."
1258
1282
  # end
1259
1283
  #
1260
1284
  def export_metadata request, options = nil
@@ -1363,14 +1387,14 @@ module Google
1363
1387
  # # Call the restore_service method.
1364
1388
  # result = client.restore_service request
1365
1389
  #
1366
- # # The returned object is of type Gapic::Operation. You can use this
1367
- # # object to check the status of an operation, cancel it, or wait
1368
- # # for results. Here is how to block until completion:
1390
+ # # The returned object is of type Gapic::Operation. You can use it to
1391
+ # # check the status of an operation, cancel it, or wait for results.
1392
+ # # Here is how to wait for a response.
1369
1393
  # result.wait_until_done! timeout: 60
1370
1394
  # if result.response?
1371
1395
  # p result.response
1372
1396
  # else
1373
- # puts "Error!"
1397
+ # puts "No response received."
1374
1398
  # end
1375
1399
  #
1376
1400
  def restore_service request, options = nil
@@ -1479,13 +1503,11 @@ module Google
1479
1503
  # # Call the list_backups method.
1480
1504
  # result = client.list_backups request
1481
1505
  #
1482
- # # The returned object is of type Gapic::PagedEnumerable. You can
1483
- # # iterate over all elements by calling #each, and the enumerable
1484
- # # will lazily make API calls to fetch subsequent pages. Other
1485
- # # methods are also available for managing paging directly.
1486
- # result.each do |response|
1506
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1507
+ # # over elements, and API calls will be issued to fetch pages as needed.
1508
+ # result.each do |item|
1487
1509
  # # Each element is of type ::Google::Cloud::Metastore::V1beta::Backup.
1488
- # p response
1510
+ # p item
1489
1511
  # end
1490
1512
  #
1491
1513
  def list_backups request, options = nil
@@ -1685,14 +1707,14 @@ module Google
1685
1707
  # # Call the create_backup method.
1686
1708
  # result = client.create_backup request
1687
1709
  #
1688
- # # The returned object is of type Gapic::Operation. You can use this
1689
- # # object to check the status of an operation, cancel it, or wait
1690
- # # for results. Here is how to block until completion:
1710
+ # # The returned object is of type Gapic::Operation. You can use it to
1711
+ # # check the status of an operation, cancel it, or wait for results.
1712
+ # # Here is how to wait for a response.
1691
1713
  # result.wait_until_done! timeout: 60
1692
1714
  # if result.response?
1693
1715
  # p result.response
1694
1716
  # else
1695
- # puts "Error!"
1717
+ # puts "No response received."
1696
1718
  # end
1697
1719
  #
1698
1720
  def create_backup request, options = nil
@@ -1794,14 +1816,14 @@ module Google
1794
1816
  # # Call the delete_backup method.
1795
1817
  # result = client.delete_backup request
1796
1818
  #
1797
- # # The returned object is of type Gapic::Operation. You can use this
1798
- # # object to check the status of an operation, cancel it, or wait
1799
- # # for results. Here is how to block until completion:
1819
+ # # The returned object is of type Gapic::Operation. You can use it to
1820
+ # # check the status of an operation, cancel it, or wait for results.
1821
+ # # Here is how to wait for a response.
1800
1822
  # result.wait_until_done! timeout: 60
1801
1823
  # if result.response?
1802
1824
  # p result.response
1803
1825
  # else
1804
- # puts "Error!"
1826
+ # puts "No response received."
1805
1827
  # end
1806
1828
  #
1807
1829
  def delete_backup request, options = nil
@@ -1986,14 +2008,14 @@ module Google
1986
2008
  # # Call the query_metadata method.
1987
2009
  # result = client.query_metadata request
1988
2010
  #
1989
- # # The returned object is of type Gapic::Operation. You can use this
1990
- # # object to check the status of an operation, cancel it, or wait
1991
- # # for results. Here is how to block until completion:
2011
+ # # The returned object is of type Gapic::Operation. You can use it to
2012
+ # # check the status of an operation, cancel it, or wait for results.
2013
+ # # Here is how to wait for a response.
1992
2014
  # result.wait_until_done! timeout: 60
1993
2015
  # if result.response?
1994
2016
  # p result.response
1995
2017
  # else
1996
- # puts "Error!"
2018
+ # puts "No response received."
1997
2019
  # end
1998
2020
  #
1999
2021
  def query_metadata request, options = nil
@@ -2088,14 +2110,14 @@ module Google
2088
2110
  # # Call the move_table_to_database method.
2089
2111
  # result = client.move_table_to_database request
2090
2112
  #
2091
- # # The returned object is of type Gapic::Operation. You can use this
2092
- # # object to check the status of an operation, cancel it, or wait
2093
- # # for results. Here is how to block until completion:
2113
+ # # The returned object is of type Gapic::Operation. You can use it to
2114
+ # # check the status of an operation, cancel it, or wait for results.
2115
+ # # Here is how to wait for a response.
2094
2116
  # result.wait_until_done! timeout: 60
2095
2117
  # if result.response?
2096
2118
  # p result.response
2097
2119
  # else
2098
- # puts "Error!"
2120
+ # puts "No response received."
2099
2121
  # end
2100
2122
  #
2101
2123
  def move_table_to_database request, options = nil
@@ -2197,14 +2219,14 @@ module Google
2197
2219
  # # Call the alter_metadata_resource_location method.
2198
2220
  # result = client.alter_metadata_resource_location request
2199
2221
  #
2200
- # # The returned object is of type Gapic::Operation. You can use this
2201
- # # object to check the status of an operation, cancel it, or wait
2202
- # # for results. Here is how to block until completion:
2222
+ # # The returned object is of type Gapic::Operation. You can use it to
2223
+ # # check the status of an operation, cancel it, or wait for results.
2224
+ # # Here is how to wait for a response.
2203
2225
  # result.wait_until_done! timeout: 60
2204
2226
  # if result.response?
2205
2227
  # p result.response
2206
2228
  # else
2207
- # puts "Error!"
2229
+ # puts "No response received."
2208
2230
  # end
2209
2231
  #
2210
2232
  def alter_metadata_resource_location request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil