google-cloud-compute-v1 2.4.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -196,6 +196,22 @@ module Google
|
|
196
196
|
# @return [::Gapic::GenericLRO::Operation]
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
199
|
+
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/compute/v1"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Compute::V1::DeleteExternalVpnGatewayRequest.new
|
208
|
+
#
|
209
|
+
# # Call the delete method.
|
210
|
+
# result = client.delete request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
213
|
+
# p result
|
214
|
+
#
|
199
215
|
def delete request, options = nil
|
200
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
201
217
|
|
@@ -268,6 +284,22 @@ module Google
|
|
268
284
|
# @return [::Google::Cloud::Compute::V1::ExternalVpnGateway]
|
269
285
|
#
|
270
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
287
|
+
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/compute/v1"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::Compute::V1::GetExternalVpnGatewayRequest.new
|
296
|
+
#
|
297
|
+
# # Call the get method.
|
298
|
+
# result = client.get request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ExternalVpnGateway.
|
301
|
+
# p result
|
302
|
+
#
|
271
303
|
def get request, options = nil
|
272
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
305
|
|
@@ -334,6 +366,22 @@ module Google
|
|
334
366
|
# @return [::Gapic::GenericLRO::Operation]
|
335
367
|
#
|
336
368
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
369
|
+
#
|
370
|
+
# @example Basic example
|
371
|
+
# require "google/cloud/compute/v1"
|
372
|
+
#
|
373
|
+
# # Create a client object. The client can be reused for multiple calls.
|
374
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
375
|
+
#
|
376
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
377
|
+
# request = Google::Cloud::Compute::V1::InsertExternalVpnGatewayRequest.new
|
378
|
+
#
|
379
|
+
# # Call the insert method.
|
380
|
+
# result = client.insert request
|
381
|
+
#
|
382
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
383
|
+
# p result
|
384
|
+
#
|
337
385
|
def insert request, options = nil
|
338
386
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
339
387
|
|
@@ -396,7 +444,7 @@ module Google
|
|
396
444
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
397
445
|
#
|
398
446
|
# @param filter [::String]
|
399
|
-
# 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. 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
|
447
|
+
# 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.
|
400
448
|
# @param max_results [::Integer]
|
401
449
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
402
450
|
# @param order_by [::String]
|
@@ -414,6 +462,22 @@ module Google
|
|
414
462
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExternalVpnGateway>]
|
415
463
|
#
|
416
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
465
|
+
#
|
466
|
+
# @example Basic example
|
467
|
+
# require "google/cloud/compute/v1"
|
468
|
+
#
|
469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
470
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
471
|
+
#
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
473
|
+
# request = Google::Cloud::Compute::V1::ListExternalVpnGatewaysRequest.new
|
474
|
+
#
|
475
|
+
# # Call the list method.
|
476
|
+
# result = client.list request
|
477
|
+
#
|
478
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ExternalVpnGatewayList.
|
479
|
+
# p result
|
480
|
+
#
|
417
481
|
def list request, options = nil
|
418
482
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
483
|
|
@@ -481,6 +545,22 @@ module Google
|
|
481
545
|
# @return [::Gapic::GenericLRO::Operation]
|
482
546
|
#
|
483
547
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
548
|
+
#
|
549
|
+
# @example Basic example
|
550
|
+
# require "google/cloud/compute/v1"
|
551
|
+
#
|
552
|
+
# # Create a client object. The client can be reused for multiple calls.
|
553
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
554
|
+
#
|
555
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
556
|
+
# request = Google::Cloud::Compute::V1::SetLabelsExternalVpnGatewayRequest.new
|
557
|
+
#
|
558
|
+
# # Call the set_labels method.
|
559
|
+
# result = client.set_labels request
|
560
|
+
#
|
561
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
562
|
+
# p result
|
563
|
+
#
|
484
564
|
def set_labels request, options = nil
|
485
565
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
486
566
|
|
@@ -555,6 +635,22 @@ module Google
|
|
555
635
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
556
636
|
#
|
557
637
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
638
|
+
#
|
639
|
+
# @example Basic example
|
640
|
+
# require "google/cloud/compute/v1"
|
641
|
+
#
|
642
|
+
# # Create a client object. The client can be reused for multiple calls.
|
643
|
+
# client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
|
644
|
+
#
|
645
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
646
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsExternalVpnGatewayRequest.new
|
647
|
+
#
|
648
|
+
# # Call the test_iam_permissions method.
|
649
|
+
# result = client.test_iam_permissions request
|
650
|
+
#
|
651
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
652
|
+
# p result
|
653
|
+
#
|
558
654
|
def test_iam_permissions request, options = nil
|
559
655
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
560
656
|
|
@@ -234,6 +234,22 @@ module Google
|
|
234
234
|
# @return [::Gapic::GenericLRO::Operation]
|
235
235
|
#
|
236
236
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
237
|
+
#
|
238
|
+
# @example Basic example
|
239
|
+
# require "google/cloud/compute/v1"
|
240
|
+
#
|
241
|
+
# # Create a client object. The client can be reused for multiple calls.
|
242
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
243
|
+
#
|
244
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
245
|
+
# request = Google::Cloud::Compute::V1::AddAssociationFirewallPolicyRequest.new
|
246
|
+
#
|
247
|
+
# # Call the add_association method.
|
248
|
+
# result = client.add_association request
|
249
|
+
#
|
250
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
251
|
+
# p result
|
252
|
+
#
|
237
253
|
def add_association request, options = nil
|
238
254
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
239
255
|
|
@@ -306,6 +322,22 @@ module Google
|
|
306
322
|
# @return [::Gapic::GenericLRO::Operation]
|
307
323
|
#
|
308
324
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
325
|
+
#
|
326
|
+
# @example Basic example
|
327
|
+
# require "google/cloud/compute/v1"
|
328
|
+
#
|
329
|
+
# # Create a client object. The client can be reused for multiple calls.
|
330
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
331
|
+
#
|
332
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
333
|
+
# request = Google::Cloud::Compute::V1::AddRuleFirewallPolicyRequest.new
|
334
|
+
#
|
335
|
+
# # Call the add_rule method.
|
336
|
+
# result = client.add_rule request
|
337
|
+
#
|
338
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
339
|
+
# p result
|
340
|
+
#
|
309
341
|
def add_rule request, options = nil
|
310
342
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
343
|
|
@@ -378,6 +410,22 @@ module Google
|
|
378
410
|
# @return [::Gapic::GenericLRO::Operation]
|
379
411
|
#
|
380
412
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
413
|
+
#
|
414
|
+
# @example Basic example
|
415
|
+
# require "google/cloud/compute/v1"
|
416
|
+
#
|
417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
418
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
419
|
+
#
|
420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
421
|
+
# request = Google::Cloud::Compute::V1::CloneRulesFirewallPolicyRequest.new
|
422
|
+
#
|
423
|
+
# # Call the clone_rules method.
|
424
|
+
# result = client.clone_rules request
|
425
|
+
#
|
426
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
427
|
+
# p result
|
428
|
+
#
|
381
429
|
def clone_rules request, options = nil
|
382
430
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
383
431
|
|
@@ -448,6 +496,22 @@ module Google
|
|
448
496
|
# @return [::Gapic::GenericLRO::Operation]
|
449
497
|
#
|
450
498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
499
|
+
#
|
500
|
+
# @example Basic example
|
501
|
+
# require "google/cloud/compute/v1"
|
502
|
+
#
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
504
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
505
|
+
#
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
507
|
+
# request = Google::Cloud::Compute::V1::DeleteFirewallPolicyRequest.new
|
508
|
+
#
|
509
|
+
# # Call the delete method.
|
510
|
+
# result = client.delete request
|
511
|
+
#
|
512
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
513
|
+
# p result
|
514
|
+
#
|
451
515
|
def delete request, options = nil
|
452
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
453
517
|
|
@@ -516,6 +580,22 @@ module Google
|
|
516
580
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicy]
|
517
581
|
#
|
518
582
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
583
|
+
#
|
584
|
+
# @example Basic example
|
585
|
+
# require "google/cloud/compute/v1"
|
586
|
+
#
|
587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
588
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
589
|
+
#
|
590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
591
|
+
# request = Google::Cloud::Compute::V1::GetFirewallPolicyRequest.new
|
592
|
+
#
|
593
|
+
# # Call the get method.
|
594
|
+
# result = client.get request
|
595
|
+
#
|
596
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicy.
|
597
|
+
# p result
|
598
|
+
#
|
519
599
|
def get request, options = nil
|
520
600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
521
601
|
|
@@ -580,6 +660,22 @@ module Google
|
|
580
660
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
581
661
|
#
|
582
662
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
663
|
+
#
|
664
|
+
# @example Basic example
|
665
|
+
# require "google/cloud/compute/v1"
|
666
|
+
#
|
667
|
+
# # Create a client object. The client can be reused for multiple calls.
|
668
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
669
|
+
#
|
670
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
671
|
+
# request = Google::Cloud::Compute::V1::GetAssociationFirewallPolicyRequest.new
|
672
|
+
#
|
673
|
+
# # Call the get_association method.
|
674
|
+
# result = client.get_association request
|
675
|
+
#
|
676
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyAssociation.
|
677
|
+
# p result
|
678
|
+
#
|
583
679
|
def get_association request, options = nil
|
584
680
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
585
681
|
|
@@ -644,6 +740,22 @@ module Google
|
|
644
740
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
645
741
|
#
|
646
742
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
743
|
+
#
|
744
|
+
# @example Basic example
|
745
|
+
# require "google/cloud/compute/v1"
|
746
|
+
#
|
747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
748
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
749
|
+
#
|
750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
751
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyFirewallPolicyRequest.new
|
752
|
+
#
|
753
|
+
# # Call the get_iam_policy method.
|
754
|
+
# result = client.get_iam_policy request
|
755
|
+
#
|
756
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
757
|
+
# p result
|
758
|
+
#
|
647
759
|
def get_iam_policy request, options = nil
|
648
760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
649
761
|
|
@@ -708,6 +820,22 @@ module Google
|
|
708
820
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
709
821
|
#
|
710
822
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
823
|
+
#
|
824
|
+
# @example Basic example
|
825
|
+
# require "google/cloud/compute/v1"
|
826
|
+
#
|
827
|
+
# # Create a client object. The client can be reused for multiple calls.
|
828
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
829
|
+
#
|
830
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
831
|
+
# request = Google::Cloud::Compute::V1::GetRuleFirewallPolicyRequest.new
|
832
|
+
#
|
833
|
+
# # Call the get_rule method.
|
834
|
+
# result = client.get_rule request
|
835
|
+
#
|
836
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyRule.
|
837
|
+
# p result
|
838
|
+
#
|
711
839
|
def get_rule request, options = nil
|
712
840
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
713
841
|
|
@@ -774,6 +902,22 @@ module Google
|
|
774
902
|
# @return [::Gapic::GenericLRO::Operation]
|
775
903
|
#
|
776
904
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
905
|
+
#
|
906
|
+
# @example Basic example
|
907
|
+
# require "google/cloud/compute/v1"
|
908
|
+
#
|
909
|
+
# # Create a client object. The client can be reused for multiple calls.
|
910
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
911
|
+
#
|
912
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
913
|
+
# request = Google::Cloud::Compute::V1::InsertFirewallPolicyRequest.new
|
914
|
+
#
|
915
|
+
# # Call the insert method.
|
916
|
+
# result = client.insert request
|
917
|
+
#
|
918
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
919
|
+
# p result
|
920
|
+
#
|
777
921
|
def insert request, options = nil
|
778
922
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
779
923
|
|
@@ -836,7 +980,7 @@ module Google
|
|
836
980
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
837
981
|
#
|
838
982
|
# @param filter [::String]
|
839
|
-
# 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. 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
|
983
|
+
# 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.
|
840
984
|
# @param max_results [::Integer]
|
841
985
|
# 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`)
|
842
986
|
# @param order_by [::String]
|
@@ -854,6 +998,22 @@ module Google
|
|
854
998
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
855
999
|
#
|
856
1000
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1001
|
+
#
|
1002
|
+
# @example Basic example
|
1003
|
+
# require "google/cloud/compute/v1"
|
1004
|
+
#
|
1005
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1006
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1007
|
+
#
|
1008
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1009
|
+
# request = Google::Cloud::Compute::V1::ListFirewallPoliciesRequest.new
|
1010
|
+
#
|
1011
|
+
# # Call the list method.
|
1012
|
+
# result = client.list request
|
1013
|
+
#
|
1014
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyList.
|
1015
|
+
# p result
|
1016
|
+
#
|
857
1017
|
def list request, options = nil
|
858
1018
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
859
1019
|
|
@@ -917,6 +1077,22 @@ module Google
|
|
917
1077
|
# @return [::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse]
|
918
1078
|
#
|
919
1079
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1080
|
+
#
|
1081
|
+
# @example Basic example
|
1082
|
+
# require "google/cloud/compute/v1"
|
1083
|
+
#
|
1084
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1085
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1086
|
+
#
|
1087
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1088
|
+
# request = Google::Cloud::Compute::V1::ListAssociationsFirewallPolicyRequest.new
|
1089
|
+
#
|
1090
|
+
# # Call the list_associations method.
|
1091
|
+
# result = client.list_associations request
|
1092
|
+
#
|
1093
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse.
|
1094
|
+
# p result
|
1095
|
+
#
|
920
1096
|
def list_associations request, options = nil
|
921
1097
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
922
1098
|
|
@@ -983,6 +1159,22 @@ module Google
|
|
983
1159
|
# @return [::Gapic::GenericLRO::Operation]
|
984
1160
|
#
|
985
1161
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1162
|
+
#
|
1163
|
+
# @example Basic example
|
1164
|
+
# require "google/cloud/compute/v1"
|
1165
|
+
#
|
1166
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1167
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1168
|
+
#
|
1169
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1170
|
+
# request = Google::Cloud::Compute::V1::MoveFirewallPolicyRequest.new
|
1171
|
+
#
|
1172
|
+
# # Call the move method.
|
1173
|
+
# result = client.move request
|
1174
|
+
#
|
1175
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1176
|
+
# p result
|
1177
|
+
#
|
986
1178
|
def move request, options = nil
|
987
1179
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
988
1180
|
|
@@ -1057,6 +1249,22 @@ module Google
|
|
1057
1249
|
# @return [::Gapic::GenericLRO::Operation]
|
1058
1250
|
#
|
1059
1251
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1252
|
+
#
|
1253
|
+
# @example Basic example
|
1254
|
+
# require "google/cloud/compute/v1"
|
1255
|
+
#
|
1256
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1257
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1258
|
+
#
|
1259
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1260
|
+
# request = Google::Cloud::Compute::V1::PatchFirewallPolicyRequest.new
|
1261
|
+
#
|
1262
|
+
# # Call the patch method.
|
1263
|
+
# result = client.patch request
|
1264
|
+
#
|
1265
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1266
|
+
# p result
|
1267
|
+
#
|
1060
1268
|
def patch request, options = nil
|
1061
1269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1062
1270
|
|
@@ -1131,6 +1339,22 @@ module Google
|
|
1131
1339
|
# @return [::Gapic::GenericLRO::Operation]
|
1132
1340
|
#
|
1133
1341
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1342
|
+
#
|
1343
|
+
# @example Basic example
|
1344
|
+
# require "google/cloud/compute/v1"
|
1345
|
+
#
|
1346
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1347
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1348
|
+
#
|
1349
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1350
|
+
# request = Google::Cloud::Compute::V1::PatchRuleFirewallPolicyRequest.new
|
1351
|
+
#
|
1352
|
+
# # Call the patch_rule method.
|
1353
|
+
# result = client.patch_rule request
|
1354
|
+
#
|
1355
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1356
|
+
# p result
|
1357
|
+
#
|
1134
1358
|
def patch_rule request, options = nil
|
1135
1359
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1136
1360
|
|
@@ -1203,6 +1427,22 @@ module Google
|
|
1203
1427
|
# @return [::Gapic::GenericLRO::Operation]
|
1204
1428
|
#
|
1205
1429
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1430
|
+
#
|
1431
|
+
# @example Basic example
|
1432
|
+
# require "google/cloud/compute/v1"
|
1433
|
+
#
|
1434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1435
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1436
|
+
#
|
1437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1438
|
+
# request = Google::Cloud::Compute::V1::RemoveAssociationFirewallPolicyRequest.new
|
1439
|
+
#
|
1440
|
+
# # Call the remove_association method.
|
1441
|
+
# result = client.remove_association request
|
1442
|
+
#
|
1443
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1444
|
+
# p result
|
1445
|
+
#
|
1206
1446
|
def remove_association request, options = nil
|
1207
1447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1208
1448
|
|
@@ -1275,6 +1515,22 @@ module Google
|
|
1275
1515
|
# @return [::Gapic::GenericLRO::Operation]
|
1276
1516
|
#
|
1277
1517
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1518
|
+
#
|
1519
|
+
# @example Basic example
|
1520
|
+
# require "google/cloud/compute/v1"
|
1521
|
+
#
|
1522
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1523
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1524
|
+
#
|
1525
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1526
|
+
# request = Google::Cloud::Compute::V1::RemoveRuleFirewallPolicyRequest.new
|
1527
|
+
#
|
1528
|
+
# # Call the remove_rule method.
|
1529
|
+
# result = client.remove_rule request
|
1530
|
+
#
|
1531
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1532
|
+
# p result
|
1533
|
+
#
|
1278
1534
|
def remove_rule request, options = nil
|
1279
1535
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1280
1536
|
|
@@ -1345,6 +1601,22 @@ module Google
|
|
1345
1601
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1346
1602
|
#
|
1347
1603
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1604
|
+
#
|
1605
|
+
# @example Basic example
|
1606
|
+
# require "google/cloud/compute/v1"
|
1607
|
+
#
|
1608
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1609
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1610
|
+
#
|
1611
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1612
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyFirewallPolicyRequest.new
|
1613
|
+
#
|
1614
|
+
# # Call the set_iam_policy method.
|
1615
|
+
# result = client.set_iam_policy request
|
1616
|
+
#
|
1617
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1618
|
+
# p result
|
1619
|
+
#
|
1348
1620
|
def set_iam_policy request, options = nil
|
1349
1621
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1350
1622
|
|
@@ -1409,6 +1681,22 @@ module Google
|
|
1409
1681
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1410
1682
|
#
|
1411
1683
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1684
|
+
#
|
1685
|
+
# @example Basic example
|
1686
|
+
# require "google/cloud/compute/v1"
|
1687
|
+
#
|
1688
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1689
|
+
# client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
1690
|
+
#
|
1691
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1692
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsFirewallPolicyRequest.new
|
1693
|
+
#
|
1694
|
+
# # Call the test_iam_permissions method.
|
1695
|
+
# result = client.test_iam_permissions request
|
1696
|
+
#
|
1697
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1698
|
+
# p result
|
1699
|
+
#
|
1412
1700
|
def test_iam_permissions request, options = nil
|
1413
1701
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1414
1702
|
|