Skip to content

Commit 444d2dc

Browse files
feat: Automated regeneration of cloudshell v1 client (#24924)
Auto-created at 2025-11-09 10:22:57 +0000 using the toys pull request generator.
1 parent c832f89 commit 444d2dc

File tree

6 files changed

+84
-2
lines changed

6 files changed

+84
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86193,6 +86193,8 @@
8619386193
"/cloudshell:v1/Environment/webHost": web_host
8619486194
"/cloudshell:v1/Environment/webPorts": web_ports
8619586195
"/cloudshell:v1/Environment/webPorts/web_port": web_port
86196+
"/cloudshell:v1/GenerateAccessTokenResponse": generate_access_token_response
86197+
"/cloudshell:v1/GenerateAccessTokenResponse/accessToken": access_token
8619686198
"/cloudshell:v1/ListOperationsResponse": list_operations_response
8619786199
"/cloudshell:v1/ListOperationsResponse/nextPageToken": next_page_token
8619886200
"/cloudshell:v1/ListOperationsResponse/operations": operations
@@ -86245,6 +86247,10 @@
8624586247
"/cloudshell:v1/cloudshell.users.environments.addPublicKey/environment": environment
8624686248
"/cloudshell:v1/cloudshell.users.environments.authorize": authorize_environment
8624786249
"/cloudshell:v1/cloudshell.users.environments.authorize/name": name
86250+
"/cloudshell:v1/cloudshell.users.environments.generateAccessToken": generate_user_environment_access_token
86251+
"/cloudshell:v1/cloudshell.users.environments.generateAccessToken/environment": environment
86252+
"/cloudshell:v1/cloudshell.users.environments.generateAccessToken/expireTime": expire_time
86253+
"/cloudshell:v1/cloudshell.users.environments.generateAccessToken/ttl": ttl
8624886254
"/cloudshell:v1/cloudshell.users.environments.get": get_user_environment
8624986255
"/cloudshell:v1/cloudshell.users.environments.get/name": name
8625086256
"/cloudshell:v1/cloudshell.users.environments.removePublicKey": remove_environment_public_key

generated/google-apis-cloudshell_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudshell_v1
22

3+
### v0.26.0 (2025-11-09)
4+
5+
* Regenerated from discovery document revision 20251105
6+
37
### v0.25.0 (2025-10-05)
48

59
* Regenerated from discovery document revision 20250930

generated/google-apis-cloudshell_v1/lib/google/apis/cloudshell_v1/classes.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,25 @@ def update!(**args)
277277
end
278278
end
279279

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+
280299
# The response message for Operations.ListOperations.
281300
class ListOperationsResponse
282301
include Google::Apis::Core::Hashable

generated/google-apis-cloudshell_v1/lib/google/apis/cloudshell_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudshellV1
1818
# Version of the google-apis-cloudshell_v1 gem
19-
GEM_VERSION = "0.25.0"
19+
GEM_VERSION = "0.26.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250930"
25+
REVISION = "20251105"
2626
end
2727
end
2828
end

generated/google-apis-cloudshell_v1/lib/google/apis/cloudshell_v1/representations.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8888
include Google::Apis::Core::JsonObjectSupport
8989
end
9090

91+
class GenerateAccessTokenResponse
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
9197
class ListOperationsResponse
9298
class Representation < Google::Apis::Core::JsonRepresentation; end
9399

@@ -222,6 +228,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
222228
end
223229
end
224230

231+
class GenerateAccessTokenResponse
232+
# @private
233+
class Representation < Google::Apis::Core::JsonRepresentation
234+
property :access_token, as: 'accessToken'
235+
end
236+
end
237+
225238
class ListOperationsResponse
226239
# @private
227240
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-cloudshell_v1/lib/google/apis/cloudshell_v1/service.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,46 @@ def authorize_environment(name, authorize_environment_request_object = nil, fiel
275275
execute_or_queue_command(command, &block)
276276
end
277277

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+
278318
# Gets an environment. Returns NOT_FOUND if the environment does not exist.
279319
# @param [String] name
280320
# Required. Name of the requested resource, for example `users/me/environments/

0 commit comments

Comments
 (0)