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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
  6. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
  7. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
  8. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
  9. data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
  10. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
  11. data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
  12. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
  13. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
  14. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
  15. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
  16. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
  17. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
  18. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
  19. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
  20. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
  21. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
  22. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
  23. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
  24. data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
  25. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
  26. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
  29. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
  34. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
  35. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
  36. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
  37. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
  38. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
  39. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
  40. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
  41. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
  42. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
  43. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
  44. data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
  45. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
  46. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
  47. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
  48. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
  49. data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
  50. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
  51. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
  52. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
  53. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
  54. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
  55. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
  56. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
  57. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
  58. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
  59. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
  60. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
  61. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
  62. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
  63. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
  64. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
  65. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
  66. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
  67. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
  68. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
  69. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
  70. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
  71. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
  72. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
  73. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
  74. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
  75. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
  76. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
  77. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
  78. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
  79. data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
  80. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
  81. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
  82. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  83. data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
  84. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
  85. data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
  86. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
  87. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
  88. data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
  89. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
  90. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
  92. data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
  93. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
  94. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
  95. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
  96. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
  97. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
  98. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
  99. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
  100. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
  101. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
  102. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
  103. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
  104. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
  105. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
  106. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
  107. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
  108. data/lib/google/cloud/compute/v1/version.rb +1 -1
  109. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
  110. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
  111. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
  112. data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
  113. data/lib/google/cloud/compute/v1.rb +1 -0
  114. data/proto_docs/google/api/client.rb +13 -0
  115. data/proto_docs/google/api/field_behavior.rb +14 -0
  116. data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
  117. data/proto_docs/google/protobuf/any.rb +144 -0
  118. metadata +11 -5
@@ -194,6 +194,22 @@ module Google
194
194
  # @return [::Gapic::GenericLRO::Operation]
195
195
  #
196
196
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
197
+ #
198
+ # @example Basic example
199
+ # require "google/cloud/compute/v1"
200
+ #
201
+ # # Create a client object. The client can be reused for multiple calls.
202
+ # client = Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Compute::V1::DeleteGlobalPublicDelegatedPrefixeRequest.new
206
+ #
207
+ # # Call the delete method.
208
+ # result = client.delete request
209
+ #
210
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
211
+ # p result
212
+ #
197
213
  def delete request, options = nil
198
214
  raise ::ArgumentError, "request must be provided" if request.nil?
199
215
 
@@ -266,6 +282,22 @@ module Google
266
282
  # @return [::Google::Cloud::Compute::V1::PublicDelegatedPrefix]
267
283
  #
268
284
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
285
+ #
286
+ # @example Basic example
287
+ # require "google/cloud/compute/v1"
288
+ #
289
+ # # Create a client object. The client can be reused for multiple calls.
290
+ # client = Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::Compute::V1::GetGlobalPublicDelegatedPrefixeRequest.new
294
+ #
295
+ # # Call the get method.
296
+ # result = client.get request
297
+ #
298
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicDelegatedPrefix.
299
+ # p result
300
+ #
269
301
  def get request, options = nil
270
302
  raise ::ArgumentError, "request must be provided" if request.nil?
271
303
 
@@ -332,6 +364,22 @@ module Google
332
364
  # @return [::Gapic::GenericLRO::Operation]
333
365
  #
334
366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
367
+ #
368
+ # @example Basic example
369
+ # require "google/cloud/compute/v1"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Compute::V1::InsertGlobalPublicDelegatedPrefixeRequest.new
376
+ #
377
+ # # Call the insert method.
378
+ # result = client.insert request
379
+ #
380
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
381
+ # p result
382
+ #
335
383
  def insert request, options = nil
336
384
  raise ::ArgumentError, "request must be provided" if request.nil?
337
385
 
@@ -394,7 +442,7 @@ module Google
394
442
  # the default parameter values, pass an empty Hash as a request object (see above).
395
443
  #
