google-cloud-compute-v1 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
  4. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
  5. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  7. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  8. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  9. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
  13. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
  14. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
  15. data/lib/google/cloud/compute/v1/compute_pb.rb +281 -25
  16. data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
  17. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
  18. data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
  19. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
  20. data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
  22. data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
  23. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  24. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  25. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  26. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  27. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  28. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  29. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  32. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  33. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
  35. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
  36. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
  37. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
  38. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
  41. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
  42. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
  43. data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
  44. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +473 -40
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
  48. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
  51. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  53. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  54. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  55. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  56. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  57. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  58. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  59. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  60. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  62. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  63. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  64. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  65. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  66. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  67. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  68. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  69. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  70. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  71. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  72. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  73. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  74. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  75. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  77. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  78. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  79. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  80. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  81. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  82. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  83. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  84. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  86. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  88. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  89. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  90. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  91. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
  92. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
  93. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  94. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  96. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
  97. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  98. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  99. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  100. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  101. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  102. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  103. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  104. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  105. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  112. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
  113. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
  114. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  115. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  116. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  117. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  118. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  119. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  120. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  121. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  122. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  123. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  124. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  125. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  126. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  127. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  128. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  129. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  130. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  131. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  132. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  133. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  134. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  135. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  136. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  137. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  138. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  139. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  140. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  142. data/lib/google/cloud/compute/v1/rest.rb +10 -0
  143. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  144. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  145. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  146. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  147. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
  148. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  149. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
  150. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  151. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  152. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  153. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  154. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  155. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  156. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  157. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  158. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
  159. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
  160. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
  161. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
  162. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  163. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  164. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  165. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  166. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  167. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  168. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  169. data/lib/google/cloud/compute/v1/version.rb +1 -1
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  171. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  172. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  173. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  174. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  175. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  176. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  177. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  178. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  179. data/lib/google/cloud/compute/v1.rb +10 -0
  180. data/proto_docs/google/api/client.rb +149 -29
  181. data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
  182. metadata +52 -2
@@ -433,6 +433,46 @@ module Google
433
433
  end
434
434
  end
435
435
 
436
+ ##
437
+ # Baseline implementation for the test_iam_permissions REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
449
+ # A result object deserialized from the server's reply
450
+ def test_iam_permissions request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "test_iam_permissions",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
436
476
  ##
437
477
  # @private
438
478
  #
@@ -640,6 +680,30 @@ module Google
640
680
  )
641
681
  transcoder.transcode request_pb
642
682
  end
683
+
684
+ ##
685
+ # @private
686
+ #
687
+ # GRPC transcoding helper method for the test_iam_permissions REST call
688
+ #
689
+ # @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest]
690
+ # A request object representing the call parameters. Required.
691
+ # @return [Array(String, [String, nil], Hash{String => String})]
692
+ # Uri, Body, Query string parameters
693
+ def self.transcode_test_iam_permissions_request request_pb
694
+ transcoder = Gapic::Rest::GrpcTranscoder.new
695
+ .with_bindings(
696
+ uri_method: :post,
697
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions",
698
+ body: "test_permissions_request_resource",
699
+ matches: [
700
+ ["project", %r{^[^/]+/?$}, false],
701
+ ["zone", %r{^[^/]+/?$}, false],
702
+ ["resource", %r{^[^/]+/?$}, false]
703
+ ]
704
+ )
705
+ transcoder.transcode request_pb
706
+ end
643
707
  end
644
708
  end
645
709
  end
@@ -299,7 +299,19 @@ module Google
299
299
  # @param project [::String]
300
300
  # Project ID for this request.
301
301
  # @param request_id [::String]
302
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
302
+ # An optional request ID to identify requests. Specify a unique request ID so
303
+ # that if you must retry your request, the server will know to ignore the
304
+ # request if it has already been completed.
305
+ #
306
+ # For example, consider a situation where you make an initial request and
307
+ # the request times out. If you make the request again with the same
308
+ # request ID, the server can check if original operation with the same
309
+ # request ID was received, and if so, will ignore the second request. This
310
+ # prevents clients from accidentally creating duplicate commitments.
311
+ #
312
+ # The request ID must be
313
+ # a valid UUID with the exception that zero UUID is not supported
314
+ # (00000000-0000-0000-0000-000000000000).
303
315
  # @param update_mask [::String]
304
316
  # update_mask indicates fields to be updated as part of this request.
305
317
  # @param zone [::String]
@@ -218,7 +218,11 @@ module Google
218
218
  # Service calls
219
219
 
220
220
  ##
