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
@@ -1256,6 +1256,44 @@ module Google
|
|
1256
1256
|
result
|
1257
1257
|
end
|
1258
1258
|
|
1259
|
+
##
|
1260
|
+
# Baseline implementation for the set_security_policy REST call
|
1261
|
+
#
|
1262
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSecurityPolicyInstanceRequest]
|
1263
|
+
# A request object representing the call parameters. Required.
|
1264
|
+
# @param options [::Gapic::CallOptions]
|
1265
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1266
|
+
#
|
1267
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1268
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1269
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1270
|
+
#
|
1271
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
1272
|
+
# A result object deserialized from the server's reply
|
1273
|
+
def set_security_policy request_pb, options = nil
|
1274
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1275
|
+
|
1276
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_security_policy_request request_pb
|
1277
|
+
query_string_params = if query_string_params.any?
|
1278
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1279
|
+
else
|
1280
|
+
{}
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
response = @client_stub.make_http_request(
|
1284
|
+
verb,
|
1285
|
+
uri: uri,
|
1286
|
+
body: body || "",
|
1287
|
+
params: query_string_params,
|
1288
|
+
options: options
|
1289
|
+
)
|
1290
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1291
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1292
|
+
|
1293
|
+
yield result, operation if block_given?
|
1294
|
+
result
|
1295
|
+
end
|
1296
|
+
|
1259
1297
|
##
|
1260
1298
|
# Baseline implementation for the set_service_account REST call
|
1261
1299
|
#
|
@@ -2533,6 +2571,30 @@ module Google
|
|
2533
2571
|
transcoder.transcode request_pb
|
2534
2572
|
end
|
2535
2573
|
|
2574
|
+
##
|
2575
|
+
# @private
|
2576
|
+
#
|
2577
|
+
# GRPC transcoding helper method for the set_security_policy REST call
|
2578
|
+
#
|
2579
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetSecurityPolicyInstanceRequest]
|
2580
|
+
# A request object representing the call parameters. Required.
|
2581
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2582
|
+
# Uri, Body, Query string parameters
|
2583
|
+
def self.transcode_set_security_policy_request request_pb
|
2584
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2585
|
+
.with_bindings(
|
2586
|
+
uri_method: :post,
|
2587
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy",
|
2588
|
+
body: "instances_set_security_policy_request_resource",
|
2589
|
+
matches: [
|
2590
|
+
["project", %r{^[^/]+/?$}, false],
|
2591
|
+
["zone", %r{^[^/]+/?$}, false],
|
2592
|
+
["instance", %r{^[^/]+/?$}, false]
|
2593
|
+
]
|
2594
|
+
)
|
2595
|
+
transcoder.transcode request_pb
|
2596
|
+
end
|
2597
|
+
|
2536
2598
|
##
|
2537
2599
|
# @private
|
2538
2600
|
#
|
@@ -183,13 +183,13 @@ module Google
|
|
183
183
|
# @param options [::Gapic::CallOptions, ::Hash]
|
184
184
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
185
|
#
|
186
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
186
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
187
187
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
188
188
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
189
189
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
190
190
|
#
|
191
191
|
# @param filter [::String]
|
192
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
192
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
193
193
|
# @param include_all_scopes [::Boolean]
|
194
194
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
195
195
|
# @param max_results [::Integer]
|
@@ -202,6 +202,7 @@ module Google
|
|
202
202
|
# Project ID for this request.
|
203
203
|
# @param return_partial_success [::Boolean]
|
204
204
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
205
|
+
# @param service_project_number [::Integer]
|
205
206
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
207
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InterconnectAttachmentsScopedList>]
|
207
208
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -209,6 +210,22 @@ module Google
|
|
209
210
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InterconnectAttachmentsScopedList>]
|
210
211
|
#
|
211
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/compute/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInterconnectAttachmentsRequest.new
|
222
|
+
#
|
223
|
+
# # Call the aggregated_list method.
|
224
|
+
# result = client.aggregated_list request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachmentAggregatedList.
|
227
|
+
# p result
|
228
|
+
#
|
212
229
|
def aggregated_list request, options = nil
|
213
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
231
|
|
@@ -278,6 +295,22 @@ module Google
|
|
278
295
|
# @return [::Gapic::GenericLRO::Operation]
|
279
296
|
#
|
280
297
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
298
|
+
#
|
299
|
+
# @example Basic example
|
300
|
+
# require "google/cloud/compute/v1"
|
301
|
+
#
|
302
|
+
# # Create a client object. The client can be reused for multiple calls.
|
303
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
304
|
+
#
|
305
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
306
|
+
# request = Google::Cloud::Compute::V1::DeleteInterconnectAttachmentRequest.new
|
307
|
+
#
|
308
|
+
# # Call the delete method.
|
309
|
+
# result = client.delete request
|
310
|
+
#
|
311
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
312
|
+
# p result
|
313
|
+
#
|
281
314
|
def delete request, options = nil
|
282
315
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
316
|
|
@@ -353,6 +386,22 @@ module Google
|
|
353
386
|
# @return [::Google::Cloud::Compute::V1::InterconnectAttachment]
|
354
387
|
#
|
355
388
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
|
+
#
|
390
|
+
# @example Basic example
|
391
|
+
# require "google/cloud/compute/v1"
|
392
|
+
#
|
393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
394
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectAttachmentRequest.new
|
398
|
+
#
|
399
|
+
# # Call the get method.
|
400
|
+
# result = client.get request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachment.
|
403
|
+
# p result
|
404
|
+
#
|
356
405
|
def get request, options = nil
|
357
406
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
407
|
|
@@ -423,6 +472,22 @@ module Google
|
|
423
472
|
# @return [::Gapic::GenericLRO::Operation]
|
424
473
|
#
|
425
474
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
475
|
+
#
|
476
|
+
# @example Basic example
|
477
|
+
# require "google/cloud/compute/v1"
|
478
|
+
#
|
479
|
+
# # Create a client object. The client can be reused for multiple calls.
|
480
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
481
|
+
#
|
482
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
483
|
+
# request = Google::Cloud::Compute::V1::InsertInterconnectAttachmentRequest.new
|
484
|
+
#
|
485
|
+
# # Call the insert method.
|
486
|
+
# result = client.insert request
|
487
|
+
#
|
488
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
489
|
+
# p result
|
490
|
+
#
|
426
491
|
def insert request, options = nil
|
427
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
493
|
|
@@ -486,7 +551,7 @@ module Google
|
|
486
551
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
487
552
|
#
|
488
553
|
# @param filter [::String]
|
489
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
554
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
490
555
|
# @param max_results [::Integer]
|
491
556
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
492
557
|
# @param order_by [::String]
|
@@ -506,6 +571,22 @@ module Google
|
|
506
571
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectAttachment>]
|
507
572
|
#
|
508
573
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
574
|
+
#
|
575
|
+
# @example Basic example
|
576
|
+
# require "google/cloud/compute/v1"
|
577
|
+
#
|
578
|
+
# # Create a client object. The client can be reused for multiple calls.
|
579
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
580
|
+
#
|
581
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
582
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectAttachmentsRequest.new
|
583
|
+
#
|
584
|
+
# # Call the list method.
|
585
|
+
# result = client.list request
|
586
|
+
#
|
587
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectAttachmentList.
|
588
|
+
# p result
|
589
|
+
#
|
509
590
|
def list request, options = nil
|
510
591
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
592
|
|
@@ -577,6 +658,22 @@ module Google
|
|
577
658
|
# @return [::Gapic::GenericLRO::Operation]
|
578
659
|
#
|
579
660
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
661
|
+
#
|
662
|
+
# @example Basic example
|
663
|
+
# require "google/cloud/compute/v1"
|
664
|
+
#
|
665
|
+
# # Create a client object. The client can be reused for multiple calls.
|
666
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
667
|
+
#
|
668
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
669
|
+
# request = Google::Cloud::Compute::V1::PatchInterconnectAttachmentRequest.new
|
670
|
+
#
|
671
|
+
# # Call the patch method.
|
672
|
+
# result = client.patch request
|
673
|
+
#
|
674
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
675
|
+
# p result
|
676
|
+
#
|
580
677
|
def patch request, options = nil
|
581
678
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
679
|
|
@@ -656,6 +753,22 @@ module Google
|
|
656
753
|
# @return [::Gapic::GenericLRO::Operation]
|
657
754
|
#
|
658
755
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
756
|
+
#
|
757
|
+
# @example Basic example
|
758
|
+
# require "google/cloud/compute/v1"
|
759
|
+
#
|
760
|
+
# # Create a client object. The client can be reused for multiple calls.
|
761
|
+
# client = Google::Cloud::Compute::V1::InterconnectAttachments::Rest::Client.new
|
762
|
+
#
|
763
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
764
|
+
# request = Google::Cloud::Compute::V1::SetLabelsInterconnectAttachmentRequest.new
|
765
|
+
#
|
766
|
+
# # Call the set_labels method.
|
767
|
+
# result = client.set_labels request
|
768
|
+
#
|
769
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
770
|
+
# p result
|
771
|
+
#
|
659
772
|
def set_labels request, options = nil
|
660
773
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
661
774
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::InterconnectLocation]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/compute/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectLocationRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectLocation.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -226,7 +242,7 @@ module Google
|
|
226
242
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
227
243
|
#
|
228
244
|
# @param filter [::String]
|
229
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
245
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
230
246
|
# @param max_results [::Integer]
|
231
247
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
232
248
|
# @param order_by [::String]
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectLocation>]
|
245
261
|
#
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
#
|
264
|
+
# @example Basic example
|
265
|
+
# require "google/cloud/compute/v1"
|
266
|
+
#
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
268
|
+
# client = Google::Cloud::Compute::V1::InterconnectLocations::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectLocationsRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectLocationList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/compute/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocation.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -226,7 +242,7 @@ module Google
|
|
226
242
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
227
243
|
#
|
228
244
|
# @param filter [::String]
|
229
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
245
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
230
246
|
# @param max_results [::Integer]
|
231
247
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
232
248
|
# @param order_by [::String]
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
|
245
261
|
#
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
#
|
264
|
+
# @example Basic example
|
265
|
+
# require "google/cloud/compute/v1"
|
266
|
+
#
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
268
|
+
# client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocationList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|