lib/google/cloud/compute/v1/images/rest/client.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/images/rest/client.rb in google-cloud-compute-v1-0.2.0

- old
+ new

@@ -184,11 +184,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, _body, query_string_params = transcode_delete request @@ -259,19 +260,21 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata - uri, body, _query_string_params = transcode_deprecate request + uri, body, query_string_params = transcode_deprecate request response = @client_stub.make_post_request( uri: uri, body: body, + params: query_string_params, options: options ) result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true yield result, response if block_given? @@ -324,11 +327,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, _body, _query_string_params = transcode_get request @@ -388,11 +392,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, _body, _query_string_params = transcode_get_from_family request @@ -454,11 +459,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, _body, query_string_params = transcode_get_iam_policy request @@ -527,19 +533,21 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata - uri, body, _query_string_params = transcode_insert request + uri, body, query_string_params = transcode_insert request response = @client_stub.make_post_request( uri: uri, body: body, + params: query_string_params, options: options ) result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true yield result, response if block_given? @@ -610,11 +618,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, _body, query_string_params = transcode_list request @@ -683,19 +692,21 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata - uri, body, _query_string_params = transcode_patch request + uri, body, query_string_params = transcode_patch request response = @client_stub.make_patch_request( uri: uri, body: body, + params: query_string_params, options: options ) result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true yield result, response if block_given? @@ -750,11 +761,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, body, _query_string_params = transcode_set_iam_policy request @@ -817,11 +829,12 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, body, _query_string_params = transcode_set_labels request @@ -884,10 +897,11 @@ call_metadata = {} # Set x-goog-api-client header call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Compute::V1::VERSION + gapic_version: ::Google::Cloud::Compute::V1::VERSION, + transports_version_send: [:rest] options.apply_defaults timeout: @config.timeout, metadata: call_metadata uri, body, _query_string_params = transcode_test_iam_permissions request