Skip to content

Commit 424ee8a

Browse files
feat: Automated regeneration of composer v1 client (googleapis#23191)
Auto-created at 2025-05-21 20:35:34 +0000 using the toys pull request generator.
1 parent 3160f24 commit 424ee8a

File tree

6 files changed

+69
-2
lines changed

6 files changed

+69
-2
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82466,6 +82466,7 @@
8246682466
"/composer:v1/PrivateEnvironmentConfig/webServerIpv4ReservedRange": web_server_ipv4_reserved_range
8246782467
"/composer:v1/RecoveryConfig": recovery_config
8246882468
"/composer:v1/RecoveryConfig/scheduledSnapshotsConfig": scheduled_snapshots_config
82469+
"/composer:v1/RestartWebServerRequest": restart_web_server_request
8246982470
"/composer:v1/SaveSnapshotRequest": save_snapshot_request
8247082471
"/composer:v1/SaveSnapshotRequest/snapshotLocation": snapshot_location
8247182472
"/composer:v1/SaveSnapshotResponse": save_snapshot_response
@@ -82569,6 +82570,8 @@
8256982570
"/composer:v1/composer.projects.locations.environments.patch/updateMask": update_mask
8257082571
"/composer:v1/composer.projects.locations.environments.pollAirflowCommand": poll_environment_airflow_command
8257182572
"/composer:v1/composer.projects.locations.environments.pollAirflowCommand/environment": environment
82573+
"/composer:v1/composer.projects.locations.environments.restartWebServer": restart_environment_web_server
82574+
"/composer:v1/composer.projects.locations.environments.restartWebServer/name": name
8257282575
"/composer:v1/composer.projects.locations.environments.saveSnapshot": save_environment_snapshot
8257382576
"/composer:v1/composer.projects.locations.environments.saveSnapshot/environment": environment
8257482577
"/composer:v1/composer.projects.locations.environments.stopAirflowCommand": stop_environment_airflow_command

generated/google-apis-composer_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-composer_v1
22

3+
### v0.55.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250513
6+
37
### v0.54.0 (2025-05-04)
48

59
* Regenerated using generator version 0.17.0

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,19 @@ def update!(**args)
18031803
end
18041804
end
18051805

1806+
# Restart Airflow web server.
1807+
class RestartWebServerRequest
1808+
include Google::Apis::Core::Hashable
1809+
1810+
def initialize(**args)
1811+
update!(**args)
1812+
end
1813+
1814+
# Update properties of this object
1815+
def update!(**args)
1816+
end
1817+
end
1818+
18061819
# Request to create a snapshot of a Cloud Composer environment.
18071820
class SaveSnapshotRequest
18081821
include Google::Apis::Core::Hashable

generated/google-apis-composer_v1/lib/google/apis/composer_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 ComposerV1
1818
# Version of the google-apis-composer_v1 gem
19-
GEM_VERSION = "0.54.0"
19+
GEM_VERSION = "0.55.0"
2020

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

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

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
286286
include Google::Apis::Core::JsonObjectSupport
287287
end
288288

289+
class RestartWebServerRequest
290+
class Representation < Google::Apis::Core::JsonRepresentation; end
291+
292+
include Google::Apis::Core::JsonObjectSupport
293+
end
294+
289295
class SaveSnapshotRequest
290296
class Representation < Google::Apis::Core::JsonRepresentation; end
291297

@@ -843,6 +849,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
843849
end
844850
end
845851

852+
class RestartWebServerRequest
853+
# @private
854+
class Representation < Google::Apis::Core::JsonRepresentation
855+
end
856+
end
857+
846858
class SaveSnapshotRequest
847859
# @private
848860
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,41 @@ def poll_environment_airflow_command(environment, poll_airflow_command_request_o
493493
execute_or_queue_command(command, &block)
494494
end
495495

496+
# Restart Airflow web server.
497+
# @param [String] name
498+
# Required. The resource name of the environment to restart the web server for,
499+
# in the form: "projects/`projectId`/locations/`locationId`/environments/`
500+
# environmentId`"
501+
# @param [Google::Apis::ComposerV1::RestartWebServerRequest] restart_web_server_request_object
502+
# @param [String] fields
503+
# Selector specifying which fields to include in a partial response.
504+
# @param [String] quota_user
505+
# Available to use for quota purposes for server-side applications. Can be any
506+
# arbitrary string assigned to a user, but should not exceed 40 characters.
507+
# @param [Google::Apis::RequestOptions] options
508+
# Request-specific options
509+
#
510+
# @yield [result, err] Result & error if block supplied
511+
# @yieldparam result [Google::Apis::ComposerV1::Operation] parsed result object
512+
# @yieldparam err [StandardError] error object if request failed
513+
#
514+
# @return [Google::Apis::ComposerV1::Operation]
515+
#
516+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518+
# @raise [Google::Apis::AuthorizationError] Authorization is required
519+
def restart_environment_web_server(name, restart_web_server_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
520+
command = make_simple_command(:post, 'v1/{+name}:restartWebServer', options)
521+
command.request_representation = Google::Apis::ComposerV1::RestartWebServerRequest::Representation
522+
command.request_object = restart_web_server_request_object
523+
command.response_representation = Google::Apis::ComposerV1::Operation::Representation
524+
command.response_class = Google::Apis::ComposerV1::Operation
525+
command.params['name'] = name unless name.nil?
526+
command.query['fields'] = fields unless fields.nil?
527+
command.query['quotaUser'] = quota_user unless quota_user.nil?
528+
execute_or_queue_command(command, &block)
529+
end
530+
496531
# Creates a snapshots of a Cloud Composer environment. As a result of this
497532
# operation, snapshot of environment's state is stored in a location specified
498533
# in the SaveSnapshotRequest.

0 commit comments

Comments
 (0)