google-apis-compute_v1 0.137.0 → 0.139.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.
@@ -1376,6 +1376,48 @@ module Google
1376
1376
  execute_or_queue_command(command, &block)
1377
1377
  end
1378
1378
 
1379
+ # Returns permissions that a caller has on the specified resource.
1380
+ # @param [String] project
1381
+ # Project ID for this request.
1382
+ # @param [String] zone
1383
+ # The name of the zone for this request.
1384
+ # @param [String] resource
1385
+ # Name or id of the resource for this request.
1386
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
1387
+ # @param [String] fields
1388
+ # Selector specifying which fields to include in a partial response.
1389
+ # @param [String] quota_user
1390
+ # Available to use for quota purposes for server-side applications. Can be any
1391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1392
+ # @param [String] user_ip
1393
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1394
+ # @param [Google::Apis::RequestOptions] options
1395
+ # Request-specific options
1396
+ #
1397
+ # @yield [result, err] Result & error if block supplied
1398
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
1399
+ # @yieldparam err [StandardError] error object if request failed
1400
+ #
1401
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
1402
+ #
1403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
+ def test_autoscaler_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1407
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions', options)
1408
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
1409
+ command.request_object = test_permissions_request_object
1410
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
1411
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
1412
+ command.params['project'] = project unless project.nil?
1413
+ command.params['zone'] = zone unless zone.nil?
1414
+ command.params['resource'] = resource unless resource.nil?
1415
+ command.query['fields'] = fields unless fields.nil?
1416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1417
+ command.query['userIp'] = user_ip unless user_ip.nil?
1418
+ execute_or_queue_command(command, &block)
1419
+ end
1420
+
1379
1421
  # Updates an autoscaler in the specified project using the data
1380
1422
  # included in the request.
1381
1423
  # @param [String] project
@@ -10050,6 +10092,45 @@ module Google
10050
10092
  execute_or_queue_command(command, &block)
10051
10093
  end
10052
10094
 
10095
+ # Returns permissions that a caller has on the specified resource.
10096
+ # @param [String] project
10097
+ # Project ID for this request.
10098
+ # @param [String] resource
10099
+ # Name or id of the resource for this request.
10100
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
10101
+ # @param [String] fields
10102
+ # Selector specifying which fields to include in a partial response.
10103
+ # @param [String] quota_user
10104
+ # Available to use for quota purposes for server-side applications. Can be any
10105
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10106
+ # @param [String] user_ip
10107
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10108
+ # @param [Google::Apis::RequestOptions] options
10109
+ # Request-specific options
10110
+ #
10111
+ # @yield [result, err] Result & error if block supplied
10112
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
10113
+ # @yieldparam err [StandardError] error object if request failed
10114
+ #
10115
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
10116
+ #
10117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10120
+ def test_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10121
+ command = make_simple_command(:post, 'projects/{project}/global/healthChecks/{resource}/testIamPermissions', options)
10122
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
10123
+ command.request_object = test_permissions_request_object
10124
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
10125
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
10126
+ command.params['project'] = project unless project.nil?
10127
+ command.params['resource'] = resource unless resource.nil?
10128
+ command.query['fields'] = fields unless fields.nil?
10129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10130
+ command.query['userIp'] = user_ip unless user_ip.nil?
10131
+ execute_or_queue_command(command, &block)
10132
+ end
10133
+
10053
10134
  # Updates a HealthCheck resource in the specified project using the data
10054
10135
  # included in the request.
10055
10136
  # @param [String] project
@@ -10408,6 +10489,45 @@ module Google
10408
10489
  execute_or_queue_command(command, &block)
10409
10490
  end
10410
10491
 
10492
+ # Returns permissions that a caller has on the specified resource.
10493
+ # @param [String] project
10494
+ # Project ID for this request.
10495
+ # @param [String] resource
10496
+ # Name or id of the resource for this request.
10497
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
10498
+ # @param [String] fields
10499
+ # Selector specifying which fields to include in a partial response.
10500
+ # @param [String] quota_user
10501
+ # Available to use for quota purposes for server-side applications. Can be any
10502
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10503
+ # @param [String] user_ip
10504
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10505
+ # @param [Google::Apis::RequestOptions] options
10506
+ # Request-specific options
10507
+ #
10508
+ # @yield [result, err] Result & error if block supplied
10509
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
10510
+ # @yieldparam err [StandardError] error object if request failed
10511
+ #
10512
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
10513
+ #
10514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10517
+ def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10518
+ command = make_simple_command(:post, 'projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions', options)
10519
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
10520
+ command.request_object = test_permissions_request_object
10521
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
10522
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
10523
+ command.params['project'] = project unless project.nil?
10524
+ command.params['resource'] = resource unless resource.nil?
10525
+ command.query['fields'] = fields unless fields.nil?
10526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10527
+ command.query['userIp'] = user_ip unless user_ip.nil?
10528
+ execute_or_queue_command(command, &block)
10529
+ end
10530
+
10411
10531
  # Updates a HttpHealthCheck resource in the specified project using the data
10412
10532
  # included in the request.
10413
10533
  # @param [String] project
@@ -10766,6 +10886,45 @@ module Google
10766
10886
  execute_or_queue_command(command, &block)
10767
10887
  end
10768
10888
 
10889
+ # Returns permissions that a caller has on the specified resource.
10890
+ # @param [String] project
10891
+ # Project ID for this request.
10892
+ # @param [String] resource
10893
+ # Name or id of the resource for this request.
10894
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
10895
+ # @param [String] fields
10896
+ # Selector specifying which fields to include in a partial response.
10897
+ # @param [String] quota_user
10898
+ # Available to use for quota purposes for server-side applications. Can be any
10899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10900
+ # @param [String] user_ip
10901
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10902
+ # @param [Google::Apis::RequestOptions] options
10903
+ # Request-specific options
10904
+ #
10905
+ # @yield [result, err] Result & error if block supplied
10906
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
10907
+ # @yieldparam err [StandardError] error object if request failed
10908
+ #
10909
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
10910
+ #
10911
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10912
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10913
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10914
+ def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10915
+ command = make_simple_command(:post, 'projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options)
10916
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
10917
+ command.request_object = test_permissions_request_object
10918
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
10919
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
10920
+ command.params['project'] = project unless project.nil?
10921
+ command.params['resource'] = resource unless resource.nil?
10922
+ command.query['fields'] = fields unless fields.nil?
10923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10924
+ command.query['userIp'] = user_ip unless user_ip.nil?
10925
+ execute_or_queue_command(command, &block)
10926
+ end
10927
+
10769
10928
  # Updates a HttpsHealthCheck resource in the specified project using the data
10770
10929
  # included in the request.
10771
10930
  # @param [String] project
@@ -31124,6 +31283,48 @@ module Google
31124
31283
  execute_or_queue_command(command, &block)
31125
31284
  end
31126
31285
 
31286
+ # Returns permissions that a caller has on the specified resource.
31287
+ # @param [String] project
31288
+ # Project ID for this request.
31289
+ # @param [String] region
31290
+ # The name of the region for this request.
31291
+ # @param [String] resource
31292
+ # Name or id of the resource for this request.
31293
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
31294
+ # @param [String] fields
31295
+ # Selector specifying which fields to include in a partial response.
31296
+ # @param [String] quota_user
31297
+ # Available to use for quota purposes for server-side applications. Can be any
31298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31299
+ # @param [String] user_ip
31300
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31301
+ # @param [Google::Apis::RequestOptions] options
31302
+ # Request-specific options
31303
+ #
31304
+ # @yield [result, err] Result & error if block supplied
31305
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
31306
+ # @yieldparam err [StandardError] error object if request failed
31307
+ #
31308
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
31309
+ #
31310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31313
+ def test_region_autoscaler_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31314
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions', options)
31315
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
31316
+ command.request_object = test_permissions_request_object
31317
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
31318
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
31319
+ command.params['project'] = project unless project.nil?
31320
+ command.params['region'] = region unless region.nil?
31321
+ command.params['resource'] = resource unless resource.nil?
31322
+ command.query['fields'] = fields unless fields.nil?
31323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31324
+ command.query['userIp'] = user_ip unless user_ip.nil?
31325
+ execute_or_queue_command(command, &block)
31326
+ end
31327
+
31127
31328
  # Updates an autoscaler in the specified project using
31128
31329
  # the data included in the request.
31129
31330
  # @param [String] project
@@ -34061,6 +34262,48 @@ module Google
34061
34262
  execute_or_queue_command(command, &block)
34062
34263
  end
34063
34264
 
34265
+ # Returns permissions that a caller has on the specified resource.
34266
+ # @param [String] project
34267
+ # Project ID for this request.
34268
+ # @param [String] region
34269
+ # The name of the region for this request.
34270
+ # @param [String] resource
34271
+ # Name or id of the resource for this request.
34272
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
34273
+ # @param [String] fields
34274
+ # Selector specifying which fields to include in a partial response.
34275
+ # @param [String] quota_user
34276
+ # Available to use for quota purposes for server-side applications. Can be any
34277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34278
+ # @param [String] user_ip
34279
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34280
+ # @param [Google::Apis::RequestOptions] options
34281
+ # Request-specific options
34282
+ #
34283
+ # @yield [result, err] Result & error if block supplied
34284
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
34285
+ # @yieldparam err [StandardError] error object if request failed
34286
+ #
34287
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
34288
+ #
34289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34292
+ def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34293
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
34294
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
34295
+ command.request_object = test_permissions_request_object
34296
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
34297
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
34298
+ command.params['project'] = project unless project.nil?
34299
+ command.params['region'] = region unless region.nil?
34300
+ command.params['resource'] = resource unless resource.nil?
34301
+ command.query['fields'] = fields unless fields.nil?
34302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34303
+ command.query['userIp'] = user_ip unless user_ip.nil?
34304
+ execute_or_queue_command(command, &block)
34305
+ end
34306
+
34064
34307
  # Updates a HealthCheck resource in the specified project using the data
34065
34308
  # included in the request.
34066
34309
  # @param [String] project
@@ -38605,6 +38848,48 @@ module Google
38605
38848
  execute_or_queue_command(command, &block)
38606
38849
  end
38607
38850
 
38851
+ # Returns permissions that a caller has on the specified resource.
38852
+ # @param [String] project
38853
+ # Project ID for this request.
38854
+ # @param [String] region
38855
+ # The name of the region for this request.
38856
+ # @param [String] resource
38857
+ # Name or id of the resource for this request.
38858
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
38859
+ # @param [String] fields
38860
+ # Selector specifying which fields to include in a partial response.
38861
+ # @param [String] quota_user
38862
+ # Available to use for quota purposes for server-side applications. Can be any
38863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38864
+ # @param [String] user_ip
38865
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38866
+ # @param [Google::Apis::RequestOptions] options
38867
+ # Request-specific options
38868
+ #
38869
+ # @yield [result, err] Result & error if block supplied
38870
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
38871
+ # @yieldparam err [StandardError] error object if request failed
38872
+ #
38873
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
38874
+ #
38875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38878
+ def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38879
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
38880
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
38881
+ command.request_object = test_permissions_request_object
38882
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
38883
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
38884
+ command.params['project'] = project unless project.nil?
38885
+ command.params['region'] = region unless region.nil?
38886
+ command.params['resource'] = resource unless resource.nil?
38887
+ command.query['fields'] = fields unless fields.nil?
38888
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38889
+ command.query['userIp'] = user_ip unless user_ip.nil?
38890
+ execute_or_queue_command(command, &block)
38891
+ end
38892
+
38608
38893
  # Deletes the specified region-specific Operations resource.
38609
38894
  # @param [String] project
38610
38895
  # Project ID for this request.
@@ -42182,6 +42467,221 @@ module Google
42182
42467
  execute_or_queue_command(command, &block)
42183
42468
  end
42184
42469
 
42470
+ # Retrieves information about the specified reservation slot.
42471
+ # @param [String] project
42472
+ # The project ID for this request.
42473
+ # @param [String] zone
42474
+ # The name of the zone for this request, formatted as RFC1035.
42475
+ # @param [String] parent_name
42476
+ # The name of the parent reservation and parent block, formatted as
42477
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
42478
+ # reservationSubBlocks/`reservation_sub_block_name`
42479
+ # @param [String] reservation_slot
42480
+ # The name of the reservation slot, formatted as RFC1035 or a resource ID
42481
+ # number.
42482
+ # @param [String] fields
42483
+ # Selector specifying which fields to include in a partial response.
42484
+ # @param [String] quota_user
42485
+ # Available to use for quota purposes for server-side applications. Can be any
42486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42487
+ # @param [String] user_ip
42488
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42489
+ # @param [Google::Apis::RequestOptions] options
42490
+ # Request-specific options
42491
+ #
42492
+ # @yield [result, err] Result & error if block supplied
42493
+ # @yieldparam result [Google::Apis::ComputeV1::ReservationSlotsGetResponse] parsed result object
42494
+ # @yieldparam err [StandardError] error object if request failed
42495
+ #
42496
+ # @return [Google::Apis::ComputeV1::ReservationSlotsGetResponse]
42497
+ #
42498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42501
+ def get_reservation_slot(project, zone, parent_name, reservation_slot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42502
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
42503
+ command.response_representation = Google::Apis::ComputeV1::ReservationSlotsGetResponse::Representation
42504
+ command.response_class = Google::Apis::ComputeV1::ReservationSlotsGetResponse
42505
+ command.params['project'] = project unless project.nil?
42506
+ command.params['zone'] = zone unless zone.nil?
42507
+ command.params['parentName'] = parent_name unless parent_name.nil?
42508
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
42509
+ command.query['fields'] = fields unless fields.nil?
42510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42511
+ command.query['userIp'] = user_ip unless user_ip.nil?
42512
+ execute_or_queue_command(command, &block)
42513
+ end
42514
+
42515
+ # Retrieves a list of reservation slots under a single reservation.
42516
+ # @param [String] project
42517
+ # The project ID for this request.
42518
+ # @param [String] zone
42519
+ # The name of the zone for this request, formatted as RFC1035.
42520
+ # @param [String] parent_name
42521
+ # The name of the parent reservation and parent block, formatted as
42522
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
42523
+ # reservationSubBlocks/`reservation_sub_block_name`
42524
+ # @param [String] filter
42525
+ # A filter expression that filters resources listed in the response. Most
42526
+ # Compute resources support two types of filter expressions:
42527
+ # expressions that support regular expressions and expressions that follow
42528
+ # API improvement proposal AIP-160.
42529
+ # These two types of filter expressions cannot be mixed in one request.
42530
+ # If you want to use AIP-160, your expression must specify the field name, an
42531
+ # operator, and the value that you want to use for filtering. The value
42532
+ # must be a string, a number, or a boolean. The operator
42533
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
42534
+ # For example, if you are filtering Compute Engine instances, you can
42535
+ # exclude instances named `example-instance` by specifying
42536
+ # `name != example-instance`.
42537
+ # The `:*` comparison can be used to test whether a key has been defined.
42538
+ # For example, to find all objects with `owner` label use:
42539
+ # ```
42540
+ # labels.owner:*
42541
+ # ```
42542
+ # You can also filter nested fields. For example, you could specify
42543
+ # `scheduling.automaticRestart = false` to include instances only
42544
+ # if they are not scheduled for automatic restarts. You can use filtering
42545
+ # on nested fields to filter based onresource labels.
42546
+ # To filter on multiple expressions, provide each separate expression within
42547
+ # parentheses. For example:
42548
+ # ```
42549
+ # (scheduling.automaticRestart = true)
42550
+ # (cpuPlatform = "Intel Skylake")
42551
+ # ```
42552
+ # By default, each expression is an `AND` expression. However, you
42553
+ # can include `AND` and `OR` expressions explicitly.
42554
+ # For example:
42555
+ # ```
42556
+ # (cpuPlatform = "Intel Skylake") OR
42557
+ # (cpuPlatform = "Intel Broadwell") AND
42558
+ # (scheduling.automaticRestart = true)
42559
+ # ```
42560
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
42561
+ # (not equal) operator against a single un-parenthesized expression with or
42562
+ # without quotes or against multiple parenthesized expressions. Examples:
42563
+ # `fieldname eq unquoted literal`
42564
+ # `fieldname eq 'single quoted literal'`
42565
+ # `fieldname eq "double quoted literal"`
42566
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
42567
+ # The literal value is interpreted as a regular expression using GoogleRE2
42568
+ # library syntax.
42569
+ # The literal value must match the entire field.
42570
+ # For example, to filter for instances that do not end with name "instance",
42571
+ # you would use `name ne .*instance`.
42572
+ # You cannot combine constraints on multiple fields using regular
42573
+ # expressions.
42574
+ # @param [Fixnum] max_results
42575
+ # The maximum number of results per page that should be returned.
42576
+ # If the number of available results is larger than `maxResults`,
42577
+ # Compute Engine returns a `nextPageToken` that can be used to get
42578
+ # the next page of results in subsequent list requests. Acceptable values are
42579
+ # `0` to `500`, inclusive. (Default: `500`)
42580
+ # @param [String] order_by
42581
+ # Sorts list results by a certain order. By default, results
42582
+ # are returned in alphanumerical order based on the resource name.
42583
+ # You can also sort results in descending order based on the creation
42584
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
42585
+ # results based on the `creationTimestamp` field in
42586
+ # reverse chronological order (newest result first). Use this to sort
42587
+ # resources like operations so that the newest operation is returned first.
42588
+ # Currently, only sorting by `name` or
42589
+ # `creationTimestamp desc` is supported.
42590
+ # @param [String] page_token
42591
+ # Specifies a page token to use. Set `pageToken` to the
42592
+ # `nextPageToken` returned by a previous list request to get
42593
+ # the next page of results.
42594
+ # @param [Boolean] return_partial_success
42595
+ # Opt-in for partial success behavior which provides partial results in case
42596
+ # of failure. The default value is false.
42597
+ # For example, when partial success behavior is enabled, aggregatedList for a
42598
+ # single zone scope either returns all resources in the zone or no resources,
42599
+ # with an error code.
42600
+ # @param [String] fields
42601
+ # Selector specifying which fields to include in a partial response.
42602
+ # @param [String] quota_user
42603
+ # Available to use for quota purposes for server-side applications. Can be any
42604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42605
+ # @param [String] user_ip
42606
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42607
+ # @param [Google::Apis::RequestOptions] options
42608
+ # Request-specific options
42609
+ #
42610
+ # @yield [result, err] Result & error if block supplied
42611
+ # @yieldparam result [Google::Apis::ComputeV1::ReservationSlotsListResponse] parsed result object
42612
+ # @yieldparam err [StandardError] error object if request failed
42613
+ #
42614
+ # @return [Google::Apis::ComputeV1::ReservationSlotsListResponse]
42615
+ #
42616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42619
+ def list_reservation_slots(project, zone, parent_name, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42620
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', options)
42621
+ command.response_representation = Google::Apis::ComputeV1::ReservationSlotsListResponse::Representation
42622
+ command.response_class = Google::Apis::ComputeV1::ReservationSlotsListResponse
42623
+ command.params['project'] = project unless project.nil?
42624
+ command.params['zone'] = zone unless zone.nil?
42625
+ command.params['parentName'] = parent_name unless parent_name.nil?
42626
+ command.query['filter'] = filter unless filter.nil?
42627
+ command.query['maxResults'] = max_results unless max_results.nil?
42628
+ command.query['orderBy'] = order_by unless order_by.nil?
42629
+ command.query['pageToken'] = page_token unless page_token.nil?
42630
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42631
+ command.query['fields'] = fields unless fields.nil?
42632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42633
+ command.query['userIp'] = user_ip unless user_ip.nil?
42634
+ execute_or_queue_command(command, &block)
42635
+ end
42636
+
42637
+ # Update a reservation slot in the specified sub-block.
42638
+ # @param [String] project
42639
+ # The project ID for this request.
42640
+ # @param [String] zone
42641
+ # The name of the zone for this request, formatted as RFC1035.
42642
+ # @param [String] parent_name
42643
+ # The name of the sub-block resource.
42644
+ # @param [String] reservation_slot
42645
+ # The name of the slot resource.
42646
+ # @param [Google::Apis::ComputeV1::ReservationSlot] reservation_slot_object
42647
+ # @param [String] update_mask
42648
+ # The fields to be updated as part of this request.
42649
+ # @param [String] fields
42650
+ # Selector specifying which fields to include in a partial response.
42651
+ # @param [String] quota_user
42652
+ # Available to use for quota purposes for server-side applications. Can be any
42653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42654
+ # @param [String] user_ip
42655
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42656
+ # @param [Google::Apis::RequestOptions] options
42657
+ # Request-specific options
42658
+ #
42659
+ # @yield [result, err] Result & error if block supplied
42660
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
42661
+ # @yieldparam err [StandardError] error object if request failed
42662
+ #
42663
+ # @return [Google::Apis::ComputeV1::Operation]
42664
+ #
42665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42668
+ def update_reservation_slot(project, zone, parent_name, reservation_slot, reservation_slot_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42669
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
42670
+ command.request_representation = Google::Apis::ComputeV1::ReservationSlot::Representation
42671
+ command.request_object = reservation_slot_object
42672
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
42673
+ command.response_class = Google::Apis::ComputeV1::Operation
42674
+ command.params['project'] = project unless project.nil?
42675
+ command.params['zone'] = zone unless zone.nil?
42676
+ command.params['parentName'] = parent_name unless parent_name.nil?
42677
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
42678
+ command.query['updateMask'] = update_mask unless update_mask.nil?
42679
+ command.query['fields'] = fields unless fields.nil?
42680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42681
+ command.query['userIp'] = user_ip unless user_ip.nil?
42682
+ execute_or_queue_command(command, &block)
42683
+ end
42684
+
42185
42685
  # Retrieves information about the specified reservation subBlock.
42186
42686
  # @param [String] project
42187
42687
  # Project ID for this request.
@@ -45350,6 +45850,45 @@ module Google
45350
45850
  execute_or_queue_command(command, &block)
45351
45851
  end
45352
45852
 
45853
+ # Returns permissions that a caller has on the specified resource.
45854
+ # @param [String] project
45855
+ # Project ID for this request.
45856
+ # @param [String] resource
45857
+ # Name or id of the resource for this request.
45858
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
45859
+ # @param [String] fields
45860
+ # Selector specifying which fields to include in a partial response.
45861
+ # @param [String] quota_user
45862
+ # Available to use for quota purposes for server-side applications. Can be any
45863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45864
+ # @param [String] user_ip
45865
+ # Legacy name for parameter that has been superseded by `quotaUser`.
45866
+ # @param [Google::Apis::RequestOptions] options
45867
+ # Request-specific options
45868
+ #
45869
+ # @yield [result, err] Result & error if block supplied
45870
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
45871
+ # @yieldparam err [StandardError] error object if request failed
45872
+ #
45873
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
45874
+ #
45875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
45876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
45877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
45878
+ def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
45879
+ command = make_simple_command(:post, 'projects/{project}/global/routes/{resource}/testIamPermissions', options)
45880
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
45881
+ command.request_object = test_permissions_request_object
45882
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
45883
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
45884
+ command.params['project'] = project unless project.nil?
45885
+ command.params['resource'] = resource unless resource.nil?
45886
+ command.query['fields'] = fields unless fields.nil?
45887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
45888
+ command.query['userIp'] = user_ip unless user_ip.nil?
45889
+ execute_or_queue_command(command, &block)
45890
+ end
45891
+
45353
45892
  # Inserts a rule into a security policy.
45354
45893
  # @param [String] project
45355
45894
  # Project ID for this request.
@@ -53277,6 +53816,45 @@ module Google
53277
53816
  execute_or_queue_command(command, &block)
53278
53817
  end
53279
53818
 
53819
+ # Returns permissions that a caller has on the specified resource.
53820
+ # @param [String] project
53821
+ # Project ID for this request.
53822
+ # @param [String] resource
53823
+ # Name or id of the resource for this request.
53824
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
53825
+ # @param [String] fields
53826
+ # Selector specifying which fields to include in a partial response.
53827
+ # @param [String] quota_user
53828
+ # Available to use for quota purposes for server-side applications. Can be any
53829
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53830
+ # @param [String] user_ip
53831
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53832
+ # @param [Google::Apis::RequestOptions] options
53833
+ # Request-specific options
53834
+ #
53835
+ # @yield [result, err] Result & error if block supplied
53836
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
53837
+ # @yieldparam err [StandardError] error object if request failed
53838
+ #
53839
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
53840
+ #
53841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53844
+ def test_target_ssl_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53845
+ command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{resource}/testIamPermissions', options)
53846
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
53847
+ command.request_object = test_permissions_request_object
53848
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
53849
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
53850
+ command.params['project'] = project unless project.nil?
53851
+ command.params['resource'] = resource unless resource.nil?
53852
+ command.query['fields'] = fields unless fields.nil?
53853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53854
+ command.query['userIp'] = user_ip unless user_ip.nil?
53855
+ execute_or_queue_command(command, &block)
53856
+ end
53857
+
53280
53858
  # Retrieves the list of all TargetTcpProxy resources, regional and global,
53281
53859
  # available to the specified project.
53282
53860
  # To prevent failure, Google recommends that you set the
@@ -53762,6 +54340,45 @@ module Google
53762
54340
  execute_or_queue_command(command, &block)
53763
54341
  end
53764
54342
 
54343
+ # Returns permissions that a caller has on the specified resource.
54344
+ # @param [String] project
54345
+ # Project ID for this request.
54346
+ # @param [String] resource
54347
+ # Name or id of the resource for this request.
54348
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
54349
+ # @param [String] fields
54350
+ # Selector specifying which fields to include in a partial response.
54351
+ # @param [String] quota_user
54352
+ # Available to use for quota purposes for server-side applications. Can be any
54353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54354
+ # @param [String] user_ip
54355
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54356
+ # @param [Google::Apis::RequestOptions] options
54357
+ # Request-specific options
54358
+ #
54359
+ # @yield [result, err] Result & error if block supplied
54360
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
54361
+ # @yieldparam err [StandardError] error object if request failed
54362
+ #
54363
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
54364
+ #
54365
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54366
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54367
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54368
+ def test_target_tcp_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54369
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
54370
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
54371
+ command.request_object = test_permissions_request_object
54372
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
54373
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
54374
+ command.params['project'] = project unless project.nil?
54375
+ command.params['resource'] = resource unless resource.nil?
54376
+ command.query['fields'] = fields unless fields.nil?
54377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54378
+ command.query['userIp'] = user_ip unless user_ip.nil?
54379
+ execute_or_queue_command(command, &block)
54380
+ end
54381
+
53765
54382
  # Retrieves an aggregated list of target VPN gateways.
53766
54383
  # To prevent failure, Google recommends that you set the
53767
54384
  # `returnPartialSuccess` parameter to `true`.
@@ -54700,6 +55317,45 @@ module Google
54700
55317
  execute_or_queue_command(command, &block)
54701
55318
  end
54702
55319
 
55320
+ # Returns permissions that a caller has on the specified resource.
55321
+ # @param [String] project
55322
+ # Project ID for this request.
55323
+ # @param [String] resource
55324
+ # Name or id of the resource for this request.
55325
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
55326
+ # @param [String] fields
55327
+ # Selector specifying which fields to include in a partial response.
55328
+ # @param [String] quota_user
55329
+ # Available to use for quota purposes for server-side applications. Can be any
55330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
55331
+ # @param [String] user_ip
55332
+ # Legacy name for parameter that has been superseded by `quotaUser`.
55333
+ # @param [Google::Apis::RequestOptions] options
55334
+ # Request-specific options
55335
+ #
55336
+ # @yield [result, err] Result & error if block supplied
55337
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
55338
+ # @yieldparam err [StandardError] error object if request failed
55339
+ #
55340
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
55341
+ #
55342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
55343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
55344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
55345
+ def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
55346
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
55347
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
55348
+ command.request_object = test_permissions_request_object
55349
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
55350
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
55351
+ command.params['project'] = project unless project.nil?
55352
+ command.params['resource'] = resource unless resource.nil?
55353
+ command.query['fields'] = fields unless fields.nil?
55354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
55355
+ command.query['userIp'] = user_ip unless user_ip.nil?
55356
+ execute_or_queue_command(command, &block)
55357
+ end
55358
+
54703
55359
  # Updates the specified UrlMap resource with the data included in the
54704
55360
  # request.
54705
55361
  # @param [String] project