google-cloud-compute-v1 3.4.0 → 3.6.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 (214) 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 +573 -23
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
  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 +357 -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 +508 -42
  23. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
  24. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  25. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  26. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  27. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  28. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  29. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  32. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  33. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
  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 +380 -40
  47. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
  50. data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
  51. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
  53. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
  54. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
  55. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  56. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  57. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  58. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  59. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  60. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  61. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  62. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  63. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  64. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  65. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  66. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  68. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  70. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  71. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  72. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  73. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  74. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  75. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  77. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  78. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  79. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  80. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  81. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  82. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  83. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  84. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  85. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  86. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  87. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  88. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  90. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  91. data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
  92. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
  93. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
  94. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
  95. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
  96. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  97. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  98. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  99. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1363 -0
  100. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -0
  101. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  102. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  103. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  104. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +387 -29
  105. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  112. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  113. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  114. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  115. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  116. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1363 -0
  117. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -0
  118. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  119. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  120. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
  121. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
  122. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
  123. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
  124. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
  125. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  126. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
  127. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  128. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  129. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
  130. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
  131. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
  132. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
  133. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
  134. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  135. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  136. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  137. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  138. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  139. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  140. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  141. data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
  142. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
  143. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
  144. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
  145. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
  146. data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
  147. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
  148. data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
  149. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
  150. data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
  151. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  152. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  153. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  154. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  155. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  156. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  157. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  158. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  159. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  160. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  161. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  162. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  163. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  164. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  165. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  166. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  167. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  168. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  169. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  170. data/lib/google/cloud/compute/v1/rest.rb +17 -0
  171. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  172. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  173. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  174. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  175. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
  176. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  177. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
  178. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
  179. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  180. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  181. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  182. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  183. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  184. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  185. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  186. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  187. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
  188. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
  189. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  190. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  191. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  192. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  193. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  194. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  195. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  196. data/lib/google/cloud/compute/v1/version.rb +1 -1
  197. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  198. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  199. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  200. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  201. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  202. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  203. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  204. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  205. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
  206. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
  207. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
  208. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
  209. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
  210. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  211. data/lib/google/cloud/compute/v1.rb +17 -0
  212. data/proto_docs/google/api/client.rb +149 -29
  213. data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
  214. metadata +87 -2
@@ -87,6 +87,11 @@ module Google
87
87
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
88
88
  }
89
89
 
90
+ default_config.rpcs.get_effective_security_policies.timeout = 600.0
91
+ default_config.rpcs.get_effective_security_policies.retry_policy = {
92
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
93
+ }
94
+
90
95
  default_config.rpcs.get_health.timeout = 600.0
91
96
 
92
97
  default_config.rpcs.get_iam_policy.timeout = 600.0
@@ -237,7 +242,8 @@ module Google
237
242
  # Service calls
238
243
 
239
244
  ##
240
- # Adds a key for validating requests with signed URLs for this backend service.
245
+ # Adds a key for validating requests with signed URLs for this backend
246
+ # service.
241
247
  #
242
248
  # @overload add_signed_url_key(request, options = nil)
243
249
  # Pass arguments to `add_signed_url_key` via a request object, either of type
@@ -255,11 +261,24 @@ module Google
255
261
  # the default parameter values, pass an empty Hash as a request object (see above).
256
262
  #
257
263
  # @param backend_service [::String]
258
- # Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
264
+ # Name of the BackendService resource to which the Signed URL Key should be
265
+ # added. The name should conform to RFC1035.
259
266
  # @param project [::String]
260
267
  # Project ID for this request.
261
268
  # @param request_id [::String]
262
- # 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).
269
+ # An optional request ID to identify requests. Specify a unique request ID so
270
+ # that if you must retry your request, the server will know to ignore the
271
+ # request if it has already been completed.
272
+ #
273
+ # For example, consider a situation where you make an initial request and
274
+ # the request times out. If you make the request again with the same
275
+ # request ID, the server can check if original operation with the same
276
+ # request ID was received, and if so, will ignore the second request. This
277
+ # prevents clients from accidentally creating duplicate commitments.
278
+ #
279
+ # The request ID must be
280
+ # a valid UUID with the exception that zero UUID is not supported
281
+ # (00000000-0000-0000-0000-000000000000).
263
282
  # @param signed_url_key_resource [::Google::Cloud::Compute::V1::SignedUrlKey, ::Hash]
264
283
  # The body resource for this request
265
284
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -330,7 +349,11 @@ module Google
330
349
  end
331
350
 
332
351
  ##
333
- # Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
352
+ # Retrieves the list of all BackendService resources, regional and global,
353
+ # available to the specified project.
354
+ #
355
+ # To prevent failure, it is recommended that you set the
356
+ # `returnPartialSuccess` parameter to `true`.
334
357
  #
335
358
  # @overload aggregated_list(request, options = nil)
336
359
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -348,21 +371,106 @@ module Google
348
371
  # the default parameter values, pass an empty Hash as a request object (see above).
349
372
  #
350
373
  # @param filter [::String]
351
- # 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.
374
+ # A filter expression that filters resources listed in the response. Most
375
+ # Compute resources support two types of filter expressions:
376
+ # expressions that support regular expressions and expressions that follow
377
+ # API improvement proposal AIP-160.
378
+ # These two types of filter expressions cannot be mixed in one request.
379
+ #
380
+ # If you want to use AIP-160, your expression must specify the field name, an
381
+ # operator, and the value that you want to use for filtering. The value
382
+ # must be a string, a number, or a boolean. The operator
383
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
384
+ #
385
+ # For example, if you are filtering Compute Engine instances, you can
386
+ # exclude instances named `example-instance` by specifying
387
+ # `name != example-instance`.
388
+ #
389
+ # The `:*` comparison can be used to test whether a key has been defined.
390
+ # For example, to find all objects with `owner` label use:
391
+ # ```
392
+ # labels.owner:*
393
+ # ```
394
+ #
395
+ # You can also filter nested fields. For example, you could specify
396
+ # `scheduling.automaticRestart = false` to include instances only
397
+ # if they are not scheduled for automatic restarts. You can use filtering
398
+ # on nested fields to filter based onresource labels.
399
+ #
400
+ # To filter on multiple expressions, provide each separate expression within
401
+ # parentheses. For example:
402
+ # ```
403
+ # (scheduling.automaticRestart = true)
404
+ # (cpuPlatform = "Intel Skylake")
405
+ # ```
406
+ # By default, each expression is an `AND` expression. However, you
407
+ # can include `AND` and `OR` expressions explicitly.
408
+ # For example:
409
+ # ```
410
+ # (cpuPlatform = "Intel Skylake") OR
411
+ # (cpuPlatform = "Intel Broadwell") AND
412
+ # (scheduling.automaticRestart = true)
413
+ # ```
414
+ #
415
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
416
+ # (not equal) operator against a single un-parenthesized expression with or
417
+ # without quotes or against multiple parenthesized expressions. Examples:
418
+ #
419
+ # `fieldname eq unquoted literal`
420
+ # `fieldname eq 'single quoted literal'`
421
+ # `fieldname eq "double quoted literal"`
422
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
423
+ #
424
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
425
+ # The literal value must match the entire field.
426
+ #
427
+ # For example, to filter for instances that do not end with name "instance",
428
+ # you would use `name ne .*instance`.
429
+ #
430
+ # You cannot combine constraints on multiple fields using regular
431
+ # expressions.
352
432
  # @param include_all_scopes [::Boolean]
353
- # 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.
433
+ # Indicates whether every visible scope for each scope type (zone, region,
434
+ # global) should be included in the response. For new resource types added
435
+ # after this field, the flag has no effect as new resource types will always
436
+ # include every visible scope for each scope type in response. For resource
437
+ # types which predate this field, if this flag is omitted or false, only
438
+ # scopes of the scope types where the resource type is expected to be found
439
+ # will be included.
354
440
  # @param max_results [::Integer]
355
- # 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`)
441
+ # The maximum number of results per page that should be returned.
442
+ # If the number of available results is larger than `maxResults`,
443
+ # Compute Engine returns a `nextPageToken` that can be used to get
444
+ # the next page of results in subsequent list requests. Acceptable values are
445
+ # `0` to `500`, inclusive. (Default: `500`)
356
446
  # @param order_by [::String]
357
- # 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.
447
+ # Sorts list results by a certain order. By default, results
448
+ # are returned in alphanumerical order based on the resource name.
449
+ #
450
+ # You can also sort results in descending order based on the creation
451
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
452
+ # results based on the `creationTimestamp` field in
453
+ # reverse chronological order (newest result first). Use this to sort
454
+ # resources like operations so that the newest operation is returned first.
455
+ #
456
+ # Currently, only sorting by `name` or
457
+ # `creationTimestamp desc` is supported.
358
458
  # @param page_token [::String]
359
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
459
+ # Specifies a page token to use. Set `pageToken` to the
460
+ # `nextPageToken` returned by a previous list request to get
461
+ # the next page of results.
360
462
  # @param project [::String]
361
463
  # Name of the project scoping this request.
362
464
  # @param return_partial_success [::Boolean]
363
- # 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.
465
+ # Opt-in for partial success behavior which provides partial results in case
466
+ # of failure. The default value is false.
467
+ #
468
+ # For example, when partial success behavior is enabled, aggregatedList for a
469
+ # single zone scope either returns all resources in the zone or no resources,
470
+ # with an error code.
364
471
  # @param service_project_number [::Integer]
365
- # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
472
+ # The Shared VPC service project id or service project number for which
473
+ # aggregated list request is invoked for subnetworks list-usable api.
366
474
  # @yield [result, operation] Access the result along with the TransportOperation object
367
475
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendServicesScopedList>]
368
476
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -446,7 +554,19 @@ module Google
446
554
  # @param project [::String]
447
555
  # Project ID for this request.
448
556
  # @param request_id [::String]
449
- # 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).
557
+ # An optional request ID to identify requests. Specify a unique request ID so
558
+ # that if you must retry your request, the server will know to ignore the
559
+ # request if it has already been completed.
560
+ #
561
+ # For example, consider a situation where you make an initial request and
562
+ # the request times out. If you make the request again with the same
563
+ # request ID, the server can check if original operation with the same
564
+ # request ID was received, and if so, will ignore the second request. This
565
+ # prevents clients from accidentally creating duplicate commitments.
566
+ #
567
+ # The request ID must be
568
+ # a valid UUID with the exception that zero UUID is not supported
569
+ # (00000000-0000-0000-0000-000000000000).
450
570
  # @yield [result, operation] Access the result along with the TransportOperation object
451
571
  # @yieldparam result [::Gapic::GenericLRO::Operation]
452
572
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -515,7 +635,8 @@ module Google
515
635
  end
516
636
 
517
637
  ##
518
- # Deletes a key for validating requests with signed URLs for this backend service.
638
+ # Deletes a key for validating requests with signed URLs for this backend
639
+ # service.
519
640
  #
520
641
  # @overload delete_signed_url_key(request, options = nil)
521
642
  # Pass arguments to `delete_signed_url_key` via a request object, either of type
@@ -533,13 +654,26 @@ module Google
533
654
  # the default parameter values, pass an empty Hash as a request object (see above).
534
655
  #
535
656
  # @param backend_service [::String]
536
- # Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035.
657
+ # Name of the BackendService resource to which the Signed URL Key should be
658
+ # added. The name should conform to RFC1035.
537
659
  # @param key_name [::String]
538
660
  # The name of the Signed URL Key to delete.
539
661
  # @param project [::String]
540
662
  # Project ID for this request.
541
663
  # @param request_id [::String]
542
- # 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).
664
+ # An optional request ID to identify requests. Specify a unique request ID so
665
+ # that if you must retry your request, the server will know to ignore the
666
+ # request if it has already been completed.
667
+ #
668
+ # For example, consider a situation where you make an initial request and
669
+ # the request times out. If you make the request again with the same
670
+ # request ID, the server can check if original operation with the same
671
+ # request ID was received, and if so, will ignore the second request. This
672
+ # prevents clients from accidentally creating duplicate commitments.
673
+ #
674
+ # The request ID must be
675
+ # a valid UUID with the exception that zero UUID is not supported
676
+ # (00000000-0000-0000-0000-000000000000).
543
677
  # @yield [result, operation] Access the result along with the TransportOperation object
544
678
  # @yieldparam result [::Gapic::GenericLRO::Operation]
545
679
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -688,7 +822,94 @@ module Google
688
822
  end
689
823
 
690
824
  ##