396
444
  # @param filter [::String]
397
- # 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
445
+ # 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.
398
446
  # @param max_results [::Integer]
399
447
  # 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`)
400
448
  # @param order_by [::String]
@@ -412,6 +460,22 @@ module Google
412
460
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicDelegatedPrefix>]
413
461
  #
414
462
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
463
+ #
464
+ # @example Basic example
465
+ # require "google/cloud/compute/v1"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::Compute::V1::ListGlobalPublicDelegatedPrefixesRequest.new
472
+ #
473
+ # # Call the list method.
474
+ # result = client.list request
475
+ #
476
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicDelegatedPrefixList.
477
+ # p result
478
+ #
415
479
  def list request, options = nil
416
480
  raise ::ArgumentError, "request must be provided" if request.nil?
417
481
 
@@ -481,6 +545,22 @@ module Google
481
545
  # @return [::Gapic::GenericLRO::Operation]
482
546
  #
483
547
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
548
+ #
549
+ # @example Basic example
550
+ # require "google/cloud/compute/v1"
551
+ #
552
+ # # Create a client object. The client can be reused for multiple calls.
553
+ # client = Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
554
+ #
555
+ # # Create a request. To set request fields, pass in keyword arguments.
556
+ # request = Google::Cloud::Compute::V1::PatchGlobalPublicDelegatedPrefixeRequest.new
557
+ #
558
+ # # Call the patch method.
559
+ # result = client.patch request
560
+ #
561
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
562
+ # p result
563
+ #
484
564
  def patch request, options = nil
485
565
  raise ::ArgumentError, "request must be provided" if request.nil?
486
566
 
@@ -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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
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
  # Name of the project scoping 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::HealthChecksScopedList>]
207
208
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -209,6 +210,22 @@ module Google
209
210
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::HealthChecksScopedList>]
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::HealthChecks::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Compute::V1::AggregatedListHealthChecksRequest.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::HealthChecksAggregatedList.
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
 
@@ -276,6 +293,22 @@ module Google
276
293
  # @return [::Gapic::GenericLRO::Operation]
277
294
  #
278
295
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
296
+ #
297
+ # @example Basic example
298
+ # require "google/cloud/compute/v1"
299
+ #
300
+ # # Create a client object. The client can be reused for multiple calls.
301
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
302
+ #
303
+ # # Create a request. To set request fields, pass in keyword arguments.
304
+ # request = Google::Cloud::Compute::V1::DeleteHealthCheckRequest.new
305
+ #
306
+ # # Call the delete method.
307
+ # result = client.delete request
308
+ #
309
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
310
+ # p result
311
+ #
279
312
  def delete request, options = nil
280
313
  raise ::ArgumentError, "request must be provided" if request.nil?
281
314
 
@@ -348,6 +381,22 @@ module Google
348
381
  # @return [::Google::Cloud::Compute::V1::HealthCheck]
349
382
  #
350
383
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
384
+ #
385
+ # @example Basic example
386
+ # require "google/cloud/compute/v1"
387
+ #
388
+ # # Create a client object. The client can be reused for multiple calls.
389
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
390
+ #
391
+ # # Create a request. To set request fields, pass in keyword arguments.
392
+ # request = Google::Cloud::Compute::V1::GetHealthCheckRequest.new
393
+ #
394
+ # # Call the get method.
395
+ # result = client.get request
396
+ #
397
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheck.
398
+ # p result
399
+ #
351
400
  def get request, options = nil
352
401
  raise ::ArgumentError, "request must be provided" if request.nil?
353
402
 
@@ -414,6 +463,22 @@ module Google
414
463
  # @return [::Gapic::GenericLRO::Operation]
415
464
  #