221
- # Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
221
+ # Retrieves the list of all InstanceTemplates resources, regional and global,
222
+ # available to the specified project.
223
+ #
224
+ # To prevent failure, Google recommends that you set the
225
+ # `returnPartialSuccess` parameter to `true`.
222
226
  #
223
227
  # @overload aggregated_list(request, options = nil)
224
228
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -236,21 +240,106 @@ module Google
236
240
  # the default parameter values, pass an empty Hash as a request object (see above).
237
241
  #
238
242
  # @param filter [::String]
239
- # 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.
243
+ # A filter expression that filters resources listed in the response. Most
244
+ # Compute resources support two types of filter expressions:
245
+ # expressions that support regular expressions and expressions that follow
246
+ # API improvement proposal AIP-160.
247
+ # These two types of filter expressions cannot be mixed in one request.
248
+ #
249
+ # If you want to use AIP-160, your expression must specify the field name, an
250
+ # operator, and the value that you want to use for filtering. The value
251
+ # must be a string, a number, or a boolean. The operator
252
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
253
+ #
254
+ # For example, if you are filtering Compute Engine instances, you can
255
+ # exclude instances named `example-instance` by specifying
256
+ # `name != example-instance`.
257
+ #
258
+ # The `:*` comparison can be used to test whether a key has been defined.
259
+ # For example, to find all objects with `owner` label use:
260
+ # ```
261
+ # labels.owner:*
262
+ # ```
263
+ #
264
+ # You can also filter nested fields. For example, you could specify
265
+ # `scheduling.automaticRestart = false` to include instances only
266
+ # if they are not scheduled for automatic restarts. You can use filtering
267
+ # on nested fields to filter based onresource labels.
268
+ #
269
+ # To filter on multiple expressions, provide each separate expression within
270
+ # parentheses. For example:
271
+ # ```
272
+ # (scheduling.automaticRestart = true)
273
+ # (cpuPlatform = "Intel Skylake")
274
+ # ```
275
+ # By default, each expression is an `AND` expression. However, you
276
+ # can include `AND` and `OR` expressions explicitly.
277
+ # For example:
278
+ # ```
279
+ # (cpuPlatform = "Intel Skylake") OR
280
+ # (cpuPlatform = "Intel Broadwell") AND
281
+ # (scheduling.automaticRestart = true)
282
+ # ```
283
+ #
284
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
285
+ # (not equal) operator against a single un-parenthesized expression with or
286
+ # without quotes or against multiple parenthesized expressions. Examples:
287
+ #
288
+ # `fieldname eq unquoted literal`
289
+ # `fieldname eq 'single quoted literal'`
290
+ # `fieldname eq "double quoted literal"`
291
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
292
+ #
293
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
294
+ # The literal value must match the entire field.
295
+ #
296
+ # For example, to filter for instances that do not end with name "instance",
297
+ # you would use `name ne .*instance`.
298
+ #
299
+ # You cannot combine constraints on multiple fields using regular
300
+ # expressions.
240
301
  # @param include_all_scopes [::Boolean]
241
- # 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.
302
+ # Indicates whether every visible scope for each scope type (zone, region,
303
+ # global) should be included in the response. For new resource types added
304
+ # after this field, the flag has no effect as new resource types will always
305
+ # include every visible scope for each scope type in response. For resource
306
+ # types which predate this field, if this flag is omitted or false, only
307
+ # scopes of the scope types where the resource type is expected to be found
308
+ # will be included.
242
309
  # @param max_results [::Integer]
243
- # 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`)
310
+ # The maximum number of results per page that should be returned.
311
+ # If the number of available results is larger than `maxResults`,
312
+ # Compute Engine returns a `nextPageToken` that can be used to get
313
+ # the next page of results in subsequent list requests. Acceptable values are
314
+ # `0` to `500`, inclusive. (Default: `500`)
244
315
  # @param order_by [::String]
245
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
316
+ # Sorts list results by a certain order. By default, results
317
+ # are returned in alphanumerical order based on the resource name.
318
+ #
319
+ # You can also sort results in descending order based on the creation
320
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
321
+ # results based on the `creationTimestamp` field in
322
+ # reverse chronological order (newest result first). Use this to sort
323
+ # resources like operations so that the newest operation is returned first.
324
+ #
325
+ # Currently, only sorting by `name` or
326
+ # `creationTimestamp desc` is supported.
246
327
  # @param page_token [::String]
247
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
328
+ # Specifies a page token to use. Set `pageToken` to the
329
+ # `nextPageToken` returned by a previous list request to get
330
+ # the next page of results.
248
331
  # @param project [::String]