691
- # Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
825
+ # Returns effective security policies applied to this backend service.
826
+ #
827
+ # @overload get_effective_security_policies(request, options = nil)
828
+ # Pass arguments to `get_effective_security_policies` via a request object, either of type
829
+ # {::Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceRequest} or an equivalent Hash.
830
+ #
831
+ # @param request [::Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceRequest, ::Hash]
832
+ # A request object representing the call parameters. Required. To specify no
833
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
834
+ # @param options [::Gapic::CallOptions, ::Hash]
835
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
836
+ #
837
+ # @overload get_effective_security_policies(backend_service: nil, project: nil)
838
+ # Pass arguments to `get_effective_security_policies` via keyword arguments. Note that at
839
+ # least one keyword argument is required. To specify no parameters, or to keep all
840
+ # the default parameter values, pass an empty Hash as a request object (see above).
841
+ #
842
+ # @param backend_service [::String]
843
+ # Name of the Backend Service for this request.
844
+ # @param project [::String]
845
+ # Project ID for this request.
846
+ # @yield [result, operation] Access the result along with the TransportOperation object
847
+ # @yieldparam result [::Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceResponse]
848
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
849
+ #
850
+ # @return [::Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceResponse]
851
+ #
852
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
853
+ #
854
+ # @example Basic example
855
+ # require "google/cloud/compute/v1"
856
+ #
857
+ # # Create a client object. The client can be reused for multiple calls.
858
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
859
+ #
860
+ # # Create a request. To set request fields, pass in keyword arguments.
861
+ # request = Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceRequest.new
862
+ #
863
+ # # Call the get_effective_security_policies method.
864
+ # result = client.get_effective_security_policies request
865
+ #
866
+ # # The returned object is of type Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceResponse.
867
+ # p result
868
+ #
869
+ def get_effective_security_policies request, options = nil
870
+ raise ::ArgumentError, "request must be provided" if request.nil?
871
+
872
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetEffectiveSecurityPoliciesBackendServiceRequest
873
+
874
+ # Converts hash and nil to an options object
875
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
876
+
877
+ # Customize the options with defaults
878
+ call_metadata = @config.rpcs.get_effective_security_policies.metadata.to_h
879
+
880
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
881
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
882
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
883
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
884
+ transports_version_send: [:rest]
885
+
886
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
887
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
888
+
889
+ options.apply_defaults timeout: @config.rpcs.get_effective_security_policies.timeout,
890
+ metadata: call_metadata,
891
+ retry_policy: @config.rpcs.get_effective_security_policies.retry_policy
892
+
893
+ options.apply_defaults timeout: @config.timeout,
894
+ metadata: @config.metadata,
895
+ retry_policy: @config.retry_policy
896
+
897
+ @backend_services_stub.get_effective_security_policies request, options do |result, operation|
898
+ yield result, operation if block_given?
899
+ end
900
+ rescue ::Gapic::Rest::Error => e
901
+ raise ::Google::Cloud::Error.from_error(e)
902
+ end
903
+
904
+ ##
905
+ # Gets the most recent health check results for this
906
+ # BackendService.
907
+ #
908
+ # Example request body:
909
+ #
910
+ # {
911
+ # "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
912
+ # }
692
913
  #
693
914
  # @overload get_health(request, options = nil)
694
915
  # Pass arguments to `get_health` via a request object, either of type
@@ -769,7 +990,8 @@ module Google
769
990
  end
770
991
 
771
992
  ##
772
- # Gets the access control policy for a resource. May be empty if no such policy or resource exists.
993
+ # Gets the access control policy for a resource. May be empty if no such
994
+ # policy or resource exists.
773
995
  #
774
996
  # @overload get_iam_policy(request, options = nil)
775
997
  # Pass arguments to `get_iam_policy` via a request object, either of type
@@ -851,7 +1073,9 @@ module Google
851
1073
  end
852
1074
 
853
1075
  ##
854
- # Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
1076
+ # Creates a BackendService resource in the specified project using
1077
+ # the data included in the request. For more information, see
1078
+ # Backend services overview.
855
1079
  #
856
1080
  # @overload insert(request, options = nil)
857
1081
  # Pass arguments to `insert` via a request object, either of type
@@ -873,7 +1097,19 @@ module Google
873
1097
  # @param project [::String]
874
1098
  # Project ID for this request.
875
1099
  # @param request_id [::String]
876
- # 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).
1100
+ # An optional request ID to identify requests. Specify a unique request ID so
1101
+ # that if you must retry your request, the server will know to ignore the
1102
+ # request if it has already been completed.
1103
+ #
1104
+ # For example, consider a situation where you make an initial request and
1105
+ # the request times out. If you make the request again with the same
1106
+ # request ID, the server can check if original operation with the same
1107
+ # request ID was received, and if so, will ignore the second request. This
1108
+ # prevents clients from accidentally creating duplicate commitments.
1109
+ #
1110
+ # The request ID must be
1111
+ # a valid UUID with the exception that zero UUID is not supported
1112
+ # (00000000-0000-0000-0000-000000000000).
877
1113
  # @yield [result, operation] Access the result along with the TransportOperation object
