google-apis-cloudshell_v1 0.24.0 → 0.26.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: cb710aed88dc90f4570e066230a59a989ddcf5a0273c2ffd0b678bafb85f4237
4
- data.tar.gz: 82dcfcf31d822056b98e4a1b8c5a8cef2d49bd1c5cf258290dd1b6ffe06f1096
3
+ metadata.gz: 8d990dc47b70b470f55a18fd9ea158602f66839dedc8a9503280847b721e4250
4
+ data.tar.gz: 57d43a6954e8f6adc884b3f663413fe0af4f5029f58bdd6eb33fb4cc0f462575
5
5
  SHA512:
6
- metadata.gz: cb8f4229eb087b81cd5fdf04d2e1f109088c364cb69fa236e6f8b9ff7043f5d04096dab3a78c278de5a997ac147d93f2220e428855dfaacc69f977a2eb9be303
7
- data.tar.gz: fb0fd215d7327111b1cd41e250b8914c480f430a85471733a80b3422e94f6812d46cabe1602b645ef750971b1fe959345a3ac5c28b4d2b1455458d370486face
6
+ metadata.gz: 4337e77458fa50be0924dcfad914220511a063b0c51b1b616e112d5d37326a4a4fcfd4eb4329505e1231f8660aef19ba7156ef4d620ab4b45a0cf6d86d531220
7
+ data.tar.gz: c92688b5ba2d466aeb9cea9933b292ed2cb3b08c2615215a90bf7fae80e513ed546e8870133eeaeb89882cf87b4a02990974e3488efd596aa26087aa48bb9f6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-cloudshell_v1
2
2
 
3
+ ### v0.26.0 (2025-11-09)
4
+
5
+ * Regenerated from discovery document revision 20251105
6
+
7
+ ### v0.25.0 (2025-10-05)
8
+
9
+ * Regenerated from discovery document revision 20250930
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.24.0 (2025-05-04)
4
13
 
5
14
  * Regenerated using generator version 0.17.0
@@ -277,6 +277,25 @@ module Google
277
277
  end
278
278
  end
279
279
 
280
+ # Response message for GenerateAccessToken.
281
+ class GenerateAccessTokenResponse
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # The access token.
285
+ # Corresponds to the JSON property `accessToken`
286
+ # @return [String]
287
+ attr_accessor :access_token
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @access_token = args[:access_token] if args.key?(:access_token)
296
+ end
297
+ end
298
+
280
299
  # The response message for Operations.ListOperations.
281
300
  class ListOperationsResponse
282
301
  include Google::Apis::Core::Hashable
@@ -291,6 +310,13 @@ module Google
291
310
  # @return [Array<Google::Apis::CloudshellV1::Operation>]
292
311
  attr_accessor :operations
293
312
 
313
+ # Unordered list. Unreachable resources. Populated when the request sets `
314
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
315
+ # when attempting to list all resources across all supported locations.
316
+ # Corresponds to the JSON property `unreachable`
317
+ # @return [Array<String>]
318
+ attr_accessor :unreachable
319
+
294
320
  def initialize(**args)
295
321
  update!(**args)
296
322
  end
@@ -299,6 +325,7 @@ module Google
299
325
  def update!(**args)
300
326
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
301
327
  @operations = args[:operations] if args.key?(:operations)
328
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
302
329
  end
303
330
  end
304
331
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudshellV1
18
18
  # Version of the google-apis-cloudshell_v1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241118"
25
+ REVISION = "20251105"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class GenerateAccessTokenResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class ListOperationsResponse
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -222,12 +228,20 @@ module Google
222
228
  end
223
229
  end
224
230
 
231
+ class GenerateAccessTokenResponse
232
+ # @private
233
+ class Representation < Google::Apis::Core::JsonRepresentation
234
+ property :access_token, as: 'accessToken'
235
+ end
236
+ end
237
+
225
238
  class ListOperationsResponse
226
239
  # @private
227
240
  class Representation < Google::Apis::Core::JsonRepresentation
228
241
  property :next_page_token, as: 'nextPageToken'
229
242
  collection :operations, as: 'operations', class: Google::Apis::CloudshellV1::Operation, decorator: Google::Apis::CloudshellV1::Operation::Representation