249
332
  # Name of the project scoping this request.
250
333
  # @param return_partial_success [::Boolean]
251
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
334
+ # Opt-in for partial success behavior which provides partial results in case
335
+ # of failure. The default value is false.
336
+ #
337
+ # For example, when partial success behavior is enabled, aggregatedList for a
338
+ # single zone scope either returns all resources in the zone or no resources,
339
+ # with an error code.
252
340
  # @param service_project_number [::Integer]
253
- # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
341
+ # The Shared VPC service project id or service project number for which
342
+ # aggregated list request is invoked for subnetworks list-usable api.
254
343
  # @yield [result, operation] Access the result along with the TransportOperation object
255
344
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceTemplatesScopedList>]
256
345
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -312,7 +401,9 @@ module Google
312
401
  end
313
402
 
314
403
  ##
315
- # Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.
404
+ # Deletes the specified instance template. Deleting an instance template is
405
+ # permanent and cannot be undone. It is not possible to delete templates
406
+ # that are already in use by a managed instance group.
316
407
  #
317
408
  # @overload delete(request, options = nil)
318
409
  # Pass arguments to `delete` via a request object, either of type
@@ -334,7 +425,19 @@ module Google
334
425
  # @param project [::String]
335
426
  # Project ID for this request.
336
427
  # @param request_id [::String]
337
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
428
+ # An optional request ID to identify requests. Specify a unique request ID so
429
+ # that if you must retry your request, the server will know to ignore the
430
+ # request if it has already been completed.
431
+ #
432
+ # For example, consider a situation where you make an initial request and
433
+ # the request times out. If you make the request again with the same
434
+ # request ID, the server can check if original operation with the same
435
+ # request ID was received, and if so, will ignore the second request. This
436
+ # prevents clients from accidentally creating duplicate commitments.
437
+ #
438
+ # The request ID must be
439
+ # a valid UUID with the exception that zero UUID is not supported
440
+ # (00000000-0000-0000-0000-000000000000).
338
441
  # @yield [result, operation] Access the result along with the TransportOperation object
339
442
  # @yieldparam result [::Gapic::GenericLRO::Operation]
340
443
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -483,7 +586,8 @@ module Google
483
586
  end
484
587
 
485
588
  ##
486
- # Gets the access control policy for a resource. May be empty if no such policy or resource exists.
589
+ # Gets the access control policy for a resource. May be empty if no such
590
+ # policy or resource exists.
487
591
  #
488
592
  # @overload get_iam_policy(request, options = nil)
489
593
  # Pass arguments to `get_iam_policy` via a request object, either of type
@@ -565,7 +669,11 @@ module Google
565
669
  end
566
670
 
567
671
  ##
568
- # Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.
672
+ # Creates an instance template in the specified project using the
673
+ # data that is included in the request. If you are creating a new template to
674
+ # update an existing instance group, your new instance template must use the
675
+ # same network or, if applicable, the same subnetwork as the original
676
+ # template.
569
677
  #
570
678
  # @overload insert(request, options = nil)
571
679
  # Pass arguments to `insert` via a request object, either of type
@@ -587,7 +695,19 @@ module Google
587
695
  # @param project [::String]
588
696
  # Project ID for this request.
589
697
  # @param request_id [::String]
590
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
698
+ # An optional request ID to identify requests. Specify a unique request ID so
699
+ # that if you must retry your request, the server will know to ignore the
700
+ # request if it has already been completed.
701
+ #
702
+ # For example, consider a situation where you make an initial request and
703
+ # the request times out. If you make the request again with the same
704
+ # request ID, the server can check if original operation with the same
705
+ # request ID was received, and if so, will ignore the second request. This
706
+ # prevents clients from accidentally creating duplicate commitments.
707
+ #
708
+ # The request ID must be
709
+ # a valid UUID with the exception that zero UUID is not supported
710
+ # (00000000-0000-0000-0000-000000000000).
591
711
  # @yield [result, operation] Access the result along with the TransportOperation object
592
712
  # @yieldparam result [::Gapic::GenericLRO::Operation]
593
713
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -656,7 +776,8 @@ module Google
656
776
  end
657
777
 
658
778
  ##
659
- # Retrieves a list of instance templates that are contained within the specified project.
779
+ # Retrieves a list of instance templates that are contained within
780
+ # the specified project.
660
781
  #
661
782
  # @overload list(request, options = nil)
662
783
  # Pass arguments to `list` via a request object, either of type
@@ -674,17 +795,95 @@ module Google
674
795
  # the default parameter values, pass an empty Hash as a request object (see above).
675
796
  #
