google-cloud-shell-v1 0.5.1 → 0.6.0

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: 530dc6324d692a94d48c2e96fa5f9da14c1d3d1f5f0de4292e0467bf391b0617
4
- data.tar.gz: be2c51c678cf9cecd0c7cac1571c8b59e2e35aaa5ca3225557413eae5585b646
3
+ metadata.gz: 7a272376e264b6b17e38e1571b4c679d1cb81f4ee32c9cf347ea58c6c9c9dc75
4
+ data.tar.gz: f20011a6308f699c68096d5730c780e652d654def01c8ed72dbc93bcb67122dc
5
5
  SHA512:
6
- metadata.gz: 912d6f06d6a72ff4ca6b64a26165c525c0f1f434be262df7e991be23f671838eb4ff6cce98a7d6bdffdbafa8834194bec77b8da48fa2c68a79450591e6eac1f6
7
- data.tar.gz: cdecb95915700400fdaa19f01345bc06570567b8b32690b5f821d8909d56d39f1115b1859138cfea09b308b042c1a9f620811a9f687358404b0d49fd2531527f
6
+ metadata.gz: 83f1a52f1d9315a39b1bf0aa911c30c268306735c49a1c0c67bb88936e536c7ced28ad5717b179e069188bba6598123e6ea14b3198eec95807d5bc27692b8e4a
7
+ data.tar.gz: 9bbcbe754186f2c8103f5d908bb15b3e815c803e85cbfd52c32796209eff7ce281853c96f6a2a789dca6be6342a924556903edff8c943d87e4cf13631df8d421
@@ -163,7 +163,8 @@ module Google
163
163
  credentials: credentials,
164
164
  endpoint: @config.endpoint,
165
165
  channel_args: @config.channel_args,
166
- interceptors: @config.interceptors
166
+ interceptors: @config.interceptors,
167
+ channel_pool_config: @config.channel_pool
167
168
  )
168
169
  end
169
170
 
@@ -795,6 +796,14 @@ module Google
795
796
  end
796
797
  end
797
798
 
799
+ ##
800
+ # Configuration for the channel pool
801
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
802
+ #
803
+ def channel_pool
804
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
805
+ end
806
+
798
807
  ##
799
808
  # Configuration RPC class for the CloudShellService API.
800
809
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -195,6 +195,22 @@ module Google
195
195
  # @return [::Google::Cloud::Shell::V1::Environment]
196
196
  #
197
197
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
198
+ #
199
+ # @example Basic example
200
+ # require "google/cloud/shell/v1"
201
+ #
202
+ # # Create a client object. The client can be reused for multiple calls.
203
+ # client = Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
204
+ #
205
+ # # Create a request. To set request fields, pass in keyword arguments.
206
+ # request = Google::Cloud::Shell::V1::GetEnvironmentRequest.new
207
+ #
208
+ # # Call the get_environment method.
209
+ # result = client.get_environment request
210
+ #
211
+ # # The returned object is of type Google::Cloud::Shell::V1::Environment.
212
+ # p result
213
+ #
198
214
  def get_environment request, options = nil
199
215
  raise ::ArgumentError, "request must be provided" if request.nil?
200
216
 
@@ -271,6 +287,29 @@ module Google
271
287
  # @return [::Gapic::Operation]
272
288
  #
273
289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
290
+ #
291
+ # @example Basic example
292
+ # require "google/cloud/shell/v1"
293
+ #
294
+ # # Create a client object. The client can be reused for multiple calls.
295
+ # client = Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
296
+ #
297
+ # # Create a request. To set request fields, pass in keyword arguments.
298
+ # request = Google::Cloud::Shell::V1::StartEnvironmentRequest.new
299
+ #
300
+ # # Call the start_environment method.
301
+ # result = client.start_environment request
302
+ #
303
+ # # The returned object is of type Gapic::Operation. You can use it to
304
+ # # check the status of an operation, cancel it, or wait for results.
305
+ # # Here is how to wait for a response.
306
+ # result.wait_until_done! timeout: 60
307
+ # if result.response?
308
+ # p result.response
309
+ # else
310
+ # puts "No response received."
311
+ # end
312
+ #
274
313
  def start_environment request, options = nil