878
1114
  # @yieldparam result [::Gapic::GenericLRO::Operation]
879
1115
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -942,7 +1178,8 @@ module Google
942
1178
  end
943
1179
 
944
1180
  ##
945
- # Retrieves the list of BackendService resources available to the specified project.
1181
+ # Retrieves the list of BackendService resources available to the specified
1182
+ # project.
946
1183
  #
947
1184
  # @overload list(request, options = nil)
948
1185
  # Pass arguments to `list` via a request object, either of type
@@ -960,17 +1197,95 @@ module Google
960
1197
  # the default parameter values, pass an empty Hash as a request object (see above).
961
1198
  #
962
1199
  # @param filter [::String]
963
- # 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.
1200
+ # A filter expression that filters resources listed in the response. Most
1201
+ # Compute resources support two types of filter expressions:
1202
+ # expressions that support regular expressions and expressions that follow
1203
+ # API improvement proposal AIP-160.
1204
+ # These two types of filter expressions cannot be mixed in one request.
1205
+ #
1206
+ # If you want to use AIP-160, your expression must specify the field name, an
1207
+ # operator, and the value that you want to use for filtering. The value
1208
+ # must be a string, a number, or a boolean. The operator
1209
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
1210
+ #
1211
+ # For example, if you are filtering Compute Engine instances, you can
1212
+ # exclude instances named `example-instance` by specifying
1213
+ # `name != example-instance`.
1214
+ #
1215
+ # The `:*` comparison can be used to test whether a key has been defined.
1216
+ # For example, to find all objects with `owner` label use:
1217
+ # ```
1218
+ # labels.owner:*
1219
+ # ```
1220
+ #
1221
+ # You can also filter nested fields. For example, you could specify
1222
+ # `scheduling.automaticRestart = false` to include instances only
1223
+ # if they are not scheduled for automatic restarts. You can use filtering
1224
+ # on nested fields to filter based onresource labels.
1225
+ #
1226
+ # To filter on multiple expressions, provide each separate expression within
1227
+ # parentheses. For example:
1228
+ # ```
1229
+ # (scheduling.automaticRestart = true)
1230
+ # (cpuPlatform = "Intel Skylake")
1231
+ # ```
1232
+ # By default, each expression is an `AND` expression. However, you
1233
+ # can include `AND` and `OR` expressions explicitly.
1234
+ # For example:
1235
+ # ```
1236
+ # (cpuPlatform = "Intel Skylake") OR
1237
+ # (cpuPlatform = "Intel Broadwell") AND
1238
+ # (scheduling.automaticRestart = true)
1239
+ # ```
1240
+ #
1241
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
1242
+ # (not equal) operator against a single un-parenthesized expression with or
1243
+ # without quotes or against multiple parenthesized expressions. Examples:
1244
+ #
1245
+ # `fieldname eq unquoted literal`
1246
+ # `fieldname eq 'single quoted literal'`
1247
+ # `fieldname eq "double quoted literal"`
1248
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
1249
+ #
1250
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1251
+ # The literal value must match the entire field.
1252
+ #
1253
+ # For example, to filter for instances that do not end with name "instance",
1254
+ # you would use `name ne .*instance`.
1255
+ #
1256
+ # You cannot combine constraints on multiple fields using regular
1257
+ # expressions.
964
1258
  # @param max_results [::Integer]
965
- # 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`)
1259
+ # The maximum number of results per page that should be returned.
1260
+ # If the number of available results is larger than `maxResults`,
1261
+ # Compute Engine returns a `nextPageToken` that can be used to get
1262
+ # the next page of results in subsequent list requests. Acceptable values are
1263
+ # `0` to `500`, inclusive. (Default: `500`)
966
1264
  # @param order_by [::String]
967
- # 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.
1265
+ # Sorts list results by a certain order. By default, results
1266
+ # are returned in alphanumerical order based on the resource name.
1267
+ #
1268
+ # You can also sort results in descending order based on the creation
1269
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
1270
+ # results based on the `creationTimestamp` field in
1271
+ # reverse chronological order (newest result first). Use this to sort
1272
+ # resources like operations so that the newest operation is returned first.
1273
+ #
1274
+ # Currently, only sorting by `name` or
1275
+ # `creationTimestamp desc` is supported.
968
1276
  # @param page_token [::String]