676
797
  # @param filter [::String]
677
- # 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.
798
+ # A filter expression that filters resources listed in the response. Most
799
+ # Compute resources support two types of filter expressions:
800
+ # expressions that support regular expressions and expressions that follow
801
+ # API improvement proposal AIP-160.
802
+ # These two types of filter expressions cannot be mixed in one request.
803
+ #
804
+ # If you want to use AIP-160, your expression must specify the field name, an
805
+ # operator, and the value that you want to use for filtering. The value
806
+ # must be a string, a number, or a boolean. The operator
807
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
808
+ #
809
+ # For example, if you are filtering Compute Engine instances, you can
810
+ # exclude instances named `example-instance` by specifying
811
+ # `name != example-instance`.
812
+ #
813
+ # The `:*` comparison can be used to test whether a key has been defined.
814
+ # For example, to find all objects with `owner` label use:
815
+ # ```
816
+ # labels.owner:*
817
+ # ```
818
+ #
819
+ # You can also filter nested fields. For example, you could specify
820
+ # `scheduling.automaticRestart = false` to include instances only
821
+ # if they are not scheduled for automatic restarts. You can use filtering
822
+ # on nested fields to filter based onresource labels.
823
+ #
824
+ # To filter on multiple expressions, provide each separate expression within
825
+ # parentheses. For example:
826
+ # ```
827
+ # (scheduling.automaticRestart = true)
828
+ # (cpuPlatform = "Intel Skylake")
829
+ # ```
830
+ # By default, each expression is an `AND` expression. However, you
831
+ # can include `AND` and `OR` expressions explicitly.
832
+ # For example:
833
+ # ```
834
+ # (cpuPlatform = "Intel Skylake") OR
835
+ # (cpuPlatform = "Intel Broadwell") AND
836
+ # (scheduling.automaticRestart = true)
837
+ # ```
838
+ #
839
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
840
+ # (not equal) operator against a single un-parenthesized expression with or
841
+ # without quotes or against multiple parenthesized expressions. Examples:
842
+ #
843
+ # `fieldname eq unquoted literal`
844
+ # `fieldname eq 'single quoted literal'`
845
+ # `fieldname eq "double quoted literal"`
846
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
847
+ #
848
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
849
+ # The literal value must match the entire field.
850
+ #
851
+ # For example, to filter for instances that do not end with name "instance",
852
+ # you would use `name ne .*instance`.
853
+ #
854
+ # You cannot combine constraints on multiple fields using regular
855
+ # expressions.
678
856
  # @param max_results [::Integer]
679
- # 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`)
857
+ # The maximum number of results per page that should be returned.
858
+ # If the number of available results is larger than `maxResults`,
859
+ # Compute Engine returns a `nextPageToken` that can be used to get
860
+ # the next page of results in subsequent list requests. Acceptable values are
861
+ # `0` to `500`, inclusive. (Default: `500`)
680
862
  # @param order_by [::String]
681
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
863
+ # Sorts list results by a certain order. By default, results
864
+ # are returned in alphanumerical order based on the resource name.
865
+ #
866
+ # You can also sort results in descending order based on the creation
867
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
868
+ # results based on the `creationTimestamp` field in
869
+ # reverse chronological order (newest result first). Use this to sort
870
+ # resources like operations so that the newest operation is returned first.
871
+ #
872
+ # Currently, only sorting by `name` or
873
+ # `creationTimestamp desc` is supported.
682
874
  # @param page_token [::String]
683
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
875
+ # Specifies a page token to use. Set `pageToken` to the
876
+ # `nextPageToken` returned by a previous list request to get
877
+ # the next page of results.
684
878
  # @param project [::String]
685
879
  # Project ID for this request.
686
880
  # @param return_partial_success [::Boolean]
687
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
881
+ # Opt-in for partial success behavior which provides partial results in case
882
+ # of failure. The default value is false.
883
+ #
884
+ # For example, when partial success behavior is enabled, aggregatedList for a
885
+ # single zone scope either returns all resources in the zone or no resources,
886
+ # with an error code.
688
887
  # @yield [result, operation] Access the result along with the TransportOperation object
689
888
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceTemplate>]
690
889
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -746,7 +945,8 @@ module Google
746
945
  end
747
946
 
748
947
  ##
749
- # Sets the access control policy on the specified resource. Replaces any existing policy.
948
+ # Sets the access control policy on the specified resource.
949
+ # Replaces any existing policy.
750
950
  #
751
951
  # @overload set_iam_policy(request, options = nil)
752
952
  # Pass arguments to `set_iam_policy` via a request object, either of type