lib/google/cloud/compute/v1/node_groups/rest/client.rb in google-cloud-compute-v1-0.1.0 vs lib/google/cloud/compute/v1/node_groups/rest/client.rb in google-cloud-compute-v1-0.2.0
- old
+ new
@@ -188,19 +188,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_add_nodes request
+ uri, body, query_string_params = transcode_add_nodes 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?
@@ -273,11 +275,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_aggregated_list request
@@ -346,11 +349,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
@@ -421,19 +425,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_delete_nodes request
+ uri, body, query_string_params = transcode_delete_nodes 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?
@@ -488,11 +494,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
@@ -556,11 +563,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
@@ -631,19 +639,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?
@@ -716,11 +726,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
@@ -803,11 +814,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_nodes request
@@ -878,19 +890,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?
@@ -947,11 +961,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
@@ -1022,19 +1037,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_set_node_template request
+ uri, body, query_string_params = transcode_set_node_template 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?
@@ -1091,10 +1108,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