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
@@ -161,13 +161,13 @@ module Google
|
|
161
161
|
# @param options [::Gapic::CallOptions, ::Hash]
|
162
162
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
163
163
|
#
|
164
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
164
|
+
# @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)
|
165
165
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
166
166
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
167
167
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
168
168
|
#
|
169
169
|
# @param filter [::String]
|
170
|
-
# 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
|
170
|
+
# 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.
|
171
171
|
# @param include_all_scopes [::Boolean]
|
172
172
|
# 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.
|
173
173
|
# @param max_results [::Integer]
|
@@ -180,6 +180,7 @@ module Google
|
|
180
180
|
# Project ID for this request.
|
181
181
|
# @param return_partial_success [::Boolean]
|
182
182
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
183
|
+
# @param service_project_number [::Integer]
|
183
184
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
184
185
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DiskTypesScopedList>]
|
185
186
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -187,6 +188,22 @@ module Google
|
|
187
188
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DiskTypesScopedList>]
|
188
189
|
#
|
189
190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
191
|
+
#
|
192
|
+
# @example Basic example
|
193
|
+
# require "google/cloud/compute/v1"
|
194
|
+
#
|
195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
196
|
+
# client = Google::Cloud::Compute::V1::DiskTypes::Rest::Client.new
|
197
|
+
#
|
198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
199
|
+
# request = Google::Cloud::Compute::V1::AggregatedListDiskTypesRequest.new
|
200
|
+
#
|
201
|
+
# # Call the aggregated_list method.
|
202
|
+
# result = client.aggregated_list request
|
203
|
+
#
|
204
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskTypeAggregatedList.
|
205
|
+
# p result
|
206
|
+
#
|
190
207
|
def aggregated_list request, options = nil
|
191
208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
209
|
|
@@ -254,6 +271,22 @@ module Google
|
|
254
271
|
# @return [::Google::Cloud::Compute::V1::DiskType]
|
255
272
|
#
|
256
273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
274
|
+
#
|
275
|
+
# @example Basic example
|
276
|
+
# require "google/cloud/compute/v1"
|
277
|
+
#
|
278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
279
|
+
# client = Google::Cloud::Compute::V1::DiskTypes::Rest::Client.new
|
280
|
+
#
|
281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
282
|
+
# request = Google::Cloud::Compute::V1::GetDiskTypeRequest.new
|
283
|
+
#
|
284
|
+
# # Call the get method.
|
285
|
+
# result = client.get request
|
286
|
+
#
|
287
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskType.
|
288
|
+
# p result
|
289
|
+
#
|
257
290
|
def get request, options = nil
|
258
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
259
292
|
|
@@ -308,7 +341,7 @@ module Google
|
|
308
341
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
309
342
|
#
|
310
343
|
# @param filter [::String]
|
311
|
-
# 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
|
344
|
+
# 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.
|
312
345
|
# @param max_results [::Integer]
|
313
346
|
# 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`)
|
314
347
|
# @param order_by [::String]
|
@@ -328,6 +361,22 @@ module Google
|
|
328
361
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::DiskType>]
|
329
362
|
#
|
330
363
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
364
|
+
#
|
365
|
+
# @example Basic example
|
366
|
+
# require "google/cloud/compute/v1"
|
367
|
+
#
|
368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
369
|
+
# client = Google::Cloud::Compute::V1::DiskTypes::Rest::Client.new
|
370
|
+
#
|
371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
372
|
+
# request = Google::Cloud::Compute::V1::ListDiskTypesRequest.new
|
373
|
+
#
|
374
|
+
# # Call the list method.
|
375
|
+
# result = client.list request
|
376
|
+
#
|
377
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskTypeList.
|
378
|
+
# p result
|
379
|
+
#
|
331
380
|
def list request, options = nil
|
332
381
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
333
382
|
|
@@ -230,6 +230,22 @@ module Google
|
|
230
230
|
# @return [::Gapic::GenericLRO::Operation]
|
231
231
|
#
|
232
232
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
233
|
+
#
|
234
|
+
# @example Basic example
|
235
|
+
# require "google/cloud/compute/v1"
|
236
|
+
#
|
237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
238
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
239
|
+
#
|
240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
241
|
+
# request = Google::Cloud::Compute::V1::AddResourcePoliciesDiskRequest.new
|
242
|
+
#
|
243
|
+
# # Call the add_resource_policies method.
|
244
|
+
# result = client.add_resource_policies request
|
245
|
+
#
|
246
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
247
|
+
# p result
|
248
|
+
#
|
233
249
|
def add_resource_policies request, options = nil
|
234
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
235
251
|
|
@@ -287,13 +303,13 @@ module Google
|
|
287
303
|
# @param options [::Gapic::CallOptions, ::Hash]
|
288
304
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
289
305
|
#
|
290
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
306
|
+
# @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)
|
291
307
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
292
308
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
293
309
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
294
310
|
#
|
295
311
|
# @param filter [::String]
|
296
|
-
# 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
|
312
|
+
# 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.
|
297
313
|
# @param include_all_scopes [::Boolean]
|
298
314
|
# 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.
|
299
315
|
# @param max_results [::Integer]
|
@@ -306,6 +322,7 @@ module Google
|
|
306
322
|
# Project ID for this request.
|
307
323
|
# @param return_partial_success [::Boolean]
|
308
324
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
325
|
+
# @param service_project_number [::Integer]
|
309
326
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
310
327
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DisksScopedList>]
|
311
328
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -313,6 +330,22 @@ module Google
|
|
313
330
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DisksScopedList>]
|
314
331
|
#
|
315
332
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
333
|
+
#
|
334
|
+
# @example Basic example
|
335
|
+
# require "google/cloud/compute/v1"
|
336
|
+
#
|
337
|
+
# # Create a client object. The client can be reused for multiple calls.
|
338
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
339
|
+
#
|
340
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
341
|
+
# request = Google::Cloud::Compute::V1::AggregatedListDisksRequest.new
|
342
|
+
#
|
343
|
+
# # Call the aggregated_list method.
|
344
|
+
# result = client.aggregated_list request
|
345
|
+
#
|
346
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskAggregatedList.
|
347
|
+
# p result
|
348
|
+
#
|
316
349
|
def aggregated_list request, options = nil
|
317
350
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
318
351
|
|
@@ -382,6 +415,22 @@ module Google
|
|
382
415
|
# @return [::Gapic::GenericLRO::Operation]
|
383
416
|
#
|
384
417
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
418
|
+
#
|
419
|
+
# @example Basic example
|
420
|
+
# require "google/cloud/compute/v1"
|
421
|
+
#
|
422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
423
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
424
|
+
#
|
425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
426
|
+
# request = Google::Cloud::Compute::V1::BulkInsertDiskRequest.new
|
427
|
+
#
|
428
|
+
# # Call the bulk_insert method.
|
429
|
+
# result = client.bulk_insert request
|
430
|
+
#
|
431
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
432
|
+
# p result
|
433
|
+
#
|
385
434
|
def bulk_insert request, options = nil
|
386
435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
387
436
|
|
@@ -463,6 +512,22 @@ module Google
|
|
463
512
|
# @return [::Gapic::GenericLRO::Operation]
|
464
513
|
#
|
465
514
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
515
|
+
#
|
516
|
+
# @example Basic example
|
517
|
+
# require "google/cloud/compute/v1"
|
518
|
+
#
|
519
|
+
# # Create a client object. The client can be reused for multiple calls.
|
520
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
521
|
+
#
|
522
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
523
|
+
# request = Google::Cloud::Compute::V1::CreateSnapshotDiskRequest.new
|
524
|
+
#
|
525
|
+
# # Call the create_snapshot method.
|
526
|
+
# result = client.create_snapshot request
|
527
|
+
#
|
528
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
529
|
+
# p result
|
530
|
+
#
|
466
531
|
def create_snapshot request, options = nil
|
467
532
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
468
533
|
|
@@ -540,6 +605,22 @@ module Google
|
|
540
605
|
# @return [::Gapic::GenericLRO::Operation]
|
541
606
|
#
|
542
607
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
608
|
+
#
|
609
|
+
# @example Basic example
|
610
|
+
# require "google/cloud/compute/v1"
|
611
|
+
#
|
612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
613
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
614
|
+
#
|
615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
616
|
+
# request = Google::Cloud::Compute::V1::DeleteDiskRequest.new
|
617
|
+
#
|
618
|
+
# # Call the delete method.
|
619
|
+
# result = client.delete request
|
620
|
+
#
|
621
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
622
|
+
# p result
|
623
|
+
#
|
543
624
|
def delete request, options = nil
|
544
625
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
626
|
|
@@ -615,6 +696,22 @@ module Google
|
|
615
696
|
# @return [::Google::Cloud::Compute::V1::Disk]
|
616
697
|
#
|
617
698
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
699
|
+
#
|
700
|
+
# @example Basic example
|
701
|
+
# require "google/cloud/compute/v1"
|
702
|
+
#
|
703
|
+
# # Create a client object. The client can be reused for multiple calls.
|
704
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
705
|
+
#
|
706
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
707
|
+
# request = Google::Cloud::Compute::V1::GetDiskRequest.new
|
708
|
+
#
|
709
|
+
# # Call the get method.
|
710
|
+
# result = client.get request
|
711
|
+
#
|
712
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Disk.
|
713
|
+
# p result
|
714
|
+
#
|
618
715
|
def get request, options = nil
|
619
716
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
620
717
|
|
@@ -683,6 +780,22 @@ module Google
|
|
683
780
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
684
781
|
#
|
685
782
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
783
|
+
#
|
784
|
+
# @example Basic example
|
785
|
+
# require "google/cloud/compute/v1"
|
786
|
+
#
|
787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
788
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
789
|
+
#
|
790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
791
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyDiskRequest.new
|
792
|
+
#
|
793
|
+
# # Call the get_iam_policy method.
|
794
|
+
# result = client.get_iam_policy request
|
795
|
+
#
|
796
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
797
|
+
# p result
|
798
|
+
#
|
686
799
|
def get_iam_policy request, options = nil
|
687
800
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
688
801
|
|
@@ -753,6 +866,22 @@ module Google
|
|
753
866
|
# @return [::Gapic::GenericLRO::Operation]
|
754
867
|
#
|
755
868
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
869
|
+
#
|
870
|
+
# @example Basic example
|
871
|
+
# require "google/cloud/compute/v1"
|
872
|
+
#
|
873
|
+
# # Create a client object. The client can be reused for multiple calls.
|
874
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
875
|
+
#
|
876
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
877
|
+
# request = Google::Cloud::Compute::V1::InsertDiskRequest.new
|
878
|
+
#
|
879
|
+
# # Call the insert method.
|
880
|
+
# result = client.insert request
|
881
|
+
#
|
882
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
883
|
+
# p result
|
884
|
+
#
|
756
885
|
def insert request, options = nil
|
757
886
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
758
887
|
|
@@ -816,7 +945,7 @@ module Google
|
|
816
945
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
817
946
|
#
|
818
947
|
# @param filter [::String]
|
819
|
-
# 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
|
948
|
+
# 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.
|
820
949
|
# @param max_results [::Integer]
|
821
950
|
# 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`)
|
822
951
|
# @param order_by [::String]
|
@@ -836,6 +965,22 @@ module Google
|
|
836
965
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
|
837
966
|
#
|
838
967
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
968
|
+
#
|
969
|
+
# @example Basic example
|
970
|
+
# require "google/cloud/compute/v1"
|
971
|
+
#
|
972
|
+
# # Create a client object. The client can be reused for multiple calls.
|
973
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
974
|
+
#
|
975
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
976
|
+
# request = Google::Cloud::Compute::V1::ListDisksRequest.new
|
977
|
+
#
|
978
|
+
# # Call the list method.
|
979
|
+
# result = client.list request
|
980
|
+
#
|
981
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskList.
|
982
|
+
# p result
|
983
|
+
#
|
839
984
|
def list request, options = nil
|
840
985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
841
986
|
|
@@ -907,6 +1052,22 @@ module Google
|
|
907
1052
|
# @return [::Gapic::GenericLRO::Operation]
|
908
1053
|
#
|
909
1054
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1055
|
+
#
|
1056
|
+
# @example Basic example
|
1057
|
+
# require "google/cloud/compute/v1"
|
1058
|
+
#
|
1059
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1060
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1061
|
+
#
|
1062
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1063
|
+
# request = Google::Cloud::Compute::V1::RemoveResourcePoliciesDiskRequest.new
|
1064
|
+
#
|
1065
|
+
# # Call the remove_resource_policies method.
|
1066
|
+
# result = client.remove_resource_policies request
|
1067
|
+
#
|
1068
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1069
|
+
# p result
|
1070
|
+
#
|
910
1071
|
def remove_resource_policies request, options = nil
|
911
1072
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
912
1073
|
|
@@ -986,6 +1147,22 @@ module Google
|
|
986
1147
|
# @return [::Gapic::GenericLRO::Operation]
|
987
1148
|
#
|
988
1149
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1150
|
+
#
|
1151
|
+
# @example Basic example
|
1152
|
+
# require "google/cloud/compute/v1"
|
1153
|
+
#
|
1154
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1155
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1156
|
+
#
|
1157
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1158
|
+
# request = Google::Cloud::Compute::V1::ResizeDiskRequest.new
|
1159
|
+
#
|
1160
|
+
# # Call the resize method.
|
1161
|
+
# result = client.resize request
|
1162
|
+
#
|
1163
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1164
|
+
# p result
|
1165
|
+
#
|
989
1166
|
def resize request, options = nil
|
990
1167
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
991
1168
|
|
@@ -1063,6 +1240,22 @@ module Google
|
|
1063
1240
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1064
1241
|
#
|
1065
1242
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1243
|
+
#
|
1244
|
+
# @example Basic example
|
1245
|
+
# require "google/cloud/compute/v1"
|
1246
|
+
#
|
1247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1248
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1249
|
+
#
|
1250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1251
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyDiskRequest.new
|
1252
|
+
#
|
1253
|
+
# # Call the set_iam_policy method.
|
1254
|
+
# result = client.set_iam_policy request
|
1255
|
+
#
|
1256
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1257
|
+
# p result
|
1258
|
+
#
|
1066
1259
|
def set_iam_policy request, options = nil
|
1067
1260
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1068
1261
|
|
@@ -1133,6 +1326,22 @@ module Google
|
|
1133
1326
|
# @return [::Gapic::GenericLRO::Operation]
|
1134
1327
|
#
|
1135
1328
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1329
|
+
#
|
1330
|
+
# @example Basic example
|
1331
|
+
# require "google/cloud/compute/v1"
|
1332
|
+
#
|
1333
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1334
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1335
|
+
#
|
1336
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1337
|
+
# request = Google::Cloud::Compute::V1::SetLabelsDiskRequest.new
|
1338
|
+
#
|
1339
|
+
# # Call the set_labels method.
|
1340
|
+
# result = client.set_labels request
|
1341
|
+
#
|
1342
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1343
|
+
# p result
|
1344
|
+
#
|
1136
1345
|
def set_labels request, options = nil
|
1137
1346
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1138
1347
|
|
@@ -1212,6 +1421,22 @@ module Google
|
|
1212
1421
|
# @return [::Gapic::GenericLRO::Operation]
|
1213
1422
|
#
|
1214
1423
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1424
|
+
#
|
1425
|
+
# @example Basic example
|
1426
|
+
# require "google/cloud/compute/v1"
|
1427
|
+
#
|
1428
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1429
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1430
|
+
#
|
1431
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1432
|
+
# request = Google::Cloud::Compute::V1::StartAsyncReplicationDiskRequest.new
|
1433
|
+
#
|
1434
|
+
# # Call the start_async_replication method.
|
1435
|
+
# result = client.start_async_replication request
|
1436
|
+
#
|
1437
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1438
|
+
# p result
|
1439
|
+
#
|
1215
1440
|
def start_async_replication request, options = nil
|
1216
1441
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1217
1442
|
|
@@ -1289,6 +1514,22 @@ module Google
|
|
1289
1514
|
# @return [::Gapic::GenericLRO::Operation]
|
1290
1515
|
#
|
1291
1516
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1517
|
+
#
|
1518
|
+
# @example Basic example
|
1519
|
+
# require "google/cloud/compute/v1"
|
1520
|
+
#
|
1521
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1522
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1523
|
+
#
|
1524
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1525
|
+
# request = Google::Cloud::Compute::V1::StopAsyncReplicationDiskRequest.new
|
1526
|
+
#
|
1527
|
+
# # Call the stop_async_replication method.
|
1528
|
+
# result = client.stop_async_replication request
|
1529
|
+
#
|
1530
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1531
|
+
# p result
|
1532
|
+
#
|
1292
1533
|
def stop_async_replication request, options = nil
|
1293
1534
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1294
1535
|
|
@@ -1366,6 +1607,22 @@ module Google
|
|
1366
1607
|
# @return [::Gapic::GenericLRO::Operation]
|
1367
1608
|
#
|
1368
1609
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1610
|
+
#
|
1611
|
+
# @example Basic example
|
1612
|
+
# require "google/cloud/compute/v1"
|
1613
|
+
#
|
1614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1615
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1616
|
+
#
|
1617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1618
|
+
# request = Google::Cloud::Compute::V1::StopGroupAsyncReplicationDiskRequest.new
|
1619
|
+
#
|
1620
|
+
# # Call the stop_group_async_replication method.
|
1621
|
+
# result = client.stop_group_async_replication request
|
1622
|
+
#
|
1623
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1624
|
+
# p result
|
1625
|
+
#
|
1369
1626
|
def stop_group_async_replication request, options = nil
|
1370
1627
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1371
1628
|
|
@@ -1443,6 +1700,22 @@ module Google
|
|
1443
1700
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1444
1701
|
#
|
1445
1702
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1703
|
+
#
|
1704
|
+
# @example Basic example
|
1705
|
+
# require "google/cloud/compute/v1"
|
1706
|
+
#
|
1707
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1708
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1709
|
+
#
|
1710
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1711
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsDiskRequest.new
|
1712
|
+
#
|
1713
|
+
# # Call the test_iam_permissions method.
|
1714
|
+
# result = client.test_iam_permissions request
|
1715
|
+
#
|
1716
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1717
|
+
# p result
|
1718
|
+
#
|
1446
1719
|
def test_iam_permissions request, options = nil
|
1447
1720
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1448
1721
|
|
@@ -1516,6 +1789,22 @@ module Google
|
|
1516
1789
|
# @return [::Gapic::GenericLRO::Operation]
|
1517
1790
|
#
|
1518
1791
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1792
|
+
#
|
1793
|
+
# @example Basic example
|
1794
|
+
# require "google/cloud/compute/v1"
|
1795
|
+
#
|
1796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1797
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
1798
|
+
#
|
1799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1800
|
+
# request = Google::Cloud::Compute::V1::UpdateDiskRequest.new
|
1801
|
+
#
|
1802
|
+
# # Call the update method.
|
1803
|
+
# result = client.update request
|
1804
|
+
#
|
1805
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1806
|
+
# p result
|
1807
|
+
#
|
1519
1808
|
def update request, options = nil
|
1520
1809
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1521
1810
|
|