google-cloud-compute-v1 3.4.0 → 3.6.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 +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +237 -20
- data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/advice.rb +47 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +573 -23
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +357 -25
- data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +508 -42
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
- data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +380 -40
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
- data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
- data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1363 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +387 -29
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1363 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
- data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
- data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
- data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/rest.rb +17 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +17 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
- metadata +87 -2
|
@@ -833,6 +833,46 @@ module Google
|
|
|
833
833
|
end
|
|
834
834
|
end
|
|
835
835
|
|
|
836
|
+
##
|
|
837
|
+
# Baseline implementation for the update_kms_key REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def update_kms_key request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_kms_key_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "update_kms_key",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
836
876
|
##
|
|
837
877
|
# @private
|
|
838
878
|
#
|
|
@@ -1275,6 +1315,30 @@ module Google
|
|
|
1275
1315
|
)
|
|
1276
1316
|
transcoder.transcode request_pb
|
|
1277
1317
|
end
|
|
1318
|
+
|
|
1319
|
+
##
|
|
1320
|
+
# @private
|
|
1321
|
+
#
|
|
1322
|
+
# GRPC transcoding helper method for the update_kms_key REST call
|
|
1323
|
+
#
|
|
1324
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest]
|
|
1325
|
+
# A request object representing the call parameters. Required.
|
|
1326
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1327
|
+
# Uri, Body, Query string parameters
|
|
1328
|
+
def self.transcode_update_kms_key_request request_pb
|
|
1329
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1330
|
+
.with_bindings(
|
|
1331
|
+
uri_method: :post,
|
|
1332
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey",
|
|
1333
|
+
body: "disk_update_kms_key_request_resource",
|
|
1334
|
+
matches: [
|
|
1335
|
+
["project", %r{^[^/]+/?$}, false],
|
|
1336
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
1337
|
+
["disk", %r{^[^/]+/?$}, false]
|
|
1338
|
+
]
|
|
1339
|
+
)
|
|
1340
|
+
transcoder.transcode request_pb
|
|
1341
|
+
end
|
|
1278
1342
|
end
|
|
1279
1343
|
end
|
|
1280
1344
|
end
|
|
@@ -230,7 +230,19 @@ module Google
|
|
|
230
230
|
# @param project [::String]
|
|
231
231
|
# Project ID for this request.
|
|
232
232
|
# @param request_id [::String]
|
|
233
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
233
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
234
|
+
# that if you must retry your request, the server will know to ignore the
|
|
235
|
+
# request if it has already been completed.
|
|
236
|
+
#
|
|
237
|
+
# For example, consider a situation where you make an initial request and
|
|
238
|
+
# the request times out. If you make the request again with the same
|
|
239
|
+
# request ID, the server can check if original operation with the same
|
|
240
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
241
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
242
|
+
#
|
|
243
|
+
# The request ID must be
|
|
244
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
245
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
234
246
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
235
247
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
236
248
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -299,7 +311,8 @@ module Google
|
|
|
299
311
|
end
|
|
300
312
|
|
|
301
313
|
##
|
|
302
|
-
# Returns the specified externalVpnGateway. Get a list of available
|
|
314
|
+
# Returns the specified externalVpnGateway. Get a list of available
|
|
315
|
+
# externalVpnGateways by making a list() request.
|
|
303
316
|
#
|
|
304
317
|
# @overload get(request, options = nil)
|
|
305
318
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -379,7 +392,8 @@ module Google
|
|
|
379
392
|
end
|
|
380
393
|
|
|
381
394
|
##
|
|
382
|
-
# Creates a ExternalVpnGateway in the specified project using
|
|
395
|
+
# Creates a ExternalVpnGateway in the specified project using
|
|
396
|
+
# the data included in the request.
|
|
383
397
|
#
|
|
384
398
|
# @overload insert(request, options = nil)
|
|
385
399
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -401,7 +415,19 @@ module Google
|
|
|
401
415
|
# @param project [::String]
|
|
402
416
|
# Project ID for this request.
|
|
403
417
|
# @param request_id [::String]
|
|
404
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
418
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
419
|
+
# that if you must retry your request, the server will know to ignore the
|
|
420
|
+
# request if it has already been completed.
|
|
421
|
+
#
|
|
422
|
+
# For example, consider a situation where you make an initial request and
|
|
423
|
+
# the request times out. If you make the request again with the same
|
|
424
|
+
# request ID, the server can check if original operation with the same
|
|
425
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
426
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
427
|
+
#
|
|
428
|
+
# The request ID must be
|
|
429
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
430
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
405
431
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
406
432
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
407
433
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -470,7 +496,8 @@ module Google
|
|
|
470
496
|
end
|
|
471
497
|
|
|
472
498
|
##
|
|
473
|
-
# Retrieves the list of ExternalVpnGateway available to the specified
|
|
499
|
+
# Retrieves the list of ExternalVpnGateway available to the specified
|
|
500
|
+
# project.
|
|
474
501
|
#
|
|
475
502
|
# @overload list(request, options = nil)
|
|
476
503
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -488,17 +515,95 @@ module Google
|
|
|
488
515
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
489
516
|
#
|
|
490
517
|
# @param filter [::String]
|
|
491
|
-
# A filter expression that filters resources listed in the response. Most
|
|
518
|
+
# A filter expression that filters resources listed in the response. Most
|
|
519
|
+
# Compute resources support two types of filter expressions:
|
|
520
|
+
# expressions that support regular expressions and expressions that follow
|
|
521
|
+
# API improvement proposal AIP-160.
|
|
522
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
523
|
+
#
|
|
524
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
525
|
+
# operator, and the value that you want to use for filtering. The value
|
|
526
|
+
# must be a string, a number, or a boolean. The operator
|
|
527
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
528
|
+
#
|
|
529
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
530
|
+
# exclude instances named `example-instance` by specifying
|
|
531
|
+
# `name != example-instance`.
|
|
532
|
+
#
|
|
533
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
534
|
+
# For example, to find all objects with `owner` label use:
|
|
535
|
+
# ```
|
|
536
|
+
# labels.owner:*
|
|
537
|
+
# ```
|
|
538
|
+
#
|
|
539
|
+
# You can also filter nested fields. For example, you could specify
|
|
540
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
541
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
542
|
+
# on nested fields to filter based onresource labels.
|
|
543
|
+
#
|
|
544
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
545
|
+
# parentheses. For example:
|
|
546
|
+
# ```
|
|
547
|
+
# (scheduling.automaticRestart = true)
|
|
548
|
+
# (cpuPlatform = "Intel Skylake")
|
|
549
|
+
# ```
|
|
550
|
+
# By default, each expression is an `AND` expression. However, you
|
|
551
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
552
|
+
# For example:
|
|
553
|
+
# ```
|
|
554
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
555
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
556
|
+
# (scheduling.automaticRestart = true)
|
|
557
|
+
# ```
|
|
558
|
+
#
|
|
559
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
560
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
561
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
562
|
+
#
|
|
563
|
+
# `fieldname eq unquoted literal`
|
|
564
|
+
# `fieldname eq 'single quoted literal'`
|
|
565
|
+
# `fieldname eq "double quoted literal"`
|
|
566
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
567
|
+
#
|
|
568
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
569
|
+
# The literal value must match the entire field.
|
|
570
|
+
#
|
|
571
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
572
|
+
# you would use `name ne .*instance`.
|
|
573
|
+
#
|
|
574
|
+
# You cannot combine constraints on multiple fields using regular
|
|
575
|
+
# expressions.
|
|
492
576
|
# @param max_results [::Integer]
|
|
493
|
-
# The maximum number of results per page that should be returned.
|
|
577
|
+
# The maximum number of results per page that should be returned.
|
|
578
|
+
# If the number of available results is larger than `maxResults`,
|
|
579
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
580
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
581
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
494
582
|
# @param order_by [::String]
|
|
495
|
-
# Sorts list results by a certain order. By default, results
|
|
583
|
+
# Sorts list results by a certain order. By default, results
|
|
584
|
+
# are returned in alphanumerical order based on the resource name.
|
|
585
|
+
#
|
|
586
|
+
# You can also sort results in descending order based on the creation
|
|
587
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
588
|
+
# results based on the `creationTimestamp` field in
|
|
589
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
590
|
+
# resources like operations so that the newest operation is returned first.
|
|
591
|
+
#
|
|
592
|
+
# Currently, only sorting by `name` or
|
|
593
|
+
# `creationTimestamp desc` is supported.
|
|
496
594
|
# @param page_token [::String]
|
|
497
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
595
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
596
|
+
# `nextPageToken` returned by a previous list request to get
|
|
597
|
+
# the next page of results.
|
|
498
598
|
# @param project [::String]
|
|
499
599
|
# Project ID for this request.
|
|
500
600
|
# @param return_partial_success [::Boolean]
|
|
501
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
601
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
602
|
+
# of failure. The default value is false.
|
|
603
|
+
#
|
|
604
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
605
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
606
|
+
# with an error code.
|
|
502
607
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
503
608
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExternalVpnGateway>]
|
|
504
609
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -560,7 +665,9 @@ module Google
|
|
|
560
665
|
end
|
|
561
666
|
|
|
562
667
|
##
|
|
563
|
-
# Sets the labels on an ExternalVpnGateway. To learn more about labels,
|
|
668
|
+
# Sets the labels on an ExternalVpnGateway. To learn more about labels,
|
|
669
|
+
# read the Labeling
|
|
670
|
+
# Resources documentation.
|
|
564
671
|
#
|
|
565
672
|
# @overload set_labels(request, options = nil)
|
|
566
673
|
# Pass arguments to `set_labels` via a request object, either of type
|