google-cloud-compute-v1 2.3.0 → 2.5.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 +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
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InterconnectAttachmentsScopedList>]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/compute/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInterconnectAttachmentsRequest.new
|
221
|
+
#
|
222
|
+
# # Call the aggregated_list method.
|
223
|
+
# result = client.aggregated_list request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachmentAggregatedList.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def aggregated_list request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -278,6 +294,22 @@ module Google
|
|
278
294
|
# @return [::Gapic::GenericLRO::Operation]
|
279
295
|
#
|
280
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/compute/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Compute::V1::DeleteInterconnectAttachmentRequest.new
|
306
|
+
#
|
307
|
+
# # Call the delete method.
|
308
|
+
# result = client.delete request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
311
|
+
# p result
|
312
|
+
#
|
281
313
|
def delete request, options = nil
|
282
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
315
|
|
@@ -353,6 +385,22 @@ module Google
|
|
353
385
|
# @return [::Google::Cloud::Compute::V1::InterconnectAttachment]
|
354
386
|
#
|
355
387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
|
+
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/compute/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectAttachmentRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get method.
|
399
|
+
# result = client.get request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachment.
|
402
|
+
# p result
|
403
|
+
#
|
356
404
|
def get request, options = nil
|
357
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
406
|
|
@@ -423,6 +471,22 @@ module Google
|
|
423
471
|
# @return [::Gapic::GenericLRO::Operation]
|
424
472
|
#
|
425
473
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/compute/v1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Compute::V1::InsertInterconnectAttachmentRequest.new
|
483
|
+
#
|
484
|
+
# # Call the insert method.
|
485
|
+
# result = client.insert request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
488
|
+
# p result
|
489
|
+
#
|
426
490
|
def insert request, options = nil
|
427
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
492
|
|
@@ -506,6 +570,22 @@ module Google
|
|
506
570
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectAttachment>]
|
507
571
|
#
|
508
572
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
573
|
+
#
|
574
|
+
# @example Basic example
|
575
|
+
# require "google/cloud/compute/v1"
|
576
|
+
#
|
577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
578
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
579
|
+
#
|
580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
581
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectAttachmentsRequest.new
|
582
|
+
#
|
583
|
+
# # Call the list method.
|
584
|
+
# result = client.list request
|
585
|
+
#
|
586
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachmentList.
|
587
|
+
# p result
|
588
|
+
#
|
509
589
|
def list request, options = nil
|
510
590
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
591
|
|
@@ -577,6 +657,22 @@ module Google
|
|
577
657
|
# @return [::Gapic::GenericLRO::Operation]
|
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::InterconnectAttachments::Rest::Client.new
|
666
|
+
#
|
667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
668
|
+
# request = Google::Cloud::Compute::V1::PatchInterconnectAttachmentRequest.new
|
669
|
+
#
|
670
|
+
# # Call the patch method.
|
671
|
+
# result = client.patch request
|
672
|
+
#
|
673
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
674
|
+
# p result
|
675
|
+
#
|
580
676
|
def patch request, options = nil
|
581
677
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
678
|
|
@@ -656,6 +752,22 @@ module Google
|
|
656
752
|
# @return [::Gapic::GenericLRO::Operation]
|
657
753
|
#
|
658
754
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
755
|
+
#
|
756
|
+
# @example Basic example
|
757
|
+
# require "google/cloud/compute/v1"
|
758
|
+
#
|
759
|
+
# # Create a client object. The client can be reused for multiple calls.
|
760
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
761
|
+
#
|
762
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
763
|
+
# request = Google::Cloud::Compute::V1::SetLabelsInterconnectAttachmentRequest.new
|
764
|
+
#
|
765
|
+
# # Call the set_labels method.
|
766
|
+
# result = client.set_labels request
|
767
|
+
#
|
768
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
769
|
+
# p result
|
770
|
+
#
|
659
771
|
def set_labels request, options = nil
|
660
772
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
661
773
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::InterconnectLocation]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/compute/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectLocationRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectLocation.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectLocation>]
|
245
261
|
#
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
#
|
264
|
+
# @example Basic example
|
265
|
+
# require "google/cloud/compute/v1"
|
266
|
+
#
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
268
|
+
# client = Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectLocationsRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectLocationList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/compute/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocation.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
|
245
261
|
#
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
#
|
264
|
+
# @example Basic example
|
265
|
+
# require "google/cloud/compute/v1"
|
266
|
+
#
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
268
|
+
# client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocationList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|
@@ -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::Interconnects::Rest::Client.new
|
210
|
+
#
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
212
|
+
# request = Google::Cloud::Compute::V1::DeleteInterconnectRequest.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::Interconnect]
|
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::Interconnects::Rest::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get method.
|
303
|
+
# result = client.get request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Interconnect.
|
306
|
+
# p result
|
307
|
+
#
|
276
308
|
def get request, options = nil
|
277
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
310
|
|
@@ -337,6 +369,22 @@ module Google
|
|
337
369
|
# @return [::Google::Cloud::Compute::V1::InterconnectsGetDiagnosticsResponse]
|
338
370
|
#
|
339
371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
372
|
+
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/compute/v1"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::Compute::V1::GetDiagnosticsInterconnectRequest.new
|
381
|
+
#
|
382
|
+
# # Call the get_diagnostics method.
|
383
|
+
# result = client.get_diagnostics request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectsGetDiagnosticsResponse.
|
386
|
+
# p result
|
387
|
+
#
|
340
388
|
def get_diagnostics request, options = nil
|
341
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
390
|
|
@@ -403,6 +451,22 @@ module Google
|
|
403
451
|
# @return [::Gapic::GenericLRO::Operation]
|
404
452
|
#
|
405
453
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
454
|
+
#
|
455
|
+
# @example Basic example
|
456
|
+
# require "google/cloud/compute/v1"
|
457
|
+
#
|
458
|
+
# # Create a client object. The client can be reused for multiple calls.
|
459
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
460
|
+
#
|
461
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
462
|
+
# request = Google::Cloud::Compute::V1::InsertInterconnectRequest.new
|
463
|
+
#
|
464
|
+
# # Call the insert method.
|
465
|
+
# result = client.insert request
|
466
|
+
#
|
467
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
468
|
+
# p result
|
469
|
+
#
|
406
470
|
def insert request, options = nil
|
407
471
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
408
472
|
|
@@ -483,6 +547,22 @@ module Google
|
|
483
547
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Interconnect>]
|
484
548
|
#
|
485
549
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
550
|
+
#
|
551
|
+
# @example Basic example
|
552
|
+
# require "google/cloud/compute/v1"
|
553
|
+
#
|
554
|
+
# # Create a client object. The client can be reused for multiple calls.
|
555
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
556
|
+
#
|
557
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
558
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectsRequest.new
|
559
|
+
#
|
560
|
+
# # Call the list method.
|
561
|
+
# result = client.list request
|
562
|
+
#
|
563
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectList.
|
564
|
+
# p result
|
565
|
+
#
|
486
566
|
def list request, options = nil
|
487
567
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
568
|
|
@@ -552,6 +632,22 @@ module Google
|
|
552
632
|
# @return [::Gapic::GenericLRO::Operation]
|
553
633
|
#
|
554
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
635
|
+
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/compute/v1"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::Compute::V1::PatchInterconnectRequest.new
|
644
|
+
#
|
645
|
+
# # Call the patch method.
|
646
|
+
# result = client.patch request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
649
|
+
# p result
|
650
|
+
#
|
555
651
|
def patch request, options = nil
|
556
652
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
557
653
|
|
@@ -626,6 +722,22 @@ module Google
|
|
626
722
|
# @return [::Gapic::GenericLRO::Operation]
|
627
723
|
#
|
628
724
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
725
|
+
#
|
726
|
+
# @example Basic example
|
727
|
+
# require "google/cloud/compute/v1"
|
728
|
+
#
|
729
|
+
# # Create a client object. The client can be reused for multiple calls.
|
730
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
731
|
+
#
|
732
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
733
|
+
# request = Google::Cloud::Compute::V1::SetLabelsInterconnectRequest.new
|
734
|
+
#
|
735
|
+
# # Call the set_labels method.
|
736
|
+
# result = client.set_labels request
|
737
|
+
#
|
738
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
739
|
+
# p result
|
740
|
+
#
|
629
741
|
def set_labels request, options = nil
|
630
742
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
631
743
|
|
@@ -169,6 +169,22 @@ module Google
|
|
169
169
|
# @return [::Google::Cloud::Compute::V1::LicenseCode]
|
170
170
|
#
|
171
171
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
172
|
+
#
|
173
|
+
# @example Basic example
|
174
|
+
# require "google/cloud/compute/v1"
|
175
|
+
#
|
176
|
+
# # Create a client object. The client can be reused for multiple calls.
|
177
|
+
# client = Google::Cloud::Compute::V1::LicenseCodes::Rest::Client.new
|
178
|
+
#
|
179
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
180
|
+
# request = Google::Cloud::Compute::V1::GetLicenseCodeRequest.new
|
181
|
+
#
|
182
|
+
# # Call the get method.
|
183
|
+
# result = client.get request
|
184
|
+
#
|
185
|
+
# # The returned object is of type Google::Cloud::Compute::V1::LicenseCode.
|
186
|
+
# p result
|
187
|
+
#
|
172
188
|
def get request, options = nil
|
173
189
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
174
190
|
|
@@ -235,6 +251,22 @@ module Google
|
|
235
251
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
236
252
|
#
|
237
253
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
254
|
+
#
|
255
|
+
# @example Basic example
|
256
|
+
# require "google/cloud/compute/v1"
|
257
|
+
#
|
258
|
+
# # Create a client object. The client can be reused for multiple calls.
|
259
|
+
# client = Google::Cloud::Compute::V1::LicenseCodes::Rest::Client.new
|
260
|
+
#
|
261
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
262
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsLicenseCodeRequest.new
|
263
|
+
#
|
264
|
+
# # Call the test_iam_permissions method.
|
265
|
+
# result = client.test_iam_permissions request
|
266
|
+
#
|
267
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
268
|
+
# p result
|
269
|
+
#
|
238
270
|
def test_iam_permissions request, options = nil
|
239
271
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
240
272
|
|
@@ -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::Licenses::Rest::Client.new
|
210
|
+
#
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
212
|
+
# request = Google::Cloud::Compute::V1::DeleteLicenseRequest.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::License]
|
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::Licenses::Rest::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Compute::V1::GetLicenseRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get method.
|
303
|
+
# result = client.get request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Compute::V1::License.
|
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::Licenses::Rest::Client.new
|
380
|
+
#
|
381
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
382
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyLicenseRequest.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
|
|
@@ -405,6 +453,22 @@ module Google
|
|
405
453
|
# @return [::Gapic::GenericLRO::Operation]
|
406
454
|
#
|
407
455
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
456
|
+
#
|
457
|
+
# @example Basic example
|
458
|
+
# require "google/cloud/compute/v1"
|
459
|
+
#
|
460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
461
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
462
|
+
#
|
463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
464
|
+
# request = Google::Cloud::Compute::V1::InsertLicenseRequest.new
|
465
|
+
#
|
466
|
+
# # Call the insert method.
|
467
|
+
# result = client.insert request
|
468
|
+
#
|
469
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
470
|
+
# p result
|
471
|
+
#
|
408
472
|
def insert request, options = nil
|
409
473
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
410
474
|
|
@@ -485,6 +549,22 @@ module Google
|
|
485
549
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::License>]
|
486
550
|
#
|
487
551
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
552
|
+
#
|
553
|
+
# @example Basic example
|
554
|
+
# require "google/cloud/compute/v1"
|
555
|
+
#
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
557
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::Compute::V1::ListLicensesRequest.new
|
561
|
+
#
|
562
|
+
# # Call the list method.
|
563
|
+
# result = client.list request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::Compute::V1::LicensesListResponse.
|
566
|
+
# p result
|
567
|
+
#
|
488
568
|
def list request, options = nil
|
489
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
570
|
|
@@ -552,6 +632,22 @@ module Google
|
|
552
632
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
553
633
|
#
|
554
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
635
|
+
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/compute/v1"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyLicenseRequest.new
|
644
|
+
#
|
645
|
+
# # Call the set_iam_policy method.
|
646
|
+
# result = client.set_iam_policy request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
649
|
+
# p result
|
650
|
+
#
|
555
651
|
def set_iam_policy request, options = nil
|
556
652
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
557
653
|
|
@@ -618,6 +714,22 @@ module Google
|
|
618
714
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
619
715
|
#
|
620
716
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
717
|
+
#
|
718
|
+
# @example Basic example
|
719
|
+
# require "google/cloud/compute/v1"
|
720
|
+
#
|
721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
722
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
723
|
+
#
|
724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
725
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsLicenseRequest.new
|
726
|
+
#
|
727
|
+
# # Call the test_iam_permissions method.
|
728
|
+
# result = client.test_iam_permissions request
|
729
|
+
#
|
730
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
731
|
+
# p result
|
732
|
+
#
|
621
733
|
def test_iam_permissions request, options = nil
|
622
734
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
623
735
|
|