Module: Google::Cloud::Compute::V1::RegionDisks::Rest::GrpcTranscoding
- Extended by:
- GrpcTranscoding
- Included in:
- GrpcTranscoding
- Defined in:
- lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb
Overview
GRPC transcoding helper methods for the RegionDisks REST API.
Instance Method Summary collapse
-
#transcode_add_resource_policies(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_create_snapshot(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_delete(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_get_iam_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_insert(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_list(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_remove_resource_policies(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_resize(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_iam_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Uri, Body, Query string parameters.
-
#transcode_set_labels(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_add_resource_policies(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
32 33 34 35 36 37 38 39 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 32 def transcode_add_resource_policies request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/addResourcePolicies" body = request_pb.region_disks_add_resource_policies_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_create_snapshot(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
45 46 47 48 49 50 51 52 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 45 def transcode_create_snapshot request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/createSnapshot" body = request_pb.snapshot_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_delete(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
58 59 60 61 62 63 64 65 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 58 def transcode_delete request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}" body = nil query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_get(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
71 72 73 74 75 76 77 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 71 def transcode_get request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}" body = nil query_string_params = {} [uri, body, query_string_params] end |
#transcode_get_iam_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
83 84 85 86 87 88 89 90 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 83 def transcode_get_iam_policy request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.resource}/getIamPolicy" body = nil query_string_params = {} query_string_params["optionsRequestedPolicyVersion"] = request_pb..to_s if request_pb. [uri, body, query_string_params] end |
#transcode_insert(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
96 97 98 99 100 101 102 103 104 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 96 def transcode_insert request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks" body = request_pb.disk_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? query_string_params["sourceImage"] = request_pb.source_image.to_s if request_pb.has_source_image? [uri, body, query_string_params] end |
#transcode_list(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 110 def transcode_list request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks" body = nil query_string_params = {} query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter? query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results? query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by? query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token? query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success? [uri, body, query_string_params] end |
#transcode_remove_resource_policies(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
127 128 129 130 131 132 133 134 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 127 def transcode_remove_resource_policies request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/removeResourcePolicies" body = request_pb.region_disks_remove_resource_policies_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_resize(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
140 141 142 143 144 145 146 147 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 140 def transcode_resize request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/resize" body = request_pb.region_disks_resize_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [uri, body, query_string_params] end |
#transcode_set_iam_policy(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
153 154 155 156 157 158 159 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 153 def transcode_set_iam_policy request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.resource}/setIamPolicy" body = request_pb.region_set_policy_request_resource.to_json query_string_params = {} [uri, body, query_string_params] end |
#transcode_set_labels(request_pb) ⇒ Array(String, [String, nil], Hash{String => String})
Returns Uri, Body, Query string parameters.
165 166 167 168 169 170 171 172 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 165 def transcode_set_labels request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.resource}/setLabels" body = request_pb.region_set_labels_request_resource.to_json query_string_params = {} query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id? [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.
178 179 180 181 182 183 184 |
# File 'lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb', line 178 def request_pb uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.resource}/testIamPermissions" body = request_pb..to_json query_string_params = {} [uri, body, query_string_params] end |