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
- request_pb (::Google::Cloud::AssuredWorkloads::V1::CreateWorkloadRequest) — 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_workload
def delete_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_workload REST call
- request_pb (::Google::Cloud::AssuredWorkloads::V1::DeleteWorkloadRequest) — 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)
#get_workload
def get_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AssuredWorkloads::V1::Workload
Baseline implementation for the get_workload REST call
- request_pb (::Google::Cloud::AssuredWorkloads::V1::GetWorkloadRequest) — 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::AssuredWorkloads::V1::Workload)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AssuredWorkloads::V1::Workload) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_workloads
def list_workloads(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AssuredWorkloads::V1::ListWorkloadsResponse
Baseline implementation for the list_workloads REST call
- request_pb (::Google::Cloud::AssuredWorkloads::V1::ListWorkloadsRequest) — 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::AssuredWorkloads::V1::ListWorkloadsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AssuredWorkloads::V1::ListWorkloadsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest) — 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::AssuredWorkloads::V1::RestrictAllowedResourcesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (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
- request_pb (::Google::Cloud::AssuredWorkloads::V1::UpdateWorkloadRequest) — 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::AssuredWorkloads::V1::Workload)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AssuredWorkloads::V1::Workload) — A result object deserialized from the server's reply
- (::ArgumentError)