230
243
 
244
+ collection :unreachable, as: 'unreachable'
231
245
  end
232
246
  end
233
247
 
@@ -166,6 +166,13 @@ module Google
166
166
  # The standard list page size.
167
167
  # @param [String] page_token
168
168
  # The standard list page token.
169
+ # @param [Boolean] return_partial_success
170
+ # When set to `true`, operations that are reachable are returned as normal, and
171
+ # those that are unreachable are returned in the [ListOperationsResponse.
172
+ # unreachable] field. This can only be `true` when reading across collections e.
173
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
174
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
175
+ # explicitly documented otherwise in service or product specific documentation.
169
176
  # @param [String] fields
170
177
  # Selector specifying which fields to include in a partial response.
171
178
  # @param [String] quota_user
@@ -183,7 +190,7 @@ module Google
183
190
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
191
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
192
  # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
193
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
187
194
  command = make_simple_command(:get, 'v1/{+name}', options)
188
195
  command.response_representation = Google::Apis::CloudshellV1::ListOperationsResponse::Representation
189
196
  command.response_class = Google::Apis::CloudshellV1::ListOperationsResponse
@@ -191,6 +198,7 @@ module Google
191
198
  command.query['filter'] = filter unless filter.nil?
192
199
  command.query['pageSize'] = page_size unless page_size.nil?
193
200
  command.query['pageToken'] = page_token unless page_token.nil?
201
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
194
202
  command.query['fields'] = fields unless fields.nil?
195
203
  command.query['quotaUser'] = quota_user unless quota_user.nil?
196
204
  execute_or_queue_command(command, &block)
@@ -267,6 +275,46 @@ module Google
267
275
  execute_or_queue_command(command, &block)
268
276
  end
269
277
 
278
+ # Generates an access token for the user's environment.
279
+ # @param [String] environment
280
+ # Required. The environment to generate the access token for.
281
+ # @param [String] expire_time
282
+ # Desired expiration time of the access token. This value must be at most 24
283
+ # hours in the future. If a value is not specified, the token's expiration time
284
+ # will be set to a default value of 1 hour in the future.
285
+ # @param [String] ttl
286
+ # Desired lifetime duration of the access token. This value must be at most 24
287
+ # hours. If a value is not specified, the token's lifetime will be set to a
288
+ # default value of 1 hour.
289
+ # @param [String] fields
290
+ # Selector specifying which fields to include in a partial response.
291
+ # @param [String] quota_user
292
+ # Available to use for quota purposes for server-side applications. Can be any
293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
294
+ # @param [Google::Apis::RequestOptions] options
295
+ # Request-specific options
296
+ #
297
+ # @yield [result, err] Result & error if block supplied
298
+ # @yieldparam result [Google::Apis::CloudshellV1::GenerateAccessTokenResponse] parsed result object
299
+ # @yieldparam err [StandardError] error object if request failed
300
+ #
301
+ # @return [Google::Apis::CloudshellV1::GenerateAccessTokenResponse]
302
+ #
303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
306
+ def generate_user_environment_access_token(environment, expire_time: nil, ttl: nil, fields: nil, quota_user: nil, options: nil, &block)
307
+ command = make_simple_command(:get, 'v1/{+environment}:generateAccessToken', options)
308
+ command.response_representation = Google::Apis::CloudshellV1::GenerateAccessTokenResponse::Representation
309
+ command.response_class = Google::Apis::CloudshellV1::GenerateAccessTokenResponse
310
+ command.params['environment'] = environment unless environment.nil?
311
+ command.query['expireTime'] = expire_time unless expire_time.nil?
312
+ command.query['ttl'] = ttl unless ttl.nil?
313
+ command.query['fields'] = fields unless fields.nil?
314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
315
+ execute_or_queue_command(command, &block)
316
+ end
317
+
270
318
  # Gets an environment. Returns NOT_FOUND if the environment does not exist.
271
319
  # @param [String] name
272
320
  # Required. Name of the requested resource, for example `users/me/environments/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudshell_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudshell_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudshell_v1/v0.24.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudshell_v1/v0.26.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudshell_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Cloud Shell API V1
79
79
  test_files: []