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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f0e3780f9fc577a110a78a3c4b21e78f7db4f03f6256eadc648e39a2af3c25a
4
- data.tar.gz: 3b9c608fd2090308e9e3a5c31d1badfeedc32607e163e3d4ab9654d666164c0b
3
+ metadata.gz: ecdf2c05d0bd9b39f9103fcea102399b49468ad8b80a4a67ffe33ce0ec8eb2f2
4
+ data.tar.gz: 9ffc6a1a368219d3b5300d6df0046b33c59e7aca1b04b0f59c00084486794e78
5
5
  SHA512:
6
- metadata.gz: 85ed565a46ce08b7349d9e56bb4f7325327cfb16bfeb310efc1a9fa171cc42f99843c64b446ef03d26d6d698f44d514eee1b0ca82523c19d84c35b53a3c6cc59
7
- data.tar.gz: 0750ba28b9b9cfe13ce4c033126621a4bdb3e1b32cae4c938b23c668b2c3a26bf39f42dead0cc8061148eab8265e6745a2c03f6d5ecdb6dfab724f3050ff5db5
6
+ metadata.gz: 07aafe8df7d1871a220af166f49b69f55e49d75aec97a542eca6c73d8febd739c368b75e1d85b1c7854cf0f3a6de1c9d9b266738148492fba039453c2c6be882
7
+ data.tar.gz: 24b4969fcbcc59d874a24f61d7f7bff9f97ea67e496bde9c74419a8f6f8e10e5df04daaa29de3bcbd54ce8f5cdf3dceafb2143682d739c9f60ec964be2cc290d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Shell V1 API
2
2
 
3
- API Client library for the Cloud Shell V1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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 this
321
- # # object to check the status of an operation, cancel it, or wait
322
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
426
- # # object to check the status of an operation, cancel it, or wait
427
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
529
- # # object to check the status of an operation, cancel it, or wait
530
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
628
- # # object to check the status of an operation, cancel it, or wait
629
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # 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