google-cloud-compute-v1 2.3.0 → 2.5.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 +48 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +3 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
- 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 +64 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +234 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +194 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +56 -4
- metadata +5 -5
|
@@ -201,6 +201,22 @@ module Google
|
|
|
201
201
|
# @return [::Gapic::GenericLRO::Operation]
|
|
202
202
|
#
|
|
203
203
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
204
|
+
#
|
|
205
|
+
# @example Basic example
|
|
206
|
+
# require "google/cloud/compute/v1"
|
|
207
|
+
#
|
|
208
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
209
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
210
|
+
#
|
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
212
|
+
# request = Google::Cloud::Compute::V1::DeleteMachineImageRequest.new
|
|
213
|
+
#
|
|
214
|
+
# # Call the delete method.
|
|
215
|
+
# result = client.delete request
|
|
216
|
+
#
|
|
217
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
218
|
+
# p result
|
|
219
|
+
#
|
|
204
220
|
def delete request, options = nil
|
|
205
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
206
222
|
|
|
@@ -273,6 +289,22 @@ module Google
|
|
|
273
289
|
# @return [::Google::Cloud::Compute::V1::MachineImage]
|
|
274
290
|
#
|
|
275
291
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
292
|
+
#
|
|
293
|
+
# @example Basic example
|
|
294
|
+
# require "google/cloud/compute/v1"
|
|
295
|
+
#
|
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
297
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
298
|
+
#
|
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
300
|
+
# request = Google::Cloud::Compute::V1::GetMachineImageRequest.new
|
|
301
|
+
#
|
|
302
|
+
# # Call the get method.
|
|
303
|
+
# result = client.get request
|
|
304
|
+
#
|
|
305
|
+
# # The returned object is of type Google::Cloud::Compute::V1::MachineImage.
|
|
306
|
+
# p result
|
|
307
|
+
#
|
|
276
308
|
def get request, options = nil
|
|
277
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
278
310
|
|
|
@@ -339,6 +371,22 @@ module Google
|
|
|
339
371
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
340
372
|
#
|
|
341
373
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
374
|
+
#
|
|
375
|
+
# @example Basic example
|
|
376
|
+
# require "google/cloud/compute/v1"
|
|
377
|
+
#
|
|
378
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
379
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
380
|
+
#
|
|
381
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
382
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyMachineImageRequest.new
|
|
383
|
+
#
|
|
384
|
+
# # Call the get_iam_policy method.
|
|
385
|
+
# result = client.get_iam_policy request
|
|
386
|
+
#
|
|
387
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
388
|
+
# p result
|
|
389
|
+
#
|
|
342
390
|
def get_iam_policy request, options = nil
|
|
343
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
344
392
|
|
|
@@ -407,6 +455,22 @@ module Google
|
|
|
407
455
|
# @return [::Gapic::GenericLRO::Operation]
|
|
408
456
|
#
|
|
409
457
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
458
|
+
#
|
|
459
|
+
# @example Basic example
|
|
460
|
+
# require "google/cloud/compute/v1"
|
|
461
|
+
#
|
|
462
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
463
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
464
|
+
#
|
|
465
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
466
|
+
# request = Google::Cloud::Compute::V1::InsertMachineImageRequest.new
|
|
467
|
+
#
|
|
468
|
+
# # Call the insert method.
|
|
469
|
+
# result = client.insert request
|
|
470
|
+
#
|
|
471
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
472
|
+
# p result
|
|
473
|
+
#
|
|
410
474
|
def insert request, options = nil
|
|
411
475
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
412
476
|
|
|
@@ -487,6 +551,22 @@ module Google
|
|
|
487
551
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::MachineImage>]
|
|
488
552
|
#
|
|
489
553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
554
|
+
#
|
|
555
|
+
# @example Basic example
|
|
556
|
+
# require "google/cloud/compute/v1"
|
|
557
|
+
#
|
|
558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
559
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
560
|
+
#
|
|
561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
562
|
+
# request = Google::Cloud::Compute::V1::ListMachineImagesRequest.new
|
|
563
|
+
#
|
|
564
|
+
# # Call the list method.
|
|
565
|
+
# result = client.list request
|
|
566
|
+
#
|
|
567
|
+
# # The returned object is of type Google::Cloud::Compute::V1::MachineImageList.
|
|
568
|
+
# p result
|
|
569
|
+
#
|
|
490
570
|
def list request, options = nil
|
|
491
571
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
492
572
|
|
|
@@ -554,6 +634,22 @@ module Google
|
|
|
554
634
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
555
635
|
#
|
|
556
636
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
637
|
+
#
|
|
638
|
+
# @example Basic example
|
|
639
|
+
# require "google/cloud/compute/v1"
|
|
640
|
+
#
|
|
641
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
642
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
643
|
+
#
|
|
644
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
645
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyMachineImageRequest.new
|
|
646
|
+
#
|
|
647
|
+
# # Call the set_iam_policy method.
|
|
648
|
+
# result = client.set_iam_policy request
|
|
649
|
+
#
|
|
650
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
651
|
+
# p result
|
|
652
|
+
#
|
|
557
653
|
def set_iam_policy request, options = nil
|
|
558
654
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
559
655
|
|
|
@@ -620,6 +716,22 @@ module Google
|
|
|
620
716
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
621
717
|
#
|
|
622
718
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
719
|
+
#
|
|
720
|
+
# @example Basic example
|
|
721
|
+
# require "google/cloud/compute/v1"
|
|
722
|
+
#
|
|
723
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
724
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
|
725
|
+
#
|
|
726
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
727
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsMachineImageRequest.new
|
|
728
|
+
#
|
|
729
|
+
# # Call the test_iam_permissions method.
|
|
730
|
+
# result = client.test_iam_permissions request
|
|
731
|
+
#
|
|
732
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
733
|
+
# p result
|
|
734
|
+
#
|
|
623
735
|
def test_iam_permissions request, options = nil
|
|
624
736
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
625
737
|
|
|
@@ -187,6 +187,22 @@ module Google
|
|
|
187
187
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::MachineTypesScopedList>]
|
|
188
188
|
#
|
|
189
189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
190
|
+
#
|
|
191
|
+
# @example Basic example
|
|
192
|
+
# require "google/cloud/compute/v1"
|
|
193
|
+
#
|
|
194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
195
|
+
# client = Google::Cloud::Compute::V1::MachineTypes::Rest::Client.new
|
|
196
|
+
#
|
|
197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
198
|
+
# request = Google::Cloud::Compute::V1::AggregatedListMachineTypesRequest.new
|
|
199
|
+
#
|
|
200
|
+
# # Call the aggregated_list method.
|
|
201
|
+
# result = client.aggregated_list request
|
|
202
|
+
#
|
|
203
|
+
# # The returned object is of type Google::Cloud::Compute::V1::MachineTypeAggregatedList.
|
|
204
|
+
# p result
|
|
205
|
+
#
|
|
190
206
|
def aggregated_list request, options = nil
|
|
191
207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
192
208
|
|
|
@@ -254,6 +270,22 @@ module Google
|
|
|
254
270
|
# @return [::Google::Cloud::Compute::V1::MachineType]
|
|
255
271
|
#
|
|
256
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
273
|
+
#
|
|
274
|
+
# @example Basic example
|
|
275
|
+
# require "google/cloud/compute/v1"
|
|
276
|
+
#
|
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
278
|
+
# client = Google::Cloud::Compute::V1::MachineTypes::Rest::Client.new
|
|
279
|
+
#
|
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
281
|
+
# request = Google::Cloud::Compute::V1::GetMachineTypeRequest.new
|
|
282
|
+
#
|
|
283
|
+
# # Call the get method.
|
|
284
|
+
# result = client.get request
|
|
285
|
+
#
|
|
286
|
+
# # The returned object is of type Google::Cloud::Compute::V1::MachineType.
|
|
287
|
+
# p result
|
|
288
|
+
#
|
|
257
289
|
def get request, options = nil
|
|
258
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
259
291
|
|
|
@@ -328,6 +360,22 @@ module Google
|
|
|
328
360
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::MachineType>]
|
|
329
361
|
#
|
|
330
362
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
363
|
+
#
|
|
364
|
+
# @example Basic example
|
|
365
|
+
# require "google/cloud/compute/v1"
|
|
366
|
+
#
|
|
367
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
368
|
+
# client = Google::Cloud::Compute::V1::MachineTypes::Rest::Client.new
|
|
369
|
+
#
|
|
370
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
371
|
+
# request = Google::Cloud::Compute::V1::ListMachineTypesRequest.new
|
|
372
|
+
#
|
|
373
|
+
# # Call the list method.
|
|
374
|
+
# result = client.list request
|
|
375
|
+
#
|
|
376
|
+
# # The returned object is of type Google::Cloud::Compute::V1::MachineTypeList.
|
|
377
|
+
# p result
|
|
378
|
+
#
|
|
331
379
|
def list request, options = nil
|
|
332
380
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
333
381
|
|
|
@@ -214,6 +214,22 @@ module Google
|
|
|
214
214
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkAttachmentsScopedList>]
|
|
215
215
|
#
|
|
216
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
217
|
+
#
|
|
218
|
+
# @example Basic example
|
|
219
|
+
# require "google/cloud/compute/v1"
|
|
220
|
+
#
|
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
222
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
223
|
+
#
|
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
225
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNetworkAttachmentsRequest.new
|
|
226
|
+
#
|
|
227
|
+
# # Call the aggregated_list method.
|
|
228
|
+
# result = client.aggregated_list request
|
|
229
|
+
#
|
|
230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkAttachmentAggregatedList.
|
|
231
|
+
# p result
|
|
232
|
+
#
|
|
217
233
|
def aggregated_list request, options = nil
|
|
218
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
219
235
|
|
|
@@ -283,6 +299,22 @@ module Google
|
|
|
283
299
|
# @return [::Gapic::GenericLRO::Operation]
|
|
284
300
|
#
|
|
285
301
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
302
|
+
#
|
|
303
|
+
# @example Basic example
|
|
304
|
+
# require "google/cloud/compute/v1"
|
|
305
|
+
#
|
|
306
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
307
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
308
|
+
#
|
|
309
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
310
|
+
# request = Google::Cloud::Compute::V1::DeleteNetworkAttachmentRequest.new
|
|
311
|
+
#
|
|
312
|
+
# # Call the delete method.
|
|
313
|
+
# result = client.delete request
|
|
314
|
+
#
|
|
315
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
316
|
+
# p result
|
|
317
|
+
#
|
|
286
318
|
def delete request, options = nil
|
|
287
319
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
288
320
|
|
|
@@ -358,6 +390,22 @@ module Google
|
|
|
358
390
|
# @return [::Google::Cloud::Compute::V1::NetworkAttachment]
|
|
359
391
|
#
|
|
360
392
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
393
|
+
#
|
|
394
|
+
# @example Basic example
|
|
395
|
+
# require "google/cloud/compute/v1"
|
|
396
|
+
#
|
|
397
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
398
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
399
|
+
#
|
|
400
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
401
|
+
# request = Google::Cloud::Compute::V1::GetNetworkAttachmentRequest.new
|
|
402
|
+
#
|
|
403
|
+
# # Call the get method.
|
|
404
|
+
# result = client.get request
|
|
405
|
+
#
|
|
406
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkAttachment.
|
|
407
|
+
# p result
|
|
408
|
+
#
|
|
361
409
|
def get request, options = nil
|
|
362
410
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
363
411
|
|
|
@@ -426,6 +474,22 @@ module Google
|
|
|
426
474
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
427
475
|
#
|
|
428
476
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
477
|
+
#
|
|
478
|
+
# @example Basic example
|
|
479
|
+
# require "google/cloud/compute/v1"
|
|
480
|
+
#
|
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
482
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
483
|
+
#
|
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
485
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyNetworkAttachmentRequest.new
|
|
486
|
+
#
|
|
487
|
+
# # Call the get_iam_policy method.
|
|
488
|
+
# result = client.get_iam_policy request
|
|
489
|
+
#
|
|
490
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
491
|
+
# p result
|
|
492
|
+
#
|
|
429
493
|
def get_iam_policy request, options = nil
|
|
430
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
431
495
|
|
|
@@ -494,6 +558,22 @@ module Google
|
|
|
494
558
|
# @return [::Gapic::GenericLRO::Operation]
|
|
495
559
|
#
|
|
496
560
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
561
|
+
#
|
|
562
|
+
# @example Basic example
|
|
563
|
+
# require "google/cloud/compute/v1"
|
|
564
|
+
#
|
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
566
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
567
|
+
#
|
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
569
|
+
# request = Google::Cloud::Compute::V1::InsertNetworkAttachmentRequest.new
|
|
570
|
+
#
|
|
571
|
+
# # Call the insert method.
|
|
572
|
+
# result = client.insert request
|
|
573
|
+
#
|
|
574
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
575
|
+
# p result
|
|
576
|
+
#
|
|
497
577
|
def insert request, options = nil
|
|
498
578
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
499
579
|
|
|
@@ -577,6 +657,22 @@ module Google
|
|
|
577
657
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkAttachment>]
|
|
578
658
|
#
|
|
579
659
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
660
|
+
#
|
|
661
|
+
# @example Basic example
|
|
662
|
+
# require "google/cloud/compute/v1"
|
|
663
|
+
#
|
|
664
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
665
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
666
|
+
#
|
|
667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
668
|
+
# request = Google::Cloud::Compute::V1::ListNetworkAttachmentsRequest.new
|
|
669
|
+
#
|
|
670
|
+
# # Call the list method.
|
|
671
|
+
# result = client.list request
|
|
672
|
+
#
|
|
673
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkAttachmentList.
|
|
674
|
+
# p result
|
|
675
|
+
#
|
|
580
676
|
def list request, options = nil
|
|
581
677
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
582
678
|
|
|
@@ -646,6 +742,22 @@ module Google
|
|
|
646
742
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
647
743
|
#
|
|
648
744
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
745
|
+
#
|
|
746
|
+
# @example Basic example
|
|
747
|
+
# require "google/cloud/compute/v1"
|
|
748
|
+
#
|
|
749
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
750
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
751
|
+
#
|
|
752
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
753
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyNetworkAttachmentRequest.new
|
|
754
|
+
#
|
|
755
|
+
# # Call the set_iam_policy method.
|
|
756
|
+
# result = client.set_iam_policy request
|
|
757
|
+
#
|
|
758
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
759
|
+
# p result
|
|
760
|
+
#
|
|
649
761
|
def set_iam_policy request, options = nil
|
|
650
762
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
651
763
|
|
|
@@ -714,6 +826,22 @@ module Google
|
|
|
714
826
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
715
827
|
#
|
|
716
828
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
829
|
+
#
|
|
830
|
+
# @example Basic example
|
|
831
|
+
# require "google/cloud/compute/v1"
|
|
832
|
+
#
|
|
833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
834
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
|
835
|
+
#
|
|
836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
837
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNetworkAttachmentRequest.new
|
|
838
|
+
#
|
|
839
|
+
# # Call the test_iam_permissions method.
|
|
840
|
+
# result = client.test_iam_permissions request
|
|
841
|
+
#
|
|
842
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
843
|
+
# p result
|
|
844
|
+
#
|
|
717
845
|
def test_iam_permissions request, options = nil
|
|
718
846
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
719
847
|
|
|
@@ -202,6 +202,22 @@ module Google
|
|
|
202
202
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServicesScopedList>]
|
|
203
203
|
#
|
|
204
204
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
205
|
+
#
|
|
206
|
+
# @example Basic example
|
|
207
|
+
# require "google/cloud/compute/v1"
|
|
208
|
+
#
|
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
210
|
+
# client = Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client.new
|
|
211
|
+
#
|
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
213
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNetworkEdgeSecurityServicesRequest.new
|
|
214
|
+
#
|
|
215
|
+
# # Call the aggregated_list method.
|
|
216
|
+
# result = client.aggregated_list request
|
|
217
|
+
#
|
|
218
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEdgeSecurityServiceAggregatedList.
|
|
219
|
+
# p result
|
|
220
|
+
#
|
|
205
221
|
def aggregated_list request, options = nil
|
|
206
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
207
223
|
|
|
@@ -271,6 +287,22 @@ module Google
|
|
|
271
287
|
# @return [::Gapic::GenericLRO::Operation]
|
|
272
288
|
#
|
|
273
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
290
|
+
#
|
|
291
|
+
# @example Basic example
|
|
292
|
+
# require "google/cloud/compute/v1"
|
|
293
|
+
#
|
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
295
|
+
# client = Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client.new
|
|
296
|
+
#
|
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
298
|
+
# request = Google::Cloud::Compute::V1::DeleteNetworkEdgeSecurityServiceRequest.new
|
|
299
|
+
#
|
|
300
|
+
# # Call the delete method.
|
|
301
|
+
# result = client.delete request
|
|
302
|
+
#
|
|
303
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
304
|
+
# p result
|
|
305
|
+
#
|
|
274
306
|
def delete request, options = nil
|
|
275
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
276
308
|
|
|
@@ -346,6 +378,22 @@ module Google
|
|
|
346
378
|
# @return [::Google::Cloud::Compute::V1::NetworkEdgeSecurityService]
|
|
347
379
|
#
|
|
348
380
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
381
|
+
#
|
|
382
|
+
# @example Basic example
|
|
383
|
+
# require "google/cloud/compute/v1"
|
|
384
|
+
#
|
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
386
|
+
# client = Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client.new
|
|
387
|
+
#
|
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
389
|
+
# request = Google::Cloud::Compute::V1::GetNetworkEdgeSecurityServiceRequest.new
|
|
390
|
+
#
|
|
391
|
+
# # Call the get method.
|
|
392
|
+
# result = client.get request
|
|
393
|
+
#
|
|
394
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEdgeSecurityService.
|
|
395
|
+
# p result
|
|
396
|
+
#
|
|
349
397
|
def get request, options = nil
|
|
350
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
351
399
|
|
|
@@ -416,6 +464,22 @@ module Google
|
|
|
416
464
|
# @return [::Gapic::GenericLRO::Operation]
|
|
417
465
|
#
|
|
418
466
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
467
|
+
#
|
|
468
|
+
# @example Basic example
|
|
469
|
+
# require "google/cloud/compute/v1"
|
|
470
|
+
#
|
|
471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
472
|
+
# client = Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client.new
|
|
473
|
+
#
|
|
474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
475
|
+
# request = Google::Cloud::Compute::V1::InsertNetworkEdgeSecurityServiceRequest.new
|
|
476
|
+
#
|
|
477
|
+
# # Call the insert method.
|
|
478
|
+
# result = client.insert request
|
|
479
|
+
#
|
|
480
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
481
|
+
# p result
|
|
482
|
+
#
|
|
419
483
|
def insert request, options = nil
|
|
420
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
421
485
|
|
|
@@ -498,6 +562,22 @@ module Google
|
|
|
498
562
|
# @return [::Gapic::GenericLRO::Operation]
|
|
499
563
|
#
|
|
500
564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
565
|
+
#
|
|
566
|
+
# @example Basic example
|
|
567
|
+
# require "google/cloud/compute/v1"
|
|
568
|
+
#
|
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
570
|
+
# client = Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client.new
|
|
571
|
+
#
|
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
573
|
+
# request = Google::Cloud::Compute::V1::PatchNetworkEdgeSecurityServiceRequest.new
|
|
574
|
+
#
|
|
575
|
+
# # Call the patch method.
|
|
576
|
+
# result = client.patch request
|
|
577
|
+
#
|
|
578
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
579
|
+
# p result
|
|
580
|
+
#
|
|
501
581
|
def patch request, options = nil
|
|
502
582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
503
583
|
|