416
465
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
466
+ #
467
+ # @example Basic example
468
+ # require "google/cloud/compute/v1"
469
+ #
470
+ # # Create a client object. The client can be reused for multiple calls.
471
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
472
+ #
473
+ # # Create a request. To set request fields, pass in keyword arguments.
474
+ # request = Google::Cloud::Compute::V1::InsertHealthCheckRequest.new
475
+ #
476
+ # # Call the insert method.
477
+ # result = client.insert request
478
+ #
479
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
480
+ # p result
481
+ #
417
482
  def insert request, options = nil
418
483
  raise ::ArgumentError, "request must be provided" if request.nil?
419
484
 
@@ -476,7 +541,7 @@ module Google
476
541
  # the default parameter values, pass an empty Hash as a request object (see above).
477
542
  #
478
543
  # @param filter [::String]
479
- # 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
544
+ # 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.
480
545
  # @param max_results [::Integer]
481
546
  # 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`)
482
547
  # @param order_by [::String]
@@ -494,6 +559,22 @@ module Google
494
559
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheck>]
495
560
  #
496
561
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
562
+ #
563
+ # @example Basic example
564
+ # require "google/cloud/compute/v1"
565
+ #
566
+ # # Create a client object. The client can be reused for multiple calls.
567
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
568
+ #
569
+ # # Create a request. To set request fields, pass in keyword arguments.
570
+ # request = Google::Cloud::Compute::V1::ListHealthChecksRequest.new
571
+ #
572
+ # # Call the list method.
573
+ # result = client.list request
574
+ #
575
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheckList.
576
+ # p result
577
+ #
497
578
  def list request, options = nil
498
579
  raise ::ArgumentError, "request must be provided" if request.nil?
499
580
 
@@ -563,6 +644,22 @@ module Google
563
644
  # @return [::Gapic::GenericLRO::Operation]
564
645
  #
565
646
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
647
+ #
648
+ # @example Basic example
649
+ # require "google/cloud/compute/v1"
650
+ #
651
+ # # Create a client object. The client can be reused for multiple calls.
652
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
653
+ #
654
+ # # Create a request. To set request fields, pass in keyword arguments.
655
+ # request = Google::Cloud::Compute::V1::PatchHealthCheckRequest.new
656
+ #
657
+ # # Call the patch method.
658
+ # result = client.patch request
659
+ #
660
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
661
+ # p result
662
+ #
566
663
  def patch request, options = nil
567
664
  raise ::ArgumentError, "request must be provided" if request.nil?
568
665
 
@@ -639,6 +736,22 @@ module Google
639
736
  # @return [::Gapic::GenericLRO::Operation]
640
737
  #
641
738
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
739
+ #
740
+ # @example Basic example
741
+ # require "google/cloud/compute/v1"
742
+ #
743
+ # # Create a client object. The client can be reused for multiple calls.
744
+ # client = Google::Cloud::Compute::V1::HealthChecks::Rest::Client.new
745
+ #
746
+ # # Create a request. To set request fields, pass in keyword arguments.
747
+ # request = Google::Cloud::Compute::V1::UpdateHealthCheckRequest.new
748
+ #
749
+ # # Call the update method.
750
+ # result = client.update request
751
+ #
752
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
753
+ # p result
754
+ #
642
755
  def update request, options = nil
643
756
  raise ::ArgumentError, "request must be provided" if request.nil?
644
757
 
@@ -169,6 +169,22 @@ module Google
169
169
  # @return [::Google::Cloud::Compute::V1::ImageFamilyView]
170
170
  #
171
171
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
172
+ #
173
+ # @example Basic example
174
+ # require "google/cloud/compute/v1"
175
+ #
176
+ # # Create a client object. The client can be reused for multiple calls.
177
+ # client = Google::Cloud::Compute::V1::ImageFamilyViews::Rest::Client.new
178
+ #
179
+ # # Create a request. To set request fields, pass in keyword arguments.
180
+ # request = Google::Cloud::Compute::V1::GetImageFamilyViewRequest.new
181
+ #
182
+ # # Call the get method.
183
+ # result = client.get request
184
+ #
185
+ # # The returned object is of type Google::Cloud::Compute::V1::ImageFamilyView.
186
+ # p result
187
+ #
172
188
  def get request, options = nil
