google-cloud-compute-v1 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +19 -37
- data/README.md +4 -30
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +127 -90
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +172 -130
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +218 -172
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +236 -185
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +308 -253
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +8507 -7466
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +127 -90
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +345 -272
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
- data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +184 -129
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +476 -343
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +191 -145
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +296 -171
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +145 -103
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +265 -144
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +215 -172
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +165 -118
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +118 -76
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +175 -124
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +218 -172
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +291 -209
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
- data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +526 -477
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +271 -233
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +202 -139
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1186 -797
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +2018 -0
- data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +195 -151
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +100 -63
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +189 -135
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +93 -50
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +209 -146
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
- data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +127 -90
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +261 -213
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +363 -234
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
- data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +345 -277
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +229 -166
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +127 -90
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
- data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +213 -163
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +351 -288
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
- data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +175 -124
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +203 -151
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +191 -145
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +212 -160
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +151 -112
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +100 -63
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +318 -245
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +168 -124
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +191 -145
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +498 -445
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +148 -113
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +76 -45
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +145 -103
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +145 -103
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +137 -90
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +145 -103
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +168 -124
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +191 -145
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +205 -137
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +100 -63
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +252 -187
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +229 -166
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +284 -222
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
- data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +145 -103
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
- data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +277 -205
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +201 -135
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +172 -130
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +192 -149
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +325 -256
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +168 -124
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +219 -173
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +340 -213
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +172 -130
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +305 -247
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +237 -187
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -145
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +172 -130
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +260 -208
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +234 -174
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +172 -130
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +137 -90
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +100 -63
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
- data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
- data/lib/google/cloud/compute/v1.rb +7 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/compute/v1/compute.rb +18964 -19481
- data/proto_docs/google/cloud/extended_operations.rb +51 -0
- metadata +110 -9
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
|
+
require "google/cloud/compute/v1/region_disks/rest/service_stub"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -31,8 +32,6 @@ module Google
|
|
31
32
|
# The RegionDisks API.
|
32
33
|
#
|
33
34
|
class Client
|
34
|
-
include GrpcTranscoding
|
35
|
-
|
36
35
|
# @private
|
37
36
|
attr_reader :region_disks_stub
|
38
37
|
|
@@ -42,13 +41,12 @@ module Google
|
|
42
41
|
# See {::Google::Cloud::Compute::V1::RegionDisks::Rest::Client::Configuration}
|
43
42
|
# for a description of the configuration fields.
|
44
43
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# To modify the configuration for all RegionDisks clients:
|
44
|
+
# @example
|
48
45
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# # Modify the configuration for all RegionDisks clients
|
47
|
+
# ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
52
50
|
#
|
53
51
|
# @yield [config] Configure the Client client.
|
54
52
|
# @yieldparam config [Client::Configuration]
|
@@ -66,6 +64,39 @@ module Google
|
|
66
64
|
end
|
67
65
|
default_config = Client::Configuration.new parent_config
|
68
66
|
|
67
|
+
default_config.rpcs.add_resource_policies.timeout = 600.0
|
68
|
+
|
69
|
+
default_config.rpcs.create_snapshot.timeout = 600.0
|
70
|
+
|
71
|
+
default_config.rpcs.delete.timeout = 600.0
|
72
|
+
|
73
|
+
default_config.rpcs.get.timeout = 600.0
|
74
|
+
default_config.rpcs.get.retry_policy = {
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
76
|
+
}
|
77
|
+
|
78
|
+
default_config.rpcs.get_iam_policy.timeout = 600.0
|
79
|
+
default_config.rpcs.get_iam_policy.retry_policy = {
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
81
|
+
}
|
82
|
+
|
83
|
+
default_config.rpcs.insert.timeout = 600.0
|
84
|
+
|
85
|
+
default_config.rpcs.list.timeout = 600.0
|
86
|
+
default_config.rpcs.list.retry_policy = {
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
88
|
+
}
|
89
|
+
|
90
|
+
default_config.rpcs.remove_resource_policies.timeout = 600.0
|
91
|
+
|
92
|
+
default_config.rpcs.resize.timeout = 600.0
|
93
|
+
|
94
|
+
default_config.rpcs.set_iam_policy.timeout = 600.0
|
95
|
+
|
96
|
+
default_config.rpcs.set_labels.timeout = 600.0
|
97
|
+
|
98
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
99
|
+
|
69
100
|
default_config
|
70
101
|
end
|
71
102
|
yield @configure if block_given?
|
@@ -95,28 +126,20 @@ module Google
|
|
95
126
|
##
|
96
127
|
# Create a new RegionDisks REST client object.
|
97
128
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new RegionDisks REST client with the default
|
101
|
-
# configuration:
|
129
|
+
# @example
|
102
130
|
#
|
103
|
-
#
|
131
|
+
# # Create a client using the default configuration
|
132
|
+
# client = ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
104
133
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
134
|
+
# # Create a client using a custom configuration
|
135
|
+
# client = ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new do |config|
|
136
|
+
# config.timeout = 10.0
|
137
|
+
# end
|
111
138
|
#
|
112
139
|
# @yield [config] Configure the RegionDisks client.
|
113
140
|
# @yieldparam config [Client::Configuration]
|
114
141
|
#
|
115
142
|
def initialize
|
116
|
-
# These require statements are intentionally placed here to initialize
|
117
|
-
# the REST modules only when it's required.
|
118
|
-
require "gapic/rest"
|
119
|
-
|
120
143
|
# Create the configuration object
|
121
144
|
@config = Configuration.new Client.configure
|
122
145
|
|
@@ -126,11 +149,11 @@ module Google
|
|
126
149
|
# Create credentials
|
127
150
|
credentials = @config.credentials
|
128
151
|
credentials ||= Credentials.default scope: @config.scope
|
129
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
152
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
130
153
|
credentials = Credentials.new credentials, scope: @config.scope
|
131
154
|
end
|
132
155
|
|
133
|
-
@
|
156
|
+
@region_disks_stub = ::Google::Cloud::Compute::V1::RegionDisks::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
134
157
|
end
|
135
158
|
|
136
159
|
# Service calls
|
@@ -164,16 +187,12 @@ module Google
|
|
164
187
|
# @param region_disks_add_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksAddResourcePoliciesRequest, ::Hash]
|
165
188
|
# The body resource for this request
|
166
189
|
# @param request_id [::String]
|
167
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
172
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
173
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
190
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
191
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
192
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
174
193
|
# @yieldparam response [::Faraday::Response]
|
175
194
|
#
|
176
|
-
# @return [::
|
195
|
+
# @return [::Gapic::Rest::BaseOperation]
|
177
196
|
#
|
178
197
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
179
198
|
def add_resource_policies request, options = nil
|
@@ -185,7 +204,7 @@ module Google
|
|
185
204
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
186
205
|
|
187
206
|
# Customize the options with defaults
|
188
|
-
call_metadata =
|
207
|
+
call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
|
189
208
|
|
190
209
|
# Set x-goog-api-client header
|
191
210
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -193,20 +212,17 @@ module Google
|
|
193
212
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
194
213
|
transports_version_send: [:rest]
|
195
214
|
|
196
|
-
options.apply_defaults timeout: @config.timeout,
|
215
|
+
options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
|
197
216
|
metadata: call_metadata
|
198
217
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
yield result, response if block_given?
|
209
|
-
result
|
218
|
+
options.apply_defaults timeout: @config.timeout,
|
219
|
+
metadata: @config.metadata
|
220
|
+
|
221
|
+
@region_disks_stub.add_resource_policies request, options do |result, response|
|
222
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
223
|
+
yield result, response if block_given?
|
224
|
+
return result
|
225
|
+
end
|
210
226
|
rescue ::Faraday::Error => e
|
211
227
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
212
228
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -239,18 +255,14 @@ module Google
|
|
239
255
|
# @param region [::String]
|
240
256
|
# Name of the region for this request.
|
241
257
|
# @param request_id [::String]
|
242
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
243
|
-
#
|
244
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
245
|
-
#
|
246
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
258
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
247
259
|
# @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
|
248
260
|
# The body resource for this request
|
249
|
-
# @yield [result,
|
250
|
-
# @yieldparam result [::
|
261
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
262
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
251
263
|
# @yieldparam response [::Faraday::Response]
|
252
264
|
#
|
253
|
-
# @return [::
|
265
|
+
# @return [::Gapic::Rest::BaseOperation]
|
254
266
|
#
|
255
267
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
268
|
def create_snapshot request, options = nil
|
@@ -262,7 +274,7 @@ module Google
|
|
262
274
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
263
275
|
|
264
276
|
# Customize the options with defaults
|
265
|
-
call_metadata =
|
277
|
+
call_metadata = @config.rpcs.create_snapshot.metadata.to_h
|
266
278
|
|
267
279
|
# Set x-goog-api-client header
|
268
280
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -270,20 +282,17 @@ module Google
|
|
270
282
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
271
283
|
transports_version_send: [:rest]
|
272
284
|
|
273
|
-
options.apply_defaults timeout: @config.timeout,
|
285
|
+
options.apply_defaults timeout: @config.rpcs.create_snapshot.timeout,
|
274
286
|
metadata: call_metadata
|
275
287
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
yield result, response if block_given?
|
286
|
-
result
|
288
|
+
options.apply_defaults timeout: @config.timeout,
|
289
|
+
metadata: @config.metadata
|
290
|
+
|
291
|
+
@region_disks_stub.create_snapshot request, options do |result, response|
|
292
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
293
|
+
yield result, response if block_given?
|
294
|
+
return result
|
295
|
+
end
|
287
296
|
rescue ::Faraday::Error => e
|
288
297
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
289
298
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -316,16 +325,12 @@ module Google
|
|
316
325
|
# @param region [::String]
|
317
326
|
# Name of the region for this request.
|
318
327
|
# @param request_id [::String]
|
319
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
324
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
325
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
328
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
329
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
330
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
326
331
|
# @yieldparam response [::Faraday::Response]
|
327
332
|
#
|
328
|
-
# @return [::
|
333
|
+
# @return [::Gapic::Rest::BaseOperation]
|
329
334
|
#
|
330
335
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
331
336
|
def delete request, options = nil
|
@@ -337,7 +342,7 @@ module Google
|
|
337
342
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
338
343
|
|
339
344
|
# Customize the options with defaults
|
340
|
-
call_metadata =
|
345
|
+
call_metadata = @config.rpcs.delete.metadata.to_h
|
341
346
|
|
342
347
|
# Set x-goog-api-client header
|
343
348
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -345,19 +350,17 @@ module Google
|
|
345
350
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
346
351
|
transports_version_send: [:rest]
|
347
352
|
|
348
|
-
options.apply_defaults timeout: @config.timeout,
|
353
|
+
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
349
354
|
metadata: call_metadata
|
350
355
|
|
351
|
-
|
352
|
-
|
353
|
-
uri: uri,
|
354
|
-
params: query_string_params,
|
355
|
-
options: options
|
356
|
-
)
|
357
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
356
|
+
options.apply_defaults timeout: @config.timeout,
|
357
|
+
metadata: @config.metadata
|
358
358
|
|
359
|
-
|
360
|
-
|
359
|
+
@region_disks_stub.delete request, options do |result, response|
|
360
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
361
|
+
yield result, response if block_given?
|
362
|
+
return result
|
363
|
+
end
|
361
364
|
rescue ::Faraday::Error => e
|
362
365
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
363
366
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -389,7 +392,7 @@ module Google
|
|
389
392
|
# Project ID for this request.
|
390
393
|
# @param region [::String]
|
391
394
|
# Name of the region for this request.
|
392
|
-
# @yield [result,
|
395
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
393
396
|
# @yieldparam result [::Google::Cloud::Compute::V1::Disk]
|
394
397
|
# @yieldparam response [::Faraday::Response]
|
395
398
|
#
|
@@ -405,7 +408,7 @@ module Google
|
|
405
408
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
406
409
|
|
407
410
|
# Customize the options with defaults
|
408
|
-
call_metadata =
|
411
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
409
412
|
|
410
413
|
# Set x-goog-api-client header
|
411
414
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -413,18 +416,16 @@ module Google
|
|
413
416
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
414
417
|
transports_version_send: [:rest]
|
415
418
|
|
416
|
-
options.apply_defaults timeout: @config.timeout,
|
419
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
417
420
|
metadata: call_metadata
|
418
421
|
|
419
|
-
|
420
|
-
|
421
|
-
uri: uri,
|
422
|
-
options: options
|
423
|
-
)
|
424
|
-
result = ::Google::Cloud::Compute::V1::Disk.decode_json response.body, ignore_unknown_fields: true
|
422
|
+
options.apply_defaults timeout: @config.timeout,
|
423
|
+
metadata: @config.metadata
|
425
424
|
|
426
|
-
|
427
|
-
|
425
|
+
@region_disks_stub.get request, options do |result, response|
|
426
|
+
yield result, response if block_given?
|
427
|
+
return result
|
428
|
+
end
|
428
429
|
rescue ::Faraday::Error => e
|
429
430
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
430
431
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -458,7 +459,7 @@ module Google
|
|
458
459
|
# The name of the region for this request.
|
459
460
|
# @param resource [::String]
|
460
461
|
# Name or id of the resource for this request.
|
461
|
-
# @yield [result,
|
462
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
462
463
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
463
464
|
# @yieldparam response [::Faraday::Response]
|
464
465
|
#
|
@@ -474,7 +475,7 @@ module Google
|
|
474
475
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
475
476
|
|
476
477
|
# Customize the options with defaults
|
477
|
-
call_metadata =
|
478
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
478
479
|
|
479
480
|
# Set x-goog-api-client header
|
480
481
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -482,19 +483,16 @@ module Google
|
|
482
483
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
483
484
|
transports_version_send: [:rest]
|
484
485
|
|
485
|
-
options.apply_defaults timeout: @config.timeout,
|
486
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
486
487
|
metadata: call_metadata
|
487
488
|
|
488
|
-
|
489
|
-
|
490
|
-
uri: uri,
|
491
|
-
params: query_string_params,
|
492
|
-
options: options
|
493
|
-
)
|
494
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
489
|
+
options.apply_defaults timeout: @config.timeout,
|
490
|
+
metadata: @config.metadata
|
495
491
|
|
496
|
-
|
497
|
-
|
492
|
+
@region_disks_stub.get_iam_policy request, options do |result, response|
|
493
|
+
yield result, response if block_given?
|
494
|
+
return result
|
495
|
+
end
|
498
496
|
rescue ::Faraday::Error => e
|
499
497
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
500
498
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -527,18 +525,14 @@ module Google
|
|
527
525
|
# @param region [::String]
|
528
526
|
# Name of the region for this request.
|
529
527
|
# @param request_id [::String]
|
530
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
531
|
-
#
|
532
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
533
|
-
#
|
534
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
528
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
535
529
|
# @param source_image [::String]
|
536
|
-
#
|
537
|
-
# @yield [result,
|
538
|
-
# @yieldparam result [::
|
530
|
+
# Source image to restore onto a disk. This field is optional.
|
531
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
532
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
539
533
|
# @yieldparam response [::Faraday::Response]
|
540
534
|
#
|
541
|
-
# @return [::
|
535
|
+
# @return [::Gapic::Rest::BaseOperation]
|
542
536
|
#
|
543
537
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
544
538
|
def insert request, options = nil
|
@@ -550,7 +544,7 @@ module Google
|
|
550
544
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
551
545
|
|
552
546
|
# Customize the options with defaults
|
553
|
-
call_metadata =
|
547
|
+
call_metadata = @config.rpcs.insert.metadata.to_h
|
554
548
|
|
555
549
|
# Set x-goog-api-client header
|
556
550
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -558,20 +552,17 @@ module Google
|
|
558
552
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
559
553
|
transports_version_send: [:rest]
|
560
554
|
|
561
|
-
options.apply_defaults timeout: @config.timeout,
|
555
|
+
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
562
556
|
metadata: call_metadata
|
563
557
|
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
yield result, response if block_given?
|
574
|
-
result
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
559
|
+
metadata: @config.metadata
|
560
|
+
|
561
|
+
@region_disks_stub.insert request, options do |result, response|
|
562
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
563
|
+
yield result, response if block_given?
|
564
|
+
return result
|
565
|
+
end
|
575
566
|
rescue ::Faraday::Error => e
|
576
567
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
577
568
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -598,21 +589,11 @@ module Google
|
|
598
589
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
599
590
|
#
|
600
591
|
# @param filter [::String]
|
601
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
602
|
-
#
|
603
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
604
|
-
#
|
605
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
606
|
-
#
|
607
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
592
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
608
593
|
# @param max_results [::Integer]
|
609
594
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
610
595
|
# @param order_by [::String]
|
611
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
612
|
-
#
|
613
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
614
|
-
#
|
615
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
596
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
616
597
|
# @param page_token [::String]
|
617
598
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
618
599
|
# @param project [::String]
|
@@ -620,12 +601,12 @@ module Google
|
|
620
601
|
# @param region [::String]
|
621
602
|
# Name of the region for this request.
|
622
603
|
# @param return_partial_success [::Boolean]
|
623
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
624
|
-
# @yield [result,
|
625
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
604
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
605
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
606
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
|
626
607
|
# @yieldparam response [::Faraday::Response]
|
627
608
|
#
|
628
|
-
# @return [::Google::Cloud::Compute::V1::
|
609
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
|
629
610
|
#
|
630
611
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
631
612
|
def list request, options = nil
|
@@ -637,7 +618,7 @@ module Google
|
|
637
618
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
638
619
|
|
639
620
|
# Customize the options with defaults
|
640
|
-
call_metadata =
|
621
|
+
call_metadata = @config.rpcs.list.metadata.to_h
|
641
622
|
|
642
623
|
# Set x-goog-api-client header
|
643
624
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -645,19 +626,17 @@ module Google
|
|
645
626
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
646
627
|
transports_version_send: [:rest]
|
647
628
|
|
648
|
-
options.apply_defaults timeout: @config.timeout,
|
629
|
+
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
649
630
|
metadata: call_metadata
|
650
631
|
|
651
|
-
|
652
|
-
|
653
|
-
uri: uri,
|
654
|
-
params: query_string_params,
|
655
|
-
options: options
|
656
|
-
)
|
657
|
-
result = ::Google::Cloud::Compute::V1::DiskList.decode_json response.body, ignore_unknown_fields: true
|
632
|
+
options.apply_defaults timeout: @config.timeout,
|
633
|
+
metadata: @config.metadata
|
658
634
|
|
659
|
-
|
660
|
-
|
635
|
+
@region_disks_stub.list request, options do |result, response|
|
636
|
+
result = ::Gapic::Rest::PagedEnumerable.new @region_disks_stub, :list, "items", request, result, options
|
637
|
+
yield result, response if block_given?
|
638
|
+
return result
|
639
|
+
end
|
661
640
|
rescue ::Faraday::Error => e
|
662
641
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
663
642
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -692,16 +671,12 @@ module Google
|
|
692
671
|
# @param region_disks_remove_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksRemoveResourcePoliciesRequest, ::Hash]
|
693
672
|
# The body resource for this request
|
694
673
|
# @param request_id [::String]
|
695
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
696
|
-
#
|
697
|
-
#
|
698
|
-
#
|
699
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
700
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
701
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
674
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
675
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
676
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
702
677
|
# @yieldparam response [::Faraday::Response]
|
703
678
|
#
|
704
|
-
# @return [::
|
679
|
+
# @return [::Gapic::Rest::BaseOperation]
|
705
680
|
#
|
706
681
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
707
682
|
def remove_resource_policies request, options = nil
|
@@ -713,7 +688,7 @@ module Google
|
|
713
688
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
714
689
|
|
715
690
|
# Customize the options with defaults
|
716
|
-
call_metadata =
|
691
|
+
call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
|
717
692
|
|
718
693
|
# Set x-goog-api-client header
|
719
694
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -721,20 +696,17 @@ module Google
|
|
721
696
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
722
697
|
transports_version_send: [:rest]
|
723
698
|
|
724
|
-
options.apply_defaults timeout: @config.timeout,
|
699
|
+
options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
|
725
700
|
metadata: call_metadata
|
726
701
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
yield result, response if block_given?
|
737
|
-
result
|
702
|
+
options.apply_defaults timeout: @config.timeout,
|
703
|
+
metadata: @config.metadata
|
704
|
+
|
705
|
+
@region_disks_stub.remove_resource_policies request, options do |result, response|
|
706
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
707
|
+
yield result, response if block_given?
|
708
|
+
return result
|
709
|
+
end
|
738
710
|
rescue ::Faraday::Error => e
|
739
711
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
740
712
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -769,16 +741,12 @@ module Google
|
|
769
741
|
# @param region_disks_resize_request_resource [::Google::Cloud::Compute::V1::RegionDisksResizeRequest, ::Hash]
|
770
742
|
# The body resource for this request
|
771
743
|
# @param request_id [::String]
|
772
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
773
|
-
#
|
774
|
-
#
|
775
|
-
#
|
776
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
777
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
778
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
744
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
745
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
746
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
779
747
|
# @yieldparam response [::Faraday::Response]
|
780
748
|
#
|
781
|
-
# @return [::
|
749
|
+
# @return [::Gapic::Rest::BaseOperation]
|
782
750
|
#
|
783
751
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
784
752
|
def resize request, options = nil
|
@@ -790,7 +758,7 @@ module Google
|
|
790
758
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
791
759
|
|
792
760
|
# Customize the options with defaults
|
793
|
-
call_metadata =
|
761
|
+
call_metadata = @config.rpcs.resize.metadata.to_h
|
794
762
|
|
795
763
|
# Set x-goog-api-client header
|
796
764
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -798,20 +766,17 @@ module Google
|
|
798
766
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
799
767
|
transports_version_send: [:rest]
|
800
768
|
|
801
|
-
options.apply_defaults timeout: @config.timeout,
|
769
|
+
options.apply_defaults timeout: @config.rpcs.resize.timeout,
|
802
770
|
metadata: call_metadata
|
803
771
|
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
yield result, response if block_given?
|
814
|
-
result
|
772
|
+
options.apply_defaults timeout: @config.timeout,
|
773
|
+
metadata: @config.metadata
|
774
|
+
|
775
|
+
@region_disks_stub.resize request, options do |result, response|
|
776
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
777
|
+
yield result, response if block_given?
|
778
|
+
return result
|
779
|
+
end
|
815
780
|
rescue ::Faraday::Error => e
|
816
781
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
817
782
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -845,7 +810,7 @@ module Google
|
|
845
810
|
# The body resource for this request
|
846
811
|
# @param resource [::String]
|
847
812
|
# Name or id of the resource for this request.
|
848
|
-
# @yield [result,
|
813
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
849
814
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
850
815
|
# @yieldparam response [::Faraday::Response]
|
851
816
|
#
|
@@ -861,7 +826,7 @@ module Google
|
|
861
826
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
862
827
|
|
863
828
|
# Customize the options with defaults
|
864
|
-
call_metadata =
|
829
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
865
830
|
|
866
831
|
# Set x-goog-api-client header
|
867
832
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -869,19 +834,16 @@ module Google
|
|
869
834
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
870
835
|
transports_version_send: [:rest]
|
871
836
|
|
872
|
-
options.apply_defaults timeout: @config.timeout,
|
837
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
873
838
|
metadata: call_metadata
|
874
839
|
|
875
|
-
|
876
|
-
|
877
|
-
uri: uri,
|
878
|
-
body: body,
|
879
|
-
options: options
|
880
|
-
)
|
881
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
840
|
+
options.apply_defaults timeout: @config.timeout,
|
841
|
+
metadata: @config.metadata
|
882
842
|
|
883
|
-
|
884
|
-
|
843
|
+
@region_disks_stub.set_iam_policy request, options do |result, response|
|
844
|
+
yield result, response if block_given?
|
845
|
+
return result
|
846
|
+
end
|
885
847
|
rescue ::Faraday::Error => e
|
886
848
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
887
849
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -914,18 +876,14 @@ module Google
|
|
914
876
|
# @param region_set_labels_request_resource [::Google::Cloud::Compute::V1::RegionSetLabelsRequest, ::Hash]
|
915
877
|
# The body resource for this request
|
916
878
|
# @param request_id [::String]
|
917
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
918
|
-
#
|
919
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
920
|
-
#
|
921
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
879
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
922
880
|
# @param resource [::String]
|
923
881
|
# Name or id of the resource for this request.
|
924
|
-
# @yield [result,
|
925
|
-
# @yieldparam result [::
|
882
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
883
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
926
884
|
# @yieldparam response [::Faraday::Response]
|
927
885
|
#
|
928
|
-
# @return [::
|
886
|
+
# @return [::Gapic::Rest::BaseOperation]
|
929
887
|
#
|
930
888
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
931
889
|
def set_labels request, options = nil
|
@@ -937,7 +895,7 @@ module Google
|
|
937
895
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
938
896
|
|
939
897
|
# Customize the options with defaults
|
940
|
-
call_metadata =
|
898
|
+
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
941
899
|
|
942
900
|
# Set x-goog-api-client header
|
943
901
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -945,20 +903,17 @@ module Google
|
|
945
903
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
946
904
|
transports_version_send: [:rest]
|
947
905
|
|
948
|
-
options.apply_defaults timeout: @config.timeout,
|
906
|
+
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
949
907
|
metadata: call_metadata
|
950
908
|
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
yield result, response if block_given?
|
961
|
-
result
|
909
|
+
options.apply_defaults timeout: @config.timeout,
|
910
|
+
metadata: @config.metadata
|
911
|
+
|
912
|
+
@region_disks_stub.set_labels request, options do |result, response|
|
913
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
914
|
+
yield result, response if block_given?
|
915
|
+
return result
|
916
|
+
end
|
962
917
|
rescue ::Faraday::Error => e
|
963
918
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
964
919
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -992,7 +947,7 @@ module Google
|
|
992
947
|
# Name or id of the resource for this request.
|
993
948
|
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
994
949
|
# The body resource for this request
|
995
|
-
# @yield [result,
|
950
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
996
951
|
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
997
952
|
# @yieldparam response [::Faraday::Response]
|
998
953
|
#
|
@@ -1008,7 +963,7 @@ module Google
|
|
1008
963
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1009
964
|
|
1010
965
|
# Customize the options with defaults
|
1011
|
-
call_metadata =
|
966
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1012
967
|
|
1013
968
|
# Set x-goog-api-client header
|
1014
969
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1016,19 +971,16 @@ module Google
|
|
1016
971
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1017
972
|
transports_version_send: [:rest]
|
1018
973
|
|
1019
|
-
options.apply_defaults timeout: @config.timeout,
|
974
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1020
975
|
metadata: call_metadata
|
1021
976
|
|
1022
|
-
|
1023
|
-
|
1024
|
-
uri: uri,
|
1025
|
-
body: body,
|
1026
|
-
options: options
|
1027
|
-
)
|
1028
|
-
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
977
|
+
options.apply_defaults timeout: @config.timeout,
|
978
|
+
metadata: @config.metadata
|
1029
979
|
|
1030
|
-
|
1031
|
-
|
980
|
+
@region_disks_stub.test_iam_permissions request, options do |result, response|
|
981
|
+
yield result, response if block_given?
|
982
|
+
return result
|
983
|
+
end
|
1032
984
|
rescue ::Faraday::Error => e
|
1033
985
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1034
986
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1083,6 +1035,9 @@ module Google
|
|
1083
1035
|
# @!attribute [rw] timeout
|
1084
1036
|
# The call timeout in seconds.
|
1085
1037
|
# @return [::Numeric]
|
1038
|
+
# @!attribute [rw] metadata
|
1039
|
+
# Additional REST headers to be sent with the call.
|
1040
|
+
# @return [::Hash{::Symbol=>::String}]
|
1086
1041
|
#
|
1087
1042
|
class Configuration
|
1088
1043
|
extend ::Gapic::Config
|
@@ -1096,6 +1051,7 @@ module Google
|
|
1096
1051
|
config_attr :lib_name, nil, ::String, nil
|
1097
1052
|
config_attr :lib_version, nil, ::String, nil
|
1098
1053
|
config_attr :timeout, nil, ::Numeric, nil
|
1054
|
+
config_attr :metadata, nil, ::Hash, nil
|
1099
1055
|
|
1100
1056
|
# @private
|
1101
1057
|
def initialize parent_config = nil
|
@@ -1103,6 +1059,123 @@ module Google
|
|
1103
1059
|
|
1104
1060
|
yield self if block_given?
|
1105
1061
|
end
|
1062
|
+
|
1063
|
+
##
|
1064
|
+
# Configurations for individual RPCs
|
1065
|
+
# @return [Rpcs]
|
1066
|
+
#
|
1067
|
+
def rpcs
|
1068
|
+
@rpcs ||= begin
|
1069
|
+
parent_rpcs = nil
|
1070
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1071
|
+
Rpcs.new parent_rpcs
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
##
|
1076
|
+
# Configuration RPC class for the RegionDisks API.
|
1077
|
+
#
|
1078
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1079
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1080
|
+
# the following configuration fields:
|
1081
|
+
#
|
1082
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1083
|
+
#
|
1084
|
+
# there is one other field (`retry_policy`) that can be set
|
1085
|
+
# but is currently not supported for REST Gapic libraries.
|
1086
|
+
#
|
1087
|
+
class Rpcs
|
1088
|
+
##
|
1089
|
+
# RPC-specific configuration for `add_resource_policies`
|
1090
|
+
# @return [::Gapic::Config::Method]
|
1091
|
+
#
|
1092
|
+
attr_reader :add_resource_policies
|
1093
|
+
##
|
1094
|
+
# RPC-specific configuration for `create_snapshot`
|
1095
|
+
# @return [::Gapic::Config::Method]
|
1096
|
+
#
|
1097
|
+
attr_reader :create_snapshot
|
1098
|
+
##
|
1099
|
+
# RPC-specific configuration for `delete`
|
1100
|
+
# @return [::Gapic::Config::Method]
|
1101
|
+
#
|
1102
|
+
attr_reader :delete
|
1103
|
+
##
|
1104
|
+
# RPC-specific configuration for `get`
|
1105
|
+
# @return [::Gapic::Config::Method]
|
1106
|
+
#
|
1107
|
+
attr_reader :get
|
1108
|
+
##
|
1109
|
+
# RPC-specific configuration for `get_iam_policy`
|
1110
|
+
# @return [::Gapic::Config::Method]
|
1111
|
+
#
|
1112
|
+
attr_reader :get_iam_policy
|
1113
|
+
##
|
1114
|
+
# RPC-specific configuration for `insert`
|
1115
|
+
# @return [::Gapic::Config::Method]
|
1116
|
+
#
|
1117
|
+
attr_reader :insert
|
1118
|
+
##
|
1119
|
+
# RPC-specific configuration for `list`
|
1120
|
+
# @return [::Gapic::Config::Method]
|
1121
|
+
#
|
1122
|
+
attr_reader :list
|
1123
|
+
##
|
1124
|
+
# RPC-specific configuration for `remove_resource_policies`
|
1125
|
+
# @return [::Gapic::Config::Method]
|
1126
|
+
#
|
1127
|
+
attr_reader :remove_resource_policies
|
1128
|
+
##
|
1129
|
+
# RPC-specific configuration for `resize`
|
1130
|
+
# @return [::Gapic::Config::Method]
|
1131
|
+
#
|
1132
|
+
attr_reader :resize
|
1133
|
+
##
|
1134
|
+
# RPC-specific configuration for `set_iam_policy`
|
1135
|
+
# @return [::Gapic::Config::Method]
|
1136
|
+
#
|
1137
|
+
attr_reader :set_iam_policy
|
1138
|
+
##
|
1139
|
+
# RPC-specific configuration for `set_labels`
|
1140
|
+
# @return [::Gapic::Config::Method]
|
1141
|
+
#
|
1142
|
+
attr_reader :set_labels
|
1143
|
+
##
|
1144
|
+
# RPC-specific configuration for `test_iam_permissions`
|
1145
|
+
# @return [::Gapic::Config::Method]
|
1146
|
+
#
|
1147
|
+
attr_reader :test_iam_permissions
|
1148
|
+
|
1149
|
+
# @private
|
1150
|
+
def initialize parent_rpcs = nil
|
1151
|
+
add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
|
1152
|
+
@add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
|
1153
|
+
create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
|
1154
|
+
@create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
|
1155
|
+
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|
1156
|
+
@delete = ::Gapic::Config::Method.new delete_config
|
1157
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
1158
|
+
@get = ::Gapic::Config::Method.new get_config
|
1159
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
1160
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
1161
|
+
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
1162
|
+
@insert = ::Gapic::Config::Method.new insert_config
|
1163
|
+
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
1164
|
+
@list = ::Gapic::Config::Method.new list_config
|
1165
|
+
remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
|
1166
|
+
@remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
|
1167
|
+
resize_config = parent_rpcs.resize if parent_rpcs.respond_to? :resize
|
1168
|
+
@resize = ::Gapic::Config::Method.new resize_config
|
1169
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
1170
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
1171
|
+
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
1172
|
+
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
1173
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
1174
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
1175
|
+
|
1176
|
+
yield self if block_given?
|
1177
|
+
end
|
1178
|
+
end
|
1106
1179
|
end
|
1107
1180
|
end
|
1108
1181
|
end
|