275
314
  raise ::ArgumentError, "request must be provided" if request.nil?
276
315
 
@@ -346,6 +385,29 @@ module Google
346
385
  # @return [::Gapic::Operation]
347
386
  #
348
387
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
388
+ #
389
+ # @example Basic example
390
+ # require "google/cloud/shell/v1"
391
+ #
392
+ # # Create a client object. The client can be reused for multiple calls.
393
+ # client = Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
394
+ #
395
+ # # Create a request. To set request fields, pass in keyword arguments.
396
+ # request = Google::Cloud::Shell::V1::AuthorizeEnvironmentRequest.new
397
+ #
398
+ # # Call the authorize_environment method.
399
+ # result = client.authorize_environment request
400
+ #
401
+ # # The returned object is of type Gapic::Operation. You can use it to
402
+ # # check the status of an operation, cancel it, or wait for results.
403
+ # # Here is how to wait for a response.
404
+ # result.wait_until_done! timeout: 60
405
+ # if result.response?
406
+ # p result.response
407
+ # else
408
+ # puts "No response received."
409
+ # end
410
+ #
349
411
  def authorize_environment request, options = nil
350
412
  raise ::ArgumentError, "request must be provided" if request.nil?
351
413
 
@@ -419,6 +481,29 @@ module Google
419
481
  # @return [::Gapic::Operation]
420
482
  #
421
483
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
484
+ #
485
+ # @example Basic example
486
+ # require "google/cloud/shell/v1"
487
+ #
488
+ # # Create a client object. The client can be reused for multiple calls.
489
+ # client = Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
490
+ #
491
+ # # Create a request. To set request fields, pass in keyword arguments.
492
+ # request = Google::Cloud::Shell::V1::AddPublicKeyRequest.new
493
+ #
494
+ # # Call the add_public_key method.
495
+ # result = client.add_public_key request
496
+ #
497
+ # # The returned object is of type Gapic::Operation. You can use it to
498
+ # # check the status of an operation, cancel it, or wait for results.
499
+ # # Here is how to wait for a response.
500
+ # result.wait_until_done! timeout: 60
501
+ # if result.response?
502
+ # p result.response
503
+ # else
504
+ # puts "No response received."
505
+ # end
506
+ #
422
507
  def add_public_key request, options = nil
423
508
  raise ::ArgumentError, "request must be provided" if request.nil?
424
509
 
@@ -488,6 +573,29 @@ module Google
488
573
  # @return [::Gapic::Operation]
489
574
  #
490
575
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
576
+ #
577
+ # @example Basic example
578
+ # require "google/cloud/shell/v1"
579
+ #
580
+ # # Create a client object. The client can be reused for multiple calls.
581
+ # client = Google::Cloud::Shell::V1::CloudShellService::Rest::Client.new
582
+ #
583
+ # # Create a request. To set request fields, pass in keyword arguments.
584
+ # request = Google::Cloud::Shell::V1::RemovePublicKeyRequest.new
585
+ #
586
+ # # Call the remove_public_key method.
587
+ # result = client.remove_public_key request
588
+ #
589
+ # # The returned object is of type Gapic::Operation. You can use it to
590
+ # # check the status of an operation, cancel it, or wait for results.
591
+ # # Here is how to wait for a response.
592
+ # result.wait_until_done! timeout: 60
593
+ # if result.response?
594
+ # p result.response
595
+ # else
596
+ # puts "No response received."
597
+ # end
598
+ #
491
599
  def remove_public_key request, options = nil
492
600
  raise ::ArgumentError, "request must be provided" if request.nil?
493
601
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Shell
23
23
  module V1
24
- VERSION = "0.5.1"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  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.5.1
4
+ version: 0.6.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.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: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  requirements: []
219
- rubygems_version: 3.4.2
219
+ rubygems_version: 3.4.19
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Allows users to start, configure, and connect to interactive shell sessions