google-cloud-shell-v1 0.3.0 → 0.4.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/shell/v1/cloud_shell_service/client.rb +16 -16
- data/lib/google/cloud/shell/v1/cloud_shell_service/operations.rb +12 -14
- data/lib/google/cloud/shell/v1/cloud_shell_service/rest/client.rb +699 -0
- data/lib/google/cloud/shell/v1/cloud_shell_service/rest/operations.rb +793 -0
- data/lib/google/cloud/shell/v1/cloud_shell_service/rest/service_stub.rb +347 -0
- data/lib/google/cloud/shell/v1/cloud_shell_service/rest.rb +59 -0
- data/lib/google/cloud/shell/v1/cloud_shell_service.rb +7 -1
- data/lib/google/cloud/shell/v1/rest.rb +37 -0
- data/lib/google/cloud/shell/v1/version.rb +1 -1
- data/lib/google/cloud/shell/v1.rb +7 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -8
@@ -0,0 +1,347 @@
|
|
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 "google/cloud/shell/v1/cloudshell_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Shell
|
24
|
+
module V1
|
25
|
+
module CloudShellService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the CloudShellService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: true,
|
40
|
+
raise_faraday_errors: false
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Baseline implementation for the get_environment REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::Shell::V1::GetEnvironmentRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Cloud::Shell::V1::Environment]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Cloud::Shell::V1::Environment]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def get_environment request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_environment_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::Shell::V1::Environment.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Baseline implementation for the start_environment REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::Shell::V1::StartEnvironmentRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Longrunning::Operation]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def start_environment request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_start_environment_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
101
|
+
else
|
102
|
+
{}
|
103
|
+
end
|
104
|
+
|
105
|
+
response = @client_stub.make_http_request(
|
106
|
+
verb,
|
107
|
+
uri: uri,
|
108
|
+
body: body || "",
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
113
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
114
|
+
|
115
|
+
yield result, operation if block_given?
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Baseline implementation for the authorize_environment REST call
|
121
|
+
#
|
122
|
+
# @param request_pb [::Google::Cloud::Shell::V1::AuthorizeEnvironmentRequest]
|
123
|
+
# A request object representing the call parameters. Required.
|
124
|
+
# @param options [::Gapic::CallOptions]
|
125
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
126
|
+
#
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
128
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
130
|
+
#
|
131
|
+
# @return [::Google::Longrunning::Operation]
|
132
|
+
# A result object deserialized from the server's reply
|
133
|
+
def authorize_environment request_pb, options = nil
|
134
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
135
|
+
|
136
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_authorize_environment_request request_pb
|
137
|
+
query_string_params = if query_string_params.any?
|
138
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
139
|
+
else
|
140
|
+
{}
|
141
|
+
end
|
142
|
+
|
143
|
+
response = @client_stub.make_http_request(
|
144
|
+
verb,
|
145
|
+
uri: uri,
|
146
|
+
body: body || "",
|
147
|
+
params: query_string_params,
|
148
|
+
options: options
|
149
|
+
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
151
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
152
|
+
|
153
|
+
yield result, operation if block_given?
|
154
|
+
result
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Baseline implementation for the add_public_key REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Shell::V1::AddPublicKeyRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Longrunning::Operation]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def add_public_key request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_add_public_key_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# Baseline implementation for the remove_public_key REST call
|
197
|
+
#
|
198
|
+
# @param request_pb [::Google::Cloud::Shell::V1::RemovePublicKeyRequest]
|
199
|
+
# A request object representing the call parameters. Required.
|
200
|
+
# @param options [::Gapic::CallOptions]
|
201
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
202
|
+
#
|
203
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
204
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
205
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
206
|
+
#
|
207
|
+
# @return [::Google::Longrunning::Operation]
|
208
|
+
# A result object deserialized from the server's reply
|
209
|
+
def remove_public_key request_pb, options = nil
|
210
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
211
|
+
|
212
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_remove_public_key_request request_pb
|
213
|
+
query_string_params = if query_string_params.any?
|
214
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
215
|
+
else
|
216
|
+
{}
|
217
|
+
end
|
218
|
+
|
219
|
+
response = @client_stub.make_http_request(
|
220
|
+
verb,
|
221
|
+
uri: uri,
|
222
|
+
body: body || "",
|
223
|
+
params: query_string_params,
|
224
|
+
options: options
|
225
|
+
)
|
226
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
227
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
228
|
+
|
229
|
+
yield result, operation if block_given?
|
230
|
+
result
|
231
|
+
end
|
232
|
+
|
233
|
+
##
|
234
|
+
# @private
|
235
|
+
#
|
236
|
+
# GRPC transcoding helper method for the get_environment REST call
|
237
|
+
#
|
238
|
+
# @param request_pb [::Google::Cloud::Shell::V1::GetEnvironmentRequest]
|
239
|
+
# A request object representing the call parameters. Required.
|
240
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
241
|
+
# Uri, Body, Query string parameters
|
242
|
+
def self.transcode_get_environment_request request_pb
|
243
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
244
|
+
.with_bindings(
|
245
|
+
uri_method: :get,
|
246
|
+
uri_template: "/v1/{name}",
|
247
|
+
matches: [
|
248
|
+
["name", %r{^users/[^/]+/environments/[^/]+/?$}, false]
|
249
|
+
]
|
250
|
+
)
|
251
|
+
transcoder.transcode request_pb
|
252
|
+
end
|
253
|
+
|
254
|
+
##
|
255
|
+
# @private
|
256
|
+
#
|
257
|
+
# GRPC transcoding helper method for the start_environment REST call
|
258
|
+
#
|
259
|
+
# @param request_pb [::Google::Cloud::Shell::V1::StartEnvironmentRequest]
|
260
|
+
# A request object representing the call parameters. Required.
|
261
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
262
|
+
# Uri, Body, Query string parameters
|
263
|
+
def self.transcode_start_environment_request request_pb
|
264
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
265
|
+
.with_bindings(
|
266
|
+
uri_method: :post,
|
267
|
+
uri_template: "/v1/{name}:start",
|
268
|
+
body: "*",
|
269
|
+
matches: [
|
270
|
+
["name", %r{^users/[^/]+/environments/[^/]+/?$}, false]
|
271
|
+
]
|
272
|
+
)
|
273
|
+
transcoder.transcode request_pb
|
274
|
+
end
|
275
|
+
|
276
|
+
##
|
277
|
+
# @private
|
278
|
+
#
|
279
|
+
# GRPC transcoding helper method for the authorize_environment REST call
|
280
|
+
#
|
281
|
+
# @param request_pb [::Google::Cloud::Shell::V1::AuthorizeEnvironmentRequest]
|
282
|
+
# A request object representing the call parameters. Required.
|
283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
284
|
+
# Uri, Body, Query string parameters
|
285
|
+
def self.transcode_authorize_environment_request request_pb
|
286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
287
|
+
.with_bindings(
|
288
|
+
uri_method: :post,
|
289
|
+
uri_template: "/v1/{name}:authorize",
|
290
|
+
body: "*",
|
291
|
+
matches: [
|
292
|
+
["name", %r{^users/[^/]+/environments/[^/]+/?$}, false]
|
293
|
+
]
|
294
|
+
)
|
295
|
+
transcoder.transcode request_pb
|
296
|
+
end
|
297
|
+
|
298
|
+
##
|
299
|
+
# @private
|
300
|
+
#
|
301
|
+
# GRPC transcoding helper method for the add_public_key REST call
|
302
|
+
#
|
303
|
+
# @param request_pb [::Google::Cloud::Shell::V1::AddPublicKeyRequest]
|
304
|
+
# A request object representing the call parameters. Required.
|
305
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
306
|
+
# Uri, Body, Query string parameters
|
307
|
+
def self.transcode_add_public_key_request request_pb
|
308
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
309
|
+
.with_bindings(
|
310
|
+
uri_method: :post,
|
311
|
+
uri_template: "/v1/{environment}:addPublicKey",
|
312
|
+
body: "*",
|
313
|
+
matches: [
|
314
|
+
["environment", %r{^users/[^/]+/environments/[^/]+/?$}, false]
|
315
|
+
]
|
316
|
+
)
|
317
|
+
transcoder.transcode request_pb
|
318
|
+
end
|
319
|
+
|
320
|
+
##
|
321
|
+
# @private
|
322
|
+
#
|
323
|
+
# GRPC transcoding helper method for the remove_public_key REST call
|
324
|
+
#
|
325
|
+
# @param request_pb [::Google::Cloud::Shell::V1::RemovePublicKeyRequest]
|
326
|
+
# A request object representing the call parameters. Required.
|
327
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
328
|
+
# Uri, Body, Query string parameters
|
329
|
+
def self.transcode_remove_public_key_request request_pb
|
330
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
331
|
+
.with_bindings(
|
332
|
+
uri_method: :post,
|
333
|
+
uri_template: "/v1/{environment}:removePublicKey",
|
334
|
+
body: "*",
|
335
|
+
matches: [
|
336
|
+
["environment", %r{^users/[^/]+/environments/[^/]+/?$}, false]
|
337
|
+
]
|
338
|
+
)
|
339
|
+
transcoder.transcode request_pb
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/shell/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/shell/v1/cloud_shell_service/credentials"
|
26
|
+
require "google/cloud/shell/v1/cloud_shell_service/paths"
|
27
|
+
require "google/cloud/shell/v1/cloud_shell_service/rest/operations"
|
28
|
+
require "google/cloud/shell/v1/cloud_shell_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Shell
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# API for interacting with Google Cloud Shell. Each user of Cloud Shell has at
|
36
|
+
# least one environment, which has the ID "default". Environment consists of a
|
37
|
+
# Docker image defining what is installed on the environment and a home
|
38
|
+
# directory containing the user's data that will remain across sessions.
|
39
|
+
# Clients use this API to start and fetch information about their environment,
|
40
|
+
# which can then be used to connect to that environment via a separate SSH
|
41
|
+
# client.
|
42
|
+
#
|
43
|
+
# To load this service and instantiate a REST client:
|
44
|
+
#
|
45
|
+
# require "google/cloud/shell/v1/cloud_shell_service/rest"
|
46
|
+
# client = ::Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
|
47
|
+
#
|
48
|
+
module CloudShellService
|
49
|
+
# Client for the REST transport
|
50
|
+
module Rest
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
59
|
+
require "google/cloud/shell/v1/cloud_shell_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/shell/v1/cloud_shell_service/credentials"
|
|
26
26
|
require "google/cloud/shell/v1/cloud_shell_service/paths"
|
27
27
|
require "google/cloud/shell/v1/cloud_shell_service/operations"
|
28
28
|
require "google/cloud/shell/v1/cloud_shell_service/client"
|
29
|
+
require "google/cloud/shell/v1/cloud_shell_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -40,11 +41,16 @@ module Google
|
|
40
41
|
# which can then be used to connect to that environment via a separate SSH
|
41
42
|
# client.
|
42
43
|
#
|
43
|
-
#
|
44
|
+
# @example Load this service and instantiate a gRPC client
|
44
45
|
#
|
45
46
|
# require "google/cloud/shell/v1/cloud_shell_service"
|
46
47
|
# client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
|
47
48
|
#
|
49
|
+
# @example Load this service and instantiate a REST client
|
50
|
+
#
|
51
|
+
# require "google/cloud/shell/v1/cloud_shell_service/rest"
|
52
|
+
# client = ::Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
|
53
|
+
#
|
48
54
|
module CloudShellService
|
49
55
|
end
|
50
56
|
end
|
@@ -0,0 +1,37 @@
|
|
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 "google/cloud/shell/v1/cloud_shell_service/rest"
|
20
|
+
require "google/cloud/shell/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Shell
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/shell/v1/rest"
|
31
|
+
# client = ::Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -23,13 +23,18 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module Shell
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/shell/v1"
|
31
31
|
# client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/shell/v1"
|
36
|
+
# client = ::Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
end
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-shell-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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:
|
11
|
+
date: 2023-03-08 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:
|
19
|
+
version: 0.18.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:
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,8 +177,13 @@ files:
|
|
177
177
|
- lib/google/cloud/shell/v1/cloud_shell_service/credentials.rb
|
178
178
|
- lib/google/cloud/shell/v1/cloud_shell_service/operations.rb
|
179
179
|
- lib/google/cloud/shell/v1/cloud_shell_service/paths.rb
|
180
|
+
- lib/google/cloud/shell/v1/cloud_shell_service/rest.rb
|
181
|
+
- lib/google/cloud/shell/v1/cloud_shell_service/rest/client.rb
|
182
|
+
- lib/google/cloud/shell/v1/cloud_shell_service/rest/operations.rb
|
183
|
+
- lib/google/cloud/shell/v1/cloud_shell_service/rest/service_stub.rb
|
180
184
|
- lib/google/cloud/shell/v1/cloudshell_pb.rb
|
181
185
|
- lib/google/cloud/shell/v1/cloudshell_services_pb.rb
|
186
|
+
- lib/google/cloud/shell/v1/rest.rb
|
182
187
|
- lib/google/cloud/shell/v1/version.rb
|
183
188
|
- proto_docs/README.md
|
184
189
|
- proto_docs/google/api/client.rb
|
@@ -211,8 +216,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
216
|
- !ruby/object:Gem::Version
|
212
217
|
version: '0'
|
213
218
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
219
|
+
rubygems_version: 3.4.2
|
215
220
|
signing_key:
|
216
221
|
specification_version: 4
|
217
|
-
summary:
|
222
|
+
summary: Allows users to start, configure, and connect to interactive shell sessions
|
223
|
+
running in the cloud.
|
218
224
|
test_files: []
|