969
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1277
+ # Specifies a page token to use. Set `pageToken` to the
1278
+ # `nextPageToken` returned by a previous list request to get
1279
+ # the next page of results.
970
1280
  # @param project [::String]
971
1281
  # Project ID for this request.
972
1282
  # @param return_partial_success [::Boolean]
973
- # 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.
1283
+ # Opt-in for partial success behavior which provides partial results in case
1284
+ # of failure. The default value is false.
1285
+ #
1286
+ # For example, when partial success behavior is enabled, aggregatedList for a
1287
+ # single zone scope either returns all resources in the zone or no resources,
1288
+ # with an error code.
974
1289
  # @yield [result, operation] Access the result along with the TransportOperation object
975
1290
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
976
1291
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1050,17 +1365,95 @@ module Google
1050
1365
  # the default parameter values, pass an empty Hash as a request object (see above).
1051
1366
  #
1052
1367
  # @param filter [::String]
1053
- # 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.
1368
+ # A filter expression that filters resources listed in the response. Most
1369
+ # Compute resources support two types of filter expressions:
1370
+ # expressions that support regular expressions and expressions that follow
1371
+ # API improvement proposal AIP-160.
1372
+ # These two types of filter expressions cannot be mixed in one request.
1373
+ #
1374
+ # If you want to use AIP-160, your expression must specify the field name, an
1375
+ # operator, and the value that you want to use for filtering. The value
1376
+ # must be a string, a number, or a boolean. The operator
1377
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
1378
+ #
1379
+ # For example, if you are filtering Compute Engine instances, you can
1380
+ # exclude instances named `example-instance` by specifying
1381
+ # `name != example-instance`.
1382
+ #
1383
+ # The `:*` comparison can be used to test whether a key has been defined.
1384
+ # For example, to find all objects with `owner` label use:
1385
+ # ```
1386
+ # labels.owner:*
1387
+ # ```
1388
+ #
1389
+ # You can also filter nested fields. For example, you could specify
1390
+ # `scheduling.automaticRestart = false` to include instances only
1391
+ # if they are not scheduled for automatic restarts. You can use filtering
1392
+ # on nested fields to filter based onresource labels.
1393
+ #
1394
+ # To filter on multiple expressions, provide each separate expression within
1395
+ # parentheses. For example:
1396
+ # ```
1397
+ # (scheduling.automaticRestart = true)
1398
+ # (cpuPlatform = "Intel Skylake")
1399
+ # ```
1400
+ # By default, each expression is an `AND` expression. However, you
1401
+ # can include `AND` and `OR` expressions explicitly.
1402
+ # For example:
1403
+ # ```
1404
+ # (cpuPlatform = "Intel Skylake") OR
1405
+ # (cpuPlatform = "Intel Broadwell") AND
1406
+ # (scheduling.automaticRestart = true)
1407
+ # ```
1408
+ #
1409
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
1410
+ # (not equal) operator against a single un-parenthesized expression with or
1411
+ # without quotes or against multiple parenthesized expressions. Examples:
1412
+ #
1413
+ # `fieldname eq unquoted literal`
1414
+ # `fieldname eq 'single quoted literal'`
1415
+ # `fieldname eq "double quoted literal"`
1416
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
1417
+ #
1418
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1419
+ # The literal value must match the entire field.
1420
+ #
1421
+ # For example, to filter for instances that do not end with name "instance",
1422
+ # you would use `name ne .*instance`.
1423
+ #
1424
+ # You cannot combine constraints on multiple fields using regular
1425
+ # expressions.
1054
1426
  # @param max_results [::Integer]
1055
- # 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`)
1427
+ # The maximum number of results per page that should be returned.
1428
+ # If the number of available results is larger than `maxResults`,
1429
+ # Compute Engine returns a `nextPageToken` that can be used to get
1430
+ # the next page of results in subsequent list requests. Acceptable values are
1431
+ # `0` to `500`, inclusive. (Default: `500`)
1056
1432
  # @param order_by [::String]
1057
- # 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.
1433
+ # Sorts list results by a certain order. By default, results
1434
+ # are returned in alphanumerical order based on the resource name.
1435
+ #
1436
+ # You can also sort results in descending order based on the creation
1437
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
1438
+ # results based on the `creationTimestamp` field in
1439
+ # reverse chronological order (newest result first). Use this to sort
1440
+ # resources like operations so that the newest operation is returned first.
1441
+ #
1442
+ # Currently, only sorting by `name` or
1443
+ # `creationTimestamp desc` is supported.
1058
1444
  # @param page_token [::String]
