Cloud Build V1 API - Class Google::Cloud::Build::V1::CloudBuild::Rest::ServiceStub (v0.22.0)

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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_build

def create_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_build REST call

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_build

def get_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Build::V1::Build

Baseline implementation for the get_build REST call

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#retry_build

def retry_build(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the retry_build REST call

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)