google-cloud-compute-v1 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +237 -20
- data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/advice.rb +47 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +573 -23
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +357 -25
- data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +508 -42
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
- data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +380 -40
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
- data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
- data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1363 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +387 -29
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1363 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
- data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
- data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
- data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/rest.rb +17 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +17 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
- metadata +87 -2
|
@@ -73,6 +73,11 @@ module Google
|
|
|
73
73
|
|
|
74
74
|
default_config.rpcs.add_signed_url_key.timeout = 600.0
|
|
75
75
|
|
|
76
|
+
default_config.rpcs.aggregated_list.timeout = 600.0
|
|
77
|
+
default_config.rpcs.aggregated_list.retry_policy = {
|
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
79
|
+
}
|
|
80
|
+
|
|
76
81
|
default_config.rpcs.delete.timeout = 600.0
|
|
77
82
|
|
|
78
83
|
default_config.rpcs.delete_signed_url_key.timeout = 600.0
|
|
@@ -94,6 +99,11 @@ module Google
|
|
|
94
99
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
95
100
|
}
|
|
96
101
|
|
|
102
|
+
default_config.rpcs.list_usable.timeout = 600.0
|
|
103
|
+
default_config.rpcs.list_usable.retry_policy = {
|
|
104
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
default_config.rpcs.patch.timeout = 600.0
|
|
98
108
|
|
|
99
109
|
default_config.rpcs.set_edge_security_policy.timeout = 600.0
|
|
@@ -223,7 +233,8 @@ module Google
|
|
|
223
233
|
# Service calls
|
|
224
234
|
|
|
225
235
|
##
|
|
226
|
-
# Adds a key for validating requests with signed URLs for this backend
|
|
236
|
+
# Adds a key for validating requests with signed URLs for this backend
|
|
237
|
+
# bucket.
|
|
227
238
|
#
|
|
228
239
|
# @overload add_signed_url_key(request, options = nil)
|
|
229
240
|
# Pass arguments to `add_signed_url_key` via a request object, either of type
|
|
@@ -241,11 +252,24 @@ module Google
|
|
|
241
252
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
242
253
|
#
|
|
243
254
|
# @param backend_bucket [::String]
|
|
244
|
-
# Name of the BackendBucket resource to which the Signed URL Key should be
|
|
255
|
+
# Name of the BackendBucket resource to which the Signed URL Key should be
|
|
256
|
+
# added. The name should conform to RFC1035.
|
|
245
257
|
# @param project [::String]
|
|
246
258
|
# Project ID for this request.
|
|
247
259
|
# @param request_id [::String]
|
|
248
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
260
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
261
|
+
# that if you must retry your request, the server will know to ignore the
|
|
262
|
+
# request if it has already been completed.
|
|
263
|
+
#
|
|
264
|
+
# For example, consider a situation where you make an initial request and
|
|
265
|
+
# the request times out. If you make the request again with the same
|
|
266
|
+
# request ID, the server can check if original operation with the same
|
|
267
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
268
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
269
|
+
#
|
|
270
|
+
# The request ID must be
|
|
271
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
272
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
249
273
|
# @param signed_url_key_resource [::Google::Cloud::Compute::V1::SignedUrlKey, ::Hash]
|
|
250
274
|
# The body resource for this request
|
|
251
275
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -315,6 +339,189 @@ module Google
|
|
|
315
339
|
raise ::Google::Cloud::Error.from_error(e)
|
|
316
340
|
end
|
|
317
341
|
|
|
342
|
+
##
|
|
343
|
+
# Retrieves the list of all BackendBucket resources, regional and global,
|
|
344
|
+
# available to the specified project.
|
|
345
|
+
#
|
|
346
|
+
# To prevent failure, it is recommended that you set the
|
|
347
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
348
|
+
#
|
|
349
|
+
# @overload aggregated_list(request, options = nil)
|
|
350
|
+
# Pass arguments to `aggregated_list` via a request object, either of type
|
|
351
|
+
# {::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest} or an equivalent Hash.
|
|
352
|
+
#
|
|
353
|
+
# @param request [::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest, ::Hash]
|
|
354
|
+
# A request object representing the call parameters. Required. To specify no
|
|
355
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
356
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
357
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
358
|
+
#
|
|
359
|
+
# @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)
|
|
360
|
+
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
|
361
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
362
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
363
|
+
#
|
|
364
|
+
# @param filter [::String]
|
|
365
|
+
# A filter expression that filters resources listed in the response. Most
|
|
366
|
+
# Compute resources support two types of filter expressions:
|
|
367
|
+
# expressions that support regular expressions and expressions that follow
|
|
368
|
+
# API improvement proposal AIP-160.
|
|
369
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
370
|
+
#
|
|
371
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
372
|
+
# operator, and the value that you want to use for filtering. The value
|
|
373
|
+
# must be a string, a number, or a boolean. The operator
|
|
374
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
375
|
+
#
|
|
376
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
377
|
+
# exclude instances named `example-instance` by specifying
|
|
378
|
+
# `name != example-instance`.
|
|
379
|
+
#
|
|
380
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
381
|
+
# For example, to find all objects with `owner` label use:
|
|
382
|
+
# ```
|
|
383
|
+
# labels.owner:*
|
|
384
|
+
# ```
|
|
385
|
+
#
|
|
386
|
+
# You can also filter nested fields. For example, you could specify
|
|
387
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
388
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
389
|
+
# on nested fields to filter based onresource labels.
|
|
390
|
+
#
|
|
391
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
392
|
+
# parentheses. For example:
|
|
393
|
+
# ```
|
|
394
|
+
# (scheduling.automaticRestart = true)
|
|
395
|
+
# (cpuPlatform = "Intel Skylake")
|
|
396
|
+
# ```
|
|
397
|
+
# By default, each expression is an `AND` expression. However, you
|
|
398
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
399
|
+
# For example:
|
|
400
|
+
# ```
|
|
401
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
402
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
403
|
+
# (scheduling.automaticRestart = true)
|
|
404
|
+
# ```
|
|
405
|
+
#
|
|
406
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
407
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
408
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
409
|
+
#
|
|
410
|
+
# `fieldname eq unquoted literal`
|
|
411
|
+
# `fieldname eq 'single quoted literal'`
|
|
412
|
+
# `fieldname eq "double quoted literal"`
|
|
413
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
414
|
+
#
|
|
415
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
416
|
+
# The literal value must match the entire field.
|
|
417
|
+
#
|
|
418
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
419
|
+
# you would use `name ne .*instance`.
|
|
420
|
+
#
|
|
421
|
+
# You cannot combine constraints on multiple fields using regular
|
|
422
|
+
# expressions.
|
|
423
|
+
# @param include_all_scopes [::Boolean]
|
|
424
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
425
|
+
# global) should be included in the response. For new resource types added
|
|
426
|
+
# after this field, the flag has no effect as new resource types will always
|
|
427
|
+
# include every visible scope for each scope type in response. For resource
|
|
428
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
429
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
430
|
+
# will be included.
|
|
431
|
+
# @param max_results [::Integer]
|
|
432
|
+
# The maximum number of results per page that should be returned.
|
|
433
|
+
# If the number of available results is larger than `maxResults`,
|
|
434
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
435
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
436
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
437
|
+
# @param order_by [::String]
|
|
438
|
+
# Sorts list results by a certain order. By default, results
|
|
439
|
+
# are returned in alphanumerical order based on the resource name.
|
|
440
|
+
#
|
|
441
|
+
# You can also sort results in descending order based on the creation
|
|
442
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
443
|
+
# results based on the `creationTimestamp` field in
|
|
444
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
445
|
+
# resources like operations so that the newest operation is returned first.
|
|
446
|
+
#
|
|
447
|
+
# Currently, only sorting by `name` or
|
|
448
|
+
# `creationTimestamp desc` is supported.
|
|
449
|
+
# @param page_token [::String]
|
|
450
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
451
|
+
# `nextPageToken` returned by a previous list request to get
|
|
452
|
+
# the next page of results.
|
|
453
|
+
# @param project [::String]
|
|
454
|
+
# Name of the project scoping this request.
|
|
455
|
+
# @param return_partial_success [::Boolean]
|
|
456
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
457
|
+
# of failure. The default value is false.
|
|
458
|
+
#
|
|
459
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
460
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
461
|
+
# with an error code.
|
|
462
|
+
# @param service_project_number [::Integer]
|
|
463
|
+
# The Shared VPC service project id or service project number for which
|
|
464
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
465
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
466
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendBucketsScopedList>]
|
|
467
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
468
|
+
#
|
|
469
|
+
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendBucketsScopedList>]
|
|
470
|
+
#
|
|
471
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
472
|
+
#
|
|
473
|
+
# @example Basic example
|
|
474
|
+
# require "google/cloud/compute/v1"
|
|
475
|
+
#
|
|
476
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
477
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
|
478
|
+
#
|
|
479
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
480
|
+
# request = Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest.new
|
|
481
|
+
#
|
|
482
|
+
# # Call the aggregated_list method.
|
|
483
|
+
# result = client.aggregated_list request
|
|
484
|
+
#
|
|
485
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendBucketAggregatedList.
|
|
486
|
+
# p result
|
|
487
|
+
#
|
|
488
|
+
def aggregated_list request, options = nil
|
|
489
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
490
|
+
|
|
491
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest
|
|
492
|
+
|
|
493
|
+
# Converts hash and nil to an options object
|
|
494
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
495
|
+
|
|
496
|
+
# Customize the options with defaults
|
|
497
|
+
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
|
498
|
+
|
|
499
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
500
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
501
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
502
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
503
|
+
transports_version_send: [:rest]
|
|
504
|
+
|
|
505
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
506
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
507
|
+
|
|
508
|
+
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
|
509
|
+
metadata: call_metadata,
|
|
510
|
+
retry_policy: @config.rpcs.aggregated_list.retry_policy
|
|
511
|
+
|
|
512
|
+
options.apply_defaults timeout: @config.timeout,
|
|
513
|
+
metadata: @config.metadata,
|
|
514
|
+
retry_policy: @config.retry_policy
|
|
515
|
+
|
|
516
|
+
@backend_buckets_stub.aggregated_list request, options do |result, operation|
|
|
517
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backend_buckets_stub, :aggregated_list, "items", request, result, options
|
|
518
|
+
yield result, operation if block_given?
|
|
519
|
+
throw :response, result
|
|
520
|
+
end
|
|
521
|
+
rescue ::Gapic::Rest::Error => e
|
|
522
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
523
|
+
end
|
|
524
|
+
|
|
318
525
|
##
|
|
319
526
|
# Deletes the specified BackendBucket resource.
|
|
320
527
|
#
|
|
@@ -338,7 +545,19 @@ module Google
|
|
|
338
545
|
# @param project [::String]
|
|
339
546
|
# Project ID for this request.
|
|
340
547
|
# @param request_id [::String]
|
|
341
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
548
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
549
|
+
# that if you must retry your request, the server will know to ignore the
|
|
550
|
+
# request if it has already been completed.
|
|
551
|
+
#
|
|
552
|
+
# For example, consider a situation where you make an initial request and
|
|
553
|
+
# the request times out. If you make the request again with the same
|
|
554
|
+
# request ID, the server can check if original operation with the same
|
|
555
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
556
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
557
|
+
#
|
|
558
|
+
# The request ID must be
|
|
559
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
560
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
342
561
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
343
562
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
344
563
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -407,7 +626,8 @@ module Google
|
|
|
407
626
|
end
|
|
408
627
|
|
|
409
628
|
##
|
|
410
|
-
# Deletes a key for validating requests with signed URLs for this backend
|
|
629
|
+
# Deletes a key for validating requests with signed URLs for this backend
|
|
630
|
+
# bucket.
|
|
411
631
|
#
|
|
412
632
|
# @overload delete_signed_url_key(request, options = nil)
|
|
413
633
|
# Pass arguments to `delete_signed_url_key` via a request object, either of type
|
|
@@ -425,13 +645,26 @@ module Google
|
|
|
425
645
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
426
646
|
#
|
|
427
647
|
# @param backend_bucket [::String]
|
|
428
|
-
# Name of the BackendBucket resource to which the Signed URL Key should be
|
|
648
|
+
# Name of the BackendBucket resource to which the Signed URL Key should be
|
|
649
|
+
# added. The name should conform to RFC1035.
|
|
429
650
|
# @param key_name [::String]
|
|
430
651
|
# The name of the Signed URL Key to delete.
|
|
431
652
|
# @param project [::String]
|
|
432
653
|
# Project ID for this request.
|
|
433
654
|
# @param request_id [::String]
|
|
434
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
655
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
656
|
+
# that if you must retry your request, the server will know to ignore the
|
|
657
|
+
# request if it has already been completed.
|
|
658
|
+
#
|
|
659
|
+
# For example, consider a situation where you make an initial request and
|
|
660
|
+
# the request times out. If you make the request again with the same
|
|
661
|
+
# request ID, the server can check if original operation with the same
|
|
662
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
663
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
664
|
+
#
|
|
665
|
+
# The request ID must be
|
|
666
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
667
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
435
668
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
436
669
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
437
670
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -580,7 +813,8 @@ module Google
|
|
|
580
813
|
end
|
|
581
814
|
|
|
582
815
|
##
|
|
583
|
-
# Gets the access control policy for a resource. May be empty if no such
|
|
816
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
817
|
+
# policy or resource exists.
|
|
584
818
|
#
|
|
585
819
|
# @overload get_iam_policy(request, options = nil)
|
|
586
820
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
@@ -662,7 +896,8 @@ module Google
|
|
|
662
896
|
end
|
|
663
897
|
|
|
664
898
|
##
|
|
665
|
-
# Creates a BackendBucket resource in the specified project using
|
|
899
|
+
# Creates a BackendBucket resource in the specified project using
|
|
900
|
+
# the data included in the request.
|
|
666
901
|
#
|
|
667
902
|
# @overload insert(request, options = nil)
|
|
668
903
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -684,7 +919,19 @@ module Google
|
|
|
684
919
|
# @param project [::String]
|
|
685
920
|
# Project ID for this request.
|
|
686
921
|
# @param request_id [::String]
|
|
687
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
922
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
923
|
+
# that if you must retry your request, the server will know to ignore the
|
|
924
|
+
# request if it has already been completed.
|
|
925
|
+
#
|
|
926
|
+
# For example, consider a situation where you make an initial request and
|
|
927
|
+
# the request times out. If you make the request again with the same
|
|
928
|
+
# request ID, the server can check if original operation with the same
|
|
929
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
930
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
931
|
+
#
|
|
932
|
+
# The request ID must be
|
|
933
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
934
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
688
935
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
689
936
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
690
937
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -753,7 +1000,8 @@ module Google
|
|
|
753
1000
|
end
|
|
754
1001
|
|
|
755
1002
|
##
|
|
756
|
-
# Retrieves the list of BackendBucket resources available to the specified
|
|
1003
|
+
# Retrieves the list of BackendBucket resources available to the specified
|
|
1004
|
+
# project.
|
|
757
1005
|
#
|
|
758
1006
|
# @overload list(request, options = nil)
|
|
759
1007
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -771,17 +1019,95 @@ module Google
|
|
|
771
1019
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
772
1020
|
#
|
|
773
1021
|
# @param filter [::String]
|
|
774
|
-
# A filter expression that filters resources listed in the response. Most
|
|
1022
|
+
# A filter expression that filters resources listed in the response. Most
|
|
1023
|
+
# Compute resources support two types of filter expressions:
|
|
1024
|
+
# expressions that support regular expressions and expressions that follow
|
|
1025
|
+
# API improvement proposal AIP-160.
|
|
1026
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
1027
|
+
#
|
|
1028
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
1029
|
+
# operator, and the value that you want to use for filtering. The value
|
|
1030
|
+
# must be a string, a number, or a boolean. The operator
|
|
1031
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
1032
|
+
#
|
|
1033
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
1034
|
+
# exclude instances named `example-instance` by specifying
|
|
1035
|
+
# `name != example-instance`.
|
|
1036
|
+
#
|
|
1037
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
1038
|
+
# For example, to find all objects with `owner` label use:
|
|
1039
|
+
# ```
|
|
1040
|
+
# labels.owner:*
|
|
1041
|
+
# ```
|
|
1042
|
+
#
|
|
1043
|
+
# You can also filter nested fields. For example, you could specify
|
|
1044
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
1045
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
1046
|
+
# on nested fields to filter based onresource labels.
|
|
1047
|
+
#
|
|
1048
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1049
|
+
# parentheses. For example:
|
|
1050
|
+
# ```
|
|
1051
|
+
# (scheduling.automaticRestart = true)
|
|
1052
|
+
# (cpuPlatform = "Intel Skylake")
|
|
1053
|
+
# ```
|
|
1054
|
+
# By default, each expression is an `AND` expression. However, you
|
|
1055
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
1056
|
+
# For example:
|
|
1057
|
+
# ```
|
|
1058
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
1059
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
1060
|
+
# (scheduling.automaticRestart = true)
|
|
1061
|
+
# ```
|
|
1062
|
+
#
|
|
1063
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
1064
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
1065
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
1066
|
+
#
|
|
1067
|
+
# `fieldname eq unquoted literal`
|
|
1068
|
+
# `fieldname eq 'single quoted literal'`
|
|
1069
|
+
# `fieldname eq "double quoted literal"`
|
|
1070
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
1071
|
+
#
|
|
1072
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
1073
|
+
# The literal value must match the entire field.
|
|
1074
|
+
#
|
|
1075
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
1076
|
+
# you would use `name ne .*instance`.
|
|
1077
|
+
#
|
|
1078
|
+
# You cannot combine constraints on multiple fields using regular
|
|
1079
|
+
# expressions.
|
|
775
1080
|
# @param max_results [::Integer]
|
|
776
|
-
# The maximum number of results per page that should be returned.
|
|
1081
|
+
# The maximum number of results per page that should be returned.
|
|
1082
|
+
# If the number of available results is larger than `maxResults`,
|
|
1083
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
1084
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
1085
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
777
1086
|
# @param order_by [::String]
|
|
778
|
-
# Sorts list results by a certain order. By default, results
|
|
1087
|
+
# Sorts list results by a certain order. By default, results
|
|
1088
|
+
# are returned in alphanumerical order based on the resource name.
|
|
1089
|
+
#
|
|
1090
|
+
# You can also sort results in descending order based on the creation
|
|
1091
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
1092
|
+
# results based on the `creationTimestamp` field in
|
|
1093
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
1094
|
+
# resources like operations so that the newest operation is returned first.
|
|
1095
|
+
#
|
|
1096
|
+
# Currently, only sorting by `name` or
|
|
1097
|
+
# `creationTimestamp desc` is supported.
|
|
779
1098
|
# @param page_token [::String]
|
|
780
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
1099
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
1100
|
+
# `nextPageToken` returned by a previous list request to get
|
|
1101
|
+
# the next page of results.
|
|
781
1102
|
# @param project [::String]
|
|
782
1103
|
# Project ID for this request.
|
|
783
1104
|
# @param return_partial_success [::Boolean]
|
|
784
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
1105
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
1106
|
+
# of failure. The default value is false.
|
|
1107
|
+
#
|
|
1108
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
1109
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
1110
|
+
# with an error code.
|
|
785
1111
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
786
1112
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
|
|
787
1113
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -843,7 +1169,178 @@ module Google
|
|
|
843
1169
|
end
|
|
844
1170
|
|
|
845
1171
|
##
|
|
846
|
-
#
|
|
1172
|
+
# Retrieves a list of all usable backend buckets in the specified project.
|
|
1173
|
+
#
|
|
1174
|
+
# @overload list_usable(request, options = nil)
|
|
1175
|
+
# Pass arguments to `list_usable` via a request object, either of type
|
|
1176
|
+
# {::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest} or an equivalent Hash.
|
|
1177
|
+
#
|
|
1178
|
+
# @param request [::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest, ::Hash]
|
|
1179
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1180
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1181
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1182
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1183
|
+
#
|
|
1184
|
+
# @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
|
1185
|
+
# Pass arguments to `list_usable` via keyword arguments. Note that at
|
|
1186
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1187
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1188
|
+
#
|
|
1189
|
+
# @param filter [::String]
|
|
1190
|
+
# A filter expression that filters resources listed in the response. Most
|
|
1191
|
+
# Compute resources support two types of filter expressions:
|
|
1192
|
+
# expressions that support regular expressions and expressions that follow
|
|
1193
|
+
# API improvement proposal AIP-160.
|
|
1194
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
1195
|
+
#
|
|
1196
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
1197
|
+
# operator, and the value that you want to use for filtering. The value
|
|
1198
|
+
# must be a string, a number, or a boolean. The operator
|
|
1199
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
1200
|
+
#
|
|
1201
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
1202
|
+
# exclude instances named `example-instance` by specifying
|
|
1203
|
+
# `name != example-instance`.
|
|
1204
|
+
#
|
|
1205
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
1206
|
+
# For example, to find all objects with `owner` label use:
|
|
1207
|
+
# ```
|
|
1208
|
+
# labels.owner:*
|
|
1209
|
+
# ```
|
|
1210
|
+
#
|
|
1211
|
+
# You can also filter nested fields. For example, you could specify
|
|
1212
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
1213
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
1214
|
+
# on nested fields to filter based onresource labels.
|
|
1215
|
+
#
|
|
1216
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1217
|
+
# parentheses. For example:
|
|
1218
|
+
# ```
|
|
1219
|
+
# (scheduling.automaticRestart = true)
|
|
1220
|
+
# (cpuPlatform = "Intel Skylake")
|
|
1221
|
+
# ```
|
|
1222
|
+
# By default, each expression is an `AND` expression. However, you
|
|
1223
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
1224
|
+
# For example:
|
|
1225
|
+
# ```
|
|
1226
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
1227
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
1228
|
+
# (scheduling.automaticRestart = true)
|
|
1229
|
+
# ```
|
|
1230
|
+
#
|
|
1231
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
1232
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
1233
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
1234
|
+
#
|
|
1235
|
+
# `fieldname eq unquoted literal`
|
|
1236
|
+
# `fieldname eq 'single quoted literal'`
|
|
1237
|
+
# `fieldname eq "double quoted literal"`
|
|
1238
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
1239
|
+
#
|
|
1240
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
1241
|
+
# The literal value must match the entire field.
|
|
1242
|
+
#
|
|
1243
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
1244
|
+
# you would use `name ne .*instance`.
|
|
1245
|
+
#
|
|
1246
|
+
# You cannot combine constraints on multiple fields using regular
|
|
1247
|
+
# expressions.
|
|
1248
|
+
# @param max_results [::Integer]
|
|
1249
|
+
# The maximum number of results per page that should be returned.
|
|
1250
|
+
# If the number of available results is larger than `maxResults`,
|
|
1251
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
1252
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
1253
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
1254
|
+
# @param order_by [::String]
|
|
1255
|
+
# Sorts list results by a certain order. By default, results
|
|
1256
|
+
# are returned in alphanumerical order based on the resource name.
|
|
1257
|
+
#
|
|
1258
|
+
# You can also sort results in descending order based on the creation
|
|
1259
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
1260
|
+
# results based on the `creationTimestamp` field in
|
|
1261
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
1262
|
+
# resources like operations so that the newest operation is returned first.
|
|
1263
|
+
#
|
|
1264
|
+
# Currently, only sorting by `name` or
|
|
1265
|
+
# `creationTimestamp desc` is supported.
|
|
1266
|
+
# @param page_token [::String]
|
|
1267
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
1268
|
+
# `nextPageToken` returned by a previous list request to get
|
|
1269
|
+
# the next page of results.
|
|
1270
|
+
# @param project [::String]
|
|
1271
|
+
# Project ID for this request.
|
|
1272
|
+
# @param return_partial_success [::Boolean]
|
|
1273
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
1274
|
+
# of failure. The default value is false.
|
|
1275
|
+
#
|
|
1276
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
1277
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
1278
|
+
# with an error code.
|
|
1279
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1280
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
|
|
1281
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1282
|
+
#
|
|
1283
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
|
|
1284
|
+
#
|
|
1285
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1286
|
+
#
|
|
1287
|
+
# @example Basic example
|
|
1288
|
+
# require "google/cloud/compute/v1"
|
|
1289
|
+
#
|
|
1290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1291
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
|
1292
|
+
#
|
|
1293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1294
|
+
# request = Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest.new
|
|
1295
|
+
#
|
|
1296
|
+
# # Call the list_usable method.
|
|
1297
|
+
# result = client.list_usable request
|
|
1298
|
+
#
|
|
1299
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendBucketListUsable.
|
|
1300
|
+
# p result
|
|
1301
|
+
#
|
|
1302
|
+
def list_usable request, options = nil
|
|
1303
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1304
|
+
|
|
1305
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest
|
|
1306
|
+
|
|
1307
|
+
# Converts hash and nil to an options object
|
|
1308
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1309
|
+
|
|
1310
|
+
# Customize the options with defaults
|
|
1311
|
+
call_metadata = @config.rpcs.list_usable.metadata.to_h
|
|
1312
|
+
|
|
1313
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1314
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1315
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1316
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
1317
|
+
transports_version_send: [:rest]
|
|
1318
|
+
|
|
1319
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1320
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1321
|
+
|
|
1322
|
+
options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
|
|
1323
|
+
metadata: call_metadata,
|
|
1324
|
+
retry_policy: @config.rpcs.list_usable.retry_policy
|
|
1325
|
+
|
|
1326
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1327
|
+
metadata: @config.metadata,
|
|
1328
|
+
retry_policy: @config.retry_policy
|
|
1329
|
+
|
|
1330
|
+
@backend_buckets_stub.list_usable request, options do |result, operation|
|
|
1331
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backend_buckets_stub, :list_usable, "items", request, result, options
|
|
1332
|
+
yield result, operation if block_given?
|
|
1333
|
+
throw :response, result
|
|
1334
|
+
end
|
|
1335
|
+
rescue ::Gapic::Rest::Error => e
|
|
1336
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
##
|
|
1340
|
+
# Updates the specified BackendBucket resource with the data included in the
|
|
1341
|
+
# request. This method supportsPATCH
|
|
1342
|
+
# semantics and uses theJSON merge
|
|
1343
|
+
# patch format and processing rules.
|
|
847
1344
|
#
|
|
848
1345
|
# @overload patch(request, options = nil)
|
|
849
1346
|
# Pass arguments to `patch` via a request object, either of type
|
|
@@ -867,7 +1364,19 @@ module Google
|
|
|
867
1364
|
# @param project [::String]
|
|
868
1365
|
# Project ID for this request.
|
|
869
1366
|
# @param request_id [::String]
|
|
870
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1367
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1368
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1369
|
+
# request if it has already been completed.
|
|
1370
|
+
#
|
|
1371
|
+
# For example, consider a situation where you make an initial request and
|
|
1372
|
+
# the request times out. If you make the request again with the same
|
|
1373
|
+
# request ID, the server can check if original operation with the same
|
|
1374
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1375
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1376
|
+
#
|
|
1377
|
+
# The request ID must be
|
|
1378
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1379
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
871
1380
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
872
1381
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
873
1382
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -954,11 +1463,24 @@ module Google
|
|
|
954
1463
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
955
1464
|
#
|
|
956
1465
|
# @param backend_bucket [::String]
|
|
957
|
-
# Name of the BackendBucket resource to which the security policy should be
|
|
1466
|
+
# Name of the BackendBucket resource to which the security policy should be
|
|
1467
|
+
# set. The name should conform to RFC1035.
|
|
958
1468
|
# @param project [::String]
|
|
959
1469
|
# Project ID for this request.
|
|
960
1470
|
# @param request_id [::String]
|
|
961
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1471
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1472
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1473
|
+
# request if it has already been completed.
|
|
1474
|
+
#
|
|
1475
|
+
# For example, consider a situation where you make an initial request and
|
|
1476
|
+
# the request times out. If you make the request again with the same
|
|
1477
|
+
# request ID, the server can check if original operation with the same
|
|
1478
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1479
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1480
|
+
#
|
|
1481
|
+
# The request ID must be
|
|
1482
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1483
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
962
1484
|
# @param security_policy_reference_resource [::Google::Cloud::Compute::V1::SecurityPolicyReference, ::Hash]
|
|
963
1485
|
# The body resource for this request
|
|
964
1486
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1029,7 +1551,8 @@ module Google
|
|
|
1029
1551
|
end
|
|
1030
1552
|
|
|
1031
1553
|
##
|
|
1032
|
-
# Sets the access control policy on the specified resource.
|
|
1554
|
+
# Sets the access control policy on the specified resource.
|
|
1555
|
+
# Replaces any existing policy.
|
|
1033
1556
|
#
|
|
1034
1557
|
# @overload set_iam_policy(request, options = nil)
|
|
1035
1558
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
@@ -1193,7 +1716,8 @@ module Google
|
|
|
1193
1716
|
end
|
|
1194
1717
|
|
|
1195
1718
|
##
|
|
1196
|
-
# Updates the specified BackendBucket resource with the data included in the
|
|
1719
|
+
# Updates the specified BackendBucket resource with the data included in the
|
|
1720
|
+
# request.
|
|
1197
1721
|
#
|
|
1198
1722
|
# @overload update(request, options = nil)
|
|
1199
1723
|
# Pass arguments to `update` via a request object, either of type
|
|
@@ -1217,7 +1741,19 @@ module Google
|
|
|
1217
1741
|
# @param project [::String]
|
|
1218
1742
|
# Project ID for this request.
|
|
1219
1743
|
# @param request_id [::String]
|
|
1220
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1744
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1745
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1746
|
+
# request if it has already been completed.
|
|
1747
|
+
#
|
|
1748
|
+
# For example, consider a situation where you make an initial request and
|
|
1749
|
+
# the request times out. If you make the request again with the same
|
|
1750
|
+
# request ID, the server can check if original operation with the same
|
|
1751
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1752
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1753
|
+
#
|
|
1754
|
+
# The request ID must be
|
|
1755
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1756
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1221
1757
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1222
1758
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1223
1759
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1437,6 +1973,11 @@ module Google
|
|
|
1437
1973
|
#
|
|
1438
1974
|
attr_reader :add_signed_url_key
|
|
1439
1975
|
##
|
|
1976
|
+
# RPC-specific configuration for `aggregated_list`
|
|
1977
|
+
# @return [::Gapic::Config::Method]
|
|
1978
|
+
#
|
|
1979
|
+
attr_reader :aggregated_list
|
|
1980
|
+
##
|
|
1440
1981
|
# RPC-specific configuration for `delete`
|
|
1441
1982
|
# @return [::Gapic::Config::Method]
|
|
1442
1983
|
#
|
|
@@ -1467,6 +2008,11 @@ module Google
|
|
|
1467
2008
|
#
|
|
1468
2009
|
attr_reader :list
|
|
1469
2010
|
##
|
|
2011
|
+
# RPC-specific configuration for `list_usable`
|
|
2012
|
+
# @return [::Gapic::Config::Method]
|
|
2013
|
+
#
|
|
2014
|
+
attr_reader :list_usable
|
|
2015
|
+
##
|
|
1470
2016
|
# RPC-specific configuration for `patch`
|
|
1471
2017
|
# @return [::Gapic::Config::Method]
|
|
1472
2018
|
#
|
|
@@ -1496,6 +2042,8 @@ module Google
|
|
|
1496
2042
|
def initialize parent_rpcs = nil
|
|
1497
2043
|
add_signed_url_key_config = parent_rpcs.add_signed_url_key if parent_rpcs.respond_to? :add_signed_url_key
|
|
1498
2044
|
@add_signed_url_key = ::Gapic::Config::Method.new add_signed_url_key_config
|
|
2045
|
+
aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
|
|
2046
|
+
@aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
|
|
1499
2047
|
delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
|
|
1500
2048
|
@delete = ::Gapic::Config::Method.new delete_config
|
|
1501
2049
|
delete_signed_url_key_config = parent_rpcs.delete_signed_url_key if parent_rpcs.respond_to? :delete_signed_url_key
|
|
@@ -1508,6 +2056,8 @@ module Google
|
|
|
1508
2056
|
@insert = ::Gapic::Config::Method.new insert_config
|
|
1509
2057
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
|
1510
2058
|
@list = ::Gapic::Config::Method.new list_config
|
|
2059
|
+
list_usable_config = parent_rpcs.list_usable if parent_rpcs.respond_to? :list_usable
|
|
2060
|
+
@list_usable = ::Gapic::Config::Method.new list_usable_config
|
|
1511
2061
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
|
1512
2062
|
@patch = ::Gapic::Config::Method.new patch_config
|
|
1513
2063
|
set_edge_security_policy_config = parent_rpcs.set_edge_security_policy if parent_rpcs.respond_to? :set_edge_security_policy
|