1059
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1445
+ # Specifies a page token to use. Set `pageToken` to the
1446
+ # `nextPageToken` returned by a previous list request to get
1447
+ # the next page of results.
1060
1448
  # @param project [::String]
1061
1449
  # Project ID for this request.
1062
1450
  # @param return_partial_success [::Boolean]
1063
- # 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.
1451
+ # Opt-in for partial success behavior which provides partial results in case
1452
+ # of failure. The default value is false.
1453
+ #
1454
+ # For example, when partial success behavior is enabled, aggregatedList for a
1455
+ # single zone scope either returns all resources in the zone or no resources,
1456
+ # with an error code.
1064
1457
  # @yield [result, operation] Access the result along with the TransportOperation object
1065
1458
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
1066
1459
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1122,7 +1515,11 @@ module Google
1122
1515
  end
1123
1516
 
1124
1517
  ##
1125
- # Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
1518
+ # Patches the specified BackendService resource with the data included in the
1519
+ # request. For more information, see
1520
+ # Backend services overview. This method
1521
+ # supports PATCH semantics and uses the JSON merge
1522
+ # patch format and processing rules.
1126
1523
  #
1127
1524
  # @overload patch(request, options = nil)
1128
1525
  # Pass arguments to `patch` via a request object, either of type
@@ -1146,7 +1543,19 @@ module Google
1146
1543
  # @param project [::String]
1147
1544
  # Project ID for this request.
1148
1545
  # @param request_id [::String]
1149
- # 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).
1546
+ # An optional request ID to identify requests. Specify a unique request ID so
1547
+ # that if you must retry your request, the server will know to ignore the
1548
+ # request if it has already been completed.
1549
+ #
1550
+ # For example, consider a situation where you make an initial request and
1551
+ # the request times out. If you make the request again with the same
1552
+ # request ID, the server can check if original operation with the same
1553
+ # request ID was received, and if so, will ignore the second request. This
1554
+ # prevents clients from accidentally creating duplicate commitments.
1555
+ #
1556
+ # The request ID must be
1557
+ # a valid UUID with the exception that zero UUID is not supported
1558
+ # (00000000-0000-0000-0000-000000000000).
1150
1559
  # @yield [result, operation] Access the result along with the TransportOperation object
1151
1560
  # @yieldparam result [::Gapic::GenericLRO::Operation]
1152
1561
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1233,11 +1642,24 @@ module Google
1233
1642
  # the default parameter values, pass an empty Hash as a request object (see above).
1234
1643
  #
1235
1644
  # @param backend_service [::String]
1236
- # Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.
1645
+ # Name of the BackendService resource to which the edge security policy
1646
+ # should be set. The name should conform to RFC1035.
1237
1647
  # @param project [::String]
1238
1648
  # Project ID for this request.
1239
1649
  # @param request_id [::String]
1240
- # 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).
1650
+ # An optional request ID to identify requests. Specify a unique request ID so
1651
+ # that if you must retry your request, the server will know to ignore the
1652
+ # request if it has already been completed.
1653
+ #
1654
+ # For example, consider a situation where you make an initial request and
1655
+ # the request times out. If you make the request again with the same
1656
+ # request ID, the server can check if original operation with the same
1657
+ # request ID was received, and if so, will ignore the second request. This
1658
+ # prevents clients from accidentally creating duplicate commitments.
1659
+ #
1660
+ # The request ID must be
1661
+ # a valid UUID with the exception that zero UUID is not supported
1662
+ # (00000000-0000-0000-0000-000000000000).
1241
1663
  # @param security_policy_reference_resource [::Google::Cloud::Compute::V1::SecurityPolicyReference, ::Hash]
1242
1664
  # The body resource for this request
1243
1665
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1308,7 +1730,8 @@ module Google
1308
1730
  end
1309
1731
 
1310
1732
  ##
1311
- # Sets the access control policy on the specified resource. Replaces any existing policy.
1733
+ # Sets the access control policy on the specified resource.
1734
+ # Replaces any existing policy.
1312
1735
  #
1313
1736
  # @overload set_iam_policy(request, options = nil)
1314
1737
  # Pass arguments to `set_iam_policy` via a request object, either of type
@@ -1390,7 +1813,9 @@ module Google
1390
1813
  end
1391
1814
 
