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
@@ -382,6 +382,44 @@ module Google
|
|
382
382
|
result
|
383
383
|
end
|
384
384
|
|
385
|
+
##
|
386
|
+
# Baseline implementation for the list_usable REST call
|
387
|
+
#
|
388
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListUsableBackendServicesRequest]
|
389
|
+
# A request object representing the call parameters. Required.
|
390
|
+
# @param options [::Gapic::CallOptions]
|
391
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
392
|
+
#
|
393
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
394
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::BackendServiceListUsable]
|
395
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
396
|
+
#
|
397
|
+
# @return [::Google::Cloud::Compute::V1::BackendServiceListUsable]
|
398
|
+
# A result object deserialized from the server's reply
|
399
|
+
def list_usable request_pb, options = nil
|
400
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
401
|
+
|
402
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_usable_request request_pb
|
403
|
+
query_string_params = if query_string_params.any?
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
|
+
else
|
406
|
+
{}
|
407
|
+
end
|
408
|
+
|
409
|
+
response = @client_stub.make_http_request(
|
410
|
+
verb,
|
411
|
+
uri: uri,
|
412
|
+
body: body || "",
|
413
|
+
params: query_string_params,
|
414
|
+
options: options
|
415
|
+
)
|
416
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
417
|
+
result = ::Google::Cloud::Compute::V1::BackendServiceListUsable.decode_json response.body, ignore_unknown_fields: true
|
418
|
+
|
419
|
+
yield result, operation if block_given?
|
420
|
+
result
|
421
|
+
end
|
422
|
+
|
385
423
|
##
|
386
424
|
# Baseline implementation for the patch REST call
|
387
425
|
#
|
@@ -534,6 +572,44 @@ module Google
|
|
534
572
|
result
|
535
573
|
end
|
536
574
|
|
575
|
+
##
|
576
|
+
# Baseline implementation for the test_iam_permissions REST call
|
577
|
+
#
|
578
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest]
|
579
|
+
# A request object representing the call parameters. Required.
|
580
|
+
# @param options [::Gapic::CallOptions]
|
581
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
582
|
+
#
|
583
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
584
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
585
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
586
|
+
#
|
587
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
588
|
+
# A result object deserialized from the server's reply
|
589
|
+
def test_iam_permissions request_pb, options = nil
|
590
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
591
|
+
|
592
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
593
|
+
query_string_params = if query_string_params.any?
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
|
+
else
|
596
|
+
{}
|
597
|
+
end
|
598
|
+
|
599
|
+
response = @client_stub.make_http_request(
|
600
|
+
verb,
|
601
|
+
uri: uri,
|
602
|
+
body: body || "",
|
603
|
+
params: query_string_params,
|
604
|
+
options: options
|
605
|
+
)
|
606
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
607
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
608
|
+
|
609
|
+
yield result, operation if block_given?
|
610
|
+
result
|
611
|
+
end
|
612
|
+
|
537
613
|
##
|
538
614
|
# Baseline implementation for the update REST call
|
539
615
|
#
|
@@ -770,6 +846,27 @@ module Google
|
|
770
846
|
transcoder.transcode request_pb
|
771
847
|
end
|
772
848
|
|
849
|
+
##
|
850
|
+
# @private
|
851
|
+
#
|
852
|
+
# GRPC transcoding helper method for the list_usable REST call
|
853
|
+
#
|
854
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListUsableBackendServicesRequest]
|
855
|
+
# A request object representing the call parameters. Required.
|
856
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
857
|
+
# Uri, Body, Query string parameters
|
858
|
+
def self.transcode_list_usable_request request_pb
|
859
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
860
|
+
.with_bindings(
|
861
|
+
uri_method: :get,
|
862
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/listUsable",
|
863
|
+
matches: [
|
864
|
+
["project", %r{^[^/]+/?$}, false]
|
865
|
+
]
|
866
|
+
)
|
867
|
+
transcoder.transcode request_pb
|
868
|
+
end
|
869
|
+
|
773
870
|
##
|
774
871
|
# @private
|
775
872
|
#
|
@@ -862,6 +959,29 @@ module Google
|
|
862
959
|
transcoder.transcode request_pb
|
863
960
|
end
|
864
961
|
|
962
|
+
##
|
963
|
+
# @private
|
964
|
+
#
|
965
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
966
|
+
#
|
967
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest]
|
968
|
+
# A request object representing the call parameters. Required.
|
969
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
970
|
+
# Uri, Body, Query string parameters
|
971
|
+
def self.transcode_test_iam_permissions_request request_pb
|
972
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
973
|
+
.with_bindings(
|
974
|
+
uri_method: :post,
|
975
|
+
uri_template: "/compute/v1/projects/{project}/global/backendServices/{resource}/testIamPermissions",
|
976
|
+
body: "test_permissions_request_resource",
|
977
|
+
matches: [
|
978
|
+
["project", %r{^[^/]+/?$}, false],
|
979
|
+
["resource", %r{^[^/]+/?$}, false]
|
980
|
+
]
|
981
|
+
)
|
982
|
+
transcoder.transcode request_pb
|
983
|
+
end
|
984
|
+
|
865
985
|
##
|
866
986
|
# @private
|
867
987
|
#
|