google-cloud-shell-v1 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fda838ca63ab959f1d4143f8ee03551c2b065ca9d7f2cc38e4c78e1a8907de6
4
- data.tar.gz: c0b4dafacc5cc5cdd49a0710ca2472c00e07f8a39c4652700a9cc3e267c4467c
3
+ metadata.gz: 3aae204daa27fff4ff691b5c9e43f2f115a7e921bbc41cc78878bcd5b8b10f61
4
+ data.tar.gz: 6b380c915ad6c2af6b8b20816327c1e211070e17ddc46b7ded50fa23418c7bfd
5
5
  SHA512:
6
- metadata.gz: 04e20fbeb2cb8fb32e2758e62ef5d87a3f0b6f4ca16ff5be1e4b30b41050dad0252efa4176fec8e88b36c7a67c3cad1d033a490fd39c82cfea1c725ce856e07c
7
- data.tar.gz: ae3307ccd102c55be4ab217ce77a57b8ffd9d548e662b61899d6916632b9af9de3f8fc1af3feb2c4aa076905cabc4ea2f11027bc3b75c65d0850d89b90905edd
6
+ metadata.gz: 549a838d4d2904de7b88f691d10e54ef64878769d0a73b4611f17dfe55988723ab4ed8b798e6adf23c1328bbf2a78c37de9f94e5e8288e41a7832dde72b7f9ee
7
+ data.tar.gz: 26ee30aed9689d3eb42c433f11a3ebcf9a2fd979c233004e2071c421d9b91f0ecc5f48d91a3c1777dcd943f2bfaf430545020dc5f251d50a66a81d9c9111c0aa
@@ -47,13 +47,12 @@ module Google
47
47
  # See {::Google::Cloud::Shell::V1::CloudShellService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @example
51
51
  #
52
- # To modify the configuration for all CloudShellService clients:
53
- #
54
- # ::Google::Cloud::Shell::V1::CloudShellService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
52
+ # # Modify the configuration for all CloudShellService clients
53
+ # ::Google::Cloud::Shell::V1::CloudShellService::Client.configure do |config|
54
+ # config.timeout = 10.0
55
+ # end
57
56
  #
58
57
  # @yield [config] Configure the Client client.
59
58
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new CloudShellService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new CloudShellService client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
115
+ # @example
122
116
  #
123
- # To create a new CloudShellService client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
125
119
  #
126
- # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the CloudShellService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -237,7 +231,9 @@ module Google
237
231
  options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
238
232
  metadata: metadata,
239
233
  retry_policy: @config.rpcs.get_environment.retry_policy
240
- options.apply_defaults metadata: @config.metadata,
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
241
237
  retry_policy: @config.retry_policy
242
238
 
243
239
  @cloud_shell_service_stub.call_rpc :get_environment, request, options: options do |response, operation|
@@ -317,7 +313,9 @@ module Google
317
313
  options.apply_defaults timeout: @config.rpcs.start_environment.timeout,
318
314
  metadata: metadata,
319
315
  retry_policy: @config.rpcs.start_environment.retry_policy
320
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
321
319
  retry_policy: @config.retry_policy
322
320
 
323
321
  @cloud_shell_service_stub.call_rpc :start_environment, request, options: options do |response, operation|
@@ -396,7 +394,9 @@ module Google
396
394
  options.apply_defaults timeout: @config.rpcs.authorize_environment.timeout,
397
395
  metadata: metadata,
398
396
  retry_policy: @config.rpcs.authorize_environment.retry_policy
399
- options.apply_defaults metadata: @config.metadata,
397
+
398
+ options.apply_defaults timeout: @config.timeout,
399
+ metadata: @config.metadata,
400
400
  retry_policy: @config.retry_policy
401
401
 
402
402
  @cloud_shell_service_stub.call_rpc :authorize_environment, request, options: options do |response, operation|
@@ -473,7 +473,9 @@ module Google
473
473
  options.apply_defaults timeout: @config.rpcs.add_public_key.timeout,
474
474
  metadata: metadata,
475
475
  retry_policy: @config.rpcs.add_public_key.retry_policy
476
- options.apply_defaults metadata: @config.metadata,
476
+
477
+ options.apply_defaults timeout: @config.timeout,
478
+ metadata: @config.metadata,
477
479
  retry_policy: @config.retry_policy
478
480
 
479
481
  @cloud_shell_service_stub.call_rpc :add_public_key, request, options: options do |response, operation|
@@ -546,7 +548,9 @@ module Google
546
548
  options.apply_defaults timeout: @config.rpcs.remove_public_key.timeout,
547
549
  metadata: metadata,
548
550
  retry_policy: @config.rpcs.remove_public_key.retry_policy
549
- options.apply_defaults metadata: @config.metadata,
551
+
552
+ options.apply_defaults timeout: @config.timeout,
553
+ metadata: @config.metadata,
550
554
  retry_policy: @config.retry_policy
551
555
 
552
556
  @cloud_shell_service_stub.call_rpc :remove_public_key, request, options: options do |response, operation|
@@ -571,22 +575,21 @@ module Google
571
575
  # Configuration can be applied globally to all clients, or to a single client
572
576
  # on construction.
573
577
  #
574
- # # Examples
575
- #
576
- # To modify the global config, setting the timeout for get_environment
577
- # to 20 seconds, and all remaining timeouts to 10 seconds:
578
- #
579
- # ::Google::Cloud::Shell::V1::CloudShellService::Client.configure do |config|
580
- # config.timeout = 10.0
581
- # config.rpcs.get_environment.timeout = 20.0
582
- # end
583
- #
584
- # To apply the above configuration only to a new client:
585
- #
586
- # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new do |config|
587
- # config.timeout = 10.0
588
- # config.rpcs.get_environment.timeout = 20.0
589
- # end
578
+ # @example
579
+ #
580
+ # # Modify the global config, setting the timeout for
581
+ # # get_environment to 20 seconds,
582
+ # # and all remaining timeouts to 10 seconds.
583
+ # ::Google::Cloud::Shell::V1::CloudShellService::Client.configure do |config|
584
+ # config.timeout = 10.0
585
+ # config.rpcs.get_environment.timeout = 20.0
586
+ # end
587
+ #
588
+ # # Apply the above configuration only to a new client.
589
+ # client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new do |config|
590
+ # config.timeout = 10.0
591
+ # config.rpcs.get_environment.timeout = 20.0
592
+ # end
590
593
  #
591
594
  # @!attribute [rw] endpoint
592
595
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Shell
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 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: '0.5'
19
+ version: '0.7'
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: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a