1392
1815
  ##
1393
- # Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
1816
+ # Sets the Google Cloud Armor security policy for the specified backend
1817
+ # service. For more information, seeGoogle
1818
+ # Cloud Armor Overview
1394
1819
  #
1395
1820
  # @overload set_security_policy(request, options = nil)
1396
1821
  # Pass arguments to `set_security_policy` via a request object, either of type
@@ -1408,11 +1833,24 @@ module Google
1408
1833
  # the default parameter values, pass an empty Hash as a request object (see above).
1409
1834
  #
1410
1835
  # @param backend_service [::String]
1411
- # Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
1836
+ # Name of the BackendService resource to which the security policy should be
1837
+ # set. The name should conform to RFC1035.
1412
1838
  # @param project [::String]
1413
1839
  # Project ID for this request.
1414
1840
  # @param request_id [::String]
1415
- # 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).
1841
+ # An optional request ID to identify requests. Specify a unique request ID so
1842
+ # that if you must retry your request, the server will know to ignore the
1843
+ # request if it has already been completed.
1844
+ #
1845
+ # For example, consider a situation where you make an initial request and
1846
+ # the request times out. If you make the request again with the same
1847
+ # request ID, the server can check if original operation with the same
1848
+ # request ID was received, and if so, will ignore the second request. This
1849
+ # prevents clients from accidentally creating duplicate commitments.
1850
+ #
1851
+ # The request ID must be
1852
+ # a valid UUID with the exception that zero UUID is not supported
1853
+ # (00000000-0000-0000-0000-000000000000).
1416
1854
  # @param security_policy_reference_resource [::Google::Cloud::Compute::V1::SecurityPolicyReference, ::Hash]
1417
1855
  # The body resource for this request
1418
1856
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1565,7 +2003,9 @@ module Google
1565
2003
  end
1566
2004
 
1567
2005
  ##
1568
- # Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
2006
+ # Updates the specified BackendService resource with the data included in the
2007
+ # request. For more information, seeBackend
2008
+ # services overview.
1569
2009
  #
1570
2010
  # @overload update(request, options = nil)
1571
2011
  # Pass arguments to `update` via a request object, either of type
@@ -1589,7 +2029,19 @@ module Google
1589
2029
  # @param project [::String]
1590
2030
  # Project ID for this request.
1591
2031
  # @param request_id [::String]
1592
- # 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).
2032
+ # An optional request ID to identify requests. Specify a unique request ID so
2033
+ # that if you must retry your request, the server will know to ignore the
2034
+ # request if it has already been completed.
2035
+ #
2036
+ # For example, consider a situation where you make an initial request and
2037
+ # the request times out. If you make the request again with the same
2038
+ # request ID, the server can check if original operation with the same
2039
+ # request ID was received, and if so, will ignore the second request. This
2040
+ # prevents clients from accidentally creating duplicate commitments.
2041
+ #
2042
+ # The request ID must be
2043
+ # a valid UUID with the exception that zero UUID is not supported
2044
+ # (00000000-0000-0000-0000-000000000000).
1593
2045
  # @yield [result, operation] Access the result along with the TransportOperation object
1594
2046
  # @yieldparam result [::Gapic::GenericLRO::Operation]
1595
2047
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1829,6 +2281,11 @@ module Google
1829
2281
  #
1830
2282
  attr_reader :get
1831
2283
  ##
2284
+ # RPC-specific configuration for `get_effective_security_policies`
2285
+ # @return [::Gapic::Config::Method]
2286
+ #
2287
+ attr_reader :get_effective_security_policies
2288
+ ##
1832
2289
  # RPC-specific configuration for `get_health`
1833
2290
  # @return [::Gapic::Config::Method]
1834
2291
  #
@@ -1896,6 +2353,8 @@ module Google
1896
2353
  @delete_signed_url_key = ::Gapic::Config::Method.new delete_signed_url_key_config
1897
2354
  get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
1898
2355
  @get = ::Gapic::Config::Method.new get_config
2356
+ get_effective_security_policies_config = parent_rpcs.get_effective_security_policies if parent_rpcs.respond_to? :get_effective_security_policies
2357
+ @get_effective_security_policies = ::Gapic::Config::Method.new get_effective_security_policies_config
1899
2358
  get_health_config = parent_rpcs.get_health if parent_rpcs.respond_to? :get_health
1900
2359
  @get_health = ::Gapic::Config::Method.new get_health_config
1901
2360
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy