google-apis-compute_v1 0.136.0 → 0.138.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.
@@ -45350,6 +45635,45 @@ module Google
45350
45635
  execute_or_queue_command(command, &block)
45351
45636
  end
45352
45637
 
45638
+ # Returns permissions that a caller has on the specified resource.
45639
+ # @param [String] project
45640
+ # Project ID for this request.
45641
+ # @param [String] resource
45642
+ # Name or id of the resource for this request.
45643
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
45644
+ # @param [String] fields
45645
+ # Selector specifying which fields to include in a partial response.
45646
+ # @param [String] quota_user
45647
+ # Available to use for quota purposes for server-side applications. Can be any
45648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45649
+ # @param [String] user_ip
45650
+ # Legacy name for parameter that has been superseded by `quotaUser`.
45651
+ # @param [Google::Apis::RequestOptions] options
45652
+ # Request-specific options
45653
+ #
45654
+ # @yield [result, err] Result & error if block supplied
45655
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
45656
+ # @yieldparam err [StandardError] error object if request failed
45657
+ #
45658
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
45659
+ #
45660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
45661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
45662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
45663
+ def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
45664
+ command = make_simple_command(:post, 'projects/{project}/global/routes/{resource}/testIamPermissions', options)
45665
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
45666
+ command.request_object = test_permissions_request_object
45667
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
45668
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
45669
+ command.params['project'] = project unless project.nil?
45670
+ command.params['resource'] = resource unless resource.nil?
45671
+ command.query['fields'] = fields unless fields.nil?
45672
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
45673
+ command.query['userIp'] = user_ip unless user_ip.nil?
45674
+ execute_or_queue_command(command, &block)
45675
+ end
45676
+
45353
45677
  # Inserts a rule into a security policy.
45354
45678
  # @param [String] project
45355
45679
  # Project ID for this request.
@@ -53277,6 +53601,45 @@ module Google
53277
53601
  execute_or_queue_command(command, &block)
53278
53602
  end
53279
53603
 
53604
+ # Returns permissions that a caller has on the specified resource.
53605
+ # @param [String] project
53606
+ # Project ID for this request.
53607
+ # @param [String] resource
53608
+ # Name or id of the resource for this request.
53609
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
53610
+ # @param [String] fields
53611
+ # Selector specifying which fields to include in a partial response.
53612
+ # @param [String] quota_user
53613
+ # Available to use for quota purposes for server-side applications. Can be any
53614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53615
+ # @param [String] user_ip
53616
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53617
+ # @param [Google::Apis::RequestOptions] options
53618
+ # Request-specific options
53619
+ #
53620
+ # @yield [result, err] Result & error if block supplied
53621
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
53622
+ # @yieldparam err [StandardError] error object if request failed
53623
+ #
53624
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
53625
+ #
53626
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53627
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53628
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53629
+ 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)
53630
+ command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{resource}/testIamPermissions', options)
53631
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
53632
+ command.request_object = test_permissions_request_object
53633
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
53634
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
53635
+ command.params['project'] = project unless project.nil?
53636
+ command.params['resource'] = resource unless resource.nil?
53637
+ command.query['fields'] = fields unless fields.nil?
53638
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53639
+ command.query['userIp'] = user_ip unless user_ip.nil?
53640
+ execute_or_queue_command(command, &block)
53641
+ end
53642
+
53280
53643
  # Retrieves the list of all TargetTcpProxy resources, regional and global,
53281
53644
  # available to the specified project.
53282
53645
  # To prevent failure, Google recommends that you set the
@@ -53762,6 +54125,45 @@ module Google
53762
54125
  execute_or_queue_command(command, &block)
53763
54126
  end
53764
54127
 
54128
+ # Returns permissions that a caller has on the specified resource.
54129
+ # @param [String] project
54130
+ # Project ID for this request.
54131
+ # @param [String] resource
54132
+ # Name or id of the resource for this request.
54133
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
54134
+ # @param [String] fields
54135
+ # Selector specifying which fields to include in a partial response.
54136
+ # @param [String] quota_user
54137
+ # Available to use for quota purposes for server-side applications. Can be any
54138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54139
+ # @param [String] user_ip
54140
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54141
+ # @param [Google::Apis::RequestOptions] options
54142
+ # Request-specific options
54143
+ #
54144
+ # @yield [result, err] Result & error if block supplied
54145
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
54146
+ # @yieldparam err [StandardError] error object if request failed
54147
+ #
54148
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
54149
+ #
54150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54153
+ 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)
54154
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
54155
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
54156
+ command.request_object = test_permissions_request_object
54157
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
54158
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
54159
+ command.params['project'] = project unless project.nil?
54160
+ command.params['resource'] = resource unless resource.nil?
54161
+ command.query['fields'] = fields unless fields.nil?
54162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54163
+ command.query['userIp'] = user_ip unless user_ip.nil?
54164
+ execute_or_queue_command(command, &block)
54165
+ end
54166
+
53765
54167
  # Retrieves an aggregated list of target VPN gateways.
53766
54168
  # To prevent failure, Google recommends that you set the
53767
54169
  # `returnPartialSuccess` parameter to `true`.
@@ -54700,6 +55102,45 @@ module Google
54700
55102
  execute_or_queue_command(command, &block)
54701
55103
  end
54702
55104
 
55105
+ # Returns permissions that a caller has on the specified resource.
55106
+ # @param [String] project
55107
+ # Project ID for this request.
55108
+ # @param [String] resource
55109
+ # Name or id of the resource for this request.
55110
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
55111
+ # @param [String] fields
55112
+ # Selector specifying which fields to include in a partial response.
55113
+ # @param [String] quota_user
55114
+ # Available to use for quota purposes for server-side applications. Can be any
55115
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
55116
+ # @param [String] user_ip
55117
+ # Legacy name for parameter that has been superseded by `quotaUser`.
55118
+ # @param [Google::Apis::RequestOptions] options
55119
+ # Request-specific options
55120
+ #
55121
+ # @yield [result, err] Result & error if block supplied
55122
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
55123
+ # @yieldparam err [StandardError] error object if request failed
55124
+ #
55125
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
55126
+ #
55127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
55128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
55129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
55130
+ def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
55131
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
55132
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
55133
+ command.request_object = test_permissions_request_object
55134
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
55135
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
55136
+ command.params['project'] = project unless project.nil?
55137
+ command.params['resource'] = resource unless resource.nil?
55138
+ command.query['fields'] = fields unless fields.nil?
55139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
55140
+ command.query['userIp'] = user_ip unless user_ip.nil?
55141
+ execute_or_queue_command(command, &block)
55142
+ end
55143
+
54703
55144
  # Updates the specified UrlMap resource with the data included in the
54704
55145
  # request.
54705
55146
  # @param [String] project
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.136.0
4
+ version: 0.138.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.136.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.138.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
62
62
  rdoc_options: []
63
63
  require_paths: