google-cloud-compute-v1 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/advice.rb +47 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +281 -25
- data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
- data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +473 -40
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
- data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
- data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
- data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/rest.rb +10 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +10 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
- metadata +52 -2
|
@@ -94,6 +94,8 @@ module Google
|
|
|
94
94
|
|
|
95
95
|
default_config.rpcs.patch.timeout = 600.0
|
|
96
96
|
|
|
97
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
|
98
|
+
|
|
97
99
|
default_config.rpcs.update.timeout = 600.0
|
|
98
100
|
|
|
99
101
|
default_config.rpcs.validate.timeout = 600.0
|
|
@@ -217,7 +219,11 @@ module Google
|
|
|
217
219
|
# Service calls
|
|
218
220
|
|
|
219
221
|
##
|
|
220
|
-
# Retrieves the list of all UrlMap resources, regional and global,
|
|
222
|
+
# Retrieves the list of all UrlMap resources, regional and global,
|
|
223
|
+
# available to the specified project.
|
|
224
|
+
#
|
|
225
|
+
# To prevent failure, Google recommends that you set the
|
|
226
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
221
227
|
#
|
|
222
228
|
# @overload aggregated_list(request, options = nil)
|
|
223
229
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
|
@@ -235,21 +241,106 @@ module Google
|
|
|
235
241
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
236
242
|
#
|
|
237
243
|
# @param filter [::String]
|
|
238
|
-
# A filter expression that filters resources listed in the response. Most
|
|
244
|
+
# A filter expression that filters resources listed in the response. Most
|
|
245
|
+
# Compute resources support two types of filter expressions:
|
|
246
|
+
# expressions that support regular expressions and expressions that follow
|
|
247
|
+
# API improvement proposal AIP-160.
|
|
248
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
249
|
+
#
|
|
250
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
251
|
+
# operator, and the value that you want to use for filtering. The value
|
|
252
|
+
# must be a string, a number, or a boolean. The operator
|
|
253
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
254
|
+
#
|
|
255
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
256
|
+
# exclude instances named `example-instance` by specifying
|
|
257
|
+
# `name != example-instance`.
|
|
258
|
+
#
|
|
259
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
260
|
+
# For example, to find all objects with `owner` label use:
|
|
261
|
+
# ```
|
|
262
|
+
# labels.owner:*
|
|
263
|
+
# ```
|
|
264
|
+
#
|
|
265
|
+
# You can also filter nested fields. For example, you could specify
|
|
266
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
267
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
268
|
+
# on nested fields to filter based onresource labels.
|
|
269
|
+
#
|
|
270
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
271
|
+
# parentheses. For example:
|
|
272
|
+
# ```
|
|
273
|
+
# (scheduling.automaticRestart = true)
|
|
274
|
+
# (cpuPlatform = "Intel Skylake")
|
|
275
|
+
# ```
|
|
276
|
+
# By default, each expression is an `AND` expression. However, you
|
|
277
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
278
|
+
# For example:
|
|
279
|
+
# ```
|
|
280
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
281
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
282
|
+
# (scheduling.automaticRestart = true)
|
|
283
|
+
# ```
|
|
284
|
+
#
|
|
285
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
286
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
287
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
288
|
+
#
|
|
289
|
+
# `fieldname eq unquoted literal`
|
|
290
|
+
# `fieldname eq 'single quoted literal'`
|
|
291
|
+
# `fieldname eq "double quoted literal"`
|
|
292
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
293
|
+
#
|
|
294
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
295
|
+
# The literal value must match the entire field.
|
|
296
|
+
#
|
|
297
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
298
|
+
# you would use `name ne .*instance`.
|
|
299
|
+
#
|
|
300
|
+
# You cannot combine constraints on multiple fields using regular
|
|
301
|
+
# expressions.
|
|
239
302
|
# @param include_all_scopes [::Boolean]
|
|
240
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
|
303
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
304
|
+
# global) should be included in the response. For new resource types added
|
|
305
|
+
# after this field, the flag has no effect as new resource types will always
|
|
306
|
+
# include every visible scope for each scope type in response. For resource
|
|
307
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
308
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
309
|
+
# will be included.
|
|
241
310
|
# @param max_results [::Integer]
|
|
242
|
-
# The maximum number of results per page that should be returned.
|
|
311
|
+
# The maximum number of results per page that should be returned.
|
|
312
|
+
# If the number of available results is larger than `maxResults`,
|
|
313
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
314
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
315
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
243
316
|
# @param order_by [::String]
|
|
244
|
-
# Sorts list results by a certain order. By default, results
|
|
317
|
+
# Sorts list results by a certain order. By default, results
|
|
318
|
+
# are returned in alphanumerical order based on the resource name.
|
|
319
|
+
#
|
|
320
|
+
# You can also sort results in descending order based on the creation
|
|
321
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
322
|
+
# results based on the `creationTimestamp` field in
|
|
323
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
324
|
+
# resources like operations so that the newest operation is returned first.
|
|
325
|
+
#
|
|
326
|
+
# Currently, only sorting by `name` or
|
|
327
|
+
# `creationTimestamp desc` is supported.
|
|
245
328
|
# @param page_token [::String]
|
|
246
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
329
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
330
|
+
# `nextPageToken` returned by a previous list request to get
|
|
331
|
+
# the next page of results.
|
|
247
332
|
# @param project [::String]
|
|
248
333
|
# Name of the project scoping this request.
|
|
249
334
|
# @param return_partial_success [::Boolean]
|
|
250
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
335
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
336
|
+
# of failure. The default value is false.
|
|
337
|
+
#
|
|
338
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
339
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
340
|
+
# with an error code.
|
|
251
341
|
# @param service_project_number [::Integer]
|
|
252
|
-
# The Shared VPC service project id or service project number for which
|
|
342
|
+
# The Shared VPC service project id or service project number for which
|
|
343
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
253
344
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
254
345
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::UrlMapsScopedList>]
|
|
255
346
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -331,7 +422,19 @@ module Google
|
|
|
331
422
|
# @param project [::String]
|
|
332
423
|
# Project ID for this request.
|
|
333
424
|
# @param request_id [::String]
|
|
334
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
425
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
426
|
+
# that if you must retry your request, the server will know to ignore the
|
|
427
|
+
# request if it has already been completed.
|
|
428
|
+
#
|
|
429
|
+
# For example, consider a situation where you make an initial request and
|
|
430
|
+
# the request times out. If you make the request again with the same
|
|
431
|
+
# request ID, the server can check if original operation with the same
|
|
432
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
433
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
434
|
+
#
|
|
435
|
+
# The request ID must be
|
|
436
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
437
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
335
438
|
# @param url_map [::String]
|
|
336
439
|
# Name of the UrlMap resource to delete.
|
|
337
440
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -482,7 +585,8 @@ module Google
|
|
|
482
585
|
end
|
|
483
586
|
|
|
484
587
|
##
|
|
485
|
-
# Creates a UrlMap resource in the specified project using
|
|
588
|
+
# Creates a UrlMap resource in the specified project using
|
|
589
|
+
# the data included in the request.
|
|
486
590
|
#
|
|
487
591
|
# @overload insert(request, options = nil)
|
|
488
592
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -502,7 +606,19 @@ module Google
|
|
|
502
606
|
# @param project [::String]
|
|
503
607
|
# Project ID for this request.
|
|
504
608
|
# @param request_id [::String]
|
|
505
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
609
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
610
|
+
# that if you must retry your request, the server will know to ignore the
|
|
611
|
+
# request if it has already been completed.
|
|
612
|
+
#
|
|
613
|
+
# For example, consider a situation where you make an initial request and
|
|
614
|
+
# the request times out. If you make the request again with the same
|
|
615
|
+
# request ID, the server can check if original operation with the same
|
|
616
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
617
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
618
|
+
#
|
|
619
|
+
# The request ID must be
|
|
620
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
621
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
506
622
|
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
507
623
|
# The body resource for this request
|
|
508
624
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -573,7 +689,11 @@ module Google
|
|
|
573
689
|
end
|
|
574
690
|
|
|
575
691
|
##
|
|
576
|
-
# Initiates a cache invalidation operation, invalidating the specified path,
|
|
692
|
+
# Initiates a cache invalidation operation, invalidating the specified path,
|
|
693
|
+
# scoped to the specified UrlMap.
|
|
694
|
+
#
|
|
695
|
+
# For more information, see [Invalidating cached
|
|
696
|
+
# content](/cdn/docs/invalidating-cached-content).
|
|
577
697
|
#
|
|
578
698
|
# @overload invalidate_cache(request, options = nil)
|
|
579
699
|
# Pass arguments to `invalidate_cache` via a request object, either of type
|
|
@@ -595,7 +715,19 @@ module Google
|
|
|
595
715
|
# @param project [::String]
|
|
596
716
|
# Project ID for this request.
|
|
597
717
|
# @param request_id [::String]
|
|
598
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
718
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
719
|
+
# that if you must retry your request, the server will know to ignore the
|
|
720
|
+
# request if it has already been completed.
|
|
721
|
+
#
|
|
722
|
+
# For example, consider a situation where you make an initial request and
|
|
723
|
+
# the request times out. If you make the request again with the same
|
|
724
|
+
# request ID, the server can check if original operation with the same
|
|
725
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
726
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
727
|
+
#
|
|
728
|
+
# The request ID must be
|
|
729
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
730
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
599
731
|
# @param url_map [::String]
|
|
600
732
|
# Name of the UrlMap scoping this request.
|
|
601
733
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -666,7 +798,8 @@ module Google
|
|
|
666
798
|
end
|
|
667
799
|
|
|
668
800
|
##
|
|
669
|
-
# Retrieves the list of UrlMap resources available to the specified
|
|
801
|
+
# Retrieves the list of UrlMap resources available to the specified
|
|
802
|
+
# project.
|
|
670
803
|
#
|
|
671
804
|
# @overload list(request, options = nil)
|
|
672
805
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -684,17 +817,95 @@ module Google
|
|
|
684
817
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
685
818
|
#
|
|
686
819
|
# @param filter [::String]
|
|
687
|
-
# A filter expression that filters resources listed in the response. Most
|
|
820
|
+
# A filter expression that filters resources listed in the response. Most
|
|
821
|
+
# Compute resources support two types of filter expressions:
|
|
822
|
+
# expressions that support regular expressions and expressions that follow
|
|
823
|
+
# API improvement proposal AIP-160.
|
|
824
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
825
|
+
#
|
|
826
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
827
|
+
# operator, and the value that you want to use for filtering. The value
|
|
828
|
+
# must be a string, a number, or a boolean. The operator
|
|
829
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
830
|
+
#
|
|
831
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
832
|
+
# exclude instances named `example-instance` by specifying
|
|
833
|
+
# `name != example-instance`.
|
|
834
|
+
#
|
|
835
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
836
|
+
# For example, to find all objects with `owner` label use:
|
|
837
|
+
# ```
|
|
838
|
+
# labels.owner:*
|
|
839
|
+
# ```
|
|
840
|
+
#
|
|
841
|
+
# You can also filter nested fields. For example, you could specify
|
|
842
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
843
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
844
|
+
# on nested fields to filter based onresource labels.
|
|
845
|
+
#
|
|
846
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
847
|
+
# parentheses. For example:
|
|
848
|
+
# ```
|
|
849
|
+
# (scheduling.automaticRestart = true)
|
|
850
|
+
# (cpuPlatform = "Intel Skylake")
|
|
851
|
+
# ```
|
|
852
|
+
# By default, each expression is an `AND` expression. However, you
|
|
853
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
854
|
+
# For example:
|
|
855
|
+
# ```
|
|
856
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
857
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
858
|
+
# (scheduling.automaticRestart = true)
|
|
859
|
+
# ```
|
|
860
|
+
#
|
|
861
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
862
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
863
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
864
|
+
#
|
|
865
|
+
# `fieldname eq unquoted literal`
|
|
866
|
+
# `fieldname eq 'single quoted literal'`
|
|
867
|
+
# `fieldname eq "double quoted literal"`
|
|
868
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
869
|
+
#
|
|
870
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
871
|
+
# The literal value must match the entire field.
|
|
872
|
+
#
|
|
873
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
874
|
+
# you would use `name ne .*instance`.
|
|
875
|
+
#
|
|
876
|
+
# You cannot combine constraints on multiple fields using regular
|
|
877
|
+
# expressions.
|
|
688
878
|
# @param max_results [::Integer]
|
|
689
|
-
# The maximum number of results per page that should be returned.
|
|
879
|
+
# The maximum number of results per page that should be returned.
|
|
880
|
+
# If the number of available results is larger than `maxResults`,
|
|
881
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
882
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
883
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
690
884
|
# @param order_by [::String]
|
|
691
|
-
# Sorts list results by a certain order. By default, results
|
|
885
|
+
# Sorts list results by a certain order. By default, results
|
|
886
|
+
# are returned in alphanumerical order based on the resource name.
|
|
887
|
+
#
|
|
888
|
+
# You can also sort results in descending order based on the creation
|
|
889
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
890
|
+
# results based on the `creationTimestamp` field in
|
|
891
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
892
|
+
# resources like operations so that the newest operation is returned first.
|
|
893
|
+
#
|
|
894
|
+
# Currently, only sorting by `name` or
|
|
895
|
+
# `creationTimestamp desc` is supported.
|
|
692
896
|
# @param page_token [::String]
|
|
693
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
897
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
898
|
+
# `nextPageToken` returned by a previous list request to get
|
|
899
|
+
# the next page of results.
|
|
694
900
|
# @param project [::String]
|
|
695
901
|
# Project ID for this request.
|
|
696
902
|
# @param return_partial_success [::Boolean]
|
|
697
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
903
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
904
|
+
# of failure. The default value is false.
|
|
905
|
+
#
|
|
906
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
907
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
908
|
+
# with an error code.
|
|
698
909
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
699
910
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>]
|
|
700
911
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -756,7 +967,10 @@ module Google
|
|
|
756
967
|
end
|
|
757
968
|
|
|
758
969
|
##
|
|
759
|
-
# Patches the specified UrlMap resource with the data included in the
|
|
970
|
+
# Patches the specified UrlMap resource with the data included in the
|
|
971
|
+
# request. This method supportsPATCH
|
|
972
|
+
# semantics and uses theJSON merge
|
|
973
|
+
# patch format and processing rules.
|
|
760
974
|
#
|
|
761
975
|
# @overload patch(request, options = nil)
|
|
762
976
|
# Pass arguments to `patch` via a request object, either of type
|
|
@@ -776,7 +990,19 @@ module Google
|
|
|
776
990
|
# @param project [::String]
|
|
777
991
|
# Project ID for this request.
|
|
778
992
|
# @param request_id [::String]
|
|
779
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
993
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
994
|
+
# that if you must retry your request, the server will know to ignore the
|
|
995
|
+
# request if it has already been completed.
|
|
996
|
+
#
|
|
997
|
+
# For example, consider a situation where you make an initial request and
|
|
998
|
+
# the request times out. If you make the request again with the same
|
|
999
|
+
# request ID, the server can check if original operation with the same
|
|
1000
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1001
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1002
|
+
#
|
|
1003
|
+
# The request ID must be
|
|
1004
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1005
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
780
1006
|
# @param url_map [::String]
|
|
781
1007
|
# Name of the UrlMap resource to patch.
|
|
782
1008
|
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
@@ -849,7 +1075,90 @@ module Google
|
|
|
849
1075
|
end
|
|
850
1076
|
|
|
851
1077
|
##
|
|
852
|
-
#
|
|
1078
|
+
# Returns permissions that a caller has on the specified resource.
|
|
1079
|
+
#
|
|
1080
|
+
# @overload test_iam_permissions(request, options = nil)
|
|
1081
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
|
1082
|
+
# {::Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest} or an equivalent Hash.
|
|
1083
|
+
#
|
|
1084
|
+
# @param request [::Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest, ::Hash]
|
|
1085
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1086
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1087
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1088
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1089
|
+
#
|
|
1090
|
+
# @overload test_iam_permissions(project: nil, resource: nil, test_permissions_request_resource: nil)
|
|
1091
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
|
1092
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1093
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1094
|
+
#
|
|
1095
|
+
# @param project [::String]
|
|
1096
|
+
# Project ID for this request.
|
|
1097
|
+
# @param resource [::String]
|
|
1098
|
+
# Name or id of the resource for this request.
|
|
1099
|
+
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
|
1100
|
+
# The body resource for this request
|
|
1101
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1102
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1103
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1104
|
+
#
|
|
1105
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1106
|
+
#
|
|
1107
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1108
|
+
#
|
|
1109
|
+
# @example Basic example
|
|
1110
|
+
# require "google/cloud/compute/v1"
|
|
1111
|
+
#
|
|
1112
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1113
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
|
1114
|
+
#
|
|
1115
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1116
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest.new
|
|
1117
|
+
#
|
|
1118
|
+
# # Call the test_iam_permissions method.
|
|
1119
|
+
# result = client.test_iam_permissions request
|
|
1120
|
+
#
|
|
1121
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
1122
|
+
# p result
|
|
1123
|
+
#
|
|
1124
|
+
def test_iam_permissions request, options = nil
|
|
1125
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1126
|
+
|
|
1127
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest
|
|
1128
|
+
|
|
1129
|
+
# Converts hash and nil to an options object
|
|
1130
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1131
|
+
|
|
1132
|
+
# Customize the options with defaults
|
|
1133
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
|
1134
|
+
|
|
1135
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1136
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1137
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1138
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
1139
|
+
transports_version_send: [:rest]
|
|
1140
|
+
|
|
1141
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1142
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1143
|
+
|
|
1144
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
|
1145
|
+
metadata: call_metadata,
|
|
1146
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
|
1147
|
+
|
|
1148
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1149
|
+
metadata: @config.metadata,
|
|
1150
|
+
retry_policy: @config.retry_policy
|
|
1151
|
+
|
|
1152
|
+
@url_maps_stub.test_iam_permissions request, options do |result, operation|
|
|
1153
|
+
yield result, operation if block_given?
|
|
1154
|
+
end
|
|
1155
|
+
rescue ::Gapic::Rest::Error => e
|
|
1156
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
##
|
|
1160
|
+
# Updates the specified UrlMap resource with the data included in the
|
|
1161
|
+
# request.
|
|
853
1162
|
#
|
|
854
1163
|
# @overload update(request, options = nil)
|
|
855
1164
|
# Pass arguments to `update` via a request object, either of type
|
|
@@ -869,7 +1178,19 @@ module Google
|
|
|
869
1178
|
# @param project [::String]
|
|
870
1179
|
# Project ID for this request.
|
|
871
1180
|
# @param request_id [::String]
|
|
872
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1181
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1182
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1183
|
+
# request if it has already been completed.
|
|
1184
|
+
#
|
|
1185
|
+
# For example, consider a situation where you make an initial request and
|
|
1186
|
+
# the request times out. If you make the request again with the same
|
|
1187
|
+
# request ID, the server can check if original operation with the same
|
|
1188
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1189
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1190
|
+
#
|
|
1191
|
+
# The request ID must be
|
|
1192
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1193
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
873
1194
|
# @param url_map [::String]
|
|
874
1195
|
# Name of the UrlMap resource to update.
|
|
875
1196
|
# @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash]
|
|
@@ -942,7 +1263,9 @@ module Google
|
|
|
942
1263
|
end
|
|
943
1264
|
|
|
944
1265
|
##
|
|
945
|
-
# Runs static validation for the UrlMap. In particular, the tests of the
|
|
1266
|
+
# Runs static validation for the UrlMap. In particular, the tests of the
|
|
1267
|
+
# provided UrlMap will be run. Calling this method does NOT create the
|
|
1268
|
+
# UrlMap.
|
|
946
1269
|
#
|
|
947
1270
|
# @overload validate(request, options = nil)
|
|
948
1271
|
# Pass arguments to `validate` via a request object, either of type
|
|
@@ -1205,6 +1528,11 @@ module Google
|
|
|
1205
1528
|
#
|
|
1206
1529
|
attr_reader :patch
|
|
1207
1530
|
##
|
|
1531
|
+
# RPC-specific configuration for `test_iam_permissions`
|
|
1532
|
+
# @return [::Gapic::Config::Method]
|
|
1533
|
+
#
|
|
1534
|
+
attr_reader :test_iam_permissions
|
|
1535
|
+
##
|
|
1208
1536
|
# RPC-specific configuration for `update`
|
|
1209
1537
|
# @return [::Gapic::Config::Method]
|
|
1210
1538
|
#
|
|
@@ -1231,6 +1559,8 @@ module Google
|
|
|
1231
1559
|
@list = ::Gapic::Config::Method.new list_config
|
|
1232
1560
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
|
1233
1561
|
@patch = ::Gapic::Config::Method.new patch_config
|
|
1562
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
|
1563
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
1234
1564
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
|
1235
1565
|
@update = ::Gapic::Config::Method.new update_config
|
|
1236
1566
|
validate_config = parent_rpcs.validate if parent_rpcs.respond_to? :validate
|
|
@@ -353,6 +353,46 @@ module Google
|
|
|
353
353
|
end
|
|
354
354
|
end
|
|
355
355
|
|
|
356
|
+
##
|
|
357
|
+
# Baseline implementation for the test_iam_permissions REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @param options [::Gapic::CallOptions]
|
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
363
|
+
#
|
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
365
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
367
|
+
#
|
|
368
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
369
|
+
# A result object deserialized from the server's reply
|
|
370
|
+
def test_iam_permissions request_pb, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
372
|
+
|
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
374
|
+
query_string_params = if query_string_params.any?
|
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
376
|
+
else
|
|
377
|
+
{}
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
response = @client_stub.make_http_request(
|
|
381
|
+
verb,
|
|
382
|
+
uri: uri,
|
|
383
|
+
body: body || "",
|
|
384
|
+
params: query_string_params,
|
|
385
|
+
method_name: "test_iam_permissions",
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
389
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
390
|
+
catch :response do
|
|
391
|
+
yield result, operation if block_given?
|
|
392
|
+
result
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
356
396
|
##
|
|
357
397
|
# Baseline implementation for the update REST call
|
|
358
398
|
#
|
|
@@ -587,6 +627,29 @@ module Google
|
|
|
587
627
|
transcoder.transcode request_pb
|
|
588
628
|
end
|
|
589
629
|
|
|
630
|
+
##
|
|
631
|
+
# @private
|
|
632
|
+
#
|
|
633
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
|
634
|
+
#
|
|
635
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsUrlMapRequest]
|
|
636
|
+
# A request object representing the call parameters. Required.
|
|
637
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
638
|
+
# Uri, Body, Query string parameters
|
|
639
|
+
def self.transcode_test_iam_permissions_request request_pb
|
|
640
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
641
|
+
.with_bindings(
|
|
642
|
+
uri_method: :post,
|
|
643
|
+
uri_template: "/compute/v1/projects/{project}/global/urlMaps/{resource}/testIamPermissions",
|
|
644
|
+
body: "test_permissions_request_resource",
|
|
645
|
+
matches: [
|
|
646
|
+
["project", %r{^[^/]+/?$}, false],
|
|
647
|
+
["resource", %r{^[^/]+/?$}, false]
|
|
648
|
+
]
|
|
649
|
+
)
|
|
650
|
+
transcoder.transcode request_pb
|
|
651
|
+
end
|
|
652
|
+
|
|
590
653
|
##
|
|
591
654
|
# @private
|
|
592
655
|
#
|