Infrastructure Manager V1 API - Class Google::Cloud::Config::V1::Config::Rest::ServiceStub (v0.1.0)

Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::Config::V1::Config::Rest::ServiceStub.

REST service stub for the Config service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_deployment

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

Baseline implementation for the create_deployment REST call

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

#delete_deployment

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

Baseline implementation for the delete_deployment REST call

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

#delete_statefile

def delete_statefile(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_statefile REST call

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

#export_deployment_statefile

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

Baseline implementation for the export_deployment_statefile REST call

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

#export_lock_info

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

Baseline implementation for the export_lock_info REST call

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

#export_revision_statefile

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

Baseline implementation for the export_revision_statefile REST call

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

#get_deployment

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

Baseline implementation for the get_deployment REST call

Parameters
  • request_pb (::Google::Cloud::Config::V1::GetDeploymentRequest) — 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_resource

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

Baseline implementation for the get_resource REST call

Parameters
  • request_pb (::Google::Cloud::Config::V1::GetResourceRequest) — 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_revision

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

Baseline implementation for the get_revision REST call

Parameters
  • request_pb (::Google::Cloud::Config::V1::GetRevisionRequest) — 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)

#import_statefile

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

Baseline implementation for the import_statefile REST call

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

#initialize

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

#list_deployments

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

Baseline implementation for the list_deployments REST call

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

#list_resources

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

Baseline implementation for the list_resources REST call

Parameters
  • request_pb (::Google::Cloud::Config::V1::ListResourcesRequest) — 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_revisions

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

Baseline implementation for the list_revisions REST call

Parameters
  • request_pb (::Google::Cloud::Config::V1::ListRevisionsRequest) — 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)

#lock_deployment

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

Baseline implementation for the lock_deployment REST call

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

#unlock_deployment

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

Baseline implementation for the unlock_deployment REST call

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

#update_deployment

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

Baseline implementation for the update_deployment REST call

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