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/target_https_proxies/rest/service_stub"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -31,8 +32,6 @@ module Google
|
|
31
32
|
# The TargetHttpsProxies API.
|
32
33
|
#
|
33
34
|
class Client
|
34
|
-
include GrpcTranscoding
|
35
|
-
|
36
35
|
# @private
|
37
36
|
attr_reader :target_https_proxies_stub
|
38
37
|
|
@@ -42,13 +41,12 @@ module Google
|
|
42
41
|
# See {::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client::Configuration}
|
43
42
|
# for a description of the configuration fields.
|
44
43
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# To modify the configuration for all TargetHttpsProxies clients:
|
44
|
+
# @example
|
48
45
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# # Modify the configuration for all TargetHttpsProxies clients
|
47
|
+
# ::Google::Cloud::Compute::V1::TargetHttpsProxies::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,35 @@ module Google
|
|
66
64
|
end
|
67
65
|
default_config = Client::Configuration.new parent_config
|
68
66
|
|
67
|
+
default_config.rpcs.aggregated_list.timeout = 600.0
|
68
|
+
default_config.rpcs.aggregated_list.retry_policy = {
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
70
|
+
}
|
71
|
+
|
72
|
+
default_config.rpcs.delete.timeout = 600.0
|
73
|
+
|
74
|
+
default_config.rpcs.get.timeout = 600.0
|
75
|
+
default_config.rpcs.get.retry_policy = {
|
76
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
77
|
+
}
|
78
|
+
|
79
|
+
default_config.rpcs.insert.timeout = 600.0
|
80
|
+
|
81
|
+
default_config.rpcs.list.timeout = 600.0
|
82
|
+
default_config.rpcs.list.retry_policy = {
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
84
|
+
}
|
85
|
+
|
86
|
+
default_config.rpcs.patch.timeout = 600.0
|
87
|
+
|
88
|
+
default_config.rpcs.set_quic_override.timeout = 600.0
|
89
|
+
|
90
|
+
default_config.rpcs.set_ssl_certificates.timeout = 600.0
|
91
|
+
|
92
|
+
default_config.rpcs.set_ssl_policy.timeout = 600.0
|
93
|
+
|
94
|
+
default_config.rpcs.set_url_map.timeout = 600.0
|
95
|
+
|
69
96
|
default_config
|
70
97
|
end
|
71
98
|
yield @configure if block_given?
|
@@ -95,28 +122,20 @@ module Google
|
|
95
122
|
##
|
96
123
|
# Create a new TargetHttpsProxies REST client object.
|
97
124
|
#
|
98
|
-
#
|
125
|
+
# @example
|
99
126
|
#
|
100
|
-
#
|
101
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
102
129
|
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new do |config|
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
130
|
+
# # Create a client using a custom configuration
|
131
|
+
# client = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new do |config|
|
132
|
+
# config.timeout = 10.0
|
133
|
+
# end
|
111
134
|
#
|
112
135
|
# @yield [config] Configure the TargetHttpsProxies client.
|
113
136
|
# @yieldparam config [Client::Configuration]
|
114
137
|
#
|
115
138
|
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
139
|
# Create the configuration object
|
121
140
|
@config = Configuration.new Client.configure
|
122
141
|
|
@@ -126,11 +145,11 @@ module Google
|
|
126
145
|
# Create credentials
|
127
146
|
credentials = @config.credentials
|
128
147
|
credentials ||= Credentials.default scope: @config.scope
|
129
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
148
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
130
149
|
credentials = Credentials.new credentials, scope: @config.scope
|
131
150
|
end
|
132
151
|
|
133
|
-
@
|
152
|
+
@target_https_proxies_stub = ::Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
134
153
|
end
|
135
154
|
|
136
155
|
# Service calls
|
@@ -156,34 +175,24 @@ module Google
|
|
156
175
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
157
176
|
#
|
158
177
|
# @param filter [::String]
|
159
|
-
# 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 `<`.
|
160
|
-
#
|
161
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
162
|
-
#
|
163
|
-
# 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.
|
164
|
-
#
|
165
|
-
# 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) ```
|
178
|
+
# 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) ```
|
166
179
|
# @param include_all_scopes [::Boolean]
|
167
180
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
168
181
|
# @param max_results [::Integer]
|
169
182
|
# 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`)
|
170
183
|
# @param order_by [::String]
|
171
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
172
|
-
#
|
173
|
-
# 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.
|
174
|
-
#
|
175
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
184
|
+
# 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.
|
176
185
|
# @param page_token [::String]
|
177
186
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
178
187
|
# @param project [::String]
|
179
188
|
# Name of the project scoping this request.
|
180
189
|
# @param return_partial_success [::Boolean]
|
181
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
182
|
-
# @yield [result,
|
183
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
190
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
191
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
192
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetHttpsProxiesScopedList>]
|
184
193
|
# @yieldparam response [::Faraday::Response]
|
185
194
|
#
|
186
|
-
# @return [::Google::Cloud::Compute::V1::
|
195
|
+
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetHttpsProxiesScopedList>]
|
187
196
|
#
|
188
197
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
189
198
|
def aggregated_list request, options = nil
|
@@ -195,7 +204,7 @@ module Google
|
|
195
204
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
196
205
|
|
197
206
|
# Customize the options with defaults
|
198
|
-
call_metadata =
|
207
|
+
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
199
208
|
|
200
209
|
# Set x-goog-api-client header
|
201
210
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -203,19 +212,17 @@ module Google
|
|
203
212
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
204
213
|
transports_version_send: [:rest]
|
205
214
|
|
206
|
-
options.apply_defaults timeout: @config.timeout,
|
215
|
+
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
207
216
|
metadata: call_metadata
|
208
217
|
|
209
|
-
|
210
|
-
|
211
|
-
uri: uri,
|
212
|
-
params: query_string_params,
|
213
|
-
options: options
|
214
|
-
)
|
215
|
-
result = ::Google::Cloud::Compute::V1::TargetHttpsProxyAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
218
|
+
options.apply_defaults timeout: @config.timeout,
|
219
|
+
metadata: @config.metadata
|
216
220
|
|
217
|
-
|
218
|
-
|
221
|
+
@target_https_proxies_stub.aggregated_list request, options do |result, response|
|
222
|
+
result = ::Gapic::Rest::PagedEnumerable.new @target_https_proxies_stub, :aggregated_list, "items", request, result, options
|
223
|
+
yield result, response if block_given?
|
224
|
+
return result
|
225
|
+
end
|
219
226
|
rescue ::Faraday::Error => e
|
220
227
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
221
228
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -244,18 +251,14 @@ module Google
|
|
244
251
|
# @param project [::String]
|
245
252
|
# Project ID for this request.
|
246
253
|
# @param request_id [::String]
|
247
|
-
# 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.
|
248
|
-
#
|
249
|
-
# 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.
|
250
|
-
#
|
251
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
254
|
+
# 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).
|
252
255
|
# @param target_https_proxy [::String]
|
253
256
|
# Name of the TargetHttpsProxy resource to delete.
|
254
|
-
# @yield [result,
|
255
|
-
# @yieldparam result [::
|
257
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
258
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
256
259
|
# @yieldparam response [::Faraday::Response]
|
257
260
|
#
|
258
|
-
# @return [::
|
261
|
+
# @return [::Gapic::Rest::BaseOperation]
|
259
262
|
#
|
260
263
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
261
264
|
def delete request, options = nil
|
@@ -267,7 +270,7 @@ module Google
|
|
267
270
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
268
271
|
|
269
272
|
# Customize the options with defaults
|
270
|
-
call_metadata =
|
273
|
+
call_metadata = @config.rpcs.delete.metadata.to_h
|
271
274
|
|
272
275
|
# Set x-goog-api-client header
|
273
276
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -275,19 +278,17 @@ module Google
|
|
275
278
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
276
279
|
transports_version_send: [:rest]
|
277
280
|
|
278
|
-
options.apply_defaults timeout: @config.timeout,
|
281
|
+
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
279
282
|
metadata: call_metadata
|
280
283
|
|
281
|
-
|
282
|
-
|
283
|
-
uri: uri,
|
284
|
-
params: query_string_params,
|
285
|
-
options: options
|
286
|
-
)
|
287
|
-
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
284
|
+
options.apply_defaults timeout: @config.timeout,
|
285
|
+
metadata: @config.metadata
|
288
286
|
|
289
|
-
|
290
|
-
|
287
|
+
@target_https_proxies_stub.delete request, options do |result, response|
|
288
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
289
|
+
yield result, response if block_given?
|
290
|
+
return result
|
291
|
+
end
|
291
292
|
rescue ::Faraday::Error => e
|
292
293
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
293
294
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -317,7 +318,7 @@ module Google
|
|
317
318
|
# Project ID for this request.
|
318
319
|
# @param target_https_proxy [::String]
|
319
320
|
# Name of the TargetHttpsProxy resource to return.
|
320
|
-
# @yield [result,
|
321
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
321
322
|
# @yieldparam result [::Google::Cloud::Compute::V1::TargetHttpsProxy]
|
322
323
|
# @yieldparam response [::Faraday::Response]
|
323
324
|
#
|
@@ -333,7 +334,7 @@ module Google
|
|
333
334
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
334
335
|
|
335
336
|
# Customize the options with defaults
|
336
|
-
call_metadata =
|
337
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
337
338
|
|
338
339
|
# Set x-goog-api-client header
|
339
340
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -341,18 +342,16 @@ module Google
|
|
341
342
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
342
343
|
transports_version_send: [:rest]
|
343
344
|
|
344
|
-
options.apply_defaults timeout: @config.timeout,
|
345
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
345
346
|
metadata: call_metadata
|
346
347
|
|
347
|
-
|
348
|
-
|
349
|
-
uri: uri,
|
350
|
-
options: options
|
351
|
-
)
|
352
|
-
result = ::Google::Cloud::Compute::V1::TargetHttpsProxy.decode_json response.body, ignore_unknown_fields: true
|
348
|
+
options.apply_defaults timeout: @config.timeout,
|
349
|
+
metadata: @config.metadata
|
353
350
|
|
354
|
-
|
355
|
-
|
351
|
+
@target_https_proxies_stub.get request, options do |result, response|
|
352
|
+
yield result, response if block_given?
|
353
|
+
return result
|
354
|
+
end
|
356
355
|
rescue ::Faraday::Error => e
|
357
356
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
358
357
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -381,18 +380,14 @@ module Google
|
|
381
380
|
# @param project [::String]
|
382
381
|
# Project ID for this request.
|
383
382
|
# @param request_id [::String]
|
384
|
-
# 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.
|
385
|
-
#
|
386
|
-
# 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.
|
387
|
-
#
|
388
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
383
|
+
# 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).
|
389
384
|
# @param target_https_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpsProxy, ::Hash]
|
390
385
|
# The body resource for this request
|
391
|
-
# @yield [result,
|
392
|
-
# @yieldparam result [::
|
386
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
387
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
393
388
|
# @yieldparam response [::Faraday::Response]
|
394
389
|
#
|
395
|
-
# @return [::
|
390
|
+
# @return [::Gapic::Rest::BaseOperation]
|
396
391
|
#
|
397
392
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
398
393
|
def insert request, options = nil
|
@@ -404,7 +399,7 @@ module Google
|
|
404
399
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
405
400
|
|
406
401
|
# Customize the options with defaults
|
407
|
-
call_metadata =
|
402
|
+
call_metadata = @config.rpcs.insert.metadata.to_h
|
408
403
|
|
409
404
|
# Set x-goog-api-client header
|
410
405
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -412,20 +407,17 @@ module Google
|
|
412
407
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
413
408
|
transports_version_send: [:rest]
|
414
409
|
|
415
|
-
options.apply_defaults timeout: @config.timeout,
|
410
|
+
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
416
411
|
metadata: call_metadata
|
417
412
|
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
yield result, response if block_given?
|
428
|
-
result
|
413
|
+
options.apply_defaults timeout: @config.timeout,
|
414
|
+
metadata: @config.metadata
|
415
|
+
|
416
|
+
@target_https_proxies_stub.insert request, options do |result, response|
|
417
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
418
|
+
yield result, response if block_given?
|
419
|
+
return result
|
420
|
+
end
|
429
421
|
rescue ::Faraday::Error => e
|
430
422
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
431
423
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -452,32 +444,22 @@ module Google
|
|
452
444
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
453
445
|
#
|
454
446
|
# @param filter [::String]
|
455
|
-
# 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 `<`.
|
456
|
-
#
|
457
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
458
|
-
#
|
459
|
-
# 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.
|
460
|
-
#
|
461
|
-
# 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) ```
|
447
|
+
# 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) ```
|
462
448
|
# @param max_results [::Integer]
|
463
449
|
# 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`)
|
464
450
|
# @param order_by [::String]
|
465
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
466
|
-
#
|
467
|
-
# 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.
|
468
|
-
#
|
469
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
451
|
+
# 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.
|
470
452
|
# @param page_token [::String]
|
471
453
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
472
454
|
# @param project [::String]
|
473
455
|
# Project ID for this request.
|
474
456
|
# @param return_partial_success [::Boolean]
|
475
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false
|
476
|
-
# @yield [result,
|
477
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
457
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
458
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
459
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetHttpsProxy>]
|
478
460
|
# @yieldparam response [::Faraday::Response]
|
479
461
|
#
|
480
|
-
# @return [::Google::Cloud::Compute::V1::
|
462
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetHttpsProxy>]
|
481
463
|
#
|
482
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
483
465
|
def list request, options = nil
|
@@ -489,7 +471,7 @@ module Google
|
|
489
471
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
490
472
|
|
491
473
|
# Customize the options with defaults
|
492
|
-
call_metadata =
|
474
|
+
call_metadata = @config.rpcs.list.metadata.to_h
|
493
475
|
|
494
476
|
# Set x-goog-api-client header
|
495
477
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -497,19 +479,85 @@ module Google
|
|
497
479
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
498
480
|
transports_version_send: [:rest]
|
499
481
|
|
482
|
+
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
483
|
+
metadata: call_metadata
|
484
|
+
|
500
485
|
options.apply_defaults timeout: @config.timeout,
|
486
|
+
metadata: @config.metadata
|
487
|
+
|
488
|
+
@target_https_proxies_stub.list request, options do |result, response|
|
489
|
+
result = ::Gapic::Rest::PagedEnumerable.new @target_https_proxies_stub, :list, "items", request, result, options
|
490
|
+
yield result, response if block_given?
|
491
|
+
return result
|
492
|
+
end
|
493
|
+
rescue ::Faraday::Error => e
|
494
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
495
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
496
|
+
end
|
497
|
+
|
498
|
+
##
|
499
|
+
# Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
|
500
|
+
#
|
501
|
+
# @overload patch(request, options = nil)
|
502
|
+
# Pass arguments to `patch` via a request object, either of type
|
503
|
+
# {::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest} or an equivalent Hash.
|
504
|
+
#
|
505
|
+
# @param request [::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest, ::Hash]
|
506
|
+
# A request object representing the call parameters. Required. To specify no
|
507
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
508
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
509
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
510
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
511
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
512
|
+
#
|
513
|
+
# @overload patch(project: nil, request_id: nil, target_https_proxy: nil, target_https_proxy_resource: nil)
|
514
|
+
# Pass arguments to `patch` via keyword arguments. Note that at
|
515
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
516
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
517
|
+
#
|
518
|
+
# @param project [::String]
|
519
|
+
# Project ID for this request.
|
520
|
+
# @param request_id [::String]
|
521
|
+
# 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). end_interface: MixerMutationRequestBuilder
|
522
|
+
# @param target_https_proxy [::String]
|
523
|
+
# Name of the TargetHttpsProxy resource to patch.
|
524
|
+
# @param target_https_proxy_resource [::Google::Cloud::Compute::V1::TargetHttpsProxy, ::Hash]
|
525
|
+
# The body resource for this request
|
526
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
527
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
528
|
+
# @yieldparam response [::Faraday::Response]
|
529
|
+
#
|
530
|
+
# @return [::Gapic::Rest::BaseOperation]
|
531
|
+
#
|
532
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
533
|
+
def patch request, options = nil
|
534
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
535
|
+
|
536
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest
|
537
|
+
|
538
|
+
# Converts hash and nil to an options object
|
539
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
540
|
+
|
541
|
+
# Customize the options with defaults
|
542
|
+
call_metadata = @config.rpcs.patch.metadata.to_h
|
543
|
+
|
544
|
+
# Set x-goog-api-client header
|
545
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
546
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
547
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
548
|
+
transports_version_send: [:rest]
|
549
|
+
|
550
|
+
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
501
551
|
metadata: call_metadata
|
502
552
|
|
503
|
-
|
504
|
-
|
505
|
-
uri: uri,
|
506
|
-
params: query_string_params,
|
507
|
-
options: options
|
508
|
-
)
|
509
|
-
result = ::Google::Cloud::Compute::V1::TargetHttpsProxyList.decode_json response.body, ignore_unknown_fields: true
|
553
|
+
options.apply_defaults timeout: @config.timeout,
|
554
|
+
metadata: @config.metadata
|
510
555
|
|
511
|
-
|
512
|
-
|
556
|
+
@target_https_proxies_stub.patch request, options do |result, response|
|
557
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
558
|
+
yield result, response if block_given?
|
559
|
+
return result
|
560
|
+
end
|
513
561
|
rescue ::Faraday::Error => e
|
514
562
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
515
563
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -538,20 +586,16 @@ module Google
|
|
538
586
|
# @param project [::String]
|
539
587
|
# Project ID for this request.
|
540
588
|
# @param request_id [::String]
|
541
|
-
# 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.
|
542
|
-
#
|
543
|
-
# 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.
|
544
|
-
#
|
545
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
589
|
+
# 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).
|
546
590
|
# @param target_https_proxies_set_quic_override_request_resource [::Google::Cloud::Compute::V1::TargetHttpsProxiesSetQuicOverrideRequest, ::Hash]
|
547
591
|
# The body resource for this request
|
548
592
|
# @param target_https_proxy [::String]
|
549
593
|
# Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.
|
550
|
-
# @yield [result,
|
551
|
-
# @yieldparam result [::
|
594
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
595
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
552
596
|
# @yieldparam response [::Faraday::Response]
|
553
597
|
#
|
554
|
-
# @return [::
|
598
|
+
# @return [::Gapic::Rest::BaseOperation]
|
555
599
|
#
|
556
600
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
557
601
|
def set_quic_override request, options = nil
|
@@ -563,7 +607,7 @@ module Google
|
|
563
607
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
564
608
|
|
565
609
|
# Customize the options with defaults
|
566
|
-
call_metadata =
|
610
|
+
call_metadata = @config.rpcs.set_quic_override.metadata.to_h
|
567
611
|
|
568
612
|
# Set x-goog-api-client header
|
569
613
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -571,20 +615,17 @@ module Google
|
|
571
615
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
572
616
|
transports_version_send: [:rest]
|
573
617
|
|
574
|
-
options.apply_defaults timeout: @config.timeout,
|
618
|
+
options.apply_defaults timeout: @config.rpcs.set_quic_override.timeout,
|
575
619
|
metadata: call_metadata
|
576
620
|
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
yield result, response if block_given?
|
587
|
-
result
|
621
|
+
options.apply_defaults timeout: @config.timeout,
|
622
|
+
metadata: @config.metadata
|
623
|
+
|
624
|
+
@target_https_proxies_stub.set_quic_override request, options do |result, response|
|
625
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
626
|
+
yield result, response if block_given?
|
627
|
+
return result
|
628
|
+
end
|
588
629
|
rescue ::Faraday::Error => e
|
589
630
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
590
631
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -613,20 +654,16 @@ module Google
|
|
613
654
|
# @param project [::String]
|
614
655
|
# Project ID for this request.
|
615
656
|
# @param request_id [::String]
|
616
|
-
# 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.
|
617
|
-
#
|
618
|
-
# 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.
|
619
|
-
#
|
620
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
657
|
+
# 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).
|
621
658
|
# @param target_https_proxies_set_ssl_certificates_request_resource [::Google::Cloud::Compute::V1::TargetHttpsProxiesSetSslCertificatesRequest, ::Hash]
|
622
659
|
# The body resource for this request
|
623
660
|
# @param target_https_proxy [::String]
|
624
661
|
# Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
|
625
|
-
# @yield [result,
|
626
|
-
# @yieldparam result [::
|
662
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
663
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
627
664
|
# @yieldparam response [::Faraday::Response]
|
628
665
|
#
|
629
|
-
# @return [::
|
666
|
+
# @return [::Gapic::Rest::BaseOperation]
|
630
667
|
#
|
631
668
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
632
669
|
def set_ssl_certificates request, options = nil
|
@@ -638,7 +675,7 @@ module Google
|
|
638
675
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
639
676
|
|
640
677
|
# Customize the options with defaults
|
641
|
-
call_metadata =
|
678
|
+
call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
|
642
679
|
|
643
680
|
# Set x-goog-api-client header
|
644
681
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -646,20 +683,17 @@ module Google
|
|
646
683
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
647
684
|
transports_version_send: [:rest]
|
648
685
|
|
649
|
-
options.apply_defaults timeout: @config.timeout,
|
686
|
+
options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
|
650
687
|
metadata: call_metadata
|
651
688
|
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
yield result, response if block_given?
|
662
|
-
result
|
689
|
+
options.apply_defaults timeout: @config.timeout,
|
690
|
+
metadata: @config.metadata
|
691
|
+
|
692
|
+
@target_https_proxies_stub.set_ssl_certificates request, options do |result, response|
|
693
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
694
|
+
yield result, response if block_given?
|
695
|
+
return result
|
696
|
+
end
|
663
697
|
rescue ::Faraday::Error => e
|
664
698
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
665
699
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -688,20 +722,16 @@ module Google
|
|
688
722
|
# @param project [::String]
|
689
723
|
# Project ID for this request.
|
690
724
|
# @param request_id [::String]
|
691
|
-
# 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.
|
692
|
-
#
|
693
|
-
# 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.
|
694
|
-
#
|
695
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
725
|
+
# 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).
|
696
726
|
# @param ssl_policy_reference_resource [::Google::Cloud::Compute::V1::SslPolicyReference, ::Hash]
|
697
727
|
# The body resource for this request
|
698
728
|
# @param target_https_proxy [::String]
|
699
729
|
# Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
|
700
|
-
# @yield [result,
|
701
|
-
# @yieldparam result [::
|
730
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
731
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
702
732
|
# @yieldparam response [::Faraday::Response]
|
703
733
|
#
|
704
|
-
# @return [::
|
734
|
+
# @return [::Gapic::Rest::BaseOperation]
|
705
735
|
#
|
706
736
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
707
737
|
def set_ssl_policy request, options = nil
|
@@ -713,7 +743,7 @@ module Google
|
|
713
743
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
714
744
|
|
715
745
|
# Customize the options with defaults
|
716
|
-
call_metadata =
|
746
|
+
call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
|
717
747
|
|
718
748
|
# Set x-goog-api-client header
|
719
749
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -721,20 +751,17 @@ module Google
|
|
721
751
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
722
752
|
transports_version_send: [:rest]
|
723
753
|
|
724
|
-
options.apply_defaults timeout: @config.timeout,
|
754
|
+
options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
|
725
755
|
metadata: call_metadata
|
726
756
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
yield result, response if block_given?
|
737
|
-
result
|
757
|
+
options.apply_defaults timeout: @config.timeout,
|
758
|
+
metadata: @config.metadata
|
759
|
+
|
760
|
+
@target_https_proxies_stub.set_ssl_policy request, options do |result, response|
|
761
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
762
|
+
yield result, response if block_given?
|
763
|
+
return result
|
764
|
+
end
|
738
765
|
rescue ::Faraday::Error => e
|
739
766
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
740
767
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -763,20 +790,16 @@ module Google
|
|
763
790
|
# @param project [::String]
|
764
791
|
# Project ID for this request.
|
765
792
|
# @param request_id [::String]
|
766
|
-
# 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.
|
767
|
-
#
|
768
|
-
# 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.
|
769
|
-
#
|
770
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
793
|
+
# 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).
|
771
794
|
# @param target_https_proxy [::String]
|
772
795
|
# Name of the TargetHttpsProxy resource whose URL map is to be set.
|
773
796
|
# @param url_map_reference_resource [::Google::Cloud::Compute::V1::UrlMapReference, ::Hash]
|
774
797
|
# The body resource for this request
|
775
|
-
# @yield [result,
|
776
|
-
# @yieldparam result [::
|
798
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
799
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
777
800
|
# @yieldparam response [::Faraday::Response]
|
778
801
|
#
|
779
|
-
# @return [::
|
802
|
+
# @return [::Gapic::Rest::BaseOperation]
|
780
803
|
#
|
781
804
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
782
805
|
def set_url_map request, options = nil
|
@@ -788,7 +811,7 @@ module Google
|
|
788
811
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
789
812
|
|
790
813
|
# Customize the options with defaults
|
791
|
-
call_metadata =
|
814
|
+
call_metadata = @config.rpcs.set_url_map.metadata.to_h
|
792
815
|
|
793
816
|
# Set x-goog-api-client header
|
794
817
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -796,20 +819,17 @@ module Google
|
|
796
819
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
797
820
|
transports_version_send: [:rest]
|
798
821
|
|
799
|
-
options.apply_defaults timeout: @config.timeout,
|
822
|
+
options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
|
800
823
|
metadata: call_metadata
|
801
824
|
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
yield result, response if block_given?
|
812
|
-
result
|
825
|
+
options.apply_defaults timeout: @config.timeout,
|
826
|
+
metadata: @config.metadata
|
827
|
+
|
828
|
+
@target_https_proxies_stub.set_url_map request, options do |result, response|
|
829
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
830
|
+
yield result, response if block_given?
|
831
|
+
return result
|
832
|
+
end
|
813
833
|
rescue ::Faraday::Error => e
|
814
834
|
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
815
835
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
@@ -864,6 +884,9 @@ module Google
|
|
864
884
|
# @!attribute [rw] timeout
|
865
885
|
# The call timeout in seconds.
|
866
886
|
# @return [::Numeric]
|
887
|
+
# @!attribute [rw] metadata
|
888
|
+
# Additional REST headers to be sent with the call.
|
889
|
+
# @return [::Hash{::Symbol=>::String}]
|
867
890
|
#
|
868
891
|
class Configuration
|
869
892
|
extend ::Gapic::Config
|
@@ -877,6 +900,7 @@ module Google
|
|
877
900
|
config_attr :lib_name, nil, ::String, nil
|
878
901
|
config_attr :lib_version, nil, ::String, nil
|
879
902
|
config_attr :timeout, nil, ::Numeric, nil
|
903
|
+
config_attr :metadata, nil, ::Hash, nil
|
880
904
|
|
881
905
|
# @private
|
882
906
|
def initialize parent_config = nil
|
@@ -884,6 +908,109 @@ module Google
|
|
884
908
|
|
885
909
|
yield self if block_given?
|
886
910
|
end
|
911
|
+
|
912
|
+
##
|
913
|
+
# Configurations for individual RPCs
|
914
|
+
# @return [Rpcs]
|
915
|
+
#
|
916
|
+
def rpcs
|
917
|
+
@rpcs ||= begin
|
918
|
+
parent_rpcs = nil
|
919
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
920
|
+
Rpcs.new parent_rpcs
|
921
|
+
end
|
922
|
+
end
|
923
|
+
|
924
|
+
##
|
925
|
+
# Configuration RPC class for the TargetHttpsProxies API.
|
926
|
+
#
|
927
|
+
# Includes fields providing the configuration for each RPC in this service.
|
928
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
929
|
+
# the following configuration fields:
|
930
|
+
#
|
931
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
932
|
+
#
|
933
|
+
# there is one other field (`retry_policy`) that can be set
|
934
|
+
# but is currently not supported for REST Gapic libraries.
|
935
|
+
#
|
936
|
+
class Rpcs
|
937
|
+
##
|
938
|
+
# RPC-specific configuration for `aggregated_list`
|
939
|
+
# @return [::Gapic::Config::Method]
|
940
|
+
#
|
941
|
+
attr_reader :aggregated_list
|
942
|
+
##
|
943
|
+
# RPC-specific configuration for `delete`
|
944
|
+
# @return [::Gapic::Config::Method]
|
945
|
+
#
|
946
|
+
attr_reader :delete
|
947
|
+
##
|
948
|
+
# RPC-specific configuration for `get`
|
949
|
+
# @return [::Gapic::Config::Method]
|
950
|
+
#
|
951
|
+
attr_reader :get
|
952
|
+
##
|
953
|
+
# RPC-specific configuration for `insert`
|
954
|
+
# @return [::Gapic::Config::Method]
|
955
|
+
#
|
956
|
+
attr_reader :insert
|
957
|
+
##
|
958
|
+
# RPC-specific configuration for `list`
|
959
|
+
# @return [::Gapic::Config::Method]
|
960
|
+
#
|
961
|
+
attr_reader :list
|
962
|
+
##
|
963
|
+
# RPC-specific configuration for `patch`
|
964
|
+
# @return [::Gapic::Config::Method]
|
965
|
+
#
|
966
|
+
attr_reader :patch
|
967
|
+
##
|
968
|
+
# RPC-specific configuration for `set_quic_override`
|
969
|
+
# @return [::Gapic::Config::Method]
|
970
|
+
#
|
971
|
+
attr_reader :set_quic_override
|
972
|
+
##
|
973
|
+
# RPC-specific configuration for `set_ssl_certificates`
|
974
|
+
# @return [::Gapic::Config::Method]
|
975
|
+
#
|
976
|
+
attr_reader :set_ssl_certificates
|
977
|
+
##
|
978
|
+
# RPC-specific configuration for `set_ssl_policy`
|
979
|
+
# @return [::Gapic::Config::Method]
|
980
|
+
#
|
981
|
+
attr_reader :set_ssl_policy
|
982
|
+
##
|
983
|
+
# RPC-specific configuration for `set_url_map`
|
984
|
+
# @return [::Gapic::Config::Method]
|
985
|
+
#
|
986
|
+
attr_reader :set_url_map
|
987
|
+
|
988
|
+
# @private
|
989
|
+
def initialize parent_rpcs = nil
|
990
|
+
aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
|
991
|
+
@aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
|
992
|
+
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|
993
|
+
@delete = ::Gapic::Config::Method.new delete_config
|
994
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
995
|
+
@get = ::Gapic::Config::Method.new get_config
|
996
|
+
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
997
|
+
@insert = ::Gapic::Config::Method.new insert_config
|
998
|
+
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
999
|
+
@list = ::Gapic::Config::Method.new list_config
|
1000
|
+
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
1001
|
+
@patch = ::Gapic::Config::Method.new patch_config
|
1002
|
+
set_quic_override_config = parent_rpcs.set_quic_override if parent_rpcs.respond_to? :set_quic_override
|
1003
|
+
@set_quic_override = ::Gapic::Config::Method.new set_quic_override_config
|
1004
|
+
set_ssl_certificates_config = parent_rpcs.set_ssl_certificates if parent_rpcs.respond_to? :set_ssl_certificates
|
1005
|
+
@set_ssl_certificates = ::Gapic::Config::Method.new set_ssl_certificates_config
|
1006
|
+
set_ssl_policy_config = parent_rpcs.set_ssl_policy if parent_rpcs.respond_to? :set_ssl_policy
|
1007
|
+
@set_ssl_policy = ::Gapic::Config::Method.new set_ssl_policy_config
|
1008
|
+
set_url_map_config = parent_rpcs.set_url_map if parent_rpcs.respond_to? :set_url_map
|
1009
|
+
@set_url_map = ::Gapic::Config::Method.new set_url_map_config
|
1010
|
+
|
1011
|
+
yield self if block_given?
|
1012
|
+
end
|
1013
|
+
end
|
887
1014
|
end
|
888
1015
|
end
|
889
1016
|
end
|