google-cloud-shell-v1 0.2.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/AUTHENTICATION.md +1 -1
- 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/cloudshell_pb.rb +1 -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/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/shell/v1/cloudshell.rb +4 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +16 -9
- data/proto_docs/google/protobuf/field_mask.rb +0 -229
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecdf2c05d0bd9b39f9103fcea102399b49468ad8b80a4a67ffe33ce0ec8eb2f2
|
4
|
+
data.tar.gz: 9ffc6a1a368219d3b5300d6df0046b33c59e7aca1b04b0f59c00084486794e78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07aafe8df7d1871a220af166f49b69f55e49d75aec97a542eca6c73d8febd739c368b75e1d85b1c7854cf0f3a6de1c9d9b266738148492fba039453c2c6be882
|
7
|
+
data.tar.gz: 24b4969fcbcc59d874a24f61d7f7bff9f97ea67e496bde9c74419a8f6f8e10e5df04daaa29de3bcbd54ce8f5cdf3dceafb2143682d739c9f60ec964be2cc290d
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Shell V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Allows users to start, configure, and connect to interactive shell sessions running in the cloud.
|
4
4
|
|
5
5
|
Cloud Shell is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser.
|
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.
|
@@ -317,14 +317,14 @@ module Google
|
|
317
317
|
# # Call the start_environment method.
|
318
318
|
# result = client.start_environment request
|
319
319
|
#
|
320
|
-
# # The returned object is of type Gapic::Operation. You can use
|
321
|
-
# #
|
322
|
-
# #
|
320
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
321
|
+
# # check the status of an operation, cancel it, or wait for results.
|
322
|
+
# # Here is how to wait for a response.
|
323
323
|
# result.wait_until_done! timeout: 60
|
324
324
|
# if result.response?
|
325
325
|
# p result.response
|
326
326
|
# else
|
327
|
-
# puts "
|
327
|
+
# puts "No response received."
|
328
328
|
# end
|
329
329
|
#
|
330
330
|
def start_environment request, options = nil
|
@@ -422,14 +422,14 @@ module Google
|
|
422
422
|
# # Call the authorize_environment method.
|
423
423
|
# result = client.authorize_environment request
|
424
424
|
#
|
425
|
-
# # The returned object is of type Gapic::Operation. You can use
|
426
|
-
# #
|
427
|
-
# #
|
425
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
426
|
+
# # check the status of an operation, cancel it, or wait for results.
|
427
|
+
# # Here is how to wait for a response.
|
428
428
|
# result.wait_until_done! timeout: 60
|
429
429
|
# if result.response?
|
430
430
|
# p result.response
|
431
431
|
# else
|
432
|
-
# puts "
|
432
|
+
# puts "No response received."
|
433
433
|
# end
|
434
434
|
#
|
435
435
|
def authorize_environment request, options = nil
|
@@ -525,14 +525,14 @@ module Google
|
|
525
525
|
# # Call the add_public_key method.
|
526
526
|
# result = client.add_public_key request
|
527
527
|
#
|
528
|
-
# # The returned object is of type Gapic::Operation. You can use
|
529
|
-
# #
|
530
|
-
# #
|
528
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
529
|
+
# # check the status of an operation, cancel it, or wait for results.
|
530
|
+
# # Here is how to wait for a response.
|
531
531
|
# result.wait_until_done! timeout: 60
|
532
532
|
# if result.response?
|
533
533
|
# p result.response
|
534
534
|
# else
|
535
|
-
# puts "
|
535
|
+
# puts "No response received."
|
536
536
|
# end
|
537
537
|
#
|
538
538
|
def add_public_key request, options = nil
|
@@ -624,14 +624,14 @@ module Google
|
|
624
624
|
# # Call the remove_public_key method.
|
625
625
|
# result = client.remove_public_key request
|
626
626
|
#
|
627
|
-
# # The returned object is of type Gapic::Operation. You can use
|
628
|
-
# #
|
629
|
-
# #
|
627
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
628
|
+
# # check the status of an operation, cancel it, or wait for results.
|
629
|
+
# # Here is how to wait for a response.
|
630
630
|
# result.wait_until_done! timeout: 60
|
631
631
|
# if result.response?
|
632
632
|
# p result.response
|
633
633
|
# else
|
634
|
-
# puts "
|
634
|
+
# puts "No response received."
|
635
635
|
# end
|
636
636
|
#
|
637
637
|
def remove_public_key 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
|