Reference documentation and code samples for the Service Usage V1 API class Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::ServiceStub.
REST service stub for the ServiceUsage service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#batch_enable_services
def batch_enable_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the batch_enable_services REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::BatchEnableServicesRequest) — 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)
#batch_get_services
def batch_get_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse
Baseline implementation for the batch_get_services REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::BatchGetServicesRequest) — 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::ServiceUsage::V1::BatchGetServicesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#disable_service
def disable_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the disable_service REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::DisableServiceRequest) — 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)
#enable_service
def enable_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the enable_service REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::EnableServiceRequest) — 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)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_service
def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::Service
Baseline implementation for the get_service REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::GetServiceRequest) — 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::ServiceUsage::V1::Service)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceUsage::V1::Service) — 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_services
def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::ListServicesResponse
Baseline implementation for the list_services REST call
- request_pb (::Google::Cloud::ServiceUsage::V1::ListServicesRequest) — 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::ServiceUsage::V1::ListServicesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceUsage::V1::ListServicesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)