From 65a06b1f7989bcec167b47013c8cf3bdc41d15bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 28 Sep 2025 10:06:24 +0000 Subject: [PATCH] feat: Automated regeneration of cloudscheduler v1 client --- api_names_out.yaml | 11 + .../CHANGELOG.md | 4 + .../apis/cloudscheduler_v1/gem_version.rb | 4 +- .../google/apis/cloudscheduler_v1/service.rb | 292 +++++++++--------- 4 files changed, 163 insertions(+), 148 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..17c350e991b 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -78751,6 +78751,17 @@ "/cloudscheduler:v1/cloudscheduler.projects.locations.list/name": name "/cloudscheduler:v1/cloudscheduler.projects.locations.list/pageSize": page_size "/cloudscheduler:v1/cloudscheduler.projects.locations.list/pageToken": page_token +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.cancel": cancel_operation +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.cancel/name": name +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.delete": delete_project_location_operation +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.delete/name": name +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.get": get_project_location_operation +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.get/name": name +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.list": list_project_location_operations +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.list/filter": filter +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.list/name": name +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.list/pageSize": page_size +"/cloudscheduler:v1/cloudscheduler.projects.locations.operations.list/pageToken": page_token "/cloudscheduler:v1/fields": fields "/cloudscheduler:v1/key": key "/cloudscheduler:v1/quotaUser": quota_user diff --git a/generated/google-apis-cloudscheduler_v1/CHANGELOG.md b/generated/google-apis-cloudscheduler_v1/CHANGELOG.md index 4e3fb8cf698..d741fcaaf5d 100644 --- a/generated/google-apis-cloudscheduler_v1/CHANGELOG.md +++ b/generated/google-apis-cloudscheduler_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-cloudscheduler_v1 +### v0.40.0 (2025-09-28) + +* Regenerated from discovery document revision 20250917 + ### v0.39.0 (2025-06-08) * Regenerated from discovery document revision 20250530 diff --git a/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/gem_version.rb b/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/gem_version.rb index 4ed39a8ad6e..ced27429fd1 100644 --- a/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/gem_version.rb +++ b/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module CloudschedulerV1 # Version of the google-apis-cloudscheduler_v1 gem - GEM_VERSION = "0.39.0" + GEM_VERSION = "0.40.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250530" + REVISION = "20250917" end end end diff --git a/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/service.rb b/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/service.rb index 313e3c6a7a5..3a0c2d7767e 100644 --- a/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/service.rb +++ b/generated/google-apis-cloudscheduler_v1/lib/google/apis/cloudscheduler_v1/service.rb @@ -51,150 +51,6 @@ def initialize @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. The server makes - # a best effort to cancel the operation, but success is not guaranteed. If the - # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. - # Clients can use Operations.GetOperation or other methods to check whether the - # cancellation succeeded or whether the operation completed despite cancellation. - # On successful cancellation, the operation is not deleted; instead, it becomes - # an operation with an Operation.error value with a google.rpc.Status.code of `1` - # , corresponding to `Code.CANCELLED`. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [Google::Apis::CloudschedulerV1::CancelOperationRequest] cancel_operation_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudschedulerV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudschedulerV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:cancel', options) - command.request_representation = Google::Apis::CloudschedulerV1::CancelOperationRequest::Representation - command.request_object = cancel_operation_request_object - command.response_representation = Google::Apis::CloudschedulerV1::Empty::Representation - command.response_class = Google::Apis::CloudschedulerV1::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a long-running operation. This method indicates that the client is no - # longer interested in the operation result. It does not cancel the operation. - # If the server doesn't support this method, it returns `google.rpc.Code. - # UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudschedulerV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudschedulerV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudschedulerV1::Empty::Representation - command.response_class = Google::Apis::CloudschedulerV1::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of a long-running operation. Clients can use this method - # to poll the operation result at intervals as recommended by the API service. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudschedulerV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudschedulerV1::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudschedulerV1::Operation::Representation - command.response_class = Google::Apis::CloudschedulerV1::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudschedulerV1::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudschedulerV1::ListOperationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudschedulerV1::ListOperationsResponse::Representation - command.response_class = Google::Apis::CloudschedulerV1::ListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Gets information about a location. # @param [String] name # Resource name for the location. @@ -229,8 +85,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc # @param [String] name # The resource that owns the locations collection, if applicable. # @param [Array, String] extra_location_types - # Optional. A list of extra location types that should be used as conditions for - # controlling the visibility of the locations. + # Optional. Unless explicitly documented otherwise, don't use this unsupported + # field which is primarily intended for internal usage. # @param [String] filter # A filter to narrow down results to a preferred subset. The filtering language # accepts strings like `"displayName=tokyo"`, and is documented in more detail @@ -566,6 +422,150 @@ def run_job(name, run_job_request_object = nil, fields: nil, quota_user: nil, op command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of `1` + # , corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::CloudschedulerV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudschedulerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudschedulerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::CloudschedulerV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::CloudschedulerV1::Empty::Representation + command.response_class = Google::Apis::CloudschedulerV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudschedulerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudschedulerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudschedulerV1::Empty::Representation + command.response_class = Google::Apis::CloudschedulerV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudschedulerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudschedulerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudschedulerV1::Operation::Representation + command.response_class = Google::Apis::CloudschedulerV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudschedulerV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudschedulerV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::CloudschedulerV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::CloudschedulerV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected