google-cloud-compute-v1 1.5.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +151 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -23
- data/lib/google/cloud/compute/v1/compute_pb.rb +357 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +68 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +77 -16
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +72 -12
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +155 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +142 -21
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +759 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +587 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +80 -20
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +86 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +69 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1.rb +2 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +968 -39
- metadata +12 -2
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the InstanceGroups service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -390,9 +390,9 @@ module Google
|
|
390
390
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/addInstances",
|
391
391
|
body: "instance_groups_add_instances_request_resource",
|
392
392
|
matches: [
|
393
|
-
["project", %r{[^/]
|
394
|
-
["zone", %r{[^/]
|
395
|
-
["instance_group", %r{[^/]
|
393
|
+
["project", %r{^[^/]+/?$}, false],
|
394
|
+
["zone", %r{^[^/]+/?$}, false],
|
395
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
396
396
|
]
|
397
397
|
)
|
398
398
|
transcoder.transcode request_pb
|
@@ -413,7 +413,7 @@ module Google
|
|
413
413
|
uri_method: :get,
|
414
414
|
uri_template: "/compute/v1/projects/{project}/aggregated/instanceGroups",
|
415
415
|
matches: [
|
416
|
-
["project", %r{[^/]
|
416
|
+
["project", %r{^[^/]+/?$}, false]
|
417
417
|
]
|
418
418
|
)
|
419
419
|
transcoder.transcode request_pb
|
@@ -434,9 +434,9 @@ module Google
|
|
434
434
|
uri_method: :delete,
|
435
435
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}",
|
436
436
|
matches: [
|
437
|
-
["project", %r{[^/]
|
438
|
-
["zone", %r{[^/]
|
439
|
-
["instance_group", %r{[^/]
|
437
|
+
["project", %r{^[^/]+/?$}, false],
|
438
|
+
["zone", %r{^[^/]+/?$}, false],
|
439
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
440
440
|
]
|
441
441
|
)
|
442
442
|
transcoder.transcode request_pb
|
@@ -457,9 +457,9 @@ module Google
|
|
457
457
|
uri_method: :get,
|
458
458
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}",
|
459
459
|
matches: [
|
460
|
-
["project", %r{[^/]
|
461
|
-
["zone", %r{[^/]
|
462
|
-
["instance_group", %r{[^/]
|
460
|
+
["project", %r{^[^/]+/?$}, false],
|
461
|
+
["zone", %r{^[^/]+/?$}, false],
|
462
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
463
463
|
]
|
464
464
|
)
|
465
465
|
transcoder.transcode request_pb
|
@@ -481,8 +481,8 @@ module Google
|
|
481
481
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups",
|
482
482
|
body: "instance_group_resource",
|
483
483
|
matches: [
|
484
|
-
["project", %r{[^/]
|
485
|
-
["zone", %r{[^/]
|
484
|
+
["project", %r{^[^/]+/?$}, false],
|
485
|
+
["zone", %r{^[^/]+/?$}, false]
|
486
486
|
]
|
487
487
|
)
|
488
488
|
transcoder.transcode request_pb
|
@@ -503,8 +503,8 @@ module Google
|
|
503
503
|
uri_method: :get,
|
504
504
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups",
|
505
505
|
matches: [
|
506
|
-
["project", %r{[^/]
|
507
|
-
["zone", %r{[^/]
|
506
|
+
["project", %r{^[^/]+/?$}, false],
|
507
|
+
["zone", %r{^[^/]+/?$}, false]
|
508
508
|
]
|
509
509
|
)
|
510
510
|
transcoder.transcode request_pb
|
@@ -526,9 +526,9 @@ module Google
|
|
526
526
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/listInstances",
|
527
527
|
body: "instance_groups_list_instances_request_resource",
|
528
528
|
matches: [
|
529
|
-
["project", %r{[^/]
|
530
|
-
["zone", %r{[^/]
|
531
|
-
["instance_group", %r{[^/]
|
529
|
+
["project", %r{^[^/]+/?$}, false],
|
530
|
+
["zone", %r{^[^/]+/?$}, false],
|
531
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
532
532
|
]
|
533
533
|
)
|
534
534
|
transcoder.transcode request_pb
|
@@ -550,9 +550,9 @@ module Google
|
|
550
550
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/removeInstances",
|
551
551
|
body: "instance_groups_remove_instances_request_resource",
|
552
552
|
matches: [
|
553
|
-
["project", %r{[^/]
|
554
|
-
["zone", %r{[^/]
|
555
|
-
["instance_group", %r{[^/]
|
553
|
+
["project", %r{^[^/]+/?$}, false],
|
554
|
+
["zone", %r{^[^/]+/?$}, false],
|
555
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
556
556
|
]
|
557
557
|
)
|
558
558
|
transcoder.transcode request_pb
|
@@ -574,9 +574,9 @@ module Google
|
|
574
574
|
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/setNamedPorts",
|
575
575
|
body: "instance_groups_set_named_ports_request_resource",
|
576
576
|
matches: [
|
577
|
-
["project", %r{[^/]
|
578
|
-
["zone", %r{[^/]
|
579
|
-
["instance_group", %r{[^/]
|
577
|
+
["project", %r{^[^/]+/?$}, false],
|
578
|
+
["zone", %r{^[^/]+/?$}, false],
|
579
|
+
["instance_group", %r{^[^/]+/?$}, false]
|
580
580
|
]
|
581
581
|
)
|
582
582
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the InstanceTemplates service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -315,8 +315,8 @@ module Google
|
|
315
315
|
uri_method: :delete,
|
316
316
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates/{instance_template}",
|
317
317
|
matches: [
|
318
|
-
["project", %r{[^/]
|
319
|
-
["instance_template", %r{[^/]
|
318
|
+
["project", %r{^[^/]+/?$}, false],
|
319
|
+
["instance_template", %r{^[^/]+/?$}, false]
|
320
320
|
]
|
321
321
|
)
|
322
322
|
transcoder.transcode request_pb
|
@@ -337,8 +337,8 @@ module Google
|
|
337
337
|
uri_method: :get,
|
338
338
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates/{instance_template}",
|
339
339
|
matches: [
|
340
|
-
["project", %r{[^/]
|
341
|
-
["instance_template", %r{[^/]
|
340
|
+
["project", %r{^[^/]+/?$}, false],
|
341
|
+
["instance_template", %r{^[^/]+/?$}, false]
|
342
342
|
]
|
343
343
|
)
|
344
344
|
transcoder.transcode request_pb
|
@@ -359,8 +359,8 @@ module Google
|
|
359
359
|
uri_method: :get,
|
360
360
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy",
|
361
361
|
matches: [
|
362
|
-
["project", %r{[^/]
|
363
|
-
["resource", %r{[^/]
|
362
|
+
["project", %r{^[^/]+/?$}, false],
|
363
|
+
["resource", %r{^[^/]+/?$}, false]
|
364
364
|
]
|
365
365
|
)
|
366
366
|
transcoder.transcode request_pb
|
@@ -382,7 +382,7 @@ module Google
|
|
382
382
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates",
|
383
383
|
body: "instance_template_resource",
|
384
384
|
matches: [
|
385
|
-
["project", %r{[^/]
|
385
|
+
["project", %r{^[^/]+/?$}, false]
|
386
386
|
]
|
387
387
|
)
|
388
388
|
transcoder.transcode request_pb
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
uri_method: :get,
|
404
404
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates",
|
405
405
|
matches: [
|
406
|
-
["project", %r{[^/]
|
406
|
+
["project", %r{^[^/]+/?$}, false]
|
407
407
|
]
|
408
408
|
)
|
409
409
|
transcoder.transcode request_pb
|
@@ -425,8 +425,8 @@ module Google
|
|
425
425
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy",
|
426
426
|
body: "global_set_policy_request_resource",
|
427
427
|
matches: [
|
428
|
-
["project", %r{[^/]
|
429
|
-
["resource", %r{[^/]
|
428
|
+
["project", %r{^[^/]+/?$}, false],
|
429
|
+
["resource", %r{^[^/]+/?$}, false]
|
430
430
|
]
|
431
431
|
)
|
432
432
|
transcoder.transcode request_pb
|
@@ -448,8 +448,8 @@ module Google
|
|
448
448
|
uri_template: "/compute/v1/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions",
|
449
449
|
body: "test_permissions_request_resource",
|
450
450
|
matches: [
|
451
|
-
["project", %r{[^/]
|
452
|
-
["resource", %r{[^/]
|
451
|
+
["project", %r{^[^/]+/?$}, false],
|
452
|
+
["resource", %r{^[^/]+/?$}, false]
|
453
453
|
]
|
454
454
|
)
|
455
455
|
transcoder.transcode request_pb
|
@@ -571,7 +571,7 @@ module Google
|
|
571
571
|
end
|
572
572
|
|
573
573
|
##
|
574
|
-
# Creates multiple instances. Count specifies the number of instances to create.
|
574
|
+
# Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.
|
575
575
|
#
|
576
576
|
# @overload bulk_insert(request, options = nil)
|
577
577
|
# Pass arguments to `bulk_insert` via a request object, either of type
|