diff --git a/api_names_out.yaml b/api_names_out.yaml index 0013103a9..fff424183 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -123860,6 +123860,7 @@ "/notebooks:v1/TestIamPermissionsResponse": test_iam_permissions_response "/notebooks:v1/TestIamPermissionsResponse/permissions": permissions "/notebooks:v1/TestIamPermissionsResponse/permissions/permission": permission +"/notebooks:v1/TriggerScheduleRequest": trigger_schedule_request "/notebooks:v1/UpgradeHistoryEntry": upgrade_history_entry "/notebooks:v1/UpgradeHistoryEntry/containerImage": container_image "/notebooks:v1/UpgradeHistoryEntry/createTime": create_time @@ -123946,6 +123947,8 @@ "/notebooks:v1/notebooks.projects.locations.operations.list/name": name "/notebooks:v1/notebooks.projects.locations.operations.list/pageSize": page_size "/notebooks:v1/notebooks.projects.locations.operations.list/pageToken": page_token +"/notebooks:v1/notebooks.projects.locations.schedules.trigger": trigger_schedule +"/notebooks:v1/notebooks.projects.locations.schedules.trigger/name": name "/notebooks:v1/quotaUser": quota_user "/oauth2:v1/Jwk": jwk "/oauth2:v1/Jwk/keys": keys diff --git a/generated/google/apis/notebooks_v1.rb b/generated/google/apis/notebooks_v1.rb index 1556e67ea..33810431d 100644 --- a/generated/google/apis/notebooks_v1.rb +++ b/generated/google/apis/notebooks_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ai-platform/notebooks/docs/ module NotebooksV1 VERSION = 'V1' - REVISION = '20201110' + REVISION = '20201211' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/notebooks_v1/classes.rb b/generated/google/apis/notebooks_v1/classes.rb index 5a1b42e35..f5cf94271 100644 --- a/generated/google/apis/notebooks_v1/classes.rb +++ b/generated/google/apis/notebooks_v1/classes.rb @@ -1329,6 +1329,19 @@ module Google end end + # Request for created scheduled notebooks + class TriggerScheduleRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # class UpgradeHistoryEntry include Google::Apis::Core::Hashable diff --git a/generated/google/apis/notebooks_v1/representations.rb b/generated/google/apis/notebooks_v1/representations.rb index 88d05339f..75fe1d3c8 100644 --- a/generated/google/apis/notebooks_v1/representations.rb +++ b/generated/google/apis/notebooks_v1/representations.rb @@ -208,6 +208,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TriggerScheduleRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpgradeHistoryEntry class Representation < Google::Apis::Core::JsonRepresentation; end @@ -541,6 +547,12 @@ module Google end end + class TriggerScheduleRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class UpgradeHistoryEntry # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/notebooks_v1/service.rb b/generated/google/apis/notebooks_v1/service.rb index 8789a25e6..f8c2f3c74 100644 --- a/generated/google/apis/notebooks_v1/service.rb +++ b/generated/google/apis/notebooks_v1/service.rb @@ -1029,6 +1029,40 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Triggers execution of an existing schedule. + # @param [String] name + # Required. Format: `parent=projects/`project_id`/locations/`location`/schedules/ + # `schedule_id`` + # @param [Google::Apis::NotebooksV1::TriggerScheduleRequest] trigger_schedule_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::NotebooksV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NotebooksV1::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 trigger_schedule(name, trigger_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:trigger', options) + command.request_representation = Google::Apis::NotebooksV1::TriggerScheduleRequest::Representation + command.request_object = trigger_schedule_request_object + command.response_representation = Google::Apis::NotebooksV1::Operation::Representation + command.response_class = Google::Apis::NotebooksV1::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 protected diff --git a/generated/google/apis/notebooks_v1/synth.metadata b/generated/google/apis/notebooks_v1/synth.metadata index 387168f0e..ef1a40d70 100644 --- a/generated/google/apis/notebooks_v1/synth.metadata +++ b/generated/google/apis/notebooks_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "43590cf2cc7ef0b8cd2777aa01e42dd30c5db9d3" + "sha": "91887ca1afd59dd431938c4aa38f5a22c8144658" } } ]