Module: Google::Cloud::Compute::V1::LicenseCodes::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the LicenseCodes REST API.
Instance Method Summary collapse
-
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_test_iam_permissions(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
Instance Method Details
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
32 33 34 35 36 37 38 |
# File 'lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb', line 32 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/licenseCodes/#{request_pb.license_code}" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_test_iam_permissions(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
44 45 46 47 48 49 50 |
# File 'lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb', line 44 def request_pb uri = "/compute/v1/projects/#{request_pb.project}/global/licenseCodes/#{request_pb.resource}/testIamPermissions" body = request_pb..to_json query_string_params = {} [uri, body, query_string_params] end |