Bump version, regen APIs
This commit is contained in:
1 parent
b8f6f7c2fe
commit
9237ba59cb
241 files changed
+53894
-50212
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -22,42 +22,6 @@ module Google
|
||||
module Apis
|
||||
module CloudbuildV1
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildTrigger
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Build
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelBuildRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListBuildsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -106,13 +70,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class ListBuildTriggersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -130,13 +94,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class BuildStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -149,79 +113,39 @@ module Google
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildTrigger
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disabled, as: 'disabled'
|
||||
property :create_time, as: 'createTime'
|
||||
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :filename, as: 'filename'
|
||||
property :id, as: 'id'
|
||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Build
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :status, as: 'status'
|
||||
property :timeout, as: 'timeout'
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||
|
||||
property :build_trigger_id, as: 'buildTriggerId'
|
||||
collection :tags, as: 'tags'
|
||||
property :id, as: 'id'
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :start_time, as: 'startTime'
|
||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
collection :images, as: 'images'
|
||||
property :project_id, as: 'projectId'
|
||||
property :log_url, as: 'logUrl'
|
||||
property :finish_time, as: 'finishTime'
|
||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
||||
|
||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelBuildRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListBuildsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
@@ -246,17 +170,17 @@ module Google
|
||||
class BuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket, as: 'bucket'
|
||||
property :object, as: 'object'
|
||||
property :generation, :numeric_string => true, as: 'generation'
|
||||
property :bucket, as: 'bucket'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -280,12 +204,12 @@ module Google
|
||||
class SourceProvenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
|
||||
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
||||
|
||||
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
|
||||
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -295,18 +219,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -315,6 +227,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
end
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -331,19 +255,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
property :id, as: 'id'
|
||||
property :dir, as: 'dir'
|
||||
collection :wait_for, as: 'waitFor'
|
||||
collection :env, as: 'env'
|
||||
collection :args, as: 'args'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -355,6 +266,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
property :id, as: 'id'
|
||||
property :dir, as: 'dir'
|
||||
collection :env, as: 'env'
|
||||
collection :wait_for, as: 'waitFor'
|
||||
collection :args, as: 'args'
|
||||
end
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -362,6 +286,82 @@ module Google
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class BuildTrigger
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :disabled, as: 'disabled'
|
||||
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
|
||||
property :filename, as: 'filename'
|
||||
property :id, as: 'id'
|
||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
end
|
||||
|
||||
class Build
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||
|
||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
||||
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :status, as: 'status'
|
||||
property :timeout, as: 'timeout'
|
||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||
|
||||
property :build_trigger_id, as: 'buildTriggerId'
|
||||
collection :tags, as: 'tags'
|
||||
property :id, as: 'id'
|
||||
property :start_time, as: 'startTime'
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
collection :images, as: 'images'
|
||||
property :project_id, as: 'projectId'
|
||||
property :log_url, as: 'logUrl'
|
||||
property :finish_time, as: 'finishTime'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelBuildRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ListBuildsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -47,12 +47,13 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Deletes an BuildTrigger by its project ID and trigger ID.
|
||||
# This API is experimental.
|
||||
# Returns information about a previously requested build.
|
||||
# The Build that is returned includes its status (e.g., success or failure,
|
||||
# or in-progress), and timing information.
|
||||
# @param [String] project_id
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to delete.
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @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.
|
||||
@@ -62,20 +63,133 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Empty]
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists previously requested builds.
|
||||
# Previously requested builds may still be in-progress, or may have finished
|
||||
# successfully or unsuccessfully.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] page_token
|
||||
# Token to provide to skip to a particular spot in the list.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of results to return in the list.
|
||||
# @param [String] filter
|
||||
# The raw filter text to constrain the results.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
||||
#
|
||||
# @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_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts a build with the specified configuration.
|
||||
# The long-running Operation returned by this method will include the ID of
|
||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||
# success or failure).
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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 create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.request_object = build_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a requested build in progress.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @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_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
||||
command.request_object = cancel_build_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -217,167 +331,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts a build with the specified configuration.
|
||||
# The long-running Operation returned by this method will include the ID of
|
||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||
# success or failure).
|
||||
# Deletes an BuildTrigger by its project ID and trigger ID.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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 create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.request_object = build_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a requested build in progress.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @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_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
||||
command.request_object = cancel_build_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns information about a previously requested build.
|
||||
# The Build that is returned includes its status (e.g., success or failure,
|
||||
# or in-progress), and timing information.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @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_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists previously requested builds.
|
||||
# Previously requested builds may still be in-progress, or may have finished
|
||||
# successfully or unsuccessfully.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] page_token
|
||||
# Token to provide to skip to a particular spot in the list.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of results to return in the list.
|
||||
# @param [String] filter
|
||||
# The raw filter text to constrain the results.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
||||
#
|
||||
# @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_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.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::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to delete.
|
||||
# @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.
|
||||
@@ -395,13 +354,12 @@ module Google
|
||||
# @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, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -409,10 +367,15 @@ module Google
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding below allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation collection.
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] page_token
|
||||
@@ -480,6 +443,48 @@ module Google
|
||||
command.query['fields'] = fields unless fields.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::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user