Reference documentation and code samples for the Cloud Functions V1 API class Google::Cloud::Functions::V1::CloudFunctionsService::Rest::ServiceStub.
REST service stub for the CloudFunctionsService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#call_function
def call_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V1::CallFunctionResponse
Baseline implementation for the call_function REST call
- request_pb (::Google::Cloud::Functions::V1::CallFunctionRequest) — 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::Functions::V1::CallFunctionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Functions::V1::CallFunctionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_function
def create_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_function REST call
- request_pb (::Google::Cloud::Functions::V1::CreateFunctionRequest) — 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_function
def delete_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_function REST call
- request_pb (::Google::Cloud::Functions::V1::DeleteFunctionRequest) — 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)
#generate_download_url
def generate_download_url(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse
Baseline implementation for the generate_download_url REST call
- request_pb (::Google::Cloud::Functions::V1::GenerateDownloadUrlRequest) — 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::Functions::V1::GenerateDownloadUrlResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#generate_upload_url
def generate_upload_url(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V1::GenerateUploadUrlResponse
Baseline implementation for the generate_upload_url REST call
- request_pb (::Google::Cloud::Functions::V1::GenerateUploadUrlRequest) — 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::Functions::V1::GenerateUploadUrlResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Functions::V1::GenerateUploadUrlResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_function
def get_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V1::CloudFunction
Baseline implementation for the get_function REST call
- request_pb (::Google::Cloud::Functions::V1::GetFunctionRequest) — 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::Functions::V1::CloudFunction)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Functions::V1::CloudFunction) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_iam_policy
def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call
- request_pb (::Google::Iam::V1::GetIamPolicyRequest) — 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::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_functions
def list_functions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V1::ListFunctionsResponse
Baseline implementation for the list_functions REST call
- request_pb (::Google::Cloud::Functions::V1::ListFunctionsRequest) — 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::Functions::V1::ListFunctionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Functions::V1::ListFunctionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_iam_policy
def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call
- request_pb (::Google::Iam::V1::SetIamPolicyRequest) — 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::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#test_iam_permissions
def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call
- request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — 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::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_function
def update_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_function REST call
- request_pb (::Google::Cloud::Functions::V1::UpdateFunctionRequest) — 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)