google-cloud-compute-v1 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
- 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 +198 -23
- 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 +281 -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 +390 -42
- 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 +217 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
- 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 +473 -40
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
- 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 +1144 -99
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -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_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 +1268 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -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 +269 -29
- 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 +1268 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -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_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
- 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_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_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 +10 -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 +234 -22
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
- 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 +320 -20
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
- 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/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +10 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
- metadata +52 -2
|
@@ -113,6 +113,46 @@ module Google
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the add_network_interface REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def add_network_interface request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_add_network_interface_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "add_network_interface",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
116
156
|
##
|
|
117
157
|
# Baseline implementation for the add_resource_policies REST call
|
|
118
158
|
#
|
|
@@ -353,6 +393,46 @@ module Google
|
|
|
353
393
|
end
|
|
354
394
|
end
|
|
355
395
|
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the delete_network_interface REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def delete_network_interface request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_network_interface_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "delete_network_interface",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
356
436
|
##
|
|
357
437
|
# Baseline implementation for the detach_disk REST call
|
|
358
438
|
#
|
|
@@ -2057,6 +2137,30 @@ module Google
|
|
|
2057
2137
|
transcoder.transcode request_pb
|
|
2058
2138
|
end
|
|
2059
2139
|
|
|
2140
|
+
##
|
|
2141
|
+
# @private
|
|
2142
|
+
#
|
|
2143
|
+
# GRPC transcoding helper method for the add_network_interface REST call
|
|
2144
|
+
#
|
|
2145
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest]
|
|
2146
|
+
# A request object representing the call parameters. Required.
|
|
2147
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2148
|
+
# Uri, Body, Query string parameters
|
|
2149
|
+
def self.transcode_add_network_interface_request request_pb
|
|
2150
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2151
|
+
.with_bindings(
|
|
2152
|
+
uri_method: :post,
|
|
2153
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface",
|
|
2154
|
+
body: "network_interface_resource",
|
|
2155
|
+
matches: [
|
|
2156
|
+
["project", %r{^[^/]+/?$}, false],
|
|
2157
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
2158
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
2159
|
+
]
|
|
2160
|
+
)
|
|
2161
|
+
transcoder.transcode request_pb
|
|
2162
|
+
end
|
|
2163
|
+
|
|
2060
2164
|
##
|
|
2061
2165
|
# @private
|
|
2062
2166
|
#
|
|
@@ -2195,6 +2299,29 @@ module Google
|
|
|
2195
2299
|
transcoder.transcode request_pb
|
|
2196
2300
|
end
|
|
2197
2301
|
|
|
2302
|
+
##
|
|
2303
|
+
# @private
|
|
2304
|
+
#
|
|
2305
|
+
# GRPC transcoding helper method for the delete_network_interface REST call
|
|
2306
|
+
#
|
|
2307
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest]
|
|
2308
|
+
# A request object representing the call parameters. Required.
|
|
2309
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2310
|
+
# Uri, Body, Query string parameters
|
|
2311
|
+
def self.transcode_delete_network_interface_request request_pb
|
|
2312
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2313
|
+
.with_bindings(
|
|
2314
|
+
uri_method: :post,
|
|
2315
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface",
|
|
2316
|
+
matches: [
|
|
2317
|
+
["project", %r{^[^/]+/?$}, false],
|
|
2318
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
2319
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
2320
|
+
]
|
|
2321
|
+
)
|
|
2322
|
+
transcoder.transcode request_pb
|
|
2323
|
+
end
|
|
2324
|
+
|
|
2198
2325
|
##
|
|
2199
2326
|
# @private
|
|
2200
2327
|
#
|
|
@@ -220,7 +220,10 @@ module Google
|
|
|
220
220
|
# Service calls
|
|
221
221
|
|
|
222
222
|
##
|
|
223
|
-
# Retrieves an aggregated list of instantSnapshots.
|
|
223
|
+
# Retrieves an aggregated list of instantSnapshots.
|
|
224
|
+
#
|
|
225
|
+
# To prevent failure, Google recommends that you set the
|
|
226
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
224
227
|
#
|
|
225
228
|
# @overload aggregated_list(request, options = nil)
|
|
226
229
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
|
@@ -238,21 +241,106 @@ module Google
|
|
|
238
241
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
239
242
|
#
|
|
240
243
|
# @param filter [::String]
|
|
241
|
-
# A filter expression that filters resources listed in the response. Most
|
|
244
|
+
# A filter expression that filters resources listed in the response. Most
|
|
245
|
+
# Compute resources support two types of filter expressions:
|
|
246
|
+
# expressions that support regular expressions and expressions that follow
|
|
247
|
+
# API improvement proposal AIP-160.
|
|
248
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
249
|
+
#
|
|
250
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
251
|
+
# operator, and the value that you want to use for filtering. The value
|
|
252
|
+
# must be a string, a number, or a boolean. The operator
|
|
253
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
254
|
+
#
|
|
255
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
256
|
+
# exclude instances named `example-instance` by specifying
|
|
257
|
+
# `name != example-instance`.
|
|
258
|
+
#
|
|
259
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
260
|
+
# For example, to find all objects with `owner` label use:
|
|
261
|
+
# ```
|
|
262
|
+
# labels.owner:*
|
|
263
|
+
# ```
|
|
264
|
+
#
|
|
265
|
+
# You can also filter nested fields. For example, you could specify
|
|
266
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
267
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
268
|
+
# on nested fields to filter based onresource labels.
|
|
269
|
+
#
|
|
270
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
271
|
+
# parentheses. For example:
|
|
272
|
+
# ```
|
|
273
|
+
# (scheduling.automaticRestart = true)
|
|
274
|
+
# (cpuPlatform = "Intel Skylake")
|
|
275
|
+
# ```
|
|
276
|
+
# By default, each expression is an `AND` expression. However, you
|
|
277
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
278
|
+
# For example:
|
|
279
|
+
# ```
|
|
280
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
281
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
282
|
+
# (scheduling.automaticRestart = true)
|
|
283
|
+
# ```
|
|
284
|
+
#
|
|
285
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
286
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
287
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
288
|
+
#
|
|
289
|
+
# `fieldname eq unquoted literal`
|
|
290
|
+
# `fieldname eq 'single quoted literal'`
|
|
291
|
+
# `fieldname eq "double quoted literal"`
|
|
292
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
293
|
+
#
|
|
294
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
295
|
+
# The literal value must match the entire field.
|
|
296
|
+
#
|
|
297
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
298
|
+
# you would use `name ne .*instance`.
|
|
299
|
+
#
|
|
300
|
+
# You cannot combine constraints on multiple fields using regular
|
|
301
|
+
# expressions.
|
|
242
302
|
# @param include_all_scopes [::Boolean]
|
|
243
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
|
303
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
304
|
+
# global) should be included in the response. For new resource types added
|
|
305
|
+
# after this field, the flag has no effect as new resource types will always
|
|
306
|
+
# include every visible scope for each scope type in response. For resource
|
|
307
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
308
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
309
|
+
# will be included.
|
|
244
310
|
# @param max_results [::Integer]
|
|
245
|
-
# The maximum number of results per page that should be returned.
|
|
311
|
+
# The maximum number of results per page that should be returned.
|
|
312
|
+
# If the number of available results is larger than `maxResults`,
|
|
313
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
314
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
315
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
246
316
|
# @param order_by [::String]
|
|
247
|
-
# Sorts list results by a certain order. By default, results
|
|
317
|
+
# Sorts list results by a certain order. By default, results
|
|
318
|
+
# are returned in alphanumerical order based on the resource name.
|
|
319
|
+
#
|
|
320
|
+
# You can also sort results in descending order based on the creation
|
|
321
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
322
|
+
# results based on the `creationTimestamp` field in
|
|
323
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
324
|
+
# resources like operations so that the newest operation is returned first.
|
|
325
|
+
#
|
|
326
|
+
# Currently, only sorting by `name` or
|
|
327
|
+
# `creationTimestamp desc` is supported.
|
|
248
328
|
# @param page_token [::String]
|
|
249
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
329
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
330
|
+
# `nextPageToken` returned by a previous list request to get
|
|
331
|
+
# the next page of results.
|
|
250
332
|
# @param project [::String]
|
|
251
333
|
# Project ID for this request.
|
|
252
334
|
# @param return_partial_success [::Boolean]
|
|
253
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
335
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
336
|
+
# of failure. The default value is false.
|
|
337
|
+
#
|
|
338
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
339
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
340
|
+
# with an error code.
|
|
254
341
|
# @param service_project_number [::Integer]
|
|
255
|
-
# The Shared VPC service project id or service project number for which
|
|
342
|
+
# The Shared VPC service project id or service project number for which
|
|
343
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
256
344
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
257
345
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstantSnapshotsScopedList>]
|
|
258
346
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -314,7 +402,14 @@ module Google
|
|
|
314
402
|
end
|
|
315
403
|
|
|
316
404
|
##
|
|
317
|
-
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting
|
|
405
|
+
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting
|
|
406
|
+
# a single instantSnapshot might not necessarily delete all the data on that
|
|
407
|
+
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
|
408
|
+
# deletion is needed for subsequent instantSnapshots, the data will be moved
|
|
409
|
+
# to the next corresponding instantSnapshot.
|
|
410
|
+
#
|
|
411
|
+
# For more information, seeDeleting
|
|
412
|
+
# instantSnapshots.
|
|
318
413
|
#
|
|
319
414
|
# @overload delete(request, options = nil)
|
|
320
415
|
# Pass arguments to `delete` via a request object, either of type
|
|
@@ -336,7 +431,19 @@ module Google
|
|
|
336
431
|
# @param project [::String]
|
|
337
432
|
# Project ID for this request.
|
|
338
433
|
# @param request_id [::String]
|
|
339
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
434
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
435
|
+
# that if you must retry your request, the server will know to ignore the
|
|
436
|
+
# request if it has already been completed.
|
|
437
|
+
#
|
|
438
|
+
# For example, consider a situation where you make an initial request and
|
|
439
|
+
# the request times out. If you make the request again with the same
|
|
440
|
+
# request ID, the server can check if original operation with the same
|
|
441
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
442
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
443
|
+
#
|
|
444
|
+
# The request ID must be
|
|
445
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
446
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
340
447
|
# @param zone [::String]
|
|
341
448
|
# The name of the zone for this request.
|
|
342
449
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -490,7 +597,8 @@ module Google
|
|
|
490
597
|
end
|
|
491
598
|
|
|
492
599
|
##
|
|
493
|
-
# Gets the access control policy for a resource. May be empty if no such
|
|
600
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
601
|
+
# policy or resource exists.
|
|
494
602
|
#
|
|
495
603
|
# @overload get_iam_policy(request, options = nil)
|
|
496
604
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
@@ -596,7 +704,19 @@ module Google
|
|
|
596
704
|
# @param project [::String]
|
|
597
705
|
# Project ID for this request.
|
|
598
706
|
# @param request_id [::String]
|
|
599
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
707
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
708
|
+
# that if you must retry your request, the server will know to ignore the
|
|
709
|
+
# request if it has already been completed.
|
|
710
|
+
#
|
|
711
|
+
# For example, consider a situation where you make an initial request and
|
|
712
|
+
# the request times out. If you make the request again with the same
|
|
713
|
+
# request ID, the server can check if original operation with the same
|
|
714
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
715
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
716
|
+
#
|
|
717
|
+
# The request ID must be
|
|
718
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
719
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
600
720
|
# @param zone [::String]
|
|
601
721
|
# Name of the zone for this request.
|
|
602
722
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -668,7 +788,8 @@ module Google
|
|
|
668
788
|
end
|
|
669
789
|
|
|
670
790
|
##
|
|
671
|
-
# Retrieves the list of InstantSnapshot resources contained within
|
|
791
|
+
# Retrieves the list of InstantSnapshot resources contained within
|
|
792
|
+
# the specified zone.
|
|
672
793
|
#
|
|
673
794
|
# @overload list(request, options = nil)
|
|
674
795
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -686,17 +807,95 @@ module Google
|
|
|
686
807
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
687
808
|
#
|
|
688
809
|
# @param filter [::String]
|
|
689
|
-
# A filter expression that filters resources listed in the response. Most
|
|
810
|
+
# A filter expression that filters resources listed in the response. Most
|
|
811
|
+
# Compute resources support two types of filter expressions:
|
|
812
|
+
# expressions that support regular expressions and expressions that follow
|
|
813
|
+
# API improvement proposal AIP-160.
|
|
814
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
815
|
+
#
|
|
816
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
817
|
+
# operator, and the value that you want to use for filtering. The value
|
|
818
|
+
# must be a string, a number, or a boolean. The operator
|
|
819
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
820
|
+
#
|
|
821
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
822
|
+
# exclude instances named `example-instance` by specifying
|
|
823
|
+
# `name != example-instance`.
|
|
824
|
+
#
|
|
825
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
826
|
+
# For example, to find all objects with `owner` label use:
|
|
827
|
+
# ```
|
|
828
|
+
# labels.owner:*
|
|
829
|
+
# ```
|
|
830
|
+
#
|
|
831
|
+
# You can also filter nested fields. For example, you could specify
|
|
832
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
833
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
834
|
+
# on nested fields to filter based onresource labels.
|
|
835
|
+
#
|
|
836
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
837
|
+
# parentheses. For example:
|
|
838
|
+
# ```
|
|
839
|
+
# (scheduling.automaticRestart = true)
|
|
840
|
+
# (cpuPlatform = "Intel Skylake")
|
|
841
|
+
# ```
|
|
842
|
+
# By default, each expression is an `AND` expression. However, you
|
|
843
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
844
|
+
# For example:
|
|
845
|
+
# ```
|
|
846
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
847
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
848
|
+
# (scheduling.automaticRestart = true)
|
|
849
|
+
# ```
|
|
850
|
+
#
|
|
851
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
852
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
853
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
854
|
+
#
|
|
855
|
+
# `fieldname eq unquoted literal`
|
|
856
|
+
# `fieldname eq 'single quoted literal'`
|
|
857
|
+
# `fieldname eq "double quoted literal"`
|
|
858
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
859
|
+
#
|
|
860
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
861
|
+
# The literal value must match the entire field.
|
|
862
|
+
#
|
|
863
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
864
|
+
# you would use `name ne .*instance`.
|
|
865
|
+
#
|
|
866
|
+
# You cannot combine constraints on multiple fields using regular
|
|
867
|
+
# expressions.
|
|
690
868
|
# @param max_results [::Integer]
|
|
691
|
-
# The maximum number of results per page that should be returned.
|
|
869
|
+
# The maximum number of results per page that should be returned.
|
|
870
|
+
# If the number of available results is larger than `maxResults`,
|
|
871
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
872
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
873
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
692
874
|
# @param order_by [::String]
|
|
693
|
-
# Sorts list results by a certain order. By default, results
|
|
875
|
+
# Sorts list results by a certain order. By default, results
|
|
876
|
+
# are returned in alphanumerical order based on the resource name.
|
|
877
|
+
#
|
|
878
|
+
# You can also sort results in descending order based on the creation
|
|
879
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
880
|
+
# results based on the `creationTimestamp` field in
|
|
881
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
882
|
+
# resources like operations so that the newest operation is returned first.
|
|
883
|
+
#
|
|
884
|
+
# Currently, only sorting by `name` or
|
|
885
|
+
# `creationTimestamp desc` is supported.
|
|
694
886
|
# @param page_token [::String]
|
|
695
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
887
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
888
|
+
# `nextPageToken` returned by a previous list request to get
|
|
889
|
+
# the next page of results.
|
|
696
890
|
# @param project [::String]
|
|
697
891
|
# Project ID for this request.
|
|
698
892
|
# @param return_partial_success [::Boolean]
|
|
699
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
893
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
894
|
+
# of failure. The default value is false.
|
|
895
|
+
#
|
|
896
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
897
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
898
|
+
# with an error code.
|
|
700
899
|
# @param zone [::String]
|
|
701
900
|
# The name of the zone for this request.
|
|
702
901
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -760,7 +959,8 @@ module Google
|
|
|
760
959
|
end
|
|
761
960
|
|
|
762
961
|
##
|
|
763
|
-
# Sets the access control policy on the specified resource.
|
|
962
|
+
# Sets the access control policy on the specified resource.
|
|
963
|
+
# Replaces any existing policy.
|
|
764
964
|
#
|
|
765
965
|
# @overload set_iam_policy(request, options = nil)
|
|
766
966
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
@@ -844,7 +1044,9 @@ module Google
|
|
|
844
1044
|
end
|
|
845
1045
|
|
|
846
1046
|
##
|
|
847
|
-
# Sets the labels on a instantSnapshot in the given zone. To learn more about
|
|
1047
|
+
# Sets the labels on a instantSnapshot in the given zone. To learn more about
|
|
1048
|
+
# labels, read the Labeling
|
|
1049
|
+
# Resources documentation.
|
|
848
1050
|
#
|
|
849
1051
|
# @overload set_labels(request, options = nil)
|
|
850
1052
|
# Pass arguments to `set_labels` via a request object, either of type
|
|
@@ -864,7 +1066,19 @@ module Google
|
|
|
864
1066
|
# @param project [::String]
|
|
865
1067
|
# Project ID for this request.
|
|
866
1068
|
# @param request_id [::String]
|
|
867
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1069
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1070
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1071
|
+
# request if it has already been completed.
|
|
1072
|
+
#
|
|
1073
|
+
# For example, consider a situation where you make an initial request and
|
|
1074
|
+
# the request times out. If you make the request again with the same
|
|
1075
|
+
# request ID, the server can check if original operation with the same
|
|
1076
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1077
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1078
|
+
#
|
|
1079
|
+
# The request ID must be
|
|
1080
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1081
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
868
1082
|
# @param resource [::String]
|
|
869
1083
|
# Name or id of the resource for this request.
|
|
870
1084
|
# @param zone [::String]
|