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/firewall_policies/rest/service_stub"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -31,8 +32,6 @@ module Google
|
|
31
32
|
# The FirewallPolicies API.
|
32
33
|
#
|
33
34
|
class Client
|
34
|
-
include GrpcTranscoding
|
35
|
-
|
36
35
|
# @private
|
37
36
|
attr_reader :firewall_policies_stub
|
38
37
|
|
@@ -42,13 +41,12 @@ module Google
|
|
42
41
|
# See {::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client::Configuration}
|
43
42
|
# for a description of the configuration fields.
|
44
43
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# To modify the configuration for all FirewallPolicies clients:
|
44
|
+
# @example
|
48
45
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# # Modify the configuration for all FirewallPolicies clients
|
47
|
+
# ::Google::Cloud::Compute::V1::FirewallPolicies::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,60 @@ module Google
|
|
66
64
|
end
|
67
65
|
default_config = Client::Configuration.new parent_config
|
68
66
|
|
67
|
+
default_config.rpcs.add_association.timeout = 600.0
|
68
|
+
|
69
|
+
default_config.rpcs.add_rule.timeout = 600.0
|
70
|
+
|
71
|
+
default_config.rpcs.clone_rules.timeout = 600.0
|
72
|
+
|
73
|
+
default_config.rpcs.delete.timeout = 600.0
|
74
|
+
|
75
|
+
default_config.rpcs.get.timeout = 600.0
|
76
|
+
default_config.rpcs.get.retry_policy = {
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
|
+
}
|
79
|
+
|
80
|
+
default_config.rpcs.get_association.timeout = 600.0
|
81
|
+
default_config.rpcs.get_association.retry_policy = {
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
83
|
+
}
|
84
|
+
|
85
|
+
default_config.rpcs.get_iam_policy.timeout = 600.0
|
86
|
+
default_config.rpcs.get_iam_policy.retry_policy = {
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
88
|
+
}
|
89
|
+
|
90
|
+
default_config.rpcs.get_rule.timeout = 600.0
|
91
|
+
default_config.rpcs.get_rule.retry_policy = {
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
93
|
+
}
|
94
|
+
|
95
|
+
default_config.rpcs.insert.timeout = 600.0
|
96
|
+
|
97
|
+
default_config.rpcs.list.timeout = 600.0
|
98
|
+
default_config.rpcs.list.retry_policy = {
|
99
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
100
|
+
}
|
101
|
+
|
102
|
+
default_config.rpcs.list_associations.timeout = 600.0
|
103
|
+
default_config.rpcs.list_associations.retry_policy = {
|
104
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
105
|
+
}
|
106
|
+
|
107
|
+
default_config.rpcs.move.timeout = 600.0
|
108
|
+
|
109
|
+
default_config.rpcs.patch.timeout = 600.0
|
110
|
+
|
111
|
+
default_config.rpcs.patch_rule.timeout = 600.0
|
112
|
+
|
113
|
+
default_config.rpcs.remove_association.timeout = 600.0
|
114
|
+
|
115
|
+
default_config.rpcs.remove_rule.timeout = 600.0
|
116
|
+
|
117
|
+
default_config.rpcs.set_iam_policy.timeout = 600.0
|
118
|
+
|
119
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
120
|
+
|
69
121
|
default_config
|
70
122
|
end
|
71
123
|
yield @configure if block_given?
|
@@ -95,28 +147,20 @@ module Google
|
|
95
147
|
##
|
96
148
|
# Create a new FirewallPolicies REST client object.
|
97
149
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new FirewallPolicies REST client with the default
|
101
|
-
# configuration:
|
150
|
+
# @example
|
102
151
|
#
|
103
|
-
#
|
152
|
+
# # Create a client using the default configuration
|
153
|
+
# client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
104
154
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
155
|
+
# # Create a client using a custom configuration
|
156
|
+
# client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new do |config|
|
157
|
+
# config.timeout = 10.0
|
158
|
+
# end
|
111
159
|
#
|
112
160
|
# @yield [config] Configure the FirewallPolicies client.
|
113
161
|
# @yieldparam config [Client::Configuration]
|
114
162
|
#
|
115
163
|
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
164
|
# Create the configuration object
|
121
165
|
@config = Configuration.new Client.configure
|
122
166
|
|
@@ -126,11 +170,11 @@ module Google
|
|
126
170
|
# Create credentials
|
127
171
|
credentials = @config.credentials
|
128
172
|
credentials ||= Credentials.default scope: @config.scope
|
129
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
173
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
130
174
|
credentials = Credentials.new credentials, scope: @config.scope
|
131
175
|
end
|
132
176
|
|
133
|
-
@
|
177
|
+
@firewall_policies_stub = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
134
178
|
end
|
135
179
|
|
136
180
|
# Service calls
|
@@ -162,16 +206,12 @@ module Google
|
|
162
206
|
# @param replace_existing_association [::Boolean]
|
163
207
|
# Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists.
|
164
208
|
# @param request_id [::String]
|
165
|
-
# 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.
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
170
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
171
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
209
|
+
# 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).
|
210
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
211
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
172
212
|
# @yieldparam response [::Faraday::Response]
|
173
213
|
#
|
174
|
-
# @return [::
|
214
|
+
# @return [::Gapic::Rest::BaseOperation]
|
175
215
|
#
|
176
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
177
217
|
def add_association request, options = nil
|
@@ -183,26 +223,25 @@ module Google
|
|
183
223
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
184
224
|
|
185
225
|
# Customize the options with defaults
|
186
|
-
call_metadata =
|
226
|
+
call_metadata = @config.rpcs.add_association.metadata.to_h
|
187
227
|
|
188
228
|
# Set x-goog-api-client header
|
189
229
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
190
230
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
231
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
232
|
+
transports_version_send: [:rest]
|
192
233
|
|
193
|
-
options.apply_defaults timeout: @config.timeout,
|
234
|
+
options.apply_defaults timeout: @config.rpcs.add_association.timeout,
|
194
235
|
metadata: call_metadata
|
195
236
|
|
196
|
-
|
197
|
-
|
198
|
-
uri: uri,
|
199
|
-
body: body,
|
200
|
-
options: options
|
201
|
-
)
|
202
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
237
|
+
options.apply_defaults timeout: @config.timeout,
|
238
|
+
metadata: @config.metadata
|
203
239
|
|
204
|
-
|
205
|
-
|
240
|
+
@firewall_policies_stub.add_association request, options do |result, response|
|
241
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
242
|
+
yield result, response if block_given?
|
243
|
+
return result
|
244
|
+
end
|
206
245
|
rescue ::Faraday::Error => e
|
207
246
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
208
247
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -233,16 +272,12 @@ module Google
|
|
233
272
|
# @param firewall_policy_rule_resource [::Google::Cloud::Compute::V1::FirewallPolicyRule, ::Hash]
|
234
273
|
# The body resource for this request
|
235
274
|
# @param request_id [::String]
|
236
|
-
# 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.
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
241
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
242
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
275
|
+
# 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).
|
276
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
277
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
243
278
|
# @yieldparam response [::Faraday::Response]
|
244
279
|
#
|
245
|
-
# @return [::
|
280
|
+
# @return [::Gapic::Rest::BaseOperation]
|
246
281
|
#
|
247
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
248
283
|
def add_rule request, options = nil
|
@@ -254,26 +289,25 @@ module Google
|
|
254
289
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
255
290
|
|
256
291
|
# Customize the options with defaults
|
257
|
-
call_metadata =
|
292
|
+
call_metadata = @config.rpcs.add_rule.metadata.to_h
|
258
293
|
|
259
294
|
# Set x-goog-api-client header
|
260
295
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
261
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
262
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
297
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
298
|
+
transports_version_send: [:rest]
|
263
299
|
|
264
|
-
options.apply_defaults timeout: @config.timeout,
|
300
|
+
options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
|
265
301
|
metadata: call_metadata
|
266
302
|
|
267
|
-
|
268
|
-
|
269
|
-
uri: uri,
|
270
|
-
body: body,
|
271
|
-
options: options
|
272
|
-
)
|
273
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
304
|
+
metadata: @config.metadata
|
274
305
|
|
275
|
-
|
276
|
-
|
306
|
+
@firewall_policies_stub.add_rule request, options do |result, response|
|
307
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
308
|
+
yield result, response if block_given?
|
309
|
+
return result
|
310
|
+
end
|
277
311
|
rescue ::Faraday::Error => e
|
278
312
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
279
313
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -302,18 +336,14 @@ module Google
|
|
302
336
|
# @param firewall_policy [::String]
|
303
337
|
# Name of the firewall policy to update.
|
304
338
|
# @param request_id [::String]
|
305
|
-
# 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.
|
306
|
-
#
|
307
|
-
# 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.
|
308
|
-
#
|
309
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
339
|
+
# 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).
|
310
340
|
# @param source_firewall_policy [::String]
|
311
341
|
# The firewall policy from which to copy rules.
|
312
|
-
# @yield [result,
|
313
|
-
# @yieldparam result [::
|
342
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
343
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
314
344
|
# @yieldparam response [::Faraday::Response]
|
315
345
|
#
|
316
|
-
# @return [::
|
346
|
+
# @return [::Gapic::Rest::BaseOperation]
|
317
347
|
#
|
318
348
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
319
349
|
def clone_rules request, options = nil
|
@@ -325,26 +355,25 @@ module Google
|
|
325
355
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
326
356
|
|
327
357
|
# Customize the options with defaults
|
328
|
-
call_metadata =
|
358
|
+
call_metadata = @config.rpcs.clone_rules.metadata.to_h
|
329
359
|
|
330
360
|
# Set x-goog-api-client header
|
331
361
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
332
362
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
333
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
363
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
364
|
+
transports_version_send: [:rest]
|
334
365
|
|
335
|
-
options.apply_defaults timeout: @config.timeout,
|
366
|
+
options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
|
336
367
|
metadata: call_metadata
|
337
368
|
|
338
|
-
|
339
|
-
|
340
|
-
uri: uri,
|
341
|
-
params: query_string_params,
|
342
|
-
options: options
|
343
|
-
)
|
344
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
369
|
+
options.apply_defaults timeout: @config.timeout,
|
370
|
+
metadata: @config.metadata
|
345
371
|
|
346
|
-
|
347
|
-
|
372
|
+
@firewall_policies_stub.clone_rules request, options do |result, response|
|
373
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
374
|
+
yield result, response if block_given?
|
375
|
+
return result
|
376
|
+
end
|
348
377
|
rescue ::Faraday::Error => e
|
349
378
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
350
379
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -373,16 +402,12 @@ module Google
|
|
373
402
|
# @param firewall_policy [::String]
|
374
403
|
# Name of the firewall policy to delete.
|
375
404
|
# @param request_id [::String]
|
376
|
-
# 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.
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
381
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
382
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
405
|
+
# 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).
|
406
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
407
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
383
408
|
# @yieldparam response [::Faraday::Response]
|
384
409
|
#
|
385
|
-
# @return [::
|
410
|
+
# @return [::Gapic::Rest::BaseOperation]
|
386
411
|
#
|
387
412
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
413
|
def delete request, options = nil
|
@@ -394,26 +419,25 @@ module Google
|
|
394
419
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
395
420
|
|
396
421
|
# Customize the options with defaults
|
397
|
-
call_metadata =
|
422
|
+
call_metadata = @config.rpcs.delete.metadata.to_h
|
398
423
|
|
399
424
|
# Set x-goog-api-client header
|
400
425
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
401
426
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
402
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
427
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
428
|
+
transports_version_send: [:rest]
|
403
429
|
|
404
|
-
options.apply_defaults timeout: @config.timeout,
|
430
|
+
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
405
431
|
metadata: call_metadata
|
406
432
|
|
407
|
-
|
408
|
-
|
409
|
-
uri: uri,
|
410
|
-
params: query_string_params,
|
411
|
-
options: options
|
412
|
-
)
|
413
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
433
|
+
options.apply_defaults timeout: @config.timeout,
|
434
|
+
metadata: @config.metadata
|
414
435
|
|
415
|
-
|
416
|
-
|
436
|
+
@firewall_policies_stub.delete request, options do |result, response|
|
437
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
438
|
+
yield result, response if block_given?
|
439
|
+
return result
|
440
|
+
end
|
417
441
|
rescue ::Faraday::Error => e
|
418
442
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
419
443
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -441,7 +465,7 @@ module Google
|
|
441
465
|
#
|
442
466
|
# @param firewall_policy [::String]
|
443
467
|
# Name of the firewall policy to get.
|
444
|
-
# @yield [result,
|
468
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
445
469
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicy]
|
446
470
|
# @yieldparam response [::Faraday::Response]
|
447
471
|
#
|
@@ -457,25 +481,24 @@ module Google
|
|
457
481
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
458
482
|
|
459
483
|
# Customize the options with defaults
|
460
|
-
call_metadata =
|
484
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
461
485
|
|
462
486
|
# Set x-goog-api-client header
|
463
487
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
464
488
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
465
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
489
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
490
|
+
transports_version_send: [:rest]
|
466
491
|
|
467
|
-
options.apply_defaults timeout: @config.timeout,
|
492
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
468
493
|
metadata: call_metadata
|
469
494
|
|
470
|
-
|
471
|
-
|
472
|
-
uri: uri,
|
473
|
-
options: options
|
474
|
-
)
|
475
|
-
result = ::Google::Cloud::Compute::V1::FirewallPolicy.decode_json response.body, ignore_unknown_fields: true
|
495
|
+
options.apply_defaults timeout: @config.timeout,
|
496
|
+
metadata: @config.metadata
|
476
497
|
|
477
|
-
|
478
|
-
|
498
|
+
@firewall_policies_stub.get request, options do |result, response|
|
499
|
+
yield result, response if block_given?
|
500
|
+
return result
|
501
|
+
end
|
479
502
|
rescue ::Faraday::Error => e
|
480
503
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
481
504
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -505,7 +528,7 @@ module Google
|
|
505
528
|
# Name of the firewall policy to which the queried rule belongs.
|
506
529
|
# @param name [::String]
|
507
530
|
# The name of the association to get from the firewall policy.
|
508
|
-
# @yield [result,
|
531
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
509
532
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
510
533
|
# @yieldparam response [::Faraday::Response]
|
511
534
|
#
|
@@ -521,26 +544,24 @@ module Google
|
|
521
544
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
522
545
|
|
523
546
|
# Customize the options with defaults
|
524
|
-
call_metadata =
|
547
|
+
call_metadata = @config.rpcs.get_association.metadata.to_h
|
525
548
|
|
526
549
|
# Set x-goog-api-client header
|
527
550
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
528
551
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
529
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
552
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
553
|
+
transports_version_send: [:rest]
|
530
554
|
|
531
|
-
options.apply_defaults timeout: @config.timeout,
|
555
|
+
options.apply_defaults timeout: @config.rpcs.get_association.timeout,
|
532
556
|
metadata: call_metadata
|
533
557
|
|
534
|
-
|
535
|
-
|
536
|
-
uri: uri,
|
537
|
-
params: query_string_params,
|
538
|
-
options: options
|
539
|
-
)
|
540
|
-
result = ::Google::Cloud::Compute::V1::FirewallPolicyAssociation.decode_json response.body, ignore_unknown_fields: true
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
559
|
+
metadata: @config.metadata
|
541
560
|
|
542
|
-
|
543
|
-
|
561
|
+
@firewall_policies_stub.get_association request, options do |result, response|
|
562
|
+
yield result, response if block_given?
|
563
|
+
return result
|
564
|
+
end
|
544
565
|
rescue ::Faraday::Error => e
|
545
566
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
546
567
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -570,7 +591,7 @@ module Google
|
|
570
591
|
# Requested IAM Policy version.
|
571
592
|
# @param resource [::String]
|
572
593
|
# Name or id of the resource for this request.
|
573
|
-
# @yield [result,
|
594
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
574
595
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
575
596
|
# @yieldparam response [::Faraday::Response]
|
576
597
|
#
|
@@ -586,26 +607,24 @@ module Google
|
|
586
607
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
587
608
|
|
588
609
|
# Customize the options with defaults
|
589
|
-
call_metadata =
|
610
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
590
611
|
|
591
612
|
# Set x-goog-api-client header
|
592
613
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
593
614
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
594
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
615
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
616
|
+
transports_version_send: [:rest]
|
595
617
|
|
596
|
-
options.apply_defaults timeout: @config.timeout,
|
618
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
597
619
|
metadata: call_metadata
|
598
620
|
|
599
|
-
|
600
|
-
|
601
|
-
uri: uri,
|
602
|
-
params: query_string_params,
|
603
|
-
options: options
|
604
|
-
)
|
605
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
621
|
+
options.apply_defaults timeout: @config.timeout,
|
622
|
+
metadata: @config.metadata
|
606
623
|
|
607
|
-
|
608
|
-
|
624
|
+
@firewall_policies_stub.get_iam_policy request, options do |result, response|
|
625
|
+
yield result, response if block_given?
|
626
|
+
return result
|
627
|
+
end
|
609
628
|
rescue ::Faraday::Error => e
|
610
629
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
611
630
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -635,7 +654,7 @@ module Google
|
|
635
654
|
# Name of the firewall policy to which the queried rule belongs.
|
636
655
|
# @param priority [::Integer]
|
637
656
|
# The priority of the rule to get from the firewall policy.
|
638
|
-
# @yield [result,
|
657
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
639
658
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
640
659
|
# @yieldparam response [::Faraday::Response]
|
641
660
|
#
|
@@ -651,26 +670,24 @@ module Google
|
|
651
670
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
652
671
|
|
653
672
|
# Customize the options with defaults
|
654
|
-
call_metadata =
|
673
|
+
call_metadata = @config.rpcs.get_rule.metadata.to_h
|
655
674
|
|
656
675
|
# Set x-goog-api-client header
|
657
676
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
658
677
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
659
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
678
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
679
|
+
transports_version_send: [:rest]
|
660
680
|
|
661
|
-
options.apply_defaults timeout: @config.timeout,
|
681
|
+
options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
|
662
682
|
metadata: call_metadata
|
663
683
|
|
664
|
-
|
665
|
-
|
666
|
-
uri: uri,
|
667
|
-
params: query_string_params,
|
668
|
-
options: options
|
669
|
-
)
|
670
|
-
result = ::Google::Cloud::Compute::V1::FirewallPolicyRule.decode_json response.body, ignore_unknown_fields: true
|
684
|
+
options.apply_defaults timeout: @config.timeout,
|
685
|
+
metadata: @config.metadata
|
671
686
|
|
672
|
-
|
673
|
-
|
687
|
+
@firewall_policies_stub.get_rule request, options do |result, response|
|
688
|
+
yield result, response if block_given?
|
689
|
+
return result
|
690
|
+
end
|
674
691
|
rescue ::Faraday::Error => e
|
675
692
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
676
693
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -701,16 +718,12 @@ module Google
|
|
701
718
|
# @param parent_id [::String]
|
702
719
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
|
703
720
|
# @param request_id [::String]
|
704
|
-
# 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.
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
709
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
710
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
721
|
+
# 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).
|
722
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
723
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
711
724
|
# @yieldparam response [::Faraday::Response]
|
712
725
|
#
|
713
|
-
# @return [::
|
726
|
+
# @return [::Gapic::Rest::BaseOperation]
|
714
727
|
#
|
715
728
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
716
729
|
def insert request, options = nil
|
@@ -722,33 +735,32 @@ module Google
|
|
722
735
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
723
736
|
|
724
737
|
# Customize the options with defaults
|
725
|
-
call_metadata =
|
738
|
+
call_metadata = @config.rpcs.insert.metadata.to_h
|
726
739
|
|
727
740
|
# Set x-goog-api-client header
|
728
741
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
729
742
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
730
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
743
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
744
|
+
transports_version_send: [:rest]
|
731
745
|
|
732
|
-
options.apply_defaults timeout: @config.timeout,
|
746
|
+
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
733
747
|
metadata: call_metadata
|
734
748
|
|
735
|
-
|
736
|
-
|
737
|
-
uri: uri,
|
738
|
-
body: body,
|
739
|
-
options: options
|
740
|
-
)
|
741
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
749
|
+
options.apply_defaults timeout: @config.timeout,
|
750
|
+
metadata: @config.metadata
|
742
751
|
|
743
|
-
|
744
|
-
|
752
|
+
@firewall_policies_stub.insert request, options do |result, response|
|
753
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
754
|
+
yield result, response if block_given?
|
755
|
+
return result
|
756
|
+
end
|
745
757
|
rescue ::Faraday::Error => e
|
746
758
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
747
759
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
748
760
|
end
|
749
761
|
|
750
762
|
##
|
751
|
-
# Lists all the policies that have been configured for the specified
|
763
|
+
# Lists all the policies that have been configured for the specified folder or organization.
|
752
764
|
#
|
753
765
|
# @overload list(request, options = nil)
|
754
766
|
# Pass arguments to `list` via a request object, either of type
|
@@ -768,32 +780,22 @@ module Google
|
|
768
780
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
769
781
|
#
|
770
782
|
# @param filter [::String]
|
771
|
-
# 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 `<`.
|
772
|
-
#
|
773
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
774
|
-
#
|
775
|
-
# 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.
|
776
|
-
#
|
777
|
-
# 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) ```
|
783
|
+
# 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) ```
|
778
784
|
# @param max_results [::Integer]
|
779
785
|
# 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`)
|
780
786
|
# @param order_by [::String]
|
781
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
782
|
-
#
|
783
|
-
# 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.
|
784
|
-
#
|
785
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
787
|
+
# 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.
|
786
788
|
# @param page_token [::String]
|
787
789
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
788
790
|
# @param parent_id [::String]
|
789
791
|
# Parent ID for this request.
|
790
792
|
# @param return_partial_success [::Boolean]
|
791
793
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
792
|
-
# @yield [result,
|
793
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
794
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
795
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
794
796
|
# @yieldparam response [::Faraday::Response]
|
795
797
|
#
|
796
|
-
# @return [::Google::Cloud::Compute::V1::
|
798
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
797
799
|
#
|
798
800
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
799
801
|
def list request, options = nil
|
@@ -805,26 +807,25 @@ module Google
|
|
805
807
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
806
808
|
|
807
809
|
# Customize the options with defaults
|
808
|
-
call_metadata =
|
810
|
+
call_metadata = @config.rpcs.list.metadata.to_h
|
809
811
|
|
810
812
|
# Set x-goog-api-client header
|
811
813
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
812
814
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
813
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
815
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
816
|
+
transports_version_send: [:rest]
|
814
817
|
|
815
|
-
options.apply_defaults timeout: @config.timeout,
|
818
|
+
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
816
819
|
metadata: call_metadata
|
817
820
|
|
818
|
-
|
819
|
-
|
820
|
-
uri: uri,
|
821
|
-
params: query_string_params,
|
822
|
-
options: options
|
823
|
-
)
|
824
|
-
result = ::Google::Cloud::Compute::V1::FirewallPolicyList.decode_json response.body, ignore_unknown_fields: true
|
821
|
+
options.apply_defaults timeout: @config.timeout,
|
822
|
+
metadata: @config.metadata
|
825
823
|
|
826
|
-
|
827
|
-
|
824
|
+
@firewall_policies_stub.list request, options do |result, response|
|
825
|
+
result = ::Gapic::Rest::PagedEnumerable.new @firewall_policies_stub, :list, "items", request, result, options
|
826
|
+
yield result, response if block_given?
|
827
|
+
return result
|
828
|
+
end
|
828
829
|
rescue ::Faraday::Error => e
|
829
830
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
830
831
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -852,7 +853,7 @@ module Google
|
|
852
853
|
#
|
853
854
|
# @param target_resource [::String]
|
854
855
|
# The target resource to list associations. It is an organization, or a folder.
|
855
|
-
# @yield [result,
|
856
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
856
857
|
# @yieldparam result [::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse]
|
857
858
|
# @yieldparam response [::Faraday::Response]
|
858
859
|
#
|
@@ -868,26 +869,24 @@ module Google
|
|
868
869
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
869
870
|
|
870
871
|
# Customize the options with defaults
|
871
|
-
call_metadata =
|
872
|
+
call_metadata = @config.rpcs.list_associations.metadata.to_h
|
872
873
|
|
873
874
|
# Set x-goog-api-client header
|
874
875
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
875
876
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
876
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
877
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
878
|
+
transports_version_send: [:rest]
|
877
879
|
|
878
|
-
options.apply_defaults timeout: @config.timeout,
|
880
|
+
options.apply_defaults timeout: @config.rpcs.list_associations.timeout,
|
879
881
|
metadata: call_metadata
|
880
882
|
|
881
|
-
|
882
|
-
|
883
|
-
uri: uri,
|
884
|
-
params: query_string_params,
|
885
|
-
options: options
|
886
|
-
)
|
887
|
-
result = ::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
|
883
|
+
options.apply_defaults timeout: @config.timeout,
|
884
|
+
metadata: @config.metadata
|
888
885
|
|
889
|
-
|
890
|
-
|
886
|
+
@firewall_policies_stub.list_associations request, options do |result, response|
|
887
|
+
yield result, response if block_given?
|
888
|
+
return result
|
889
|
+
end
|
891
890
|
rescue ::Faraday::Error => e
|
892
891
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
893
892
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -918,16 +917,12 @@ module Google
|
|
918
917
|
# @param parent_id [::String]
|
919
918
|
# The new parent of the firewall policy.
|
920
919
|
# @param request_id [::String]
|
921
|
-
# 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.
|
922
|
-
#
|
923
|
-
#
|
924
|
-
#
|
925
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
926
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
927
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
920
|
+
# 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).
|
921
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
922
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
928
923
|
# @yieldparam response [::Faraday::Response]
|
929
924
|
#
|
930
|
-
# @return [::
|
925
|
+
# @return [::Gapic::Rest::BaseOperation]
|
931
926
|
#
|
932
927
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
933
928
|
def move request, options = nil
|
@@ -939,26 +934,25 @@ module Google
|
|
939
934
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
940
935
|
|
941
936
|
# Customize the options with defaults
|
942
|
-
call_metadata =
|
937
|
+
call_metadata = @config.rpcs.move.metadata.to_h
|
943
938
|
|
944
939
|
# Set x-goog-api-client header
|
945
940
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
946
941
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
947
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
942
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
943
|
+
transports_version_send: [:rest]
|
948
944
|
|
949
|
-
options.apply_defaults timeout: @config.timeout,
|
945
|
+
options.apply_defaults timeout: @config.rpcs.move.timeout,
|
950
946
|
metadata: call_metadata
|
951
947
|
|
952
|
-
|
953
|
-
|
954
|
-
uri: uri,
|
955
|
-
params: query_string_params,
|
956
|
-
options: options
|
957
|
-
)
|
958
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
948
|
+
options.apply_defaults timeout: @config.timeout,
|
949
|
+
metadata: @config.metadata
|
959
950
|
|
960
|
-
|
961
|
-
|
951
|
+
@firewall_policies_stub.move request, options do |result, response|
|
952
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
953
|
+
yield result, response if block_given?
|
954
|
+
return result
|
955
|
+
end
|
962
956
|
rescue ::Faraday::Error => e
|
963
957
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
964
958
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -989,16 +983,12 @@ module Google
|
|
989
983
|
# @param firewall_policy_resource [::Google::Cloud::Compute::V1::FirewallPolicy, ::Hash]
|
990
984
|
# The body resource for this request
|
991
985
|
# @param request_id [::String]
|
992
|
-
# 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.
|
993
|
-
#
|
994
|
-
#
|
995
|
-
#
|
996
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
997
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
998
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
986
|
+
# 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).
|
987
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
988
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
999
989
|
# @yieldparam response [::Faraday::Response]
|
1000
990
|
#
|
1001
|
-
# @return [::
|
991
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1002
992
|
#
|
1003
993
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1004
994
|
def patch request, options = nil
|
@@ -1010,26 +1000,25 @@ module Google
|
|
1010
1000
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1011
1001
|
|
1012
1002
|
# Customize the options with defaults
|
1013
|
-
call_metadata =
|
1003
|
+
call_metadata = @config.rpcs.patch.metadata.to_h
|
1014
1004
|
|
1015
1005
|
# Set x-goog-api-client header
|
1016
1006
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1017
1007
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1018
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1008
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1009
|
+
transports_version_send: [:rest]
|
1019
1010
|
|
1020
|
-
options.apply_defaults timeout: @config.timeout,
|
1011
|
+
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
1021
1012
|
metadata: call_metadata
|
1022
1013
|
|
1023
|
-
|
1024
|
-
|
1025
|
-
uri: uri,
|
1026
|
-
body: body,
|
1027
|
-
options: options
|
1028
|
-
)
|
1029
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1014
|
+
options.apply_defaults timeout: @config.timeout,
|
1015
|
+
metadata: @config.metadata
|
1030
1016
|
|
1031
|
-
|
1032
|
-
|
1017
|
+
@firewall_policies_stub.patch request, options do |result, response|
|
1018
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1019
|
+
yield result, response if block_given?
|
1020
|
+
return result
|
1021
|
+
end
|
1033
1022
|
rescue ::Faraday::Error => e
|
1034
1023
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1035
1024
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1062,16 +1051,12 @@ module Google
|
|
1062
1051
|
# @param priority [::Integer]
|
1063
1052
|
# The priority of the rule to patch.
|
1064
1053
|
# @param request_id [::String]
|
1065
|
-
# 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.
|
1066
|
-
#
|
1067
|
-
#
|
1068
|
-
#
|
1069
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1070
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
1071
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1054
|
+
# 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).
|
1055
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1056
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1072
1057
|
# @yieldparam response [::Faraday::Response]
|
1073
1058
|
#
|
1074
|
-
# @return [::
|
1059
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1075
1060
|
#
|
1076
1061
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1077
1062
|
def patch_rule request, options = nil
|
@@ -1083,26 +1068,25 @@ module Google
|
|
1083
1068
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1084
1069
|
|
1085
1070
|
# Customize the options with defaults
|
1086
|
-
call_metadata =
|
1071
|
+
call_metadata = @config.rpcs.patch_rule.metadata.to_h
|
1087
1072
|
|
1088
1073
|
# Set x-goog-api-client header
|
1089
1074
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1090
1075
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1091
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1076
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1077
|
+
transports_version_send: [:rest]
|
1092
1078
|
|
1093
|
-
options.apply_defaults timeout: @config.timeout,
|
1079
|
+
options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
|
1094
1080
|
metadata: call_metadata
|
1095
1081
|
|
1096
|
-
|
1097
|
-
|
1098
|
-
uri: uri,
|
1099
|
-
body: body,
|
1100
|
-
options: options
|
1101
|
-
)
|
1102
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1082
|
+
options.apply_defaults timeout: @config.timeout,
|
1083
|
+
metadata: @config.metadata
|
1103
1084
|
|
1104
|
-
|
1105
|
-
|
1085
|
+
@firewall_policies_stub.patch_rule request, options do |result, response|
|
1086
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1087
|
+
yield result, response if block_given?
|
1088
|
+
return result
|
1089
|
+
end
|
1106
1090
|
rescue ::Faraday::Error => e
|
1107
1091
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1108
1092
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1133,16 +1117,12 @@ module Google
|
|
1133
1117
|
# @param name [::String]
|
1134
1118
|
# Name for the attachment that will be removed.
|
1135
1119
|
# @param request_id [::String]
|
1136
|
-
# 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.
|
1137
|
-
#
|
1138
|
-
#
|
1139
|
-
#
|
1140
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1141
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
1142
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1120
|
+
# 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).
|
1121
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1122
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1143
1123
|
# @yieldparam response [::Faraday::Response]
|
1144
1124
|
#
|
1145
|
-
# @return [::
|
1125
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1146
1126
|
#
|
1147
1127
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1148
1128
|
def remove_association request, options = nil
|
@@ -1154,26 +1134,25 @@ module Google
|
|
1154
1134
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1155
1135
|
|
1156
1136
|
# Customize the options with defaults
|
1157
|
-
call_metadata =
|
1137
|
+
call_metadata = @config.rpcs.remove_association.metadata.to_h
|
1158
1138
|
|
1159
1139
|
# Set x-goog-api-client header
|
1160
1140
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1161
1141
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1162
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1142
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1143
|
+
transports_version_send: [:rest]
|
1163
1144
|
|
1164
|
-
options.apply_defaults timeout: @config.timeout,
|
1145
|
+
options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
|
1165
1146
|
metadata: call_metadata
|
1166
1147
|
|
1167
|
-
|
1168
|
-
|
1169
|
-
uri: uri,
|
1170
|
-
params: query_string_params,
|
1171
|
-
options: options
|
1172
|
-
)
|
1173
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1148
|
+
options.apply_defaults timeout: @config.timeout,
|
1149
|
+
metadata: @config.metadata
|
1174
1150
|
|
1175
|
-
|
1176
|
-
|
1151
|
+
@firewall_policies_stub.remove_association request, options do |result, response|
|
1152
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1153
|
+
yield result, response if block_given?
|
1154
|
+
return result
|
1155
|
+
end
|
1177
1156
|
rescue ::Faraday::Error => e
|
1178
1157
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1179
1158
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1204,16 +1183,12 @@ module Google
|
|
1204
1183
|
# @param priority [::Integer]
|
1205
1184
|
# The priority of the rule to remove from the firewall policy.
|
1206
1185
|
# @param request_id [::String]
|
1207
|
-
# 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.
|
1208
|
-
#
|
1209
|
-
#
|
1210
|
-
#
|
1211
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1212
|
-
# @yield [result, env] Access the result along with the Faraday environment object
|
1213
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1186
|
+
# 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).
|
1187
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1188
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
1214
1189
|
# @yieldparam response [::Faraday::Response]
|
1215
1190
|
#
|
1216
|
-
# @return [::
|
1191
|
+
# @return [::Gapic::Rest::BaseOperation]
|
1217
1192
|
#
|
1218
1193
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1219
1194
|
def remove_rule request, options = nil
|
@@ -1225,26 +1200,25 @@ module Google
|
|
1225
1200
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1226
1201
|
|
1227
1202
|
# Customize the options with defaults
|
1228
|
-
call_metadata =
|
1203
|
+
call_metadata = @config.rpcs.remove_rule.metadata.to_h
|
1229
1204
|
|
1230
1205
|
# Set x-goog-api-client header
|
1231
1206
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1232
1207
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1233
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1208
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1209
|
+
transports_version_send: [:rest]
|
1234
1210
|
|
1235
|
-
options.apply_defaults timeout: @config.timeout,
|
1211
|
+
options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
|
1236
1212
|
metadata: call_metadata
|
1237
1213
|
|
1238
|
-
|
1239
|
-
|
1240
|
-
uri: uri,
|
1241
|
-
params: query_string_params,
|
1242
|
-
options: options
|
1243
|
-
)
|
1244
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1214
|
+
options.apply_defaults timeout: @config.timeout,
|
1215
|
+
metadata: @config.metadata
|
1245
1216
|
|
1246
|
-
|
1247
|
-
|
1217
|
+
@firewall_policies_stub.remove_rule request, options do |result, response|
|
1218
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
1219
|
+
yield result, response if block_given?
|
1220
|
+
return result
|
1221
|
+
end
|
1248
1222
|
rescue ::Faraday::Error => e
|
1249
1223
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1250
1224
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1274,7 +1248,7 @@ module Google
|
|
1274
1248
|
# The body resource for this request
|
1275
1249
|
# @param resource [::String]
|
1276
1250
|
# Name or id of the resource for this request.
|
1277
|
-
# @yield [result,
|
1251
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1278
1252
|
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
1279
1253
|
# @yieldparam response [::Faraday::Response]
|
1280
1254
|
#
|
@@ -1290,26 +1264,24 @@ module Google
|
|
1290
1264
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1291
1265
|
|
1292
1266
|
# Customize the options with defaults
|
1293
|
-
call_metadata =
|
1267
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1294
1268
|
|
1295
1269
|
# Set x-goog-api-client header
|
1296
1270
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1297
1271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1298
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1272
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1273
|
+
transports_version_send: [:rest]
|
1299
1274
|
|
1300
|
-
options.apply_defaults timeout: @config.timeout,
|
1275
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1301
1276
|
metadata: call_metadata
|
1302
1277
|
|
1303
|
-
|
1304
|
-
|
1305
|
-
uri: uri,
|
1306
|
-
body: body,
|
1307
|
-
options: options
|
1308
|
-
)
|
1309
|
-
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
1278
|
+
options.apply_defaults timeout: @config.timeout,
|
1279
|
+
metadata: @config.metadata
|
1310
1280
|
|
1311
|
-
|
1312
|
-
|
1281
|
+
@firewall_policies_stub.set_iam_policy request, options do |result, response|
|
1282
|
+
yield result, response if block_given?
|
1283
|
+
return result
|
1284
|
+
end
|
1313
1285
|
rescue ::Faraday::Error => e
|
1314
1286
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1315
1287
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1339,7 +1311,7 @@ module Google
|
|
1339
1311
|
# Name or id of the resource for this request.
|
1340
1312
|
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
1341
1313
|
# The body resource for this request
|
1342
|
-
# @yield [result,
|
1314
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1343
1315
|
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1344
1316
|
# @yieldparam response [::Faraday::Response]
|
1345
1317
|
#
|
@@ -1355,26 +1327,24 @@ module Google
|
|
1355
1327
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1356
1328
|
|
1357
1329
|
# Customize the options with defaults
|
1358
|
-
call_metadata =
|
1330
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1359
1331
|
|
1360
1332
|
# Set x-goog-api-client header
|
1361
1333
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1362
1334
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1363
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1335
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1336
|
+
transports_version_send: [:rest]
|
1364
1337
|
|
1365
|
-
options.apply_defaults timeout: @config.timeout,
|
1338
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1366
1339
|
metadata: call_metadata
|
1367
1340
|
|
1368
|
-
|
1369
|
-
|
1370
|
-
uri: uri,
|
1371
|
-
body: body,
|
1372
|
-
options: options
|
1373
|
-
)
|
1374
|
-
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1341
|
+
options.apply_defaults timeout: @config.timeout,
|
1342
|
+
metadata: @config.metadata
|
1375
1343
|
|
1376
|
-
|
1377
|
-
|
1344
|
+
@firewall_policies_stub.test_iam_permissions request, options do |result, response|
|
1345
|
+
yield result, response if block_given?
|
1346
|
+
return result
|
1347
|
+
end
|
1378
1348
|
rescue ::Faraday::Error => e
|
1379
1349
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
1380
1350
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -1429,6 +1399,9 @@ module Google
|
|
1429
1399
|
# @!attribute [rw] timeout
|
1430
1400
|
# The call timeout in seconds.
|
1431
1401
|
# @return [::Numeric]
|
1402
|
+
# @!attribute [rw] metadata
|
1403
|
+
# Additional REST headers to be sent with the call.
|
1404
|
+
# @return [::Hash{::Symbol=>::String}]
|
1432
1405
|
#
|
1433
1406
|
class Configuration
|
1434
1407
|
extend ::Gapic::Config
|
@@ -1442,6 +1415,7 @@ module Google
|
|
1442
1415
|
config_attr :lib_name, nil, ::String, nil
|
1443
1416
|
config_attr :lib_version, nil, ::String, nil
|
1444
1417
|
config_attr :timeout, nil, ::Numeric, nil
|
1418
|
+
config_attr :metadata, nil, ::Hash, nil
|
1445
1419
|
|
1446
1420
|
# @private
|
1447
1421
|
def initialize parent_config = nil
|
@@ -1449,6 +1423,165 @@ module Google
|
|
1449
1423
|
|
1450
1424
|
yield self if block_given?
|
1451
1425
|
end
|
1426
|
+
|
1427
|
+
##
|
1428
|
+
# Configurations for individual RPCs
|
1429
|
+
# @return [Rpcs]
|
1430
|
+
#
|
1431
|
+
def rpcs
|
1432
|
+
@rpcs ||= begin
|
1433
|
+
parent_rpcs = nil
|
1434
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1435
|
+
Rpcs.new parent_rpcs
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
##
|
1440
|
+
# Configuration RPC class for the FirewallPolicies API.
|
1441
|
+
#
|
1442
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1443
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1444
|
+
# the following configuration fields:
|
1445
|
+
#
|
1446
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1447
|
+
#
|
1448
|
+
# there is one other field (`retry_policy`) that can be set
|
1449
|
+
# but is currently not supported for REST Gapic libraries.
|
1450
|
+
#
|
1451
|
+
class Rpcs
|
1452
|
+
##
|
1453
|
+
# RPC-specific configuration for `add_association`
|
1454
|
+
# @return [::Gapic::Config::Method]
|
1455
|
+
#
|
1456
|
+
attr_reader :add_association
|
1457
|
+
##
|
1458
|
+
# RPC-specific configuration for `add_rule`
|
1459
|
+
# @return [::Gapic::Config::Method]
|
1460
|
+
#
|
1461
|
+
attr_reader :add_rule
|
1462
|
+
##
|
1463
|
+
# RPC-specific configuration for `clone_rules`
|
1464
|
+
# @return [::Gapic::Config::Method]
|
1465
|
+
#
|
1466
|
+
attr_reader :clone_rules
|
1467
|
+
##
|
1468
|
+
# RPC-specific configuration for `delete`
|
1469
|
+
# @return [::Gapic::Config::Method]
|
1470
|
+
#
|
1471
|
+
attr_reader :delete
|
1472
|
+
##
|
1473
|
+
# RPC-specific configuration for `get`
|
1474
|
+
# @return [::Gapic::Config::Method]
|
1475
|
+
#
|
1476
|
+
attr_reader :get
|
1477
|
+
##
|
1478
|
+
# RPC-specific configuration for `get_association`
|
1479
|
+
# @return [::Gapic::Config::Method]
|
1480
|
+
#
|
1481
|
+
attr_reader :get_association
|
1482
|
+
##
|
1483
|
+
# RPC-specific configuration for `get_iam_policy`
|
1484
|
+
# @return [::Gapic::Config::Method]
|
1485
|
+
#
|
1486
|
+
attr_reader :get_iam_policy
|
1487
|
+
##
|
1488
|
+
# RPC-specific configuration for `get_rule`
|
1489
|
+
# @return [::Gapic::Config::Method]
|
1490
|
+
#
|
1491
|
+
attr_reader :get_rule
|
1492
|
+
##
|
1493
|
+
# RPC-specific configuration for `insert`
|
1494
|
+
# @return [::Gapic::Config::Method]
|
1495
|
+
#
|
1496
|
+
attr_reader :insert
|
1497
|
+
##
|
1498
|
+
# RPC-specific configuration for `list`
|
1499
|
+
# @return [::Gapic::Config::Method]
|
1500
|
+
#
|
1501
|
+
attr_reader :list
|
1502
|
+
##
|
1503
|
+
# RPC-specific configuration for `list_associations`
|
1504
|
+
# @return [::Gapic::Config::Method]
|
1505
|
+
#
|
1506
|
+
attr_reader :list_associations
|
1507
|
+
##
|
1508
|
+
# RPC-specific configuration for `move`
|
1509
|
+
# @return [::Gapic::Config::Method]
|
1510
|
+
#
|
1511
|
+
attr_reader :move
|
1512
|
+
##
|
1513
|
+
# RPC-specific configuration for `patch`
|
1514
|
+
# @return [::Gapic::Config::Method]
|
1515
|
+
#
|
1516
|
+
attr_reader :patch
|
1517
|
+
##
|
1518
|
+
# RPC-specific configuration for `patch_rule`
|
1519
|
+
# @return [::Gapic::Config::Method]
|
1520
|
+
#
|
1521
|
+
attr_reader :patch_rule
|
1522
|
+
##
|
1523
|
+
# RPC-specific configuration for `remove_association`
|
1524
|
+
# @return [::Gapic::Config::Method]
|
1525
|
+
#
|
1526
|
+
attr_reader :remove_association
|
1527
|
+
##
|
1528
|
+
# RPC-specific configuration for `remove_rule`
|
1529
|
+
# @return [::Gapic::Config::Method]
|
1530
|
+
#
|
1531
|
+
attr_reader :remove_rule
|
1532
|
+
##
|
1533
|
+
# RPC-specific configuration for `set_iam_policy`
|
1534
|
+
# @return [::Gapic::Config::Method]
|
1535
|
+
#
|
1536
|
+
attr_reader :set_iam_policy
|
1537
|
+
##
|
1538
|
+
# RPC-specific configuration for `test_iam_permissions`
|
1539
|
+
# @return [::Gapic::Config::Method]
|
1540
|
+
#
|
1541
|
+
attr_reader :test_iam_permissions
|
1542
|
+
|
1543
|
+
# @private
|
1544
|
+
def initialize parent_rpcs = nil
|
1545
|
+
add_association_config = parent_rpcs.add_association if parent_rpcs.respond_to? :add_association
|
1546
|
+
@add_association = ::Gapic::Config::Method.new add_association_config
|
1547
|
+
add_rule_config = parent_rpcs.add_rule if parent_rpcs.respond_to? :add_rule
|
1548
|
+
@add_rule = ::Gapic::Config::Method.new add_rule_config
|
1549
|
+
clone_rules_config = parent_rpcs.clone_rules if parent_rpcs.respond_to? :clone_rules
|
1550
|
+
@clone_rules = ::Gapic::Config::Method.new clone_rules_config
|
1551
|
+
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|
1552
|
+
@delete = ::Gapic::Config::Method.new delete_config
|
1553
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
1554
|
+
@get = ::Gapic::Config::Method.new get_config
|
1555
|
+
get_association_config = parent_rpcs.get_association if parent_rpcs.respond_to? :get_association
|
1556
|
+
@get_association = ::Gapic::Config::Method.new get_association_config
|
1557
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
1558
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
1559
|
+
get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
|
1560
|
+
@get_rule = ::Gapic::Config::Method.new get_rule_config
|
1561
|
+
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
1562
|
+
@insert = ::Gapic::Config::Method.new insert_config
|
1563
|
+
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
1564
|
+
@list = ::Gapic::Config::Method.new list_config
|
1565
|
+
list_associations_config = parent_rpcs.list_associations if parent_rpcs.respond_to? :list_associations
|
1566
|
+
@list_associations = ::Gapic::Config::Method.new list_associations_config
|
1567
|
+
move_config = parent_rpcs.move if parent_rpcs.respond_to? :move
|
1568
|
+
@move = ::Gapic::Config::Method.new move_config
|
1569
|
+
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
1570
|
+
@patch = ::Gapic::Config::Method.new patch_config
|
1571
|
+
patch_rule_config = parent_rpcs.patch_rule if parent_rpcs.respond_to? :patch_rule
|
1572
|
+
@patch_rule = ::Gapic::Config::Method.new patch_rule_config
|
1573
|
+
remove_association_config = parent_rpcs.remove_association if parent_rpcs.respond_to? :remove_association
|
1574
|
+
@remove_association = ::Gapic::Config::Method.new remove_association_config
|
1575
|
+
remove_rule_config = parent_rpcs.remove_rule if parent_rpcs.respond_to? :remove_rule
|
1576
|
+
@remove_rule = ::Gapic::Config::Method.new remove_rule_config
|
1577
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
1578
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
1579
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
1580
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
1581
|
+
|
1582
|
+
yield self if block_given?
|
1583
|
+
end
|
1584
|
+
end
|
1452
1585
|
end
|
1453
1586
|
end
|
1454
1587
|
end
|