Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::CloudBuild::Rest::ServiceStub.
REST service stub for the CloudBuild service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#approve_build
def approve_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the approve_build REST call
- request_pb (::Google::Cloud::Build::V1::ApproveBuildRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#cancel_build
def cancel_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::Build
Baseline implementation for the cancel_build REST call
- request_pb (::Google::Cloud::Build::V1::CancelBuildRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::Build)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::Build) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_build
def create_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_build REST call
- request_pb (::Google::Cloud::Build::V1::CreateBuildRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_build_trigger
def create_build_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::BuildTrigger
Baseline implementation for the create_build_trigger REST call
- request_pb (::Google::Cloud::Build::V1::CreateBuildTriggerRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::BuildTrigger)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::BuildTrigger) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_worker_pool
def create_worker_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_worker_pool REST call
- request_pb (::Google::Cloud::Build::V1::CreateWorkerPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_build_trigger
def delete_build_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_build_trigger REST call
- request_pb (::Google::Cloud::Build::V1::DeleteBuildTriggerRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_worker_pool
def delete_worker_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_worker_pool REST call
- request_pb (::Google::Cloud::Build::V1::DeleteWorkerPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_build
def get_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::Build
Baseline implementation for the get_build REST call
- request_pb (::Google::Cloud::Build::V1::GetBuildRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::Build)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::Build) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_build_trigger
def get_build_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::BuildTrigger
Baseline implementation for the get_build_trigger REST call
- request_pb (::Google::Cloud::Build::V1::GetBuildTriggerRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::BuildTrigger)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::BuildTrigger) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_worker_pool
def get_worker_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::WorkerPool
Baseline implementation for the get_worker_pool REST call
- request_pb (::Google::Cloud::Build::V1::GetWorkerPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::WorkerPool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::WorkerPool) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_build_triggers
def list_build_triggers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::ListBuildTriggersResponse
Baseline implementation for the list_build_triggers REST call
- request_pb (::Google::Cloud::Build::V1::ListBuildTriggersRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::ListBuildTriggersResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::ListBuildTriggersResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_builds
def list_builds(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::ListBuildsResponse
Baseline implementation for the list_builds REST call
- request_pb (::Google::Cloud::Build::V1::ListBuildsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::ListBuildsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::ListBuildsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_worker_pools
def list_worker_pools(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::ListWorkerPoolsResponse
Baseline implementation for the list_worker_pools REST call
- request_pb (::Google::Cloud::Build::V1::ListWorkerPoolsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::ListWorkerPoolsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::ListWorkerPoolsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#receive_trigger_webhook
def receive_trigger_webhook(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse
Baseline implementation for the receive_trigger_webhook REST call
- request_pb (::Google::Cloud::Build::V1::ReceiveTriggerWebhookRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#retry_build
def retry_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the retry_build REST call
- request_pb (::Google::Cloud::Build::V1::RetryBuildRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#run_build_trigger
def run_build_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the run_build_trigger REST call
- request_pb (::Google::Cloud::Build::V1::RunBuildTriggerRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_build_trigger
def update_build_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::BuildTrigger
Baseline implementation for the update_build_trigger REST call
- request_pb (::Google::Cloud::Build::V1::UpdateBuildTriggerRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Build::V1::BuildTrigger)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Build::V1::BuildTrigger) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_worker_pool
def update_worker_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_worker_pool REST call
- request_pb (::Google::Cloud::Build::V1::UpdateWorkerPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)