Assured Workloads for Government V1 API - Class Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::ServiceStub (v0.9.2)

Reference documentation and code samples for the Assured Workloads for Government V1 API class Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_workload

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

Baseline implementation for the create_workload REST call

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

#delete_workload

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

Baseline implementation for the delete_workload REST call

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_workload

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

Baseline implementation for the get_workload REST call

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

#initialize

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

#list_workloads

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

Baseline implementation for the list_workloads REST call

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

#restrict_allowed_resources

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

Baseline implementation for the restrict_allowed_resources REST call

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

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_workload

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

Baseline implementation for the update_workload REST call

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