google-cloud-compute-v1 3.4.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 (175) 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 +237 -20
  4. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  5. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  7. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  8. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  9. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  11. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
  12. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
  13. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
  14. data/lib/google/cloud/compute/v1/compute_pb.rb +264 -25
  15. data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
  16. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
  17. data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
  18. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
  19. data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
  20. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
  21. data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
  22. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  23. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  24. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  25. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  26. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  27. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  28. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  29. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  31. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  32. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
  33. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
  34. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
  35. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
  36. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
  37. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
  38. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
  39. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
  41. data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
  42. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
  44. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +380 -40
  45. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  46. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  47. data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
  48. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  49. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  50. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  51. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  52. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  53. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  54. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  55. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  56. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  57. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  58. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  59. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  60. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  61. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  62. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  63. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  64. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  65. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  66. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  67. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  68. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  69. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  70. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  71. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  72. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  73. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  74. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  75. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  76. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  77. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  78. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  79. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  80. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  81. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  82. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  83. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  84. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  85. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  86. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  87. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
  88. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
  89. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  90. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  91. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  92. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
  93. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  94. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  95. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  96. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  97. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  98. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  99. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  100. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  101. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  102. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  103. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
  104. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
  105. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  106. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  107. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  108. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
  109. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  110. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  111. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  112. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  113. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  114. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  115. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  116. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  117. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  118. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  119. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  120. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  121. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  122. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  123. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  124. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  125. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  126. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  127. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  128. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  129. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  130. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  131. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  132. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  133. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  134. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  135. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  136. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  137. data/lib/google/cloud/compute/v1/rest.rb +10 -0
  138. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  139. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  140. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  141. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  142. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
  143. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  144. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
  145. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  146. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  147. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  148. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  149. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  150. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  151. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  152. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  153. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
  154. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
  155. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  156. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  157. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  158. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  159. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  160. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  161. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  162. data/lib/google/cloud/compute/v1/version.rb +1 -1
  163. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  164. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  165. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  166. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  167. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  168. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  169. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  170. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  171. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  172. data/lib/google/cloud/compute/v1.rb +10 -0
  173. data/proto_docs/google/api/client.rb +149 -29
  174. data/proto_docs/google/cloud/compute/v1/compute.rb +43929 -5522
  175. metadata +52 -2
@@ -180,7 +180,8 @@ module Google
180
180
  # Service calls
181
181
 
182
182
  ##
183
- # Retrieves the list of Zone resources under the specific region available to the specified project.
183
+ # Retrieves the list of Zone resources under the specific region available to
184
+ # the specified project.
184
185
  #
185
186
  # @overload list(request, options = nil)
186
187
  # Pass arguments to `list` via a request object, either of type
@@ -198,19 +199,97 @@ module Google
198
199
  # the default parameter values, pass an empty Hash as a request object (see above).
199
200
  #
200
201
  # @param filter [::String]
201
- # 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.
202
+ # A filter expression that filters resources listed in the response. Most
203
+ # Compute resources support two types of filter expressions:
204
+ # expressions that support regular expressions and expressions that follow
205
+ # API improvement proposal AIP-160.
206
+ # These two types of filter expressions cannot be mixed in one request.
207
+ #
208
+ # If you want to use AIP-160, your expression must specify the field name, an
209
+ # operator, and the value that you want to use for filtering. The value
210
+ # must be a string, a number, or a boolean. The operator
211
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
212
+ #
213
+ # For example, if you are filtering Compute Engine instances, you can
214
+ # exclude instances named `example-instance` by specifying
215
+ # `name != example-instance`.
216
+ #
217
+ # The `:*` comparison can be used to test whether a key has been defined.
218
+ # For example, to find all objects with `owner` label use:
219
+ # ```
220
+ # labels.owner:*
221
+ # ```
222
+ #
223
+ # You can also filter nested fields. For example, you could specify
224
+ # `scheduling.automaticRestart = false` to include instances only
225
+ # if they are not scheduled for automatic restarts. You can use filtering
226
+ # on nested fields to filter based onresource labels.
227
+ #
228
+ # To filter on multiple expressions, provide each separate expression within
229
+ # parentheses. For example:
230
+ # ```
231
+ # (scheduling.automaticRestart = true)
232
+ # (cpuPlatform = "Intel Skylake")
233
+ # ```
234
+ # By default, each expression is an `AND` expression. However, you
235
+ # can include `AND` and `OR` expressions explicitly.
236
+ # For example:
237
+ # ```
238
+ # (cpuPlatform = "Intel Skylake") OR
239
+ # (cpuPlatform = "Intel Broadwell") AND
240
+ # (scheduling.automaticRestart = true)
241
+ # ```
242
+ #
243
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
244
+ # (not equal) operator against a single un-parenthesized expression with or
245
+ # without quotes or against multiple parenthesized expressions. Examples:
246
+ #
247
+ # `fieldname eq unquoted literal`
248
+ # `fieldname eq 'single quoted literal'`
249
+ # `fieldname eq "double quoted literal"`
250
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
251
+ #
252
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
253
+ # The literal value must match the entire field.
254
+ #
255
+ # For example, to filter for instances that do not end with name "instance",
256
+ # you would use `name ne .*instance`.
257
+ #
258
+ # You cannot combine constraints on multiple fields using regular
259
+ # expressions.
202
260
  # @param max_results [::Integer]
203
- # 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`)
261
+ # The maximum number of results per page that should be returned.
262
+ # If the number of available results is larger than `maxResults`,
263
+ # Compute Engine returns a `nextPageToken` that can be used to get
264
+ # the next page of results in subsequent list requests. Acceptable values are
265
+ # `0` to `500`, inclusive. (Default: `500`)
204
266
  # @param order_by [::String]
205
- # 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.
267
+ # Sorts list results by a certain order. By default, results
268
+ # are returned in alphanumerical order based on the resource name.
269
+ #
270
+ # You can also sort results in descending order based on the creation
271
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
272
+ # results based on the `creationTimestamp` field in
273
+ # reverse chronological order (newest result first). Use this to sort
274
+ # resources like operations so that the newest operation is returned first.
275
+ #
276
+ # Currently, only sorting by `name` or
277
+ # `creationTimestamp desc` is supported.
206
278
  # @param page_token [::String]
207
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
279
+ # Specifies a page token to use. Set `pageToken` to the
280
+ # `nextPageToken` returned by a previous list request to get
281
+ # the next page of results.
208
282
  # @param project [::String]
209
283
  # Project ID for this request.
210
284
  # @param region [::String]
211
285
  # Region for this request.
212
286
  # @param return_partial_success [::Boolean]
213
- # 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.
287
+ # Opt-in for partial success behavior which provides partial results in case
288
+ # of failure. The default value is false.
289
+ #
290
+ # For example, when partial success behavior is enabled, aggregatedList for a
291
+ # single zone scope either returns all resources in the zone or no resources,
292
+ # with an error code.
214
293
  # @yield [result, operation] Access the result along with the TransportOperation object
215
294
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Zone>]
216
295
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -185,7 +185,24 @@ module Google
185
185
  # Service calls
186
186
 
187
187
  ##
188
- # Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.
188
+ # Returns the specified Region resource.
189
+ #
190
+ # To decrease latency for this method, you can optionally omit any unneeded
191
+ # information from the response by using a field mask. This practice is
192
+ # especially recommended for unused quota information (the `quotas` field).
193
+ # To exclude one or more fields, set your request's `fields` query parameter
194
+ # to only include the fields you need. For example, to only include the `id`
195
+ # and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
196
+ # your request.
197
+ #
198
+ # This method fails if the quota information is unavailable for the region
199
+ # and if the organization policy constraint
200
+ # compute.requireBasicQuotaInResponse is enforced. This
201
+ # constraint, when enforced, disables the fail-open behaviour when quota
202
+ # information (the `items.quotas` field) is unavailable for the region.
203
+ # It is recommended to use the default setting
204
+ # for the constraint unless your application requires the fail-closed
205
+ # behaviour for this method.
189
206
  #
190
207
  # @overload get(request, options = nil)
191
208
  # Pass arguments to `get` via a request object, either of type
@@ -265,7 +282,25 @@ module Google
265
282
  end
266
283
 
267
284
  ##
268
- # Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.
285
+ # Retrieves the list of region resources available to the specified project.
286
+ #
287
+ # To decrease latency for this method, you can optionally omit any unneeded
288
+ # information from the response by using a field mask. This practice is
289
+ # especially recommended for unused quota information
290
+ # (the `items.quotas` field).
291
+ # To exclude one or more fields, set your request's `fields` query parameter
292
+ # to only include the fields you need. For example, to only include the `id`
293
+ # and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
294
+ # your request.
295
+ #
296
+ # This method fails if the quota information is unavailable for the region
297
+ # and if the organization policy constraint
298
+ # compute.requireBasicQuotaInResponse is enforced. This
299
+ # constraint, when enforced, disables the fail-open behaviour when quota
300
+ # information (the `items.quotas` field) is unavailable for the region.
301
+ # It is recommended to use the default setting
302
+ # for the constraint unless your application requires the fail-closed
303
+ # behaviour for this method.
269
304
  #
270
305
  # @overload list(request, options = nil)
271
306
  # Pass arguments to `list` via a request object, either of type
@@ -283,17 +318,95 @@ module Google
283
318
  # the default parameter values, pass an empty Hash as a request object (see above).
284
319
  #
285
320
  # @param filter [::String]
286
- # 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.
321
+ # A filter expression that filters resources listed in the response. Most
322
+ # Compute resources support two types of filter expressions:
323
+ # expressions that support regular expressions and expressions that follow
324
+ # API improvement proposal AIP-160.
325
+ # These two types of filter expressions cannot be mixed in one request.
326
+ #
327
+ # If you want to use AIP-160, your expression must specify the field name, an
328
+ # operator, and the value that you want to use for filtering. The value
329
+ # must be a string, a number, or a boolean. The operator
330
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
331
+ #
332
+ # For example, if you are filtering Compute Engine instances, you can
333
+ # exclude instances named `example-instance` by specifying
334
+ # `name != example-instance`.
335
+ #
336
+ # The `:*` comparison can be used to test whether a key has been defined.
337
+ # For example, to find all objects with `owner` label use:
338
+ # ```
339
+ # labels.owner:*
340
+ # ```
341
+ #
342
+ # You can also filter nested fields. For example, you could specify
343
+ # `scheduling.automaticRestart = false` to include instances only
344
+ # if they are not scheduled for automatic restarts. You can use filtering
345
+ # on nested fields to filter based onresource labels.
346
+ #
347
+ # To filter on multiple expressions, provide each separate expression within
348
+ # parentheses. For example:
349
+ # ```
350
+ # (scheduling.automaticRestart = true)
351
+ # (cpuPlatform = "Intel Skylake")
352
+ # ```
353
+ # By default, each expression is an `AND` expression. However, you
354
+ # can include `AND` and `OR` expressions explicitly.
355
+ # For example:
356
+ # ```
357
+ # (cpuPlatform = "Intel Skylake") OR
358
+ # (cpuPlatform = "Intel Broadwell") AND
359
+ # (scheduling.automaticRestart = true)
360
+ # ```
361
+ #
362
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
363
+ # (not equal) operator against a single un-parenthesized expression with or
364
+ # without quotes or against multiple parenthesized expressions. Examples:
365
+ #
366
+ # `fieldname eq unquoted literal`
367
+ # `fieldname eq 'single quoted literal'`
368
+ # `fieldname eq "double quoted literal"`
369
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
370
+ #
371
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
372
+ # The literal value must match the entire field.
373
+ #
374
+ # For example, to filter for instances that do not end with name "instance",
375
+ # you would use `name ne .*instance`.
376
+ #
377
+ # You cannot combine constraints on multiple fields using regular
378
+ # expressions.
287
379
  # @param max_results [::Integer]
288
- # 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`)
380
+ # The maximum number of results per page that should be returned.
381
+ # If the number of available results is larger than `maxResults`,
382
+ # Compute Engine returns a `nextPageToken` that can be used to get
383
+ # the next page of results in subsequent list requests. Acceptable values are
384
+ # `0` to `500`, inclusive. (Default: `500`)
289
385
  # @param order_by [::String]
290
- # 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.
386
+ # Sorts list results by a certain order. By default, results
387
+ # are returned in alphanumerical order based on the resource name.
388
+ #
389
+ # You can also sort results in descending order based on the creation
390
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
391
+ # results based on the `creationTimestamp` field in
392
+ # reverse chronological order (newest result first). Use this to sort
393
+ # resources like operations so that the newest operation is returned first.
394
+ #
395
+ # Currently, only sorting by `name` or
396
+ # `creationTimestamp desc` is supported.
291
397
  # @param page_token [::String]
292
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
398
+ # Specifies a page token to use. Set `pageToken` to the
399
+ # `nextPageToken` returned by a previous list request to get
400
+ # the next page of results.
293
401
  # @param project [::String]
294
402
  # Project ID for this request.
295
403
  # @param return_partial_success [::Boolean]
296
- # 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.
404
+ # Opt-in for partial success behavior which provides partial results in case
405
+ # of failure. The default value is false.
406
+ #
407
+ # For example, when partial success behavior is enabled, aggregatedList for a
408
+ # single zone scope either returns all resources in the zone or no resources,
409
+ # with an error code.
297
410
  # @yield [result, operation] Access the result along with the TransportOperation object
298
411
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Region>]
299
412
  # @yieldparam operation [::Gapic::Rest::TransportOperation]