google-cloud-compute-v1 2.14.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +36 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +42 -13
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +45 -17
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -98
- data/lib/google/cloud/compute/v1/compute_pb.rb +57 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +36 -4
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +48 -19
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +158 -110
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +38 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +45 -19
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +158 -110
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +41 -9
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +36 -6
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +35 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +34 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/images/rest/client.rb +40 -12
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +473 -21
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +428 -120
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +42 -10
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +73 -50
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +398 -290
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +39 -10
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +39 -9
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +34 -3
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +36 -4
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +39 -10
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +41 -10
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +150 -17
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +202 -97
- data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +529 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +204 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/network_profiles.rb +47 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +43 -12
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +45 -16
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +134 -92
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +36 -4
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +39 -8
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +46 -15
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +126 -86
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +41 -9
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +41 -13
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +47 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +150 -104
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +472 -20
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +420 -114
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +35 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +44 -18
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +150 -104
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +35 -5
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +146 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +149 -55
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +38 -7
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +39 -8
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +35 -2
- data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +22 -8
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +40 -11
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +94 -62
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +39 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +41 -12
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +37 -5
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +43 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +39 -10
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +39 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +36 -4
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +38 -20
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +38 -11
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +94 -62
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +42 -13
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +38 -6
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +54 -32
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +44 -12
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +102 -68
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +44 -13
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +110 -74
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +42 -10
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +40 -8
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +70 -44
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +41 -10
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +86 -56
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +39 -9
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +78 -50
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +39 -7
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +62 -38
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +35 -5
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +46 -26
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +35 -3
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +30 -14
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1010 -55
- metadata +11 -9
@@ -75,6 +75,11 @@ module Google
|
|
75
75
|
|
76
76
|
default_config.rpcs.add_rule.timeout = 600.0
|
77
77
|
|
78
|
+
default_config.rpcs.aggregated_list.timeout = 600.0
|
79
|
+
default_config.rpcs.aggregated_list.retry_policy = {
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
81
|
+
}
|
82
|
+
|
78
83
|
default_config.rpcs.clone_rules.timeout = 600.0
|
79
84
|
|
80
85
|
default_config.rpcs.delete.timeout = 600.0
|
@@ -203,8 +208,19 @@ module Google
|
|
203
208
|
endpoint: @config.endpoint,
|
204
209
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
205
210
|
universe_domain: @config.universe_domain,
|
206
|
-
credentials: credentials
|
211
|
+
credentials: credentials,
|
212
|
+
logger: @config.logger
|
207
213
|
)
|
214
|
+
|
215
|
+
@network_firewall_policies_stub.logger(stub: true)&.info do |entry|
|
216
|
+
entry.set_system_name
|
217
|
+
entry.set_service
|
218
|
+
entry.message = "Created client for #{entry.service}"
|
219
|
+
entry.set_credentials_fields credentials
|
220
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
221
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
222
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
223
|
+
end
|
208
224
|
end
|
209
225
|
|
210
226
|
##
|
@@ -214,6 +230,15 @@ module Google
|
|
214
230
|
#
|
215
231
|
attr_reader :global_operations
|
216
232
|
|
233
|
+
##
|
234
|
+
# The logger used for request/response debug logging.
|
235
|
+
#
|
236
|
+
# @return [Logger]
|
237
|
+
#
|
238
|
+
def logger
|
239
|
+
@network_firewall_policies_stub.logger
|
240
|
+
end
|
241
|
+
|
217
242
|
# Service calls
|
218
243
|
|
219
244
|
##
|
@@ -305,7 +330,7 @@ module Google
|
|
305
330
|
options: options
|
306
331
|
)
|
307
332
|
yield result, response if block_given?
|
308
|
-
|
333
|
+
throw :response, result
|
309
334
|
end
|
310
335
|
rescue ::Gapic::Rest::Error => e
|
311
336
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -402,7 +427,101 @@ module Google
|
|
402
427
|
options: options
|
403
428
|
)
|
404
429
|
yield result, response if block_given?
|
405
|
-
|
430
|
+
throw :response, result
|
431
|
+
end
|
432
|
+
rescue ::Gapic::Rest::Error => e
|
433
|
+
raise ::Google::Cloud::Error.from_error(e)
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
|
438
|
+
#
|
439
|
+
# @overload aggregated_list(request, options = nil)
|
440
|
+
# Pass arguments to `aggregated_list` via a request object, either of type
|
441
|
+
# {::Google::Cloud::Compute::V1::AggregatedListNetworkFirewallPoliciesRequest} or an equivalent Hash.
|
442
|
+
#
|
443
|
+
# @param request [::Google::Cloud::Compute::V1::AggregatedListNetworkFirewallPoliciesRequest, ::Hash]
|
444
|
+
# A request object representing the call parameters. Required. To specify no
|
445
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
446
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
447
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
448
|
+
#
|
449
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
450
|
+
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
451
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
452
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
453
|
+
#
|
454
|
+
# @param filter [::String]
|
455
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The 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`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
456
|
+
# @param include_all_scopes [::Boolean]
|
457
|
+
# 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.
|
458
|
+
# @param max_results [::Integer]
|
459
|
+
# 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`)
|
460
|
+
# @param order_by [::String]
|
461
|
+
# 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.
|
462
|
+
# @param page_token [::String]
|
463
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
464
|
+
# @param project [::String]
|
465
|
+
# Project ID for this request.
|
466
|
+
# @param return_partial_success [::Boolean]
|
467
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
468
|
+
# @param service_project_number [::Integer]
|
469
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
470
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
471
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::FirewallPoliciesScopedList>]
|
472
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
473
|
+
#
|
474
|
+
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::FirewallPoliciesScopedList>]
|
475
|
+
#
|
476
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
477
|
+
#
|
478
|
+
# @example Basic example
|
479
|
+
# require "google/cloud/compute/v1"
|
480
|
+
#
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
482
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
483
|
+
#
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
485
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNetworkFirewallPoliciesRequest.new
|
486
|
+
#
|
487
|
+
# # Call the aggregated_list method.
|
488
|
+
# result = client.aggregated_list request
|
489
|
+
#
|
490
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkFirewallPolicyAggregatedList.
|
491
|
+
# p result
|
492
|
+
#
|
493
|
+
def aggregated_list request, options = nil
|
494
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
495
|
+
|
496
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListNetworkFirewallPoliciesRequest
|
497
|
+
|
498
|
+
# Converts hash and nil to an options object
|
499
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
500
|
+
|
501
|
+
# Customize the options with defaults
|
502
|
+
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
503
|
+
|
504
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
505
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
506
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
507
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
508
|
+
transports_version_send: [:rest]
|
509
|
+
|
510
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
511
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
512
|
+
|
513
|
+
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
514
|
+
metadata: call_metadata,
|
515
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
516
|
+
|
517
|
+
options.apply_defaults timeout: @config.timeout,
|
518
|
+
metadata: @config.metadata,
|
519
|
+
retry_policy: @config.retry_policy
|
520
|
+
|
521
|
+
@network_firewall_policies_stub.aggregated_list request, options do |result, operation|
|
522
|
+
result = ::Gapic::Rest::PagedEnumerable.new @network_firewall_policies_stub, :aggregated_list, "items", request, result, options
|
523
|
+
yield result, operation if block_given?
|
524
|
+
throw :response, result
|
406
525
|
end
|
407
526
|
rescue ::Gapic::Rest::Error => e
|
408
527
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -495,7 +614,7 @@ module Google
|
|
495
614
|
options: options
|
496
615
|
)
|
497
616
|
yield result, response if block_given?
|
498
|
-
|
617
|
+
throw :response, result
|
499
618
|
end
|
500
619
|
rescue ::Gapic::Rest::Error => e
|
501
620
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -586,7 +705,7 @@ module Google
|
|
586
705
|
options: options
|
587
706
|
)
|
588
707
|
yield result, response if block_given?
|
589
|
-
|
708
|
+
throw :response, result
|
590
709
|
end
|
591
710
|
rescue ::Gapic::Rest::Error => e
|
592
711
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -667,7 +786,6 @@ module Google
|
|
667
786
|
|
668
787
|
@network_firewall_policies_stub.get request, options do |result, operation|
|
669
788
|
yield result, operation if block_given?
|
670
|
-
return result
|
671
789
|
end
|
672
790
|
rescue ::Gapic::Rest::Error => e
|
673
791
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -750,7 +868,6 @@ module Google
|
|
750
868
|
|
751
869
|
@network_firewall_policies_stub.get_association request, options do |result, operation|
|
752
870
|
yield result, operation if block_given?
|
753
|
-
return result
|
754
871
|
end
|
755
872
|
rescue ::Gapic::Rest::Error => e
|
756
873
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -833,7 +950,6 @@ module Google
|
|
833
950
|
|
834
951
|
@network_firewall_policies_stub.get_iam_policy request, options do |result, operation|
|
835
952
|
yield result, operation if block_given?
|
836
|
-
return result
|
837
953
|
end
|
838
954
|
rescue ::Gapic::Rest::Error => e
|
839
955
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -916,7 +1032,6 @@ module Google
|
|
916
1032
|
|
917
1033
|
@network_firewall_policies_stub.get_rule request, options do |result, operation|
|
918
1034
|
yield result, operation if block_given?
|
919
|
-
return result
|
920
1035
|
end
|
921
1036
|
rescue ::Gapic::Rest::Error => e
|
922
1037
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1007,7 +1122,7 @@ module Google
|
|
1007
1122
|
options: options
|
1008
1123
|
)
|
1009
1124
|
yield result, response if block_given?
|
1010
|
-
|
1125
|
+
throw :response, result
|
1011
1126
|
end
|
1012
1127
|
rescue ::Gapic::Rest::Error => e
|
1013
1128
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1097,7 +1212,7 @@ module Google
|
|
1097
1212
|
@network_firewall_policies_stub.list request, options do |result, operation|
|
1098
1213
|
result = ::Gapic::Rest::PagedEnumerable.new @network_firewall_policies_stub, :list, "items", request, result, options
|
1099
1214
|
yield result, operation if block_given?
|
1100
|
-
|
1215
|
+
throw :response, result
|
1101
1216
|
end
|
1102
1217
|
rescue ::Gapic::Rest::Error => e
|
1103
1218
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1190,7 +1305,7 @@ module Google
|
|
1190
1305
|
options: options
|
1191
1306
|
)
|
1192
1307
|
yield result, response if block_given?
|
1193
|
-
|
1308
|
+
throw :response, result
|
1194
1309
|
end
|
1195
1310
|
rescue ::Gapic::Rest::Error => e
|
1196
1311
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1285,7 +1400,7 @@ module Google
|
|
1285
1400
|
options: options
|
1286
1401
|
)
|
1287
1402
|
yield result, response if block_given?
|
1288
|
-
|
1403
|
+
throw :response, result
|
1289
1404
|
end
|
1290
1405
|
rescue ::Gapic::Rest::Error => e
|
1291
1406
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1378,7 +1493,7 @@ module Google
|
|
1378
1493
|
options: options
|
1379
1494
|
)
|
1380
1495
|
yield result, response if block_given?
|
1381
|
-
|
1496
|
+
throw :response, result
|
1382
1497
|
end
|
1383
1498
|
rescue ::Gapic::Rest::Error => e
|
1384
1499
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1471,7 +1586,7 @@ module Google
|
|
1471
1586
|
options: options
|
1472
1587
|
)
|
1473
1588
|
yield result, response if block_given?
|
1474
|
-
|
1589
|
+
throw :response, result
|
1475
1590
|
end
|
1476
1591
|
rescue ::Gapic::Rest::Error => e
|
1477
1592
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1554,7 +1669,6 @@ module Google
|
|
1554
1669
|
|
1555
1670
|
@network_firewall_policies_stub.set_iam_policy request, options do |result, operation|
|
1556
1671
|
yield result, operation if block_given?
|
1557
|
-
return result
|
1558
1672
|
end
|
1559
1673
|
rescue ::Gapic::Rest::Error => e
|
1560
1674
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1637,7 +1751,6 @@ module Google
|
|
1637
1751
|
|
1638
1752
|
@network_firewall_policies_stub.test_iam_permissions request, options do |result, operation|
|
1639
1753
|
yield result, operation if block_given?
|
1640
|
-
return result
|
1641
1754
|
end
|
1642
1755
|
rescue ::Gapic::Rest::Error => e
|
1643
1756
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1685,6 +1798,13 @@ module Google
|
|
1685
1798
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1686
1799
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1687
1800
|
# * (`nil`) indicating no credentials
|
1801
|
+
#
|
1802
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1803
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1804
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1805
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1806
|
+
# For more information, refer to [Validate credential configurations from external
|
1807
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1688
1808
|
# @return [::Object]
|
1689
1809
|
# @!attribute [rw] scope
|
1690
1810
|
# The OAuth scopes
|
@@ -1717,6 +1837,11 @@ module Google
|
|
1717
1837
|
# default endpoint URL. The default value of nil uses the environment
|
1718
1838
|
# universe (usually the default "googleapis.com" universe).
|
1719
1839
|
# @return [::String,nil]
|
1840
|
+
# @!attribute [rw] logger
|
1841
|
+
# A custom logger to use for request/response debug logging, or the value
|
1842
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1843
|
+
# explicitly disable logging.
|
1844
|
+
# @return [::Logger,:default,nil]
|
1720
1845
|
#
|
1721
1846
|
class Configuration
|
1722
1847
|
extend ::Gapic::Config
|
@@ -1738,6 +1863,7 @@ module Google
|
|
1738
1863
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1739
1864
|
config_attr :quota_project, nil, ::String, nil
|
1740
1865
|
config_attr :universe_domain, nil, ::String, nil
|
1866
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1741
1867
|
|
1742
1868
|
# @private
|
1743
1869
|
def initialize parent_config = nil
|
@@ -1787,6 +1913,11 @@ module Google
|
|
1787
1913
|
#
|
1788
1914
|
attr_reader :add_rule
|
1789
1915
|
##
|
1916
|
+
# RPC-specific configuration for `aggregated_list`
|
1917
|
+
# @return [::Gapic::Config::Method]
|
1918
|
+
#
|
1919
|
+
attr_reader :aggregated_list
|
1920
|
+
##
|
1790
1921
|
# RPC-specific configuration for `clone_rules`
|
1791
1922
|
# @return [::Gapic::Config::Method]
|
1792
1923
|
#
|
@@ -1863,6 +1994,8 @@ module Google
|
|
1863
1994
|
@add_association = ::Gapic::Config::Method.new add_association_config
|
1864
1995
|
add_rule_config = parent_rpcs.add_rule if parent_rpcs.respond_to? :add_rule
|
1865
1996
|
@add_rule = ::Gapic::Config::Method.new add_rule_config
|
1997
|
+
aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
|
1998
|
+
@aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
|
1866
1999
|
clone_rules_config = parent_rpcs.clone_rules if parent_rpcs.respond_to? :clone_rules
|
1867
2000
|
@clone_rules = ::Gapic::Config::Method.new clone_rules_config
|
1868
2001
|
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|