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.set_labels.timeout = 600.0
|
|
96
96
|
|
|
97
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
|
98
|
+
|
|
97
99
|
default_config
|
|
98
100
|
end
|
|
99
101
|
yield @configure if block_given?
|
|
@@ -213,7 +215,10 @@ module Google
|
|
|
213
215
|
# Service calls
|
|
214
216
|
|
|
215
217
|
##
|
|
216
|
-
# Retrieves an aggregated list of addresses.
|
|
218
|
+
# Retrieves an aggregated list of addresses.
|
|
219
|
+
#
|
|
220
|
+
# To prevent failure, it is recommended that you set the
|
|
221
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
217
222
|
#
|
|
218
223
|
# @overload aggregated_list(request, options = nil)
|
|
219
224
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
|
@@ -231,21 +236,106 @@ module Google
|
|
|
231
236
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
232
237
|
#
|
|
233
238
|
# @param filter [::String]
|
|
234
|
-
# A filter expression that filters resources listed in the response. Most
|
|
239
|
+
# A filter expression that filters resources listed in the response. Most
|
|
240
|
+
# Compute resources support two types of filter expressions:
|
|
241
|
+
# expressions that support regular expressions and expressions that follow
|
|
242
|
+
# API improvement proposal AIP-160.
|
|
243
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
244
|
+
#
|
|
245
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
246
|
+
# operator, and the value that you want to use for filtering. The value
|
|
247
|
+
# must be a string, a number, or a boolean. The operator
|
|
248
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
249
|
+
#
|
|
250
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
251
|
+
# exclude instances named `example-instance` by specifying
|
|
252
|
+
# `name != example-instance`.
|
|
253
|
+
#
|
|
254
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
255
|
+
# For example, to find all objects with `owner` label use:
|
|
256
|
+
# ```
|
|
257
|
+
# labels.owner:*
|
|
258
|
+
# ```
|
|
259
|
+
#
|
|
260
|
+
# You can also filter nested fields. For example, you could specify
|
|
261
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
262
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
263
|
+
# on nested fields to filter based onresource labels.
|
|
264
|
+
#
|
|
265
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
266
|
+
# parentheses. For example:
|
|
267
|
+
# ```
|
|
268
|
+
# (scheduling.automaticRestart = true)
|
|
269
|
+
# (cpuPlatform = "Intel Skylake")
|
|
270
|
+
# ```
|
|
271
|
+
# By default, each expression is an `AND` expression. However, you
|
|
272
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
273
|
+
# For example:
|
|
274
|
+
# ```
|
|
275
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
276
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
277
|
+
# (scheduling.automaticRestart = true)
|
|
278
|
+
# ```
|
|
279
|
+
#
|
|
280
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
281
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
282
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
283
|
+
#
|
|
284
|
+
# `fieldname eq unquoted literal`
|
|
285
|
+
# `fieldname eq 'single quoted literal'`
|
|
286
|
+
# `fieldname eq "double quoted literal"`
|
|
287
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
288
|
+
#
|
|
289
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
290
|
+
# The literal value must match the entire field.
|
|
291
|
+
#
|
|
292
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
293
|
+
# you would use `name ne .*instance`.
|
|
294
|
+
#
|
|
295
|
+
# You cannot combine constraints on multiple fields using regular
|
|
296
|
+
# expressions.
|
|
235
297
|
# @param include_all_scopes [::Boolean]
|
|
236
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
|
298
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
299
|
+
# global) should be included in the response. For new resource types added
|
|
300
|
+
# after this field, the flag has no effect as new resource types will always
|
|
301
|
+
# include every visible scope for each scope type in response. For resource
|
|
302
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
303
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
304
|
+
# will be included.
|
|
237
305
|
# @param max_results [::Integer]
|
|
238
|
-
# The maximum number of results per page that should be returned.
|
|
306
|
+
# The maximum number of results per page that should be returned.
|
|
307
|
+
# If the number of available results is larger than `maxResults`,
|
|
308
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
309
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
310
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
239
311
|
# @param order_by [::String]
|
|
240
|
-
# Sorts list results by a certain order. By default, results
|
|
312
|
+
# Sorts list results by a certain order. By default, results
|
|
313
|
+
# are returned in alphanumerical order based on the resource name.
|
|
314
|
+
#
|
|
315
|
+
# You can also sort results in descending order based on the creation
|
|
316
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
317
|
+
# results based on the `creationTimestamp` field in
|
|
318
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
319
|
+
# resources like operations so that the newest operation is returned first.
|
|
320
|
+
#
|
|
321
|
+
# Currently, only sorting by `name` or
|
|
322
|
+
# `creationTimestamp desc` is supported.
|
|
241
323
|
# @param page_token [::String]
|
|
242
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
324
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
325
|
+
# `nextPageToken` returned by a previous list request to get
|
|
326
|
+
# the next page of results.
|
|
243
327
|
# @param project [::String]
|
|
244
328
|
# Project ID for this request.
|
|
245
329
|
# @param return_partial_success [::Boolean]
|
|
246
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
330
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
331
|
+
# of failure. The default value is false.
|
|
332
|
+
#
|
|
333
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
334
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
335
|
+
# with an error code.
|
|
247
336
|
# @param service_project_number [::Integer]
|
|
248
|
-
# The Shared VPC service project id or service project number for which
|
|
337
|
+
# The Shared VPC service project id or service project number for which
|
|
338
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
249
339
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
250
340
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AddressesScopedList>]
|
|
251
341
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -331,7 +421,19 @@ module Google
|
|
|
331
421
|
# @param region [::String]
|
|
332
422
|
# Name of the region for this request.
|
|
333
423
|
# @param request_id [::String]
|
|
334
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
424
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
425
|
+
# that if you must retry your request, the server will know to ignore the
|
|
426
|
+
# request if it has already been completed.
|
|
427
|
+
#
|
|
428
|
+
# For example, consider a situation where you make an initial request and
|
|
429
|
+
# the request times out. If you make the request again with the same
|
|
430
|
+
# request ID, the server can check if original operation with the same
|
|
431
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
432
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
433
|
+
#
|
|
434
|
+
# The request ID must be
|
|
435
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
436
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
335
437
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
336
438
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
337
439
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -483,7 +585,8 @@ module Google
|
|
|
483
585
|
end
|
|
484
586
|
|
|
485
587
|
##
|
|
486
|
-
# Creates an address resource in the specified project by using the data
|
|
588
|
+
# Creates an address resource in the specified project by using the data
|
|
589
|
+
# included in the request.
|
|
487
590
|
#
|
|
488
591
|
# @overload insert(request, options = nil)
|
|
489
592
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -507,7 +610,19 @@ module Google
|
|
|
507
610
|
# @param region [::String]
|
|
508
611
|
# Name of the region for this request.
|
|
509
612
|
# @param request_id [::String]
|
|
510
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
613
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
614
|
+
# that if you must retry your request, the server will know to ignore the
|
|
615
|
+
# request if it has already been completed.
|
|
616
|
+
#
|
|
617
|
+
# For example, consider a situation where you make an initial request and
|
|
618
|
+
# the request times out. If you make the request again with the same
|
|
619
|
+
# request ID, the server can check if original operation with the same
|
|
620
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
621
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
622
|
+
#
|
|
623
|
+
# The request ID must be
|
|
624
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
625
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
511
626
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
512
627
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
513
628
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -577,7 +692,8 @@ module Google
|
|
|
577
692
|
end
|
|
578
693
|
|
|
579
694
|
##
|
|
580
|
-
# Retrieves a list of addresses contained within
|
|
695
|
+
# Retrieves a list of addresses contained within
|
|
696
|
+
# the specified region.
|
|
581
697
|
#
|
|
582
698
|
# @overload list(request, options = nil)
|
|
583
699
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -595,19 +711,97 @@ module Google
|
|
|
595
711
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
596
712
|
#
|
|
597
713
|
# @param filter [::String]
|
|
598
|
-
# A filter expression that filters resources listed in the response. Most
|
|
714
|
+
# A filter expression that filters resources listed in the response. Most
|
|
715
|
+
# Compute resources support two types of filter expressions:
|
|
716
|
+
# expressions that support regular expressions and expressions that follow
|
|
717
|
+
# API improvement proposal AIP-160.
|
|
718
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
719
|
+
#
|
|
720
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
721
|
+
# operator, and the value that you want to use for filtering. The value
|
|
722
|
+
# must be a string, a number, or a boolean. The operator
|
|
723
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
724
|
+
#
|
|
725
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
726
|
+
# exclude instances named `example-instance` by specifying
|
|
727
|
+
# `name != example-instance`.
|
|
728
|
+
#
|
|
729
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
730
|
+
# For example, to find all objects with `owner` label use:
|
|
731
|
+
# ```
|
|
732
|
+
# labels.owner:*
|
|
733
|
+
# ```
|
|
734
|
+
#
|
|
735
|
+
# You can also filter nested fields. For example, you could specify
|
|
736
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
737
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
738
|
+
# on nested fields to filter based onresource labels.
|
|
739
|
+
#
|
|
740
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
741
|
+
# parentheses. For example:
|
|
742
|
+
# ```
|
|
743
|
+
# (scheduling.automaticRestart = true)
|
|
744
|
+
# (cpuPlatform = "Intel Skylake")
|
|
745
|
+
# ```
|
|
746
|
+
# By default, each expression is an `AND` expression. However, you
|
|
747
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
748
|
+
# For example:
|
|
749
|
+
# ```
|
|
750
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
751
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
752
|
+
# (scheduling.automaticRestart = true)
|
|
753
|
+
# ```
|
|
754
|
+
#
|
|
755
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
756
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
757
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
758
|
+
#
|
|
759
|
+
# `fieldname eq unquoted literal`
|
|
760
|
+
# `fieldname eq 'single quoted literal'`
|
|
761
|
+
# `fieldname eq "double quoted literal"`
|
|
762
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
763
|
+
#
|
|
764
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
765
|
+
# The literal value must match the entire field.
|
|
766
|
+
#
|
|
767
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
768
|
+
# you would use `name ne .*instance`.
|
|
769
|
+
#
|
|
770
|
+
# You cannot combine constraints on multiple fields using regular
|
|
771
|
+
# expressions.
|
|
599
772
|
# @param max_results [::Integer]
|
|
600
|
-
# The maximum number of results per page that should be returned.
|
|
773
|
+
# The maximum number of results per page that should be returned.
|
|
774
|
+
# If the number of available results is larger than `maxResults`,
|
|
775
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
776
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
777
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
601
778
|
# @param order_by [::String]
|
|
602
|
-
# Sorts list results by a certain order. By default, results
|
|
779
|
+
# Sorts list results by a certain order. By default, results
|
|
780
|
+
# are returned in alphanumerical order based on the resource name.
|
|
781
|
+
#
|
|
782
|
+
# You can also sort results in descending order based on the creation
|
|
783
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
784
|
+
# results based on the `creationTimestamp` field in
|
|
785
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
786
|
+
# resources like operations so that the newest operation is returned first.
|
|
787
|
+
#
|
|
788
|
+
# Currently, only sorting by `name` or
|
|
789
|
+
# `creationTimestamp desc` is supported.
|
|
603
790
|
# @param page_token [::String]
|
|
604
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
791
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
792
|
+
# `nextPageToken` returned by a previous list request to get
|
|
793
|
+
# the next page of results.
|
|
605
794
|
# @param project [::String]
|
|
606
795
|
# Project ID for this request.
|
|
607
796
|
# @param region [::String]
|
|
608
797
|
# Name of the region for this request.
|
|
609
798
|
# @param return_partial_success [::Boolean]
|
|
610
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
799
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
800
|
+
# of failure. The default value is false.
|
|
801
|
+
#
|
|
802
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
803
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
804
|
+
# with an error code.
|
|
611
805
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
612
806
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
|
|
613
807
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -695,7 +889,19 @@ module Google
|
|
|
695
889
|
# @param region_addresses_move_request_resource [::Google::Cloud::Compute::V1::RegionAddressesMoveRequest, ::Hash]
|
|
696
890
|
# The body resource for this request
|
|
697
891
|
# @param request_id [::String]
|
|
698
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
892
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
893
|
+
# that if you must retry your request, the server will know to ignore the
|
|
894
|
+
# request if it has already been completed.
|
|
895
|
+
#
|
|
896
|
+
# For example, consider a situation where you make an initial request and
|
|
897
|
+
# the request times out. If you make the request again with the same
|
|
898
|
+
# request ID, the server can check if original operation with the same
|
|
899
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
900
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
901
|
+
#
|
|
902
|
+
# The request ID must be
|
|
903
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
904
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
699
905
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
700
906
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
701
907
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -765,7 +971,8 @@ module Google
|
|
|
765
971
|
end
|
|
766
972
|
|
|
767
973
|
##
|
|
768
|
-
# Sets the labels on an Address. To learn more about labels, read
|
|
974
|
+
# Sets the labels on an Address. To learn more about labels, read theLabeling
|
|
975
|
+
# Resources documentation.
|
|
769
976
|
#
|
|
770
977
|
# @overload set_labels(request, options = nil)
|
|
771
978
|
# Pass arguments to `set_labels` via a request object, either of type
|
|
@@ -789,7 +996,19 @@ module Google
|
|
|
789
996
|
# @param region_set_labels_request_resource [::Google::Cloud::Compute::V1::RegionSetLabelsRequest, ::Hash]
|
|
790
997
|
# The body resource for this request
|
|
791
998
|
# @param request_id [::String]
|
|
792
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
999
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1000
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1001
|
+
# request if it has already been completed.
|
|
1002
|
+
#
|
|
1003
|
+
# For example, consider a situation where you make an initial request and
|
|
1004
|
+
# the request times out. If you make the request again with the same
|
|
1005
|
+
# request ID, the server can check if original operation with the same
|
|
1006
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1007
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1008
|
+
#
|
|
1009
|
+
# The request ID must be
|
|
1010
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1011
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
793
1012
|
# @param resource [::String]
|
|
794
1013
|
# Name or id of the resource for this request.
|
|
795
1014
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -860,6 +1079,90 @@ module Google
|
|
|
860
1079
|
raise ::Google::Cloud::Error.from_error(e)
|
|
861
1080
|
end
|
|
862
1081
|
|
|
1082
|
+
##
|
|
1083
|
+
# Returns permissions that a caller has on the specified resource.
|
|
1084
|
+
#
|
|
1085
|
+
# @overload test_iam_permissions(request, options = nil)
|
|
1086
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
|
1087
|
+
# {::Google::Cloud::Compute::V1::TestIamPermissionsAddressRequest} or an equivalent Hash.
|
|
1088
|
+
#
|
|
1089
|
+
# @param request [::Google::Cloud::Compute::V1::TestIamPermissionsAddressRequest, ::Hash]
|
|
1090
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1091
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1092
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1093
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1094
|
+
#
|
|
1095
|
+
# @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
|
|
1096
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
|
1097
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1098
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1099
|
+
#
|
|
1100
|
+
# @param project [::String]
|
|
1101
|
+
# Project ID for this request.
|
|
1102
|
+
# @param region [::String]
|
|
1103
|
+
# The name of the region for this request.
|
|
1104
|
+
# @param resource [::String]
|
|
1105
|
+
# Name or id of the resource for this request.
|
|
1106
|
+
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
|
1107
|
+
# The body resource for this request
|
|
1108
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1109
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1110
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1111
|
+
#
|
|
1112
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1113
|
+
#
|
|
1114
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1115
|
+
#
|
|
1116
|
+
# @example Basic example
|
|
1117
|
+
# require "google/cloud/compute/v1"
|
|
1118
|
+
#
|
|
1119
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1120
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
|
1121
|
+
#
|
|
1122
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1123
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsAddressRequest.new
|
|
1124
|
+
#
|
|
1125
|
+
# # Call the test_iam_permissions method.
|
|
1126
|
+
# result = client.test_iam_permissions request
|
|
1127
|
+
#
|
|
1128
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
1129
|
+
# p result
|
|
1130
|
+
#
|
|
1131
|
+
def test_iam_permissions request, options = nil
|
|
1132
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1133
|
+
|
|
1134
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsAddressRequest
|
|
1135
|
+
|
|
1136
|
+
# Converts hash and nil to an options object
|
|
1137
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1138
|
+
|
|
1139
|
+
# Customize the options with defaults
|
|
1140
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
|
1141
|
+
|
|
1142
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1143
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1144
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1145
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
1146
|
+
transports_version_send: [:rest]
|
|
1147
|
+
|
|
1148
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1149
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1150
|
+
|
|
1151
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
|
1152
|
+
metadata: call_metadata,
|
|
1153
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
|
1154
|
+
|
|
1155
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1156
|
+
metadata: @config.metadata,
|
|
1157
|
+
retry_policy: @config.retry_policy
|
|
1158
|
+
|
|
1159
|
+
@addresses_stub.test_iam_permissions request, options do |result, operation|
|
|
1160
|
+
yield result, operation if block_given?
|
|
1161
|
+
end
|
|
1162
|
+
rescue ::Gapic::Rest::Error => e
|
|
1163
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1164
|
+
end
|
|
1165
|
+
|
|
863
1166
|
##
|
|
864
1167
|
# Configuration class for the Addresses REST API.
|
|
865
1168
|
#
|
|
@@ -1041,6 +1344,11 @@ module Google
|
|
|
1041
1344
|
# @return [::Gapic::Config::Method]
|
|
1042
1345
|
#
|
|
1043
1346
|
attr_reader :set_labels
|
|
1347
|
+
##
|
|
1348
|
+
# RPC-specific configuration for `test_iam_permissions`
|
|
1349
|
+
# @return [::Gapic::Config::Method]
|
|
1350
|
+
#
|
|
1351
|
+
attr_reader :test_iam_permissions
|
|
1044
1352
|
|
|
1045
1353
|
# @private
|
|
1046
1354
|
def initialize parent_rpcs = nil
|
|
@@ -1058,6 +1366,8 @@ module Google
|
|
|
1058
1366
|
@move = ::Gapic::Config::Method.new move_config
|
|
1059
1367
|
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
|
1060
1368
|
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
|
1369
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
|
1370
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
1061
1371
|
|
|
1062
1372
|
yield self if block_given?
|
|
1063
1373
|
end
|
|
@@ -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::TestIamPermissionsAddressRequest]
|
|
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
|
# @private
|
|
358
398
|
#
|
|
@@ -512,6 +552,30 @@ module Google
|
|
|
512
552
|
)
|
|
513
553
|
transcoder.transcode request_pb
|
|
514
554
|
end
|
|
555
|
+
|
|
556
|
+
##
|
|
557
|
+
# @private
|
|
558
|
+
#
|
|
559
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
|
560
|
+
#
|
|
561
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsAddressRequest]
|
|
562
|
+
# A request object representing the call parameters. Required.
|
|
563
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
564
|
+
# Uri, Body, Query string parameters
|
|
565
|
+
def self.transcode_test_iam_permissions_request request_pb
|
|
566
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
567
|
+
.with_bindings(
|
|
568
|
+
uri_method: :post,
|
|
569
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions",
|
|
570
|
+
body: "test_permissions_request_resource",
|
|
571
|
+
matches: [
|
|
572
|
+
["project", %r{^[^/]+/?$}, false],
|
|
573
|
+
["region", %r{^[^/]+/?$}, false],
|
|
574
|
+
["resource", %r{^[^/]+/?$}, false]
|
|
575
|
+
]
|
|
576
|
+
)
|
|
577
|
+
transcoder.transcode request_pb
|
|
578
|
+
end
|
|
515
579
|
end
|
|
516
580
|
end
|
|
517
581
|
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Compute
|
|
24
|
+
module V1
|
|
25
|
+
module Advice
|
|
26
|
+
# Credentials for the Advice API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"COMPUTE_CREDENTIALS",
|
|
34
|
+
"COMPUTE_KEYFILE",
|
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
37
|
+
"GCLOUD_KEYFILE",
|
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
|
43
|
+
]
|
|
44
|
+
self.paths = [
|
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
46
|
+
]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|