Reference documentation and code samples for the Assured Workloads for Government V1beta1 API class Google::Cloud::AssuredWorkloads::V1beta1::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::V1beta1::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::V1beta1::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)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#restrict_allowed_resources
def restrict_allowed_resources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesResponse
Baseline implementation for the restrict_allowed_resources REST call
- request_pb (::Google::Cloud::AssuredWorkloads::V1beta1::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::V1beta1::RestrictAllowedResourcesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)