173
189
  raise ::ArgumentError, "request must be provided" if request.nil?
174
190
 
@@ -212,6 +212,22 @@ module Google
212
212
  # @return [::Gapic::GenericLRO::Operation]
213
213
  #
214
214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
215
+ #
216
+ # @example Basic example
217
+ # require "google/cloud/compute/v1"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::Compute::V1::DeleteImageRequest.new
224
+ #
225
+ # # Call the delete method.
226
+ # result = client.delete request
227
+ #
228
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
229
+ # p result
230
+ #
215
231
  def delete request, options = nil
216
232
  raise ::ArgumentError, "request must be provided" if request.nil?
217
233
 
@@ -288,6 +304,22 @@ module Google
288
304
  # @return [::Gapic::GenericLRO::Operation]
289
305
  #
290
306
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/cloud/compute/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::Compute::V1::DeprecateImageRequest.new
316
+ #
317
+ # # Call the deprecate method.
318
+ # result = client.deprecate request
319
+ #
320
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
321
+ # p result
322
+ #
291
323
  def deprecate request, options = nil
292
324
  raise ::ArgumentError, "request must be provided" if request.nil?
293
325
 
@@ -360,6 +392,22 @@ module Google
360
392
  # @return [::Google::Cloud::Compute::V1::Image]
361
393
  #
362
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/compute/v1"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Compute::V1::GetImageRequest.new
404
+ #
405
+ # # Call the get method.
406
+ # result = client.get request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Compute::V1::Image.
409
+ # p result
410
+ #
363
411
  def get request, options = nil
364
412
  raise ::ArgumentError, "request must be provided" if request.nil?
365
413
 
@@ -424,6 +472,22 @@ module Google
424
472
  # @return [::Google::Cloud::Compute::V1::Image]
425
473
  #
426
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::Images::Rest::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::Compute::V1::GetFromFamilyImageRequest.new
484
+ #
485
+ # # Call the get_from_family method.
486
+ # result = client.get_from_family request
487
+ #
488
+ # # The returned object is of type Google::Cloud::Compute::V1::Image.
489
+ # p result
490
+ #
427
491
  def get_from_family request, options = nil
428
492
  raise ::ArgumentError, "request must be provided" if request.nil?
429
493
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Google::Cloud::Compute::V1::Policy]
491
555
  #
492
556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
557
+ #
558
+ # @example Basic example
559
+ # require "google/cloud/compute/v1"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::Compute::V1::GetIamPolicyImageRequest.new
566
+ #
567
+ # # Call the get_iam_policy method.
568
+ # result = client.get_iam_policy request
569
+ #
570
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
571
+ # p result
572
+ #
493
573
  def get_iam_policy request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -558,6 +638,22 @@ module Google
558
638
  # @return [::Gapic::GenericLRO::Operation]
559
639
  #
560
640
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
641
+ #
642
+ # @example Basic example
643
+ # require "google/cloud/compute/v1"
644
+ #
645
+ # # Create a client object. The client can be reused for multiple calls.
646
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
647
+ #
648
+ # # Create a request. To set request fields, pass in keyword arguments.
649
+ # request = Google::Cloud::Compute::V1::InsertImageRequest.new
650
+ #
651
+ # # Call the insert method.
652
+ # result = client.insert request
653
+ #
654
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
655
+ # p result
656
+ #
561
657
  def insert request, options = nil
562
658
  raise ::ArgumentError, "request must be provided" if request.nil?
563
659
 
@@ -620,7 +716,7 @@ module Google
620
716
  # the default parameter values, pass an empty Hash as a request object (see above).
621
717
  #
622
718
  # @param filter [::String]
623
- # 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
719
+ # 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.
624
720
  # @param max_results [::Integer]
625
721
  # 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`)
626
722
  # @param order_by [::String]
@@ -638,6 +734,22 @@ module Google
638
734
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Image>]
639
735
  #
640
736
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
737
+ #
738
+ # @example Basic example
739
+ # require "google/cloud/compute/v1"
740
+ #
741
+ # # Create a client object. The client can be reused for multiple calls.
742
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Compute::V1::ListImagesRequest.new
746
+ #
747
+ # # Call the list method.
748
+ # result = client.list request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Compute::V1::ImageList.
751
+ # p result
752
+ #
641
753
  def list request, options = nil
642
754
  raise ::ArgumentError, "request must be provided" if request.nil?
643
755
 
@@ -707,6 +819,22 @@ module Google
707
819
  # @return [::Gapic::GenericLRO::Operation]
708
820
  #
709
821
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
822
+ #
823
+ # @example Basic example
824
+ # require "google/cloud/compute/v1"
825
+ #
826
+ # # Create a client object. The client can be reused for multiple calls.
827
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
828
+ #
829
+ # # Create a request. To set request fields, pass in keyword arguments.
830
+ # request = Google::Cloud::Compute::V1::PatchImageRequest.new
831
+ #
832
+ # # Call the patch method.
833
+ # result = client.patch request
834
+ #
835
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
836
+ # p result
837
+ #
710
838
  def patch request, options = nil
711
839
  raise ::ArgumentError, "request must be provided" if request.nil?
712
840
 
@@ -781,6 +909,22 @@ module Google
781
909
  # @return [::Google::Cloud::Compute::V1::Policy]
782
910
  #
783
911
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
912
+ #
913
+ # @example Basic example
914
+ # require "google/cloud/compute/v1"
915
+ #
916
+ # # Create a client object. The client can be reused for multiple calls.
917
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
918
+ #
919
+ # # Create a request. To set request fields, pass in keyword arguments.
920
+ # request = Google::Cloud::Compute::V1::SetIamPolicyImageRequest.new
921
+ #
922
+ # # Call the set_iam_policy method.
923
+ # result = client.set_iam_policy request
924
+ #
925
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
926
+ # p result
927
+ #
784
928
  def set_iam_policy request, options = nil
785
929
  raise ::ArgumentError, "request must be provided" if request.nil?
786
930
 
@@ -847,6 +991,22 @@ module Google
847
991
  # @return [::Gapic::GenericLRO::Operation]
848
992
  #
849
993
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
994
+ #
995
+ # @example Basic example
996
+ # require "google/cloud/compute/v1"
997
+ #
998
+ # # Create a client object. The client can be reused for multiple calls.
999
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
1000
+ #
1001
+ # # Create a request. To set request fields, pass in keyword arguments.
1002
+ # request = Google::Cloud::Compute::V1::SetLabelsImageRequest.new
1003
+ #
1004
+ # # Call the set_labels method.
1005
+ # result = client.set_labels request
1006
+ #
1007
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1008
+ # p result
1009
+ #
850
1010
  def set_labels request, options = nil
851
1011
  raise ::ArgumentError, "request must be provided" if request.nil?
852
1012
 
@@ -921,6 +1081,22 @@ module Google
921
1081
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
922
1082
  #
923
1083
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1084
+ #
1085
+ # @example Basic example
1086
+ # require "google/cloud/compute/v1"
1087
+ #
1088
+ # # Create a client object. The client can be reused for multiple calls.
1089
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
1090
+ #
1091
+ # # Create a request. To set request fields, pass in keyword arguments.
1092
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsImageRequest.new
1093
+ #
1094
+ # # Call the test_iam_permissions method.
1095
+ # result = client.test_iam_permissions request
1096
+ #
1097
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1098
+ # p result
1099
+ #
924
1100
  def test_iam_permissions request, options = nil
925
1101
  raise ::ArgumentError, "request must be provided" if request.nil?
926
1102