google-cloud-eventarc-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/eventarc/v1/bindings_override.rb +183 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +48 -56
- data/lib/google/cloud/eventarc/v1/eventarc/operations.rb +12 -14
- data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +1686 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/operations.rb +793 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1116 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest.rb +55 -0
- data/lib/google/cloud/eventarc/v1/eventarc.rb +7 -1
- data/lib/google/cloud/eventarc/v1/rest.rb +38 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/lib/google/cloud/eventarc/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/rpc/code.rb +6 -6
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d8c660cf082d67fd5fc272e1dd41aa8798a76dae7ecd6a61e2ff1bc218800b7
|
4
|
+
data.tar.gz: bc327699d5ec7e2a280594c75f35c5ec5c7c9aa6c67d7cee8ba148513fb8f605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3af1e9e1875d529744179ae503c5b2149b4b075663da9611f694f81ecbef4029677a3569488be82f662d897295d974396bf88471dcd0ed97afdd3d7bf15263
|
7
|
+
data.tar.gz: 9dfb55e6c87a28c6f16f6972f8c93071c5ae36d6af9b5185ecda432694e9804de1d424e3b59795337512278aa2616cc067d6a9a04c2e66adecb27dd416d8114e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Eventarc V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Build event-driven applications on Google Cloud Platform.
|
4
4
|
|
5
5
|
Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management — you can optimize productivity and costs while building a modern, event-driven solution.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -0,0 +1,183 @@
|
|
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 Eventarc
|
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/eventarc/v1/rest"
|
28
|
+
# client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "Eventarc"]
|
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: "/v1/{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: "/v1/{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: "/v1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
),
|
77
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
78
|
+
uri_method: :get,
|
79
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
80
|
+
matches: [
|
81
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
82
|
+
],
|
83
|
+
body: nil
|
84
|
+
),
|
85
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
86
|
+
uri_method: :get,
|
87
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
88
|
+
matches: [
|
89
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: nil
|
92
|
+
)
|
93
|
+
]
|
94
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
95
|
+
|
96
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
97
|
+
uri_method: :post,
|
98
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
99
|
+
matches: [
|
100
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
101
|
+
],
|
102
|
+
body: "*"
|
103
|
+
),
|
104
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
105
|
+
uri_method: :post,
|
106
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
107
|
+
matches: [
|
108
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
109
|
+
],
|
110
|
+
body: "*"
|
111
|
+
),
|
112
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
113
|
+
uri_method: :post,
|
114
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
115
|
+
matches: [
|
116
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
117
|
+
],
|
118
|
+
body: "*"
|
119
|
+
)
|
120
|
+
]
|
121
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
122
|
+
|
123
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
124
|
+
uri_method: :post,
|
125
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
126
|
+
matches: [
|
127
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
128
|
+
],
|
129
|
+
body: "*"
|
130
|
+
),
|
131
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
132
|
+
uri_method: :post,
|
133
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
134
|
+
matches: [
|
135
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
136
|
+
],
|
137
|
+
body: "*"
|
138
|
+
),
|
139
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
140
|
+
uri_method: :post,
|
141
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
142
|
+
matches: [
|
143
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
144
|
+
],
|
145
|
+
body: "*"
|
146
|
+
)
|
147
|
+
]
|
148
|
+
default_config
|
149
|
+
end
|
150
|
+
yield @configure if block_given?
|
151
|
+
@configure
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @private
|
156
|
+
# Configuration class for the google.cloud.eventarc.v1 package.
|
157
|
+
#
|
158
|
+
# This class contains common configuration for all services
|
159
|
+
# of the google.cloud.eventarc.v1 package.
|
160
|
+
#
|
161
|
+
# This configuration is for internal use of the client library classes,
|
162
|
+
# and it is not intended that the end-users will read or change it.
|
163
|
+
#
|
164
|
+
class Configuration
|
165
|
+
extend ::Gapic::Config
|
166
|
+
|
167
|
+
# @private
|
168
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
169
|
+
# Services in this package should use these when creating clients for the mixin services.
|
170
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
171
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
172
|
+
|
173
|
+
# @private
|
174
|
+
def initialize parent_config = nil
|
175
|
+
@parent_config = parent_config unless parent_config.nil?
|
176
|
+
|
177
|
+
yield self if block_given?
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -331,13 +331,11 @@ module Google
|
|
331
331
|
# # Call the list_triggers method.
|
332
332
|
# result = client.list_triggers request
|
333
333
|
#
|
334
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
335
|
-
# #
|
336
|
-
#
|
337
|
-
# # methods are also available for managing paging directly.
|
338
|
-
# result.each do |response|
|
334
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
335
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
336
|
+
# result.each do |item|
|
339
337
|
# # Each element is of type ::Google::Cloud::Eventarc::V1::Trigger.
|
340
|
-
# p
|
338
|
+
# p item
|
341
339
|
# end
|
342
340
|
#
|
343
341
|
def list_triggers request, options = nil
|
@@ -430,14 +428,14 @@ module Google
|
|
430
428
|
# # Call the create_trigger method.
|
431
429
|
# result = client.create_trigger request
|
432
430
|
#
|
433
|
-
# # The returned object is of type Gapic::Operation. You can use
|
434
|
-
# #
|
435
|
-
# #
|
431
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
432
|
+
# # check the status of an operation, cancel it, or wait for results.
|
433
|
+
# # Here is how to wait for a response.
|
436
434
|
# result.wait_until_done! timeout: 60
|
437
435
|
# if result.response?
|
438
436
|
# p result.response
|
439
437
|
# else
|
440
|
-
# puts "
|
438
|
+
# puts "No response received."
|
441
439
|
# end
|
442
440
|
#
|
443
441
|
def create_trigger request, options = nil
|
@@ -533,14 +531,14 @@ module Google
|
|
533
531
|
# # Call the update_trigger method.
|
534
532
|
# result = client.update_trigger request
|
535
533
|
#
|
536
|
-
# # The returned object is of type Gapic::Operation. You can use
|
537
|
-
# #
|
538
|
-
# #
|
534
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
535
|
+
# # check the status of an operation, cancel it, or wait for results.
|
536
|
+
# # Here is how to wait for a response.
|
539
537
|
# result.wait_until_done! timeout: 60
|
540
538
|
# if result.response?
|
541
539
|
# p result.response
|
542
540
|
# else
|
543
|
-
# puts "
|
541
|
+
# puts "No response received."
|
544
542
|
# end
|
545
543
|
#
|
546
544
|
def update_trigger request, options = nil
|
@@ -635,14 +633,14 @@ module Google
|
|
635
633
|
# # Call the delete_trigger method.
|
636
634
|
# result = client.delete_trigger request
|
637
635
|
#
|
638
|
-
# # The returned object is of type Gapic::Operation. You can use
|
639
|
-
# #
|
640
|
-
# #
|
636
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
637
|
+
# # check the status of an operation, cancel it, or wait for results.
|
638
|
+
# # Here is how to wait for a response.
|
641
639
|
# result.wait_until_done! timeout: 60
|
642
640
|
# if result.response?
|
643
641
|
# p result.response
|
644
642
|
# else
|
645
|
-
# puts "
|
643
|
+
# puts "No response received."
|
646
644
|
# end
|
647
645
|
#
|
648
646
|
def delete_trigger request, options = nil
|
@@ -828,13 +826,11 @@ module Google
|
|
828
826
|
# # Call the list_channels method.
|
829
827
|
# result = client.list_channels request
|
830
828
|
#
|
831
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
832
|
-
# #
|
833
|
-
#
|
834
|
-
# # methods are also available for managing paging directly.
|
835
|
-
# result.each do |response|
|
829
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
830
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
831
|
+
# result.each do |item|
|
836
832
|
# # Each element is of type ::Google::Cloud::Eventarc::V1::Channel.
|
837
|
-
# p
|
833
|
+
# p item
|
838
834
|
# end
|
839
835
|
#
|
840
836
|
def list_channels request, options = nil
|
@@ -927,14 +923,14 @@ module Google
|
|
927
923
|
# # Call the create_channel method.
|
928
924
|
# result = client.create_channel request
|
929
925
|
#
|
930
|
-
# # The returned object is of type Gapic::Operation. You can use
|
931
|
-
# #
|
932
|
-
# #
|
926
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
927
|
+
# # check the status of an operation, cancel it, or wait for results.
|
928
|
+
# # Here is how to wait for a response.
|
933
929
|
# result.wait_until_done! timeout: 60
|
934
930
|
# if result.response?
|
935
931
|
# p result.response
|
936
932
|
# else
|
937
|
-
# puts "
|
933
|
+
# puts "No response received."
|
938
934
|
# end
|
939
935
|
#
|
940
936
|
def create_channel request, options = nil
|
@@ -1027,14 +1023,14 @@ module Google
|
|
1027
1023
|
# # Call the update_channel method.
|
1028
1024
|
# result = client.update_channel request
|
1029
1025
|
#
|
1030
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1031
|
-
# #
|
1032
|
-
# #
|
1026
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1027
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1028
|
+
# # Here is how to wait for a response.
|
1033
1029
|
# result.wait_until_done! timeout: 60
|
1034
1030
|
# if result.response?
|
1035
1031
|
# p result.response
|
1036
1032
|
# else
|
1037
|
-
# puts "
|
1033
|
+
# puts "No response received."
|
1038
1034
|
# end
|
1039
1035
|
#
|
1040
1036
|
def update_channel request, options = nil
|
@@ -1123,14 +1119,14 @@ module Google
|
|
1123
1119
|
# # Call the delete_channel method.
|
1124
1120
|
# result = client.delete_channel request
|
1125
1121
|
#
|
1126
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1127
|
-
# #
|
1128
|
-
# #
|
1122
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1123
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1124
|
+
# # Here is how to wait for a response.
|
1129
1125
|
# result.wait_until_done! timeout: 60
|
1130
1126
|
# if result.response?
|
1131
1127
|
# p result.response
|
1132
1128
|
# else
|
1133
|
-
# puts "
|
1129
|
+
# puts "No response received."
|
1134
1130
|
# end
|
1135
1131
|
#
|
1136
1132
|
def delete_channel request, options = nil
|
@@ -1316,13 +1312,11 @@ module Google
|
|
1316
1312
|
# # Call the list_providers method.
|
1317
1313
|
# result = client.list_providers request
|
1318
1314
|
#
|
1319
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1320
|
-
# #
|
1321
|
-
#
|
1322
|
-
# # methods are also available for managing paging directly.
|
1323
|
-
# result.each do |response|
|
1315
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1316
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1317
|
+
# result.each do |item|
|
1324
1318
|
# # Each element is of type ::Google::Cloud::Eventarc::V1::Provider.
|
1325
|
-
# p
|
1319
|
+
# p item
|
1326
1320
|
# end
|
1327
1321
|
#
|
1328
1322
|
def list_providers request, options = nil
|
@@ -1503,13 +1497,11 @@ module Google
|
|
1503
1497
|
# # Call the list_channel_connections method.
|
1504
1498
|
# result = client.list_channel_connections request
|
1505
1499
|
#
|
1506
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1507
|
-
# #
|
1508
|
-
#
|
1509
|
-
# # methods are also available for managing paging directly.
|
1510
|
-
# result.each do |response|
|
1500
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1501
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1502
|
+
# result.each do |item|
|
1511
1503
|
# # Each element is of type ::Google::Cloud::Eventarc::V1::ChannelConnection.
|
1512
|
-
# p
|
1504
|
+
# p item
|
1513
1505
|
# end
|
1514
1506
|
#
|
1515
1507
|
def list_channel_connections request, options = nil
|
@@ -1599,14 +1591,14 @@ module Google
|
|
1599
1591
|
# # Call the create_channel_connection method.
|
1600
1592
|
# result = client.create_channel_connection request
|
1601
1593
|
#
|
1602
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1603
|
-
# #
|
1604
|
-
# #
|
1594
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1595
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1596
|
+
# # Here is how to wait for a response.
|
1605
1597
|
# result.wait_until_done! timeout: 60
|
1606
1598
|
# if result.response?
|
1607
1599
|
# p result.response
|
1608
1600
|
# else
|
1609
|
-
# puts "
|
1601
|
+
# puts "No response received."
|
1610
1602
|
# end
|
1611
1603
|
#
|
1612
1604
|
def create_channel_connection request, options = nil
|
@@ -1692,14 +1684,14 @@ module Google
|
|
1692
1684
|
# # Call the delete_channel_connection method.
|
1693
1685
|
# result = client.delete_channel_connection request
|
1694
1686
|
#
|
1695
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1696
|
-
# #
|
1697
|
-
# #
|
1687
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1688
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1689
|
+
# # Here is how to wait for a response.
|
1698
1690
|
# result.wait_until_done! timeout: 60
|
1699
1691
|
# if result.response?
|
1700
1692
|
# p result.response
|
1701
1693
|
# else
|
1702
|
-
# puts "
|
1694
|
+
# puts "No response received."
|
1703
1695
|
# end
|
1704
1696
|
#
|
1705
1697
|
def delete_channel_connection 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
|
-
# #
|
163
|
-
#
|
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
|
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
|
257
|
-
# #
|
258
|
-
# #
|
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 "
|
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
|
544
|
-
# #
|
545
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|