google-cloud-compute-v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +10 -8
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
- metadata +37 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 759e6613e57355873ff259b2ed0d462ca8cab08e00fd8a9499053faa0e3f29b7
|
|
4
|
+
data.tar.gz: bfc60e59c16daa9cd0958b320ba22cc2679254b589801e001561ddb699bfbe46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfa3cd261db32e49b0b82281ee3f858d3dada05e16f6def661ee163905f1bc0480bdaa078482dc0e7d05c8727a17113488410a7d51e43fb2fe1cbcb2e9c80798
|
|
7
|
+
data.tar.gz: 6ce718bab5ad787de68bde8c2d37c1fbbf927f277efffd65dda69acecbe5d202353890f94249946d08449030e5e275eb3bf125f6a63d8d74b21b9c56805f976a
|
data/AUTHENTICATION.md
CHANGED
|
@@ -27,7 +27,7 @@ export COMPUTE_CREDENTIALS=path/to/keyfile.json
|
|
|
27
27
|
```ruby
|
|
28
28
|
require "google/cloud/compute/v1"
|
|
29
29
|
|
|
30
|
-
client = ::Google::Cloud::Compute::V1::AcceleratorTypes::Client.new
|
|
30
|
+
client = ::Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Credential Lookup
|
data/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
# Ruby Client for the Google Cloud Compute V1 API
|
|
1
|
+
# Ruby Client for the Google Cloud Compute V1 (ALPHA) API
|
|
2
2
|
|
|
3
|
-
API Client library for the Google Cloud Compute V1 API
|
|
3
|
+
API Client library for the Google Cloud Compute V1 (ALPHA) API
|
|
4
4
|
|
|
5
|
-
google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API.
|
|
6
|
-
|
|
7
|
-
This library is considered to be in alpha. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time.
|
|
5
|
+
google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API. This library is considered to be in alpha. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time.
|
|
8
6
|
|
|
9
7
|
https://github.com/googleapis/google-cloud-ruby
|
|
10
8
|
|
|
@@ -20,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
20
18
|
|
|
21
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
22
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/compute.googleapis.com)
|
|
23
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
24
23
|
|
|
25
24
|
## Quick Start
|
|
@@ -27,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
27
26
|
```ruby
|
|
28
27
|
require "google/cloud/compute/v1"
|
|
29
28
|
|
|
30
|
-
client = ::Google::Cloud::Compute::V1::
|
|
29
|
+
client = ::Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
|
31
30
|
request = my_create_request
|
|
32
31
|
response = client.aggregated_list request
|
|
33
32
|
```
|
|
@@ -35,6 +34,9 @@ response = client.aggregated_list request
|
|
|
35
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-compute-v1/latest)
|
|
36
35
|
for class and method documentation.
|
|
37
36
|
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/compute/)
|
|
38
|
+
for general usage information.
|
|
39
|
+
|
|
38
40
|
## Enabling Logging
|
|
39
41
|
|
|
40
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
@@ -63,11 +65,11 @@ end
|
|
|
63
65
|
|
|
64
66
|
## Supported Ruby Versions
|
|
65
67
|
|
|
66
|
-
This library is supported on Ruby 2.
|
|
68
|
+
This library is supported on Ruby 2.5+.
|
|
67
69
|
|
|
68
70
|
Google provides official support for Ruby versions that are actively supported
|
|
69
71
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
70
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
|
72
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
|
71
73
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
72
74
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
|
73
75
|
about the Ruby support schedule.
|
|
@@ -202,7 +202,8 @@ module Google
|
|
|
202
202
|
# Set x-goog-api-client header
|
|
203
203
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
204
204
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
205
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
205
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
206
|
+
transports_version_send: [:rest]
|
|
206
207
|
|
|
207
208
|
options.apply_defaults timeout: @config.timeout,
|
|
208
209
|
metadata: call_metadata
|
|
@@ -269,7 +270,8 @@ module Google
|
|
|
269
270
|
# Set x-goog-api-client header
|
|
270
271
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
271
272
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
272
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
273
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
274
|
+
transports_version_send: [:rest]
|
|
273
275
|
|
|
274
276
|
options.apply_defaults timeout: @config.timeout,
|
|
275
277
|
metadata: call_metadata
|
|
@@ -353,7 +355,8 @@ module Google
|
|
|
353
355
|
# Set x-goog-api-client header
|
|
354
356
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
355
357
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
356
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
358
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
359
|
+
transports_version_send: [:rest]
|
|
357
360
|
|
|
358
361
|
options.apply_defaults timeout: @config.timeout,
|
|
359
362
|
metadata: call_metadata
|
|
@@ -200,7 +200,8 @@ module Google
|
|
|
200
200
|
# Set x-goog-api-client header
|
|
201
201
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
203
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
203
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
204
|
+
transports_version_send: [:rest]
|
|
204
205
|
|
|
205
206
|
options.apply_defaults timeout: @config.timeout,
|
|
206
207
|
metadata: call_metadata
|
|
@@ -273,7 +274,8 @@ module Google
|
|
|
273
274
|
# Set x-goog-api-client header
|
|
274
275
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
275
276
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
276
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
277
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
278
|
+
transports_version_send: [:rest]
|
|
277
279
|
|
|
278
280
|
options.apply_defaults timeout: @config.timeout,
|
|
279
281
|
metadata: call_metadata
|
|
@@ -340,7 +342,8 @@ module Google
|
|
|
340
342
|
# Set x-goog-api-client header
|
|
341
343
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
342
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
343
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
345
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
346
|
+
transports_version_send: [:rest]
|
|
344
347
|
|
|
345
348
|
options.apply_defaults timeout: @config.timeout,
|
|
346
349
|
metadata: call_metadata
|
|
@@ -412,15 +415,17 @@ module Google
|
|
|
412
415
|
# Set x-goog-api-client header
|
|
413
416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
414
417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
415
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
418
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
419
|
+
transports_version_send: [:rest]
|
|
416
420
|
|
|
417
421
|
options.apply_defaults timeout: @config.timeout,
|
|
418
422
|
metadata: call_metadata
|
|
419
423
|
|
|
420
|
-
uri, body,
|
|
424
|
+
uri, body, query_string_params = transcode_insert request
|
|
421
425
|
response = @client_stub.make_post_request(
|
|
422
426
|
uri: uri,
|
|
423
427
|
body: body,
|
|
428
|
+
params: query_string_params,
|
|
424
429
|
options: options
|
|
425
430
|
)
|
|
426
431
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -497,7 +502,8 @@ module Google
|
|
|
497
502
|
# Set x-goog-api-client header
|
|
498
503
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
499
504
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
500
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
505
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
506
|
+
transports_version_send: [:rest]
|
|
501
507
|
|
|
502
508
|
options.apply_defaults timeout: @config.timeout,
|
|
503
509
|
metadata: call_metadata
|
|
@@ -76,6 +76,7 @@ module Google
|
|
|
76
76
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/addresses"
|
|
77
77
|
body = request_pb.address_resource.to_json
|
|
78
78
|
query_string_params = {}
|
|
79
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
79
80
|
|
|
80
81
|
[uri, body, query_string_params]
|
|
81
82
|
end
|
|
@@ -200,7 +200,8 @@ module Google
|
|
|
200
200
|
# Set x-goog-api-client header
|
|
201
201
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
203
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
203
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
204
|
+
transports_version_send: [:rest]
|
|
204
205
|
|
|
205
206
|
options.apply_defaults timeout: @config.timeout,
|
|
206
207
|
metadata: call_metadata
|
|
@@ -273,7 +274,8 @@ module Google
|
|
|
273
274
|
# Set x-goog-api-client header
|
|
274
275
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
275
276
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
276
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
277
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
278
|
+
transports_version_send: [:rest]
|
|
277
279
|
|
|
278
280
|
options.apply_defaults timeout: @config.timeout,
|
|
279
281
|
metadata: call_metadata
|
|
@@ -340,7 +342,8 @@ module Google
|
|
|
340
342
|
# Set x-goog-api-client header
|
|
341
343
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
342
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
343
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
345
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
346
|
+
transports_version_send: [:rest]
|
|
344
347
|
|
|
345
348
|
options.apply_defaults timeout: @config.timeout,
|
|
346
349
|
metadata: call_metadata
|
|
@@ -412,15 +415,17 @@ module Google
|
|
|
412
415
|
# Set x-goog-api-client header
|
|
413
416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
414
417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
415
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
418
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
419
|
+
transports_version_send: [:rest]
|
|
416
420
|
|
|
417
421
|
options.apply_defaults timeout: @config.timeout,
|
|
418
422
|
metadata: call_metadata
|
|
419
423
|
|
|
420
|
-
uri, body,
|
|
424
|
+
uri, body, query_string_params = transcode_insert request
|
|
421
425
|
response = @client_stub.make_post_request(
|
|
422
426
|
uri: uri,
|
|
423
427
|
body: body,
|
|
428
|
+
params: query_string_params,
|
|
424
429
|
options: options
|
|
425
430
|
)
|
|
426
431
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -497,7 +502,8 @@ module Google
|
|
|
497
502
|
# Set x-goog-api-client header
|
|
498
503
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
499
504
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
500
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
505
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
506
|
+
transports_version_send: [:rest]
|
|
501
507
|
|
|
502
508
|
options.apply_defaults timeout: @config.timeout,
|
|
503
509
|
metadata: call_metadata
|
|
@@ -572,15 +578,17 @@ module Google
|
|
|
572
578
|
# Set x-goog-api-client header
|
|
573
579
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
574
580
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
575
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
581
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
582
|
+
transports_version_send: [:rest]
|
|
576
583
|
|
|
577
584
|
options.apply_defaults timeout: @config.timeout,
|
|
578
585
|
metadata: call_metadata
|
|
579
586
|
|
|
580
|
-
uri, body,
|
|
587
|
+
uri, body, query_string_params = transcode_patch request
|
|
581
588
|
response = @client_stub.make_patch_request(
|
|
582
589
|
uri: uri,
|
|
583
590
|
body: body,
|
|
591
|
+
params: query_string_params,
|
|
584
592
|
options: options
|
|
585
593
|
)
|
|
586
594
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -647,15 +655,17 @@ module Google
|
|
|
647
655
|
# Set x-goog-api-client header
|
|
648
656
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
649
657
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
650
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
658
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
659
|
+
transports_version_send: [:rest]
|
|
651
660
|
|
|
652
661
|
options.apply_defaults timeout: @config.timeout,
|
|
653
662
|
metadata: call_metadata
|
|
654
663
|
|
|
655
|
-
uri, body,
|
|
664
|
+
uri, body, query_string_params = transcode_update request
|
|
656
665
|
response = @client_stub.make_put_request(
|
|
657
666
|
uri: uri,
|
|
658
667
|
body: body,
|
|
668
|
+
params: query_string_params,
|
|
659
669
|
options: options
|
|
660
670
|
)
|
|
661
671
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -76,6 +76,7 @@ module Google
|
|
|
76
76
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers"
|
|
77
77
|
body = request_pb.autoscaler_resource.to_json
|
|
78
78
|
query_string_params = {}
|
|
79
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
79
80
|
|
|
80
81
|
[uri, body, query_string_params]
|
|
81
82
|
end
|
|
@@ -105,6 +106,8 @@ module Google
|
|
|
105
106
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers"
|
|
106
107
|
body = request_pb.autoscaler_resource.to_json
|
|
107
108
|
query_string_params = {}
|
|
109
|
+
query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler?
|
|
110
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
108
111
|
|
|
109
112
|
[uri, body, query_string_params]
|
|
110
113
|
end
|
|
@@ -117,6 +120,8 @@ module Google
|
|
|
117
120
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/autoscalers"
|
|
118
121
|
body = request_pb.autoscaler_resource.to_json
|
|
119
122
|
query_string_params = {}
|
|
123
|
+
query_string_params["autoscaler"] = request_pb.autoscaler.to_s if request_pb.has_autoscaler?
|
|
124
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
120
125
|
|
|
121
126
|
[uri, body, query_string_params]
|
|
122
127
|
end
|
|
@@ -188,15 +188,17 @@ module Google
|
|
|
188
188
|
# Set x-goog-api-client header
|
|
189
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
190
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
191
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
192
|
+
transports_version_send: [:rest]
|
|
192
193
|
|
|
193
194
|
options.apply_defaults timeout: @config.timeout,
|
|
194
195
|
metadata: call_metadata
|
|
195
196
|
|
|
196
|
-
uri, body,
|
|
197
|
+
uri, body, query_string_params = transcode_add_signed_url_key request
|
|
197
198
|
response = @client_stub.make_post_request(
|
|
198
199
|
uri: uri,
|
|
199
200
|
body: body,
|
|
201
|
+
params: query_string_params,
|
|
200
202
|
options: options
|
|
201
203
|
)
|
|
202
204
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -259,7 +261,8 @@ module Google
|
|
|
259
261
|
# Set x-goog-api-client header
|
|
260
262
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
261
263
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
262
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
264
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
265
|
+
transports_version_send: [:rest]
|
|
263
266
|
|
|
264
267
|
options.apply_defaults timeout: @config.timeout,
|
|
265
268
|
metadata: call_metadata
|
|
@@ -332,7 +335,8 @@ module Google
|
|
|
332
335
|
# Set x-goog-api-client header
|
|
333
336
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
334
337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
335
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
338
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
339
|
+
transports_version_send: [:rest]
|
|
336
340
|
|
|
337
341
|
options.apply_defaults timeout: @config.timeout,
|
|
338
342
|
metadata: call_metadata
|
|
@@ -397,7 +401,8 @@ module Google
|
|
|
397
401
|
# Set x-goog-api-client header
|
|
398
402
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
399
403
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
400
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
404
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
405
|
+
transports_version_send: [:rest]
|
|
401
406
|
|
|
402
407
|
options.apply_defaults timeout: @config.timeout,
|
|
403
408
|
metadata: call_metadata
|
|
@@ -467,15 +472,17 @@ module Google
|
|
|
467
472
|
# Set x-goog-api-client header
|
|
468
473
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
469
474
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
470
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
475
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
476
|
+
transports_version_send: [:rest]
|
|
471
477
|
|
|
472
478
|
options.apply_defaults timeout: @config.timeout,
|
|
473
479
|
metadata: call_metadata
|
|
474
480
|
|
|
475
|
-
uri, body,
|
|
481
|
+
uri, body, query_string_params = transcode_insert request
|
|
476
482
|
response = @client_stub.make_post_request(
|
|
477
483
|
uri: uri,
|
|
478
484
|
body: body,
|
|
485
|
+
params: query_string_params,
|
|
479
486
|
options: options
|
|
480
487
|
)
|
|
481
488
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -550,7 +557,8 @@ module Google
|
|
|
550
557
|
# Set x-goog-api-client header
|
|
551
558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
552
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
553
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
560
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
561
|
+
transports_version_send: [:rest]
|
|
554
562
|
|
|
555
563
|
options.apply_defaults timeout: @config.timeout,
|
|
556
564
|
metadata: call_metadata
|
|
@@ -623,15 +631,17 @@ module Google
|
|
|
623
631
|
# Set x-goog-api-client header
|
|
624
632
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
625
633
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
626
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
634
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
635
|
+
transports_version_send: [:rest]
|
|
627
636
|
|
|
628
637
|
options.apply_defaults timeout: @config.timeout,
|
|
629
638
|
metadata: call_metadata
|
|
630
639
|
|
|
631
|
-
uri, body,
|
|
640
|
+
uri, body, query_string_params = transcode_patch request
|
|
632
641
|
response = @client_stub.make_patch_request(
|
|
633
642
|
uri: uri,
|
|
634
643
|
body: body,
|
|
644
|
+
params: query_string_params,
|
|
635
645
|
options: options
|
|
636
646
|
)
|
|
637
647
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -696,15 +706,17 @@ module Google
|
|
|
696
706
|
# Set x-goog-api-client header
|
|
697
707
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
698
708
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
699
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
709
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
710
|
+
transports_version_send: [:rest]
|
|
700
711
|
|
|
701
712
|
options.apply_defaults timeout: @config.timeout,
|
|
702
713
|
metadata: call_metadata
|
|
703
714
|
|
|
704
|
-
uri, body,
|
|
715
|
+
uri, body, query_string_params = transcode_update request
|
|
705
716
|
response = @client_stub.make_put_request(
|
|
706
717
|
uri: uri,
|
|
707
718
|
body: body,
|
|
719
|
+
params: query_string_params,
|
|
708
720
|
options: options
|
|
709
721
|
)
|
|
710
722
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -33,6 +33,7 @@ module Google
|
|
|
33
33
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendBuckets/#{request_pb.backend_bucket}/addSignedUrlKey"
|
|
34
34
|
body = request_pb.signed_url_key_resource.to_json
|
|
35
35
|
query_string_params = {}
|
|
36
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
36
37
|
|
|
37
38
|
[uri, body, query_string_params]
|
|
38
39
|
end
|
|
@@ -84,6 +85,7 @@ module Google
|
|
|
84
85
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendBuckets"
|
|
85
86
|
body = request_pb.backend_bucket_resource.to_json
|
|
86
87
|
query_string_params = {}
|
|
88
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
87
89
|
|
|
88
90
|
[uri, body, query_string_params]
|
|
89
91
|
end
|
|
@@ -113,6 +115,7 @@ module Google
|
|
|
113
115
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendBuckets/#{request_pb.backend_bucket}"
|
|
114
116
|
body = request_pb.backend_bucket_resource.to_json
|
|
115
117
|
query_string_params = {}
|
|
118
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
116
119
|
|
|
117
120
|
[uri, body, query_string_params]
|
|
118
121
|
end
|
|
@@ -125,6 +128,7 @@ module Google
|
|
|
125
128
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendBuckets/#{request_pb.backend_bucket}"
|
|
126
129
|
body = request_pb.backend_bucket_resource.to_json
|
|
127
130
|
query_string_params = {}
|
|
131
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
|
128
132
|
|
|
129
133
|
[uri, body, query_string_params]
|
|
130
134
|
end
|
|
@@ -188,15 +188,17 @@ module Google
|
|
|
188
188
|
# Set x-goog-api-client header
|
|
189
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
190
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
191
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
192
|
+
transports_version_send: [:rest]
|
|
192
193
|
|
|
193
194
|
options.apply_defaults timeout: @config.timeout,
|
|
194
195
|
metadata: call_metadata
|
|
195
196
|
|
|
196
|
-
uri, body,
|
|
197
|
+
uri, body, query_string_params = transcode_add_signed_url_key request
|
|
197
198
|
response = @client_stub.make_post_request(
|
|
198
199
|
uri: uri,
|
|
199
200
|
body: body,
|
|
201
|
+
params: query_string_params,
|
|
200
202
|
options: options
|
|
201
203
|
)
|
|
202
204
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -273,7 +275,8 @@ module Google
|
|
|
273
275
|
# Set x-goog-api-client header
|
|
274
276
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
275
277
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
276
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
278
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
279
|
+
transports_version_send: [:rest]
|
|
277
280
|
|
|
278
281
|
options.apply_defaults timeout: @config.timeout,
|
|
279
282
|
metadata: call_metadata
|
|
@@ -344,7 +347,8 @@ module Google
|
|
|
344
347
|
# Set x-goog-api-client header
|
|
345
348
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
346
349
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
347
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
350
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
351
|
+
transports_version_send: [:rest]
|
|
348
352
|
|
|
349
353
|
options.apply_defaults timeout: @config.timeout,
|
|
350
354
|
metadata: call_metadata
|
|
@@ -417,7 +421,8 @@ module Google
|
|
|
417
421
|
# Set x-goog-api-client header
|
|
418
422
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
419
423
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
420
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
424
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
425
|
+
transports_version_send: [:rest]
|
|
421
426
|
|
|
422
427
|
options.apply_defaults timeout: @config.timeout,
|
|
423
428
|
metadata: call_metadata
|
|
@@ -482,7 +487,8 @@ module Google
|
|
|
482
487
|
# Set x-goog-api-client header
|
|
483
488
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
484
489
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
485
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
490
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
491
|
+
transports_version_send: [:rest]
|
|
486
492
|
|
|
487
493
|
options.apply_defaults timeout: @config.timeout,
|
|
488
494
|
metadata: call_metadata
|
|
@@ -551,7 +557,8 @@ module Google
|
|
|
551
557
|
# Set x-goog-api-client header
|
|
552
558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
553
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
554
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
560
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
561
|
+
transports_version_send: [:rest]
|
|
555
562
|
|
|
556
563
|
options.apply_defaults timeout: @config.timeout,
|
|
557
564
|
metadata: call_metadata
|
|
@@ -622,15 +629,17 @@ module Google
|
|
|
622
629
|
# Set x-goog-api-client header
|
|
623
630
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
624
631
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
625
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
632
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
633
|
+
transports_version_send: [:rest]
|
|
626
634
|
|
|
627
635
|
options.apply_defaults timeout: @config.timeout,
|
|
628
636
|
metadata: call_metadata
|
|
629
637
|
|
|
630
|
-
uri, body,
|
|
638
|
+
uri, body, query_string_params = transcode_insert request
|
|
631
639
|
response = @client_stub.make_post_request(
|
|
632
640
|
uri: uri,
|
|
633
641
|
body: body,
|
|
642
|
+
params: query_string_params,
|
|
634
643
|
options: options
|
|
635
644
|
)
|
|
636
645
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -705,7 +714,8 @@ module Google
|
|
|
705
714
|
# Set x-goog-api-client header
|
|
706
715
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
707
716
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
708
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
717
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
718
|
+
transports_version_send: [:rest]
|
|
709
719
|
|
|
710
720
|
options.apply_defaults timeout: @config.timeout,
|
|
711
721
|
metadata: call_metadata
|
|
@@ -778,15 +788,17 @@ module Google
|
|
|
778
788
|
# Set x-goog-api-client header
|
|
779
789
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
780
790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
781
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
791
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
792
|
+
transports_version_send: [:rest]
|
|
782
793
|
|
|
783
794
|
options.apply_defaults timeout: @config.timeout,
|
|
784
795
|
metadata: call_metadata
|
|
785
796
|
|
|
786
|
-
uri, body,
|
|
797
|
+
uri, body, query_string_params = transcode_patch request
|
|
787
798
|
response = @client_stub.make_patch_request(
|
|
788
799
|
uri: uri,
|
|
789
800
|
body: body,
|
|
801
|
+
params: query_string_params,
|
|
790
802
|
options: options
|
|
791
803
|
)
|
|
792
804
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -851,15 +863,17 @@ module Google
|
|
|
851
863
|
# Set x-goog-api-client header
|
|
852
864
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
853
865
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
854
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
866
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
867
|
+
transports_version_send: [:rest]
|
|
855
868
|
|
|
856
869
|
options.apply_defaults timeout: @config.timeout,
|
|
857
870
|
metadata: call_metadata
|
|
858
871
|
|
|
859
|
-
uri, body,
|
|
872
|
+
uri, body, query_string_params = transcode_set_security_policy request
|
|
860
873
|
response = @client_stub.make_post_request(
|
|
861
874
|
uri: uri,
|
|
862
875
|
body: body,
|
|
876
|
+
params: query_string_params,
|
|
863
877
|
options: options
|
|
864
878
|
)
|
|
865
879
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
@@ -924,15 +938,17 @@ module Google
|
|
|
924
938
|
# Set x-goog-api-client header
|
|
925
939
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
926
940
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
927
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
|
941
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
942
|
+
transports_version_send: [:rest]
|
|
928
943
|
|
|
929
944
|
options.apply_defaults timeout: @config.timeout,
|
|
930
945
|
metadata: call_metadata
|
|
931
946
|
|
|
932
|
-
uri, body,
|
|
947
|
+
uri, body, query_string_params = transcode_update request
|
|
933
948
|
response = @client_stub.make_put_request(
|
|
934
949
|
uri: uri,
|
|
935
950
|
body: body,
|
|
951
|
+
params: query_string_params,
|
|
936
952
|
options: options
|
|
937
953
|
)
|
|
938
954
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|