google-apis-cloudshell_v1 0.25.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: d3609501225e1dca781ef9c63b44532b188b90654b4e8d8b89b63891695ceec3
4
- data.tar.gz: 96807d0957314dbb768bfe59dced425c77cca8436ec51dacbba799e91ead984c
3
+ metadata.gz: 8d990dc47b70b470f55a18fd9ea158602f66839dedc8a9503280847b721e4250
4
+ data.tar.gz: 57d43a6954e8f6adc884b3f663413fe0af4f5029f58bdd6eb33fb4cc0f462575
5
5
  SHA512:
6
- metadata.gz: b549d779a9b958175e6b9dfa6c8b4524e9ab51d01a54d9fc2f3e3166db203d06ab0cd7515c494485e847f3687f61c761abc64aa2c8ebda1f4ee59a8e1ad8712e
7
- data.tar.gz: 1b57d7e6e826407614e471034a4cc87f3c82e5391ddfb17c5745be6f0e0b9fe4beda683837944d6a2495e8a6c82d67978101499ca13e78e596a4dc641ebad33c
6
+ metadata.gz: 4337e77458fa50be0924dcfad914220511a063b0c51b1b616e112d5d37326a4a4fcfd4eb4329505e1231f8660aef19ba7156ef4d620ab4b45a0cf6d86d531220
7
+ data.tar.gz: c92688b5ba2d466aeb9cea9933b292ed2cb3b08c2615215a90bf7fae80e513ed546e8870133eeaeb89882cf87b4a02990974e3488efd596aa26087aa48bb9f6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.25.0 (2025-10-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20250930
@@ -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
@@ -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.25.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250930"
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,6 +228,13 @@ 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
@@ -275,6 +275,46 @@ module Google
275
275
  execute_or_queue_command(command, &block)
276
276
  end
277
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
+
278
318
  # Gets an environment. Returns NOT_FOUND if the environment does not exist.
279
319
  # @param [String] name
280
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.25.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.25.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: