google-cloud-apigee_registry-v1 0.3.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/apigee_registry/v1/bindings_override.rb +351 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/client.rb +14 -12
- data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +17 -17
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/client.rb +544 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/operations.rb +795 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/service_stub.rb +226 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest.rb +55 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning.rb +7 -1
- data/lib/google/cloud/apigee_registry/v1/registry/client.rb +34 -46
- data/lib/google/cloud/apigee_registry/v1/registry/rest/client.rb +3155 -0
- data/lib/google/cloud/apigee_registry/v1/registry/rest/service_stub.rb +2303 -0
- data/lib/google/cloud/apigee_registry/v1/registry/rest.rb +53 -0
- data/lib/google/cloud/apigee_registry/v1/registry.rb +7 -1
- data/lib/google/cloud/apigee_registry/v1/rest.rb +39 -0
- data/lib/google/cloud/apigee_registry/v1/version.rb +1 -1
- data/lib/google/cloud/apigee_registry/v1.rb +7 -2
- data/lib/google/cloud/apigeeregistry/v1/provisioning_service_pb.rb +25 -42
- data/lib/google/cloud/apigeeregistry/v1/registry_models_pb.rb +25 -64
- data/lib/google/cloud/apigeeregistry/v1/registry_service_pb.rb +26 -179
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +22 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f2c4a34c0ee9eba5893c611a6527c57f339d32315d14a7906a023d67c0a7fb
|
4
|
+
data.tar.gz: a047a1439e60e34efcd319e0877e879edfc8374135053ae219b2aa98e183b40c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3596852957e73a12a3a9245eef2782b70658cb061e7c68db26a56778028edf61574c45de7baf88d298b22887954dbd5707d9139a2733f40eaa8fc4c207f6e7e4
|
7
|
+
data.tar.gz: 6ae1386aceb73c392e99e4fa6f9c2688ff2672b92c15c143fd6e80875ce4f72f3ccbf811baae4013e19726f9d03f430ae2c5d87398598f9ca13324261e04a582
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,8 +46,8 @@ 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/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
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
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
|
53
53
|
|
@@ -0,0 +1,351 @@
|
|
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 ApigeeRegistry
|
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/apigee_registry/v1/rest"
|
28
|
+
# client = ::Google::Cloud::ApigeeRegistry::V1::Provisioning::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", "ApigeeRegistry"]
|
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/[^/]+/apis/[^/]+/?$}, 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/[^/]+/apis/[^/]+/deployments/[^/]+/?$}, 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/[^/]+/apis/[^/]+/versions/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: nil
|
92
|
+
),
|
93
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
94
|
+
uri_method: :get,
|
95
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
96
|
+
matches: [
|
97
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/?$}, false]
|
98
|
+
],
|
99
|
+
body: nil
|
100
|
+
),
|
101
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
102
|
+
uri_method: :get,
|
103
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
104
|
+
matches: [
|
105
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/artifacts/[^/]+/?$}, false]
|
106
|
+
],
|
107
|
+
body: nil
|
108
|
+
),
|
109
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
110
|
+
uri_method: :get,
|
111
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
112
|
+
matches: [
|
113
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/artifacts/[^/]+/?$}, false]
|
114
|
+
],
|
115
|
+
body: nil
|
116
|
+
),
|
117
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
118
|
+
uri_method: :get,
|
119
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
120
|
+
matches: [
|
121
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/artifacts/[^/]+/?$}, false]
|
122
|
+
],
|
123
|
+
body: nil
|
124
|
+
),
|
125
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
126
|
+
uri_method: :get,
|
127
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
128
|
+
matches: [
|
129
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/artifacts/[^/]+/?$}, false]
|
130
|
+
],
|
131
|
+
body: nil
|
132
|
+
),
|
133
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
134
|
+
uri_method: :get,
|
135
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
136
|
+
matches: [
|
137
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
138
|
+
],
|
139
|
+
body: nil
|
140
|
+
),
|
141
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
142
|
+
uri_method: :get,
|
143
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
144
|
+
matches: [
|
145
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/runtime/?$}, false]
|
146
|
+
],
|
147
|
+
body: nil
|
148
|
+
)
|
149
|
+
]
|
150
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
151
|
+
|
152
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
153
|
+
uri_method: :post,
|
154
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
155
|
+
matches: [
|
156
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/?$}, false]
|
157
|
+
],
|
158
|
+
body: "*"
|
159
|
+
),
|
160
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
161
|
+
uri_method: :post,
|
162
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
163
|
+
matches: [
|
164
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/deployments/[^/]+/?$}, false]
|
165
|
+
],
|
166
|
+
body: "*"
|
167
|
+
),
|
168
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
169
|
+
uri_method: :post,
|
170
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
171
|
+
matches: [
|
172
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/?$}, false]
|
173
|
+
],
|
174
|
+
body: "*"
|
175
|
+
),
|
176
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
177
|
+
uri_method: :post,
|
178
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
179
|
+
matches: [
|
180
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/?$}, false]
|
181
|
+
],
|
182
|
+
body: "*"
|
183
|
+
),
|
184
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
185
|
+
uri_method: :post,
|
186
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
187
|
+
matches: [
|
188
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/artifacts/[^/]+/?$}, false]
|
189
|
+
],
|
190
|
+
body: "*"
|
191
|
+
),
|
192
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
193
|
+
uri_method: :post,
|
194
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
195
|
+
matches: [
|
196
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/artifacts/[^/]+/?$}, false]
|
197
|
+
],
|
198
|
+
body: "*"
|
199
|
+
),
|
200
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
201
|
+
uri_method: :post,
|
202
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
203
|
+
matches: [
|
204
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/artifacts/[^/]+/?$}, false]
|
205
|
+
],
|
206
|
+
body: "*"
|
207
|
+
),
|
208
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
209
|
+
uri_method: :post,
|
210
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
211
|
+
matches: [
|
212
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/artifacts/[^/]+/?$}, false]
|
213
|
+
],
|
214
|
+
body: "*"
|
215
|
+
),
|
216
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
217
|
+
uri_method: :post,
|
218
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
219
|
+
matches: [
|
220
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
221
|
+
],
|
222
|
+
body: "*"
|
223
|
+
),
|
224
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
225
|
+
uri_method: :post,
|
226
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
227
|
+
matches: [
|
228
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/runtime/?$}, false]
|
229
|
+
],
|
230
|
+
body: "*"
|
231
|
+
)
|
232
|
+
]
|
233
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
234
|
+
|
235
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
236
|
+
uri_method: :post,
|
237
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
238
|
+
matches: [
|
239
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/?$}, false]
|
240
|
+
],
|
241
|
+
body: "*"
|
242
|
+
),
|
243
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
244
|
+
uri_method: :post,
|
245
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
246
|
+
matches: [
|
247
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/deployments/[^/]+/?$}, false]
|
248
|
+
],
|
249
|
+
body: "*"
|
250
|
+
),
|
251
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
252
|
+
uri_method: :post,
|
253
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
254
|
+
matches: [
|
255
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/?$}, false]
|
256
|
+
],
|
257
|
+
body: "*"
|
258
|
+
),
|
259
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
260
|
+
uri_method: :post,
|
261
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
262
|
+
matches: [
|
263
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/?$}, false]
|
264
|
+
],
|
265
|
+
body: "*"
|
266
|
+
),
|
267
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
268
|
+
uri_method: :post,
|
269
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
270
|
+
matches: [
|
271
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/artifacts/[^/]+/?$}, false]
|
272
|
+
],
|
273
|
+
body: "*"
|
274
|
+
),
|
275
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
276
|
+
uri_method: :post,
|
277
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
278
|
+
matches: [
|
279
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/artifacts/[^/]+/?$}, false]
|
280
|
+
],
|
281
|
+
body: "*"
|
282
|
+
),
|
283
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
284
|
+
uri_method: :post,
|
285
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
286
|
+
matches: [
|
287
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/artifacts/[^/]+/?$}, false]
|
288
|
+
],
|
289
|
+
body: "*"
|
290
|
+
),
|
291
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
292
|
+
uri_method: :post,
|
293
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
294
|
+
matches: [
|
295
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/apis/[^/]+/versions/[^/]+/specs/[^/]+/artifacts/[^/]+/?$}, false]
|
296
|
+
],
|
297
|
+
body: "*"
|
298
|
+
),
|
299
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
300
|
+
uri_method: :post,
|
301
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
302
|
+
matches: [
|
303
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
304
|
+
],
|
305
|
+
body: "*"
|
306
|
+
),
|
307
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
308
|
+
uri_method: :post,
|
309
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
310
|
+
matches: [
|
311
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/runtime/?$}, false]
|
312
|
+
],
|
313
|
+
body: "*"
|
314
|
+
)
|
315
|
+
]
|
316
|
+
default_config
|
317
|
+
end
|
318
|
+
yield @configure if block_given?
|
319
|
+
@configure
|
320
|
+
end
|
321
|
+
|
322
|
+
##
|
323
|
+
# @private
|
324
|
+
# Configuration class for the google.cloud.apigeeregistry.v1 package.
|
325
|
+
#
|
326
|
+
# This class contains common configuration for all services
|
327
|
+
# of the google.cloud.apigeeregistry.v1 package.
|
328
|
+
#
|
329
|
+
# This configuration is for internal use of the client library classes,
|
330
|
+
# and it is not intended that the end-users will read or change it.
|
331
|
+
#
|
332
|
+
class Configuration
|
333
|
+
extend ::Gapic::Config
|
334
|
+
|
335
|
+
# @private
|
336
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
337
|
+
# Services in this package should use these when creating clients for the mixin services.
|
338
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
339
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
340
|
+
|
341
|
+
# @private
|
342
|
+
def initialize parent_config = nil
|
343
|
+
@parent_config = parent_config unless parent_config.nil?
|
344
|
+
|
345
|
+
yield self if block_given?
|
346
|
+
end
|
347
|
+
end
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -232,14 +232,14 @@ module Google
|
|
232
232
|
# # Call the create_instance method.
|
233
233
|
# result = client.create_instance request
|
234
234
|
#
|
235
|
-
# # The returned object is of type Gapic::Operation. You can use
|
236
|
-
# #
|
237
|
-
# #
|
235
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
236
|
+
# # check the status of an operation, cancel it, or wait for results.
|
237
|
+
# # Here is how to wait for a response.
|
238
238
|
# result.wait_until_done! timeout: 60
|
239
239
|
# if result.response?
|
240
240
|
# p result.response
|
241
241
|
# else
|
242
|
-
# puts "
|
242
|
+
# puts "No response received."
|
243
243
|
# end
|
244
244
|
#
|
245
245
|
def create_instance request, options = nil
|
@@ -326,14 +326,14 @@ module Google
|
|
326
326
|
# # Call the delete_instance method.
|
327
327
|
# result = client.delete_instance request
|
328
328
|
#
|
329
|
-
# # The returned object is of type Gapic::Operation. You can use
|
330
|
-
# #
|
331
|
-
# #
|
329
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
330
|
+
# # check the status of an operation, cancel it, or wait for results.
|
331
|
+
# # Here is how to wait for a response.
|
332
332
|
# result.wait_until_done! timeout: 60
|
333
333
|
# if result.response?
|
334
334
|
# p result.response
|
335
335
|
# else
|
336
|
-
# puts "
|
336
|
+
# puts "No response received."
|
337
337
|
# end
|
338
338
|
#
|
339
339
|
def delete_instance request, options = nil
|
@@ -502,9 +502,9 @@ module Google
|
|
502
502
|
# * (`String`) The path to a service account key file in JSON format
|
503
503
|
# * (`Hash`) A service account key as a Hash
|
504
504
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
505
|
-
# (see the [googleauth docs](https://
|
505
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
506
506
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
507
|
-
# (see the [signet docs](https://
|
507
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
508
508
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
509
509
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
510
510
|
# * (`nil`) indicating no credentials
|
@@ -546,7 +546,9 @@ module Google
|
|
546
546
|
class Configuration
|
547
547
|
extend ::Gapic::Config
|
548
548
|
|
549
|
-
|
549
|
+
DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
|
550
|
+
|
551
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
550
552
|
config_attr :credentials, nil do |value|
|
551
553
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
552
554
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -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
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|