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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aae204daa27fff4ff691b5c9e43f2f115a7e921bbc41cc78878bcd5b8b10f61
|
4
|
+
data.tar.gz: 6b380c915ad6c2af6b8b20816327c1e211070e17ddc46b7ded50fa23418c7bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
50
|
+
# @example
|
51
51
|
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
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
|
-
#
|
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
|
-
#
|
124
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
# to 20 seconds,
|
578
|
-
#
|
579
|
-
#
|
580
|
-
#
|
581
|
-
#
|
582
|
-
#
|
583
|
-
#
|
584
|
-
#
|
585
|
-
#
|
586
|
-
#
|
587
|
-
#
|
588
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|