google-apis-compute_beta 0.2.0 → 0.7.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.
@@ -99,7 +99,7 @@ module Google
99
99
  # by a previous list request to get the next page of results.
100
100
  # @param [Boolean] return_partial_success
101
101
  # Opt-in for partial success behavior which provides partial results in case of
102
- # failure. The default value is false and the logic is the same as today.
102
+ # failure. The default value is false.
103
103
  # @param [String] fields
104
104
  # Selector specifying which fields to include in a partial response.
105
105
  # @param [String] quota_user
@@ -217,7 +217,7 @@ module Google
217
217
  # by a previous list request to get the next page of results.
218
218
  # @param [Boolean] return_partial_success
219
219
  # Opt-in for partial success behavior which provides partial results in case of
220
- # failure. The default value is false and the logic is the same as today.
220
+ # failure. The default value is false.
221
221
  # @param [String] fields
222
222
  # Selector specifying which fields to include in a partial response.
223
223
  # @param [String] quota_user
@@ -300,7 +300,7 @@ module Google
300
300
  # by a previous list request to get the next page of results.
301
301
  # @param [Boolean] return_partial_success
302
302
  # Opt-in for partial success behavior which provides partial results in case of
303
- # failure. The default value is false and the logic is the same as today.
303
+ # failure. The default value is false.
304
304
  # @param [String] fields
305
305
  # Selector specifying which fields to include in a partial response.
306
306
  # @param [String] quota_user
@@ -520,7 +520,7 @@ module Google
520
520
  # by a previous list request to get the next page of results.
521
521
  # @param [Boolean] return_partial_success
522
522
  # Opt-in for partial success behavior which provides partial results in case of
523
- # failure. The default value is false and the logic is the same as today.
523
+ # failure. The default value is false.
524
524
  # @param [String] fields
525
525
  # Selector specifying which fields to include in a partial response.
526
526
  # @param [String] quota_user
@@ -700,7 +700,7 @@ module Google
700
700
  # by a previous list request to get the next page of results.
701
701
  # @param [Boolean] return_partial_success
702
702
  # Opt-in for partial success behavior which provides partial results in case of
703
- # failure. The default value is false and the logic is the same as today.
703
+ # failure. The default value is false.
704
704
  # @param [String] fields
705
705
  # Selector specifying which fields to include in a partial response.
706
706
  # @param [String] quota_user
@@ -921,7 +921,7 @@ module Google
921
921
  # by a previous list request to get the next page of results.
922
922
  # @param [Boolean] return_partial_success
923
923
  # Opt-in for partial success behavior which provides partial results in case of
924
- # failure. The default value is false and the logic is the same as today.
924
+ # failure. The default value is false.
925
925
  # @param [String] fields
926
926
  # Selector specifying which fields to include in a partial response.
927
927
  # @param [String] quota_user
@@ -1300,6 +1300,46 @@ module Google
1300
1300
  execute_or_queue_command(command, &block)
1301
1301
  end
1302
1302
 
1303
+ # Gets the access control policy for a resource. May be empty if no such policy
1304
+ # or resource exists.
1305
+ # @param [String] project
1306
+ # Project ID for this request.
1307
+ # @param [String] resource
1308
+ # Name or id of the resource for this request.
1309
+ # @param [Fixnum] options_requested_policy_version
1310
+ # Requested IAM Policy version.
1311
+ # @param [String] fields
1312
+ # Selector specifying which fields to include in a partial response.
1313
+ # @param [String] quota_user
1314
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1315
+ # characters.
1316
+ # @param [String] user_ip
1317
+ # Deprecated. Please use quotaUser instead.
1318
+ # @param [Google::Apis::RequestOptions] options
1319
+ # Request-specific options
1320
+ #
1321
+ # @yield [result, err] Result & error if block supplied
1322
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
1323
+ # @yieldparam err [StandardError] error object if request failed
1324
+ #
1325
+ # @return [Google::Apis::ComputeBeta::Policy]
1326
+ #
1327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1330
+ def get_backend_bucket_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1331
+ command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{resource}/getIamPolicy', options)
1332
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
1333
+ command.response_class = Google::Apis::ComputeBeta::Policy
1334
+ command.params['project'] = project unless project.nil?
1335
+ command.params['resource'] = resource unless resource.nil?
1336
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1337
+ command.query['fields'] = fields unless fields.nil?
1338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1339
+ command.query['userIp'] = user_ip unless user_ip.nil?
1340
+ execute_or_queue_command(command, &block)
1341
+ end
1342
+
1303
1343
  # Creates a BackendBucket resource in the specified project using the data
1304
1344
  # included in the request.
1305
1345
  # @param [String] project
@@ -1389,7 +1429,7 @@ module Google
1389
1429
  # by a previous list request to get the next page of results.
1390
1430
  # @param [Boolean] return_partial_success
1391
1431
  # Opt-in for partial success behavior which provides partial results in case of
1392
- # failure. The default value is false and the logic is the same as today.
1432
+ # failure. The default value is false.
1393
1433
  # @param [String] fields
1394
1434
  # Selector specifying which fields to include in a partial response.
1395
1435
  # @param [String] quota_user
@@ -1478,6 +1518,85 @@ module Google
1478
1518
  execute_or_queue_command(command, &block)
1479
1519
  end
1480
1520
 
1521
+ # Sets the access control policy on the specified resource. Replaces any
1522
+ # existing policy.
1523
+ # @param [String] project
1524
+ # Project ID for this request.
1525
+ # @param [String] resource
1526
+ # Name or id of the resource for this request.
1527
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
1528
+ # @param [String] fields
1529
+ # Selector specifying which fields to include in a partial response.
1530
+ # @param [String] quota_user
1531
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1532
+ # characters.
1533
+ # @param [String] user_ip
1534
+ # Deprecated. Please use quotaUser instead.
1535
+ # @param [Google::Apis::RequestOptions] options
1536
+ # Request-specific options
1537
+ #
1538
+ # @yield [result, err] Result & error if block supplied
1539
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
1540
+ # @yieldparam err [StandardError] error object if request failed
1541
+ #
1542
+ # @return [Google::Apis::ComputeBeta::Policy]
1543
+ #
1544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1547
+ def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1548
+ command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
1549
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
1550
+ command.request_object = global_set_policy_request_object
1551
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
1552
+ command.response_class = Google::Apis::ComputeBeta::Policy
1553
+ command.params['project'] = project unless project.nil?
1554
+ command.params['resource'] = resource unless resource.nil?
1555
+ command.query['fields'] = fields unless fields.nil?
1556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1557
+ command.query['userIp'] = user_ip unless user_ip.nil?
1558
+ execute_or_queue_command(command, &block)
1559
+ end
1560
+
1561
+ # Returns permissions that a caller has on the specified resource.
1562
+ # @param [String] project
1563
+ # Project ID for this request.
1564
+ # @param [String] resource
1565
+ # Name or id of the resource for this request.
1566
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
1567
+ # @param [String] fields
1568
+ # Selector specifying which fields to include in a partial response.
1569
+ # @param [String] quota_user
1570
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1571
+ # characters.
1572
+ # @param [String] user_ip
1573
+ # Deprecated. Please use quotaUser instead.
1574
+ # @param [Google::Apis::RequestOptions] options
1575
+ # Request-specific options
1576
+ #
1577
+ # @yield [result, err] Result & error if block supplied
1578
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
1579
+ # @yieldparam err [StandardError] error object if request failed
1580
+ #
1581
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
1582
+ #
1583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1586
+ def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1587
+ command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/testIamPermissions', options)
1588
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
1589
+ command.request_object = test_permissions_request_object
1590
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
1591
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
1592
+ command.params['project'] = project unless project.nil?
1593
+ command.params['resource'] = resource unless resource.nil?
1594
+ command.query['fields'] = fields unless fields.nil?
1595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1596
+ command.query['userIp'] = user_ip unless user_ip.nil?
1597
+ execute_or_queue_command(command, &block)
1598
+ end
1599
+
1481
1600
  # Updates the specified BackendBucket resource with the data included in the
1482
1601
  # request.
1483
1602
  # @param [String] project
@@ -1629,7 +1748,7 @@ module Google
1629
1748
  # by a previous list request to get the next page of results.
1630
1749
  # @param [Boolean] return_partial_success
1631
1750
  # Opt-in for partial success behavior which provides partial results in case of
1632
- # failure. The default value is false and the logic is the same as today.
1751
+ # failure. The default value is false.
1633
1752
  # @param [String] fields
1634
1753
  # Selector specifying which fields to include in a partial response.
1635
1754
  # @param [String] quota_user
@@ -1933,7 +2052,7 @@ module Google
1933
2052
  # by a previous list request to get the next page of results.
1934
2053
  # @param [Boolean] return_partial_success
1935
2054
  # Opt-in for partial success behavior which provides partial results in case of
1936
- # failure. The default value is false and the logic is the same as today.
2055
+ # failure. The default value is false.
1937
2056
  # @param [String] fields
1938
2057
  # Selector specifying which fields to include in a partial response.
1939
2058
  # @param [String] quota_user
@@ -2023,7 +2142,8 @@ module Google
2023
2142
  execute_or_queue_command(command, &block)
2024
2143
  end
2025
2144
 
2026
- # Sets the security policy for the specified backend service.
2145
+ # Sets the Google Cloud Armor security policy for the specified backend service.
2146
+ # For more information, see Google Cloud Armor Overview
2027
2147
  # @param [String] project
2028
2148
  # Project ID for this request.
2029
2149
  # @param [String] backend_service
@@ -2212,7 +2332,7 @@ module Google
2212
2332
  # by a previous list request to get the next page of results.
2213
2333
  # @param [Boolean] return_partial_success
2214
2334
  # Opt-in for partial success behavior which provides partial results in case of
2215
- # failure. The default value is false and the logic is the same as today.
2335
+ # failure. The default value is false.
2216
2336
  # @param [String] fields
2217
2337
  # Selector specifying which fields to include in a partial response.
2218
2338
  # @param [String] quota_user
@@ -2330,7 +2450,7 @@ module Google
2330
2450
  # by a previous list request to get the next page of results.
2331
2451
  # @param [Boolean] return_partial_success
2332
2452
  # Opt-in for partial success behavior which provides partial results in case of
2333
- # failure. The default value is false and the logic is the same as today.
2453
+ # failure. The default value is false.
2334
2454
  # @param [String] fields
2335
2455
  # Selector specifying which fields to include in a partial response.
2336
2456
  # @param [String] quota_user
@@ -2468,7 +2588,7 @@ module Google
2468
2588
  # by a previous list request to get the next page of results.
2469
2589
  # @param [Boolean] return_partial_success
2470
2590
  # Opt-in for partial success behavior which provides partial results in case of
2471
- # failure. The default value is false and the logic is the same as today.
2591
+ # failure. The default value is false.
2472
2592
  # @param [String] fields
2473
2593
  # Selector specifying which fields to include in a partial response.
2474
2594
  # @param [String] quota_user
@@ -2799,7 +2919,7 @@ module Google
2799
2919
  # by a previous list request to get the next page of results.
2800
2920
  # @param [Boolean] return_partial_success
2801
2921
  # Opt-in for partial success behavior which provides partial results in case of
2802
- # failure. The default value is false and the logic is the same as today.
2922
+ # failure. The default value is false.
2803
2923
  # @param [String] fields
2804
2924
  # Selector specifying which fields to include in a partial response.
2805
2925
  # @param [String] quota_user
@@ -3258,7 +3378,7 @@ module Google
3258
3378
  # by a previous list request to get the next page of results.
3259
3379
  # @param [Boolean] return_partial_success
3260
3380
  # Opt-in for partial success behavior which provides partial results in case of
3261
- # failure. The default value is false and the logic is the same as today.
3381
+ # failure. The default value is false.
3262
3382
  # @param [String] fields
3263
3383
  # Selector specifying which fields to include in a partial response.
3264
3384
  # @param [String] quota_user
@@ -3799,7 +3919,7 @@ module Google
3799
3919
  # Parent ID for this request.
3800
3920
  # @param [Boolean] return_partial_success
3801
3921
  # Opt-in for partial success behavior which provides partial results in case of
3802
- # failure. The default value is false and the logic is the same as today.
3922
+ # failure. The default value is false.
3803
3923
  # @param [String] fields
3804
3924
  # Selector specifying which fields to include in a partial response.
3805
3925
  # @param [String] quota_user
@@ -4356,7 +4476,7 @@ module Google
4356
4476
  # by a previous list request to get the next page of results.
4357
4477
  # @param [Boolean] return_partial_success
4358
4478
  # Opt-in for partial success behavior which provides partial results in case of
4359
- # failure. The default value is false and the logic is the same as today.
4479
+ # failure. The default value is false.
4360
4480
  # @param [String] fields
4361
4481
  # Selector specifying which fields to include in a partial response.
4362
4482
  # @param [String] quota_user
@@ -4583,7 +4703,7 @@ module Google
4583
4703
  # by a previous list request to get the next page of results.
4584
4704
  # @param [Boolean] return_partial_success
4585
4705
  # Opt-in for partial success behavior which provides partial results in case of
4586
- # failure. The default value is false and the logic is the same as today.
4706
+ # failure. The default value is false.
4587
4707
  # @param [String] fields
4588
4708
  # Selector specifying which fields to include in a partial response.
4589
4709
  # @param [String] quota_user
@@ -4804,7 +4924,7 @@ module Google
4804
4924
  # by a previous list request to get the next page of results.
4805
4925
  # @param [Boolean] return_partial_success
4806
4926
  # Opt-in for partial success behavior which provides partial results in case of
4807
- # failure. The default value is false and the logic is the same as today.
4927
+ # failure. The default value is false.
4808
4928
  # @param [String] fields
4809
4929
  # Selector specifying which fields to include in a partial response.
4810
4930
  # @param [String] quota_user
@@ -5222,7 +5342,7 @@ module Google
5222
5342
  # by a previous list request to get the next page of results.
5223
5343
  # @param [Boolean] return_partial_success
5224
5344
  # Opt-in for partial success behavior which provides partial results in case of
5225
- # failure. The default value is false and the logic is the same as today.
5345
+ # failure. The default value is false.
5226
5346
  # @param [String] fields
5227
5347
  # Selector specifying which fields to include in a partial response.
5228
5348
  # @param [String] quota_user
@@ -5511,7 +5631,7 @@ module Google
5511
5631
  # by a previous list request to get the next page of results.
5512
5632
  # @param [Boolean] return_partial_success
5513
5633
  # Opt-in for partial success behavior which provides partial results in case of
5514
- # failure. The default value is false and the logic is the same as today.
5634
+ # failure. The default value is false.
5515
5635
  # @param [String] fields
5516
5636
  # Selector specifying which fields to include in a partial response.
5517
5637
  # @param [String] quota_user
@@ -6011,7 +6131,7 @@ module Google
6011
6131
  # by a previous list request to get the next page of results.
6012
6132
  # @param [Boolean] return_partial_success
6013
6133
  # Opt-in for partial success behavior which provides partial results in case of
6014
- # failure. The default value is false and the logic is the same as today.
6134
+ # failure. The default value is false.
6015
6135
  # @param [String] fields
6016
6136
  # Selector specifying which fields to include in a partial response.
6017
6137
  # @param [String] quota_user
@@ -6089,7 +6209,7 @@ module Google
6089
6209
  # by a previous list request to get the next page of results.
6090
6210
  # @param [Boolean] return_partial_success
6091
6211
  # Opt-in for partial success behavior which provides partial results in case of
6092
- # failure. The default value is false and the logic is the same as today.
6212
+ # failure. The default value is false.
6093
6213
  # @param [String] fields
6094
6214
  # Selector specifying which fields to include in a partial response.
6095
6215
  # @param [String] quota_user
@@ -6172,7 +6292,7 @@ module Google
6172
6292
  # by a previous list request to get the next page of results.
6173
6293
  # @param [Boolean] return_partial_success
6174
6294
  # Opt-in for partial success behavior which provides partial results in case of
6175
- # failure. The default value is false and the logic is the same as today.
6295
+ # failure. The default value is false.
6176
6296
  # @param [String] fields
6177
6297
  # Selector specifying which fields to include in a partial response.
6178
6298
  # @param [String] quota_user
@@ -6319,7 +6439,7 @@ module Google
6319
6439
  # by a previous list request to get the next page of results.
6320
6440
  # @param [Boolean] return_partial_success
6321
6441
  # Opt-in for partial success behavior which provides partial results in case of
6322
- # failure. The default value is false and the logic is the same as today.
6442
+ # failure. The default value is false.
6323
6443
  # @param [String] fields
6324
6444
  # Selector specifying which fields to include in a partial response.
6325
6445
  # @param [String] quota_user
@@ -6512,7 +6632,7 @@ module Google
6512
6632
  # Parent ID for this request.
6513
6633
  # @param [Boolean] return_partial_success
6514
6634
  # Opt-in for partial success behavior which provides partial results in case of
6515
- # failure. The default value is false and the logic is the same as today.
6635
+ # failure. The default value is false.
6516
6636
  # @param [String] fields
6517
6637
  # Selector specifying which fields to include in a partial response.
6518
6638
  # @param [String] quota_user
@@ -6720,7 +6840,7 @@ module Google
6720
6840
  # by a previous list request to get the next page of results.
6721
6841
  # @param [Boolean] return_partial_success
6722
6842
  # Opt-in for partial success behavior which provides partial results in case of
6723
- # failure. The default value is false and the logic is the same as today.
6843
+ # failure. The default value is false.
6724
6844
  # @param [String] fields
6725
6845
  # Selector specifying which fields to include in a partial response.
6726
6846
  # @param [String] quota_user
@@ -6856,7 +6976,7 @@ module Google
6856
6976
  # by a previous list request to get the next page of results.
6857
6977
  # @param [Boolean] return_partial_success
6858
6978
  # Opt-in for partial success behavior which provides partial results in case of
6859
- # failure. The default value is false and the logic is the same as today.
6979
+ # failure. The default value is false.
6860
6980
  # @param [String] fields
6861
6981
  # Selector specifying which fields to include in a partial response.
6862
6982
  # @param [String] quota_user
@@ -7066,7 +7186,7 @@ module Google
7066
7186
  # by a previous list request to get the next page of results.
7067
7187
  # @param [Boolean] return_partial_success
7068
7188
  # Opt-in for partial success behavior which provides partial results in case of
7069
- # failure. The default value is false and the logic is the same as today.
7189
+ # failure. The default value is false.
7070
7190
  # @param [String] fields
7071
7191
  # Selector specifying which fields to include in a partial response.
7072
7192
  # @param [String] quota_user
@@ -7420,7 +7540,7 @@ module Google
7420
7540
  # by a previous list request to get the next page of results.
7421
7541
  # @param [Boolean] return_partial_success
7422
7542
  # Opt-in for partial success behavior which provides partial results in case of
7423
- # failure. The default value is false and the logic is the same as today.
7543
+ # failure. The default value is false.
7424
7544
  # @param [String] fields
7425
7545
  # Selector specifying which fields to include in a partial response.
7426
7546
  # @param [String] quota_user
@@ -7774,7 +7894,7 @@ module Google
7774
7894
  # by a previous list request to get the next page of results.
7775
7895
  # @param [Boolean] return_partial_success
7776
7896
  # Opt-in for partial success behavior which provides partial results in case of
7777
- # failure. The default value is false and the logic is the same as today.
7897
+ # failure. The default value is false.
7778
7898
  # @param [String] fields
7779
7899
  # Selector specifying which fields to include in a partial response.
7780
7900
  # @param [String] quota_user
@@ -8263,7 +8383,7 @@ module Google
8263
8383
  # by a previous list request to get the next page of results.
8264
8384
  # @param [Boolean] return_partial_success
8265
8385
  # Opt-in for partial success behavior which provides partial results in case of
8266
- # failure. The default value is false and the logic is the same as today.
8386
+ # failure. The default value is false.
8267
8387
  # @param [String] fields
8268
8388
  # Selector specifying which fields to include in a partial response.
8269
8389
  # @param [String] quota_user
@@ -8581,7 +8701,7 @@ module Google
8581
8701
  # by a previous list request to get the next page of results.
8582
8702
  # @param [Boolean] return_partial_success
8583
8703
  # Opt-in for partial success behavior which provides partial results in case of
8584
- # failure. The default value is false and the logic is the same as today.
8704
+ # failure. The default value is false.
8585
8705
  # @param [String] fields
8586
8706
  # Selector specifying which fields to include in a partial response.
8587
8707
  # @param [String] quota_user
@@ -9021,7 +9141,7 @@ module Google
9021
9141
  # by a previous list request to get the next page of results.
9022
9142
  # @param [Boolean] return_partial_success
9023
9143
  # Opt-in for partial success behavior which provides partial results in case of
9024
- # failure. The default value is false and the logic is the same as today.
9144
+ # failure. The default value is false.
9025
9145
  # @param [String] fields
9026
9146
  # Selector specifying which fields to include in a partial response.
9027
9147
  # @param [String] quota_user
@@ -9105,7 +9225,7 @@ module Google
9105
9225
  # by a previous list request to get the next page of results.
9106
9226
  # @param [Boolean] return_partial_success
9107
9227
  # Opt-in for partial success behavior which provides partial results in case of
9108
- # failure. The default value is false and the logic is the same as today.
9228
+ # failure. The default value is false.
9109
9229
  # @param [String] fields
9110
9230
  # Selector specifying which fields to include in a partial response.
9111
9231
  # @param [String] quota_user
@@ -9191,7 +9311,7 @@ module Google
9191
9311
  # by a previous list request to get the next page of results.
9192
9312
  # @param [Boolean] return_partial_success
9193
9313
  # Opt-in for partial success behavior which provides partial results in case of
9194
- # failure. The default value is false and the logic is the same as today.
9314
+ # failure. The default value is false.
9195
9315
  # @param [String] fields
9196
9316
  # Selector specifying which fields to include in a partial response.
9197
9317
  # @param [String] quota_user
@@ -9274,7 +9394,7 @@ module Google
9274
9394
  # by a previous list request to get the next page of results.
9275
9395
  # @param [Boolean] return_partial_success
9276
9396
  # Opt-in for partial success behavior which provides partial results in case of
9277
- # failure. The default value is false and the logic is the same as today.
9397
+ # failure. The default value is false.
9278
9398
  # @param [String] fields
9279
9399
  # Selector specifying which fields to include in a partial response.
9280
9400
  # @param [String] quota_user
@@ -10058,7 +10178,7 @@ module Google
10058
10178
  # by a previous list request to get the next page of results.
10059
10179
  # @param [Boolean] return_partial_success
10060
10180
  # Opt-in for partial success behavior which provides partial results in case of
10061
- # failure. The default value is false and the logic is the same as today.
10181
+ # failure. The default value is false.
10062
10182
  # @param [String] fields
10063
10183
  # Selector specifying which fields to include in a partial response.
10064
10184
  # @param [String] quota_user
@@ -10286,7 +10406,7 @@ module Google
10286
10406
  # by a previous list request to get the next page of results.
10287
10407
  # @param [Boolean] return_partial_success
10288
10408
  # Opt-in for partial success behavior which provides partial results in case of
10289
- # failure. The default value is false and the logic is the same as today.
10409
+ # failure. The default value is false.
10290
10410
  # @param [String] fields
10291
10411
  # Selector specifying which fields to include in a partial response.
10292
10412
  # @param [String] quota_user
@@ -10369,7 +10489,7 @@ module Google
10369
10489
  # by a previous list request to get the next page of results.
10370
10490
  # @param [Boolean] return_partial_success
10371
10491
  # Opt-in for partial success behavior which provides partial results in case of
10372
- # failure. The default value is false and the logic is the same as today.
10492
+ # failure. The default value is false.
10373
10493
  # @param [String] fields
10374
10494
  # Selector specifying which fields to include in a partial response.
10375
10495
  # @param [String] quota_user
@@ -10781,7 +10901,7 @@ module Google
10781
10901
  # by a previous list request to get the next page of results.
10782
10902
  # @param [Boolean] return_partial_success
10783
10903
  # Opt-in for partial success behavior which provides partial results in case of
10784
- # failure. The default value is false and the logic is the same as today.
10904
+ # failure. The default value is false.
10785
10905
  # @param [String] fields
10786
10906
  # Selector specifying which fields to include in a partial response.
10787
10907
  # @param [String] quota_user
@@ -11056,7 +11176,7 @@ module Google
11056
11176
  # by a previous list request to get the next page of results.
11057
11177
  # @param [Boolean] return_partial_success
11058
11178
  # Opt-in for partial success behavior which provides partial results in case of
11059
- # failure. The default value is false and the logic is the same as today.
11179
+ # failure. The default value is false.
11060
11180
  # @param [String] fields
11061
11181
  # Selector specifying which fields to include in a partial response.
11062
11182
  # @param [String] quota_user
@@ -11155,6 +11275,57 @@ module Google
11155
11275
  execute_or_queue_command(command, &block)
11156
11276
  end
11157
11277
 
11278
+ # Creates multiple instances. Count specifies the number of instances to create.
11279
+ # @param [String] project
11280
+ # Project ID for this request.
11281
+ # @param [String] zone
11282
+ # The name of the zone for this request.
11283
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
11284
+ # @param [String] request_id
11285
+ # An optional request ID to identify requests. Specify a unique request ID so
11286
+ # that if you must retry your request, the server will know to ignore the
11287
+ # request if it has already been completed.
11288
+ # For example, consider a situation where you make an initial request and the
11289
+ # request times out. If you make the request again with the same request ID, the
11290
+ # server can check if original operation with the same request ID was received,
11291
+ # and if so, will ignore the second request. This prevents clients from
11292
+ # accidentally creating duplicate commitments.
11293
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11294
+ # supported (00000000-0000-0000-0000-000000000000).
11295
+ # @param [String] fields
11296
+ # Selector specifying which fields to include in a partial response.
11297
+ # @param [String] quota_user
11298
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11299
+ # characters.
11300
+ # @param [String] user_ip
11301
+ # Deprecated. Please use quotaUser instead.
11302
+ # @param [Google::Apis::RequestOptions] options
11303
+ # Request-specific options
11304
+ #
11305
+ # @yield [result, err] Result & error if block supplied
11306
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11307
+ # @yieldparam err [StandardError] error object if request failed
11308
+ #
11309
+ # @return [Google::Apis::ComputeBeta::Operation]
11310
+ #
11311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11314
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11315
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
11316
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
11317
+ command.request_object = bulk_insert_instance_resource_object
11318
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11319
+ command.response_class = Google::Apis::ComputeBeta::Operation
11320
+ command.params['project'] = project unless project.nil?
11321
+ command.params['zone'] = zone unless zone.nil?
11322
+ command.query['requestId'] = request_id unless request_id.nil?
11323
+ command.query['fields'] = fields unless fields.nil?
11324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11325
+ command.query['userIp'] = user_ip unless user_ip.nil?
11326
+ execute_or_queue_command(command, &block)
11327
+ end
11328
+
11158
11329
  # Deletes the specified Instance resource. For more information, see Stopping or
11159
11330
  # Deleting an Instance.
11160
11331
  # @param [String] project
@@ -11773,7 +11944,7 @@ module Google
11773
11944
  # by a previous list request to get the next page of results.
11774
11945
  # @param [Boolean] return_partial_success
11775
11946
  # Opt-in for partial success behavior which provides partial results in case of
11776
- # failure. The default value is false and the logic is the same as today.
11947
+ # failure. The default value is false.
11777
11948
  # @param [String] fields
11778
11949
  # Selector specifying which fields to include in a partial response.
11779
11950
  # @param [String] quota_user
@@ -11857,7 +12028,7 @@ module Google
11857
12028
  # by a previous list request to get the next page of results.
11858
12029
  # @param [Boolean] return_partial_success
11859
12030
  # Opt-in for partial success behavior which provides partial results in case of
11860
- # failure. The default value is false and the logic is the same as today.
12031
+ # failure. The default value is false.
11861
12032
  # @param [String] fields
11862
12033
  # Selector specifying which fields to include in a partial response.
11863
12034
  # @param [String] quota_user
@@ -13521,7 +13692,7 @@ module Google
13521
13692
  # by a previous list request to get the next page of results.
13522
13693
  # @param [Boolean] return_partial_success
13523
13694
  # Opt-in for partial success behavior which provides partial results in case of
13524
- # failure. The default value is false and the logic is the same as today.
13695
+ # failure. The default value is false.
13525
13696
  # @param [String] fields
13526
13697
  # Selector specifying which fields to include in a partial response.
13527
13698
  # @param [String] quota_user
@@ -13745,7 +13916,7 @@ module Google
13745
13916
  # by a previous list request to get the next page of results.
13746
13917
  # @param [Boolean] return_partial_success
13747
13918
  # Opt-in for partial success behavior which provides partial results in case of
13748
- # failure. The default value is false and the logic is the same as today.
13919
+ # failure. The default value is false.
13749
13920
  # @param [String] fields
13750
13921
  # Selector specifying which fields to include in a partial response.
13751
13922
  # @param [String] quota_user
@@ -14012,7 +14183,7 @@ module Google
14012
14183
  # by a previous list request to get the next page of results.
14013
14184
  # @param [Boolean] return_partial_success
14014
14185
  # Opt-in for partial success behavior which provides partial results in case of
14015
- # failure. The default value is false and the logic is the same as today.
14186
+ # failure. The default value is false.
14016
14187
  # @param [String] fields
14017
14188
  # Selector specifying which fields to include in a partial response.
14018
14189
  # @param [String] quota_user
@@ -14257,7 +14428,7 @@ module Google
14257
14428
  # by a previous list request to get the next page of results.
14258
14429
  # @param [Boolean] return_partial_success
14259
14430
  # Opt-in for partial success behavior which provides partial results in case of
14260
- # failure. The default value is false and the logic is the same as today.
14431
+ # failure. The default value is false.
14261
14432
  # @param [String] fields
14262
14433
  # Selector specifying which fields to include in a partial response.
14263
14434
  # @param [String] quota_user
@@ -14464,101 +14635,14 @@ module Google
14464
14635
  execute_or_queue_command(command, &block)
14465
14636
  end
14466
14637
 
14467
- # Deletes the specified license. Caution This resource is intended for use only
14468
- # by third-party partners who are creating Cloud Marketplace images.
14469
- # @param [String] project
14470
- # Project ID for this request.
14471
- # @param [String] license
14472
- # Name of the license resource to delete.
14473
- # @param [String] request_id
14474
- # An optional request ID to identify requests. Specify a unique request ID so
14475
- # that if you must retry your request, the server will know to ignore the
14476
- # request if it has already been completed.
14477
- # For example, consider a situation where you make an initial request and the
14478
- # request times out. If you make the request again with the same request ID, the
14479
- # server can check if original operation with the same request ID was received,
14480
- # and if so, will ignore the second request. This prevents clients from
14481
- # accidentally creating duplicate commitments.
14482
- # The request ID must be a valid UUID with the exception that zero UUID is not
14483
- # supported (00000000-0000-0000-0000-000000000000).
14484
- # @param [String] fields
14485
- # Selector specifying which fields to include in a partial response.
14486
- # @param [String] quota_user
14487
- # An opaque string that represents a user for quota purposes. Must not exceed 40
14488
- # characters.
14489
- # @param [String] user_ip
14490
- # Deprecated. Please use quotaUser instead.
14491
- # @param [Google::Apis::RequestOptions] options
14492
- # Request-specific options
14493
- #
14494
- # @yield [result, err] Result & error if block supplied
14495
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
14496
- # @yieldparam err [StandardError] error object if request failed
14497
- #
14498
- # @return [Google::Apis::ComputeBeta::Operation]
14499
- #
14500
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14501
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14502
- # @raise [Google::Apis::AuthorizationError] Authorization is required
14503
- def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14504
- command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options)
14505
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14506
- command.response_class = Google::Apis::ComputeBeta::Operation
14507
- command.params['project'] = project unless project.nil?
14508
- command.params['license'] = license unless license.nil?
14509
- command.query['requestId'] = request_id unless request_id.nil?
14510
- command.query['fields'] = fields unless fields.nil?
14511
- command.query['quotaUser'] = quota_user unless quota_user.nil?
14512
- command.query['userIp'] = user_ip unless user_ip.nil?
14513
- execute_or_queue_command(command, &block)
14514
- end
14515
-
14516
- # Returns the specified License resource. Caution This resource is intended for
14517
- # use only by third-party partners who are creating Cloud Marketplace images.
14518
- # @param [String] project
14519
- # Project ID for this request.
14520
- # @param [String] license
14521
- # Name of the License resource to return.
14522
- # @param [String] fields
14523
- # Selector specifying which fields to include in a partial response.
14524
- # @param [String] quota_user
14525
- # An opaque string that represents a user for quota purposes. Must not exceed 40
14526
- # characters.
14527
- # @param [String] user_ip
14528
- # Deprecated. Please use quotaUser instead.
14529
- # @param [Google::Apis::RequestOptions] options
14530
- # Request-specific options
14531
- #
14532
- # @yield [result, err] Result & error if block supplied
14533
- # @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
14534
- # @yieldparam err [StandardError] error object if request failed
14535
- #
14536
- # @return [Google::Apis::ComputeBeta::License]
14537
- #
14538
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14539
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14540
- # @raise [Google::Apis::AuthorizationError] Authorization is required
14541
- def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14542
- command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
14543
- command.response_representation = Google::Apis::ComputeBeta::License::Representation
14544
- command.response_class = Google::Apis::ComputeBeta::License
14545
- command.params['project'] = project unless project.nil?
14546
- command.params['license'] = license unless license.nil?
14547
- command.query['fields'] = fields unless fields.nil?
14548
- command.query['quotaUser'] = quota_user unless quota_user.nil?
14549
- command.query['userIp'] = user_ip unless user_ip.nil?
14550
- execute_or_queue_command(command, &block)
14551
- end
14552
-
14553
- # Gets the access control policy for a resource. May be empty if no such policy
14554
- # or resource exists. Caution This resource is intended for use only by third-
14555
- # party partners who are creating Cloud Marketplace images.
14638
+ # Returns permissions that a caller has on the specified resource. Caution This
14639
+ # resource is intended for use only by third-party partners who are creating
14640
+ # Cloud Marketplace images.
14556
14641
  # @param [String] project
14557
14642
  # Project ID for this request.
14558
14643
  # @param [String] resource
14559
14644
  # Name or id of the resource for this request.
14560
- # @param [Fixnum] options_requested_policy_version
14561
- # Requested IAM Policy version.
14645
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
14562
14646
  # @param [String] fields
14563
14647
  # Selector specifying which fields to include in a partial response.
14564
14648
  # @param [String] quota_user
@@ -14570,33 +14654,161 @@ module Google
14570
14654
  # Request-specific options
14571
14655
  #
14572
14656
  # @yield [result, err] Result & error if block supplied
14573
- # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
14657
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
14574
14658
  # @yieldparam err [StandardError] error object if request failed
14575
14659
  #
14576
- # @return [Google::Apis::ComputeBeta::Policy]
14660
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
14577
14661
  #
14578
14662
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14579
14663
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14580
14664
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14581
- def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14582
- command = make_simple_command(:get, 'projects/{project}/global/licenses/{resource}/getIamPolicy', options)
14583
- command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
14584
- command.response_class = Google::Apis::ComputeBeta::Policy
14665
+ def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14666
+ command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/testIamPermissions', options)
14667
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
14668
+ command.request_object = test_permissions_request_object
14669
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
14670
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
14585
14671
  command.params['project'] = project unless project.nil?
14586
14672
  command.params['resource'] = resource unless resource.nil?
14587
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
14588
14673
  command.query['fields'] = fields unless fields.nil?
14589
14674
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14590
14675
  command.query['userIp'] = user_ip unless user_ip.nil?
14591
14676
  execute_or_queue_command(command, &block)
14592
14677
  end
14593
14678
 
14594
- # Create a License resource in the specified project. Caution This resource is
14595
- # intended for use only by third-party partners who are creating Cloud
14596
- # Marketplace images.
14679
+ # Deletes the specified license. Caution This resource is intended for use only
14680
+ # by third-party partners who are creating Cloud Marketplace images.
14597
14681
  # @param [String] project
14598
14682
  # Project ID for this request.
14599
- # @param [Google::Apis::ComputeBeta::License] license_object
14683
+ # @param [String] license
14684
+ # Name of the license resource to delete.
14685
+ # @param [String] request_id
14686
+ # An optional request ID to identify requests. Specify a unique request ID so
14687
+ # that if you must retry your request, the server will know to ignore the
14688
+ # request if it has already been completed.
14689
+ # For example, consider a situation where you make an initial request and the
14690
+ # request times out. If you make the request again with the same request ID, the
14691
+ # server can check if original operation with the same request ID was received,
14692
+ # and if so, will ignore the second request. This prevents clients from
14693
+ # accidentally creating duplicate commitments.
14694
+ # The request ID must be a valid UUID with the exception that zero UUID is not
14695
+ # supported (00000000-0000-0000-0000-000000000000).
14696
+ # @param [String] fields
14697
+ # Selector specifying which fields to include in a partial response.
14698
+ # @param [String] quota_user
14699
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14700
+ # characters.
14701
+ # @param [String] user_ip
14702
+ # Deprecated. Please use quotaUser instead.
14703
+ # @param [Google::Apis::RequestOptions] options
14704
+ # Request-specific options
14705
+ #
14706
+ # @yield [result, err] Result & error if block supplied
14707
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
14708
+ # @yieldparam err [StandardError] error object if request failed
14709
+ #
14710
+ # @return [Google::Apis::ComputeBeta::Operation]
14711
+ #
14712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14715
+ def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14716
+ command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options)
14717
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14718
+ command.response_class = Google::Apis::ComputeBeta::Operation
14719
+ command.params['project'] = project unless project.nil?
14720
+ command.params['license'] = license unless license.nil?
14721
+ command.query['requestId'] = request_id unless request_id.nil?
14722
+ command.query['fields'] = fields unless fields.nil?
14723
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14724
+ command.query['userIp'] = user_ip unless user_ip.nil?
14725
+ execute_or_queue_command(command, &block)
14726
+ end
14727
+
14728
+ # Returns the specified License resource. Caution This resource is intended for
14729
+ # use only by third-party partners who are creating Cloud Marketplace images.
14730
+ # @param [String] project
14731
+ # Project ID for this request.
14732
+ # @param [String] license
14733
+ # Name of the License resource to return.
14734
+ # @param [String] fields
14735
+ # Selector specifying which fields to include in a partial response.
14736
+ # @param [String] quota_user
14737
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14738
+ # characters.
14739
+ # @param [String] user_ip
14740
+ # Deprecated. Please use quotaUser instead.
14741
+ # @param [Google::Apis::RequestOptions] options
14742
+ # Request-specific options
14743
+ #
14744
+ # @yield [result, err] Result & error if block supplied
14745
+ # @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
14746
+ # @yieldparam err [StandardError] error object if request failed
14747
+ #
14748
+ # @return [Google::Apis::ComputeBeta::License]
14749
+ #
14750
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14751
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14752
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14753
+ def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14754
+ command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
14755
+ command.response_representation = Google::Apis::ComputeBeta::License::Representation
14756
+ command.response_class = Google::Apis::ComputeBeta::License
14757
+ command.params['project'] = project unless project.nil?
14758
+ command.params['license'] = license unless license.nil?
14759
+ command.query['fields'] = fields unless fields.nil?
14760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14761
+ command.query['userIp'] = user_ip unless user_ip.nil?
14762
+ execute_or_queue_command(command, &block)
14763
+ end
14764
+
14765
+ # Gets the access control policy for a resource. May be empty if no such policy
14766
+ # or resource exists. Caution This resource is intended for use only by third-
14767
+ # party partners who are creating Cloud Marketplace images.
14768
+ # @param [String] project
14769
+ # Project ID for this request.
14770
+ # @param [String] resource
14771
+ # Name or id of the resource for this request.
14772
+ # @param [Fixnum] options_requested_policy_version
14773
+ # Requested IAM Policy version.
14774
+ # @param [String] fields
14775
+ # Selector specifying which fields to include in a partial response.
14776
+ # @param [String] quota_user
14777
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14778
+ # characters.
14779
+ # @param [String] user_ip
14780
+ # Deprecated. Please use quotaUser instead.
14781
+ # @param [Google::Apis::RequestOptions] options
14782
+ # Request-specific options
14783
+ #
14784
+ # @yield [result, err] Result & error if block supplied
14785
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
14786
+ # @yieldparam err [StandardError] error object if request failed
14787
+ #
14788
+ # @return [Google::Apis::ComputeBeta::Policy]
14789
+ #
14790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14793
+ def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14794
+ command = make_simple_command(:get, 'projects/{project}/global/licenses/{resource}/getIamPolicy', options)
14795
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
14796
+ command.response_class = Google::Apis::ComputeBeta::Policy
14797
+ command.params['project'] = project unless project.nil?
14798
+ command.params['resource'] = resource unless resource.nil?
14799
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
14800
+ command.query['fields'] = fields unless fields.nil?
14801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14802
+ command.query['userIp'] = user_ip unless user_ip.nil?
14803
+ execute_or_queue_command(command, &block)
14804
+ end
14805
+
14806
+ # Create a License resource in the specified project. Caution This resource is
14807
+ # intended for use only by third-party partners who are creating Cloud
14808
+ # Marketplace images.
14809
+ # @param [String] project
14810
+ # Project ID for this request.
14811
+ # @param [Google::Apis::ComputeBeta::License] license_object
14600
14812
  # @param [String] request_id
14601
14813
  # An optional request ID to identify requests. Specify a unique request ID so
14602
14814
  # that if you must retry your request, the server will know to ignore the
@@ -14686,7 +14898,7 @@ module Google
14686
14898
  # by a previous list request to get the next page of results.
14687
14899
  # @param [Boolean] return_partial_success
14688
14900
  # Opt-in for partial success behavior which provides partial results in case of
14689
- # failure. The default value is false and the logic is the same as today.
14901
+ # failure. The default value is false.
14690
14902
  # @param [String] fields
14691
14903
  # Selector specifying which fields to include in a partial response.
14692
14904
  # @param [String] quota_user
@@ -14763,6 +14975,47 @@ module Google
14763
14975
  execute_or_queue_command(command, &block)
14764
14976
  end
14765
14977
 
14978
+ # Returns permissions that a caller has on the specified resource. Caution This
14979
+ # resource is intended for use only by third-party partners who are creating
14980
+ # Cloud Marketplace images.
14981
+ # @param [String] project
14982
+ # Project ID for this request.
14983
+ # @param [String] resource
14984
+ # Name or id of the resource for this request.
14985
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
14986
+ # @param [String] fields
14987
+ # Selector specifying which fields to include in a partial response.
14988
+ # @param [String] quota_user
14989
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14990
+ # characters.
14991
+ # @param [String] user_ip
14992
+ # Deprecated. Please use quotaUser instead.
14993
+ # @param [Google::Apis::RequestOptions] options
14994
+ # Request-specific options
14995
+ #
14996
+ # @yield [result, err] Result & error if block supplied
14997
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
14998
+ # @yieldparam err [StandardError] error object if request failed
14999
+ #
15000
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
15001
+ #
15002
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15003
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15004
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15005
+ def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15006
+ command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/testIamPermissions', options)
15007
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
15008
+ command.request_object = test_permissions_request_object
15009
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
15010
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
15011
+ command.params['project'] = project unless project.nil?
15012
+ command.params['resource'] = resource unless resource.nil?
15013
+ command.query['fields'] = fields unless fields.nil?
15014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15015
+ command.query['userIp'] = user_ip unless user_ip.nil?
15016
+ execute_or_queue_command(command, &block)
15017
+ end
15018
+
14766
15019
  # Deletes the specified machine image. Deleting a machine image is permanent and
14767
15020
  # cannot be undone.
14768
15021
  # @param [String] project
@@ -14983,7 +15236,7 @@ module Google
14983
15236
  # by a previous list request to get the next page of results.
14984
15237
  # @param [Boolean] return_partial_success
14985
15238
  # Opt-in for partial success behavior which provides partial results in case of
14986
- # failure. The default value is false and the logic is the same as today.
15239
+ # failure. The default value is false.
14987
15240
  # @param [String] fields
14988
15241
  # Selector specifying which fields to include in a partial response.
14989
15242
  # @param [String] quota_user
@@ -15144,7 +15397,7 @@ module Google
15144
15397
  # by a previous list request to get the next page of results.
15145
15398
  # @param [Boolean] return_partial_success
15146
15399
  # Opt-in for partial success behavior which provides partial results in case of
15147
- # failure. The default value is false and the logic is the same as today.
15400
+ # failure. The default value is false.
15148
15401
  # @param [String] fields
15149
15402
  # Selector specifying which fields to include in a partial response.
15150
15403
  # @param [String] quota_user
@@ -15262,7 +15515,7 @@ module Google
15262
15515
  # by a previous list request to get the next page of results.
15263
15516
  # @param [Boolean] return_partial_success
15264
15517
  # Opt-in for partial success behavior which provides partial results in case of
15265
- # failure. The default value is false and the logic is the same as today.
15518
+ # failure. The default value is false.
15266
15519
  # @param [String] fields
15267
15520
  # Selector specifying which fields to include in a partial response.
15268
15521
  # @param [String] quota_user
@@ -15345,7 +15598,7 @@ module Google
15345
15598
  # by a previous list request to get the next page of results.
15346
15599
  # @param [Boolean] return_partial_success
15347
15600
  # Opt-in for partial success behavior which provides partial results in case of
15348
- # failure. The default value is false and the logic is the same as today.
15601
+ # failure. The default value is false.
15349
15602
  # @param [String] fields
15350
15603
  # Selector specifying which fields to include in a partial response.
15351
15604
  # @param [String] quota_user
@@ -15687,7 +15940,7 @@ module Google
15687
15940
  # by a previous list request to get the next page of results.
15688
15941
  # @param [Boolean] return_partial_success
15689
15942
  # Opt-in for partial success behavior which provides partial results in case of
15690
- # failure. The default value is false and the logic is the same as today.
15943
+ # failure. The default value is false.
15691
15944
  # @param [String] fields
15692
15945
  # Selector specifying which fields to include in a partial response.
15693
15946
  # @param [String] quota_user
@@ -15770,7 +16023,7 @@ module Google
15770
16023
  # by a previous list request to get the next page of results.
15771
16024
  # @param [Boolean] return_partial_success
15772
16025
  # Opt-in for partial success behavior which provides partial results in case of
15773
- # failure. The default value is false and the logic is the same as today.
16026
+ # failure. The default value is false.
15774
16027
  # @param [String] fields
15775
16028
  # Selector specifying which fields to include in a partial response.
15776
16029
  # @param [String] quota_user
@@ -16112,7 +16365,7 @@ module Google
16112
16365
  # by a previous list request to get the next page of results.
16113
16366
  # @param [Boolean] return_partial_success
16114
16367
  # Opt-in for partial success behavior which provides partial results in case of
16115
- # failure. The default value is false and the logic is the same as today.
16368
+ # failure. The default value is false.
16116
16369
  # @param [String] fields
16117
16370
  # Selector specifying which fields to include in a partial response.
16118
16371
  # @param [String] quota_user
@@ -16196,7 +16449,7 @@ module Google
16196
16449
  # routes and dynamic routes in the region.
16197
16450
  # @param [Boolean] return_partial_success
16198
16451
  # Opt-in for partial success behavior which provides partial results in case of
16199
- # failure. The default value is false and the logic is the same as today.
16452
+ # failure. The default value is false.
16200
16453
  # @param [String] fields
16201
16454
  # Selector specifying which fields to include in a partial response.
16202
16455
  # @param [String] quota_user
@@ -16580,7 +16833,7 @@ module Google
16580
16833
  # by a previous list request to get the next page of results.
16581
16834
  # @param [Boolean] return_partial_success
16582
16835
  # Opt-in for partial success behavior which provides partial results in case of
16583
- # failure. The default value is false and the logic is the same as today.
16836
+ # failure. The default value is false.
16584
16837
  # @param [String] fields
16585
16838
  # Selector specifying which fields to include in a partial response.
16586
16839
  # @param [String] quota_user
@@ -16903,7 +17156,7 @@ module Google
16903
17156
  # by a previous list request to get the next page of results.
16904
17157
  # @param [Boolean] return_partial_success
16905
17158
  # Opt-in for partial success behavior which provides partial results in case of
16906
- # failure. The default value is false and the logic is the same as today.
17159
+ # failure. The default value is false.
16907
17160
  # @param [String] fields
16908
17161
  # Selector specifying which fields to include in a partial response.
16909
17162
  # @param [String] quota_user
@@ -16983,7 +17236,7 @@ module Google
16983
17236
  # by a previous list request to get the next page of results.
16984
17237
  # @param [Boolean] return_partial_success
16985
17238
  # Opt-in for partial success behavior which provides partial results in case of
16986
- # failure. The default value is false and the logic is the same as today.
17239
+ # failure. The default value is false.
16987
17240
  # @param [String] fields
16988
17241
  # Selector specifying which fields to include in a partial response.
16989
17242
  # @param [String] quota_user
@@ -17260,7 +17513,7 @@ module Google
17260
17513
  # by a previous list request to get the next page of results.
17261
17514
  # @param [Boolean] return_partial_success
17262
17515
  # Opt-in for partial success behavior which provides partial results in case of
17263
- # failure. The default value is false and the logic is the same as today.
17516
+ # failure. The default value is false.
17264
17517
  # @param [String] fields
17265
17518
  # Selector specifying which fields to include in a partial response.
17266
17519
  # @param [String] quota_user
@@ -17524,7 +17777,7 @@ module Google
17524
17777
  # by a previous list request to get the next page of results.
17525
17778
  # @param [Boolean] return_partial_success
17526
17779
  # Opt-in for partial success behavior which provides partial results in case of
17527
- # failure. The default value is false and the logic is the same as today.
17780
+ # failure. The default value is false.
17528
17781
  # @param [String] fields
17529
17782
  # Selector specifying which fields to include in a partial response.
17530
17783
  # @param [String] quota_user
@@ -17692,7 +17945,7 @@ module Google
17692
17945
  # by a previous list request to get the next page of results.
17693
17946
  # @param [Boolean] return_partial_success
17694
17947
  # Opt-in for partial success behavior which provides partial results in case of
17695
- # failure. The default value is false and the logic is the same as today.
17948
+ # failure. The default value is false.
17696
17949
  # @param [String] fields
17697
17950
  # Selector specifying which fields to include in a partial response.
17698
17951
  # @param [String] quota_user
@@ -17810,7 +18063,7 @@ module Google
17810
18063
  # by a previous list request to get the next page of results.
17811
18064
  # @param [Boolean] return_partial_success
17812
18065
  # Opt-in for partial success behavior which provides partial results in case of
17813
- # failure. The default value is false and the logic is the same as today.
18066
+ # failure. The default value is false.
17814
18067
  # @param [String] fields
17815
18068
  # Selector specifying which fields to include in a partial response.
17816
18069
  # @param [String] quota_user
@@ -18236,7 +18489,7 @@ module Google
18236
18489
  # Parent ID for this request.
18237
18490
  # @param [Boolean] return_partial_success
18238
18491
  # Opt-in for partial success behavior which provides partial results in case of
18239
- # failure. The default value is false and the logic is the same as today.
18492
+ # failure. The default value is false.
18240
18493
  # @param [String] fields
18241
18494
  # Selector specifying which fields to include in a partial response.
18242
18495
  # @param [String] quota_user
@@ -18594,7 +18847,7 @@ module Google
18594
18847
  # by a previous list request to get the next page of results.
18595
18848
  # @param [Boolean] return_partial_success
18596
18849
  # Opt-in for partial success behavior which provides partial results in case of
18597
- # failure. The default value is false and the logic is the same as today.
18850
+ # failure. The default value is false.
18598
18851
  # @param [String] fields
18599
18852
  # Selector specifying which fields to include in a partial response.
18600
18853
  # @param [String] quota_user
@@ -18815,7 +19068,7 @@ module Google
18815
19068
  # by a previous list request to get the next page of results.
18816
19069
  # @param [Boolean] return_partial_success
18817
19070
  # Opt-in for partial success behavior which provides partial results in case of
18818
- # failure. The default value is false and the logic is the same as today.
19071
+ # failure. The default value is false.
18819
19072
  # @param [String] fields
18820
19073
  # Selector specifying which fields to include in a partial response.
18821
19074
  # @param [String] quota_user
@@ -19245,7 +19498,7 @@ module Google
19245
19498
  # by a previous list request to get the next page of results.
19246
19499
  # @param [Boolean] return_partial_success
19247
19500
  # Opt-in for partial success behavior which provides partial results in case of
19248
- # failure. The default value is false and the logic is the same as today.
19501
+ # failure. The default value is false.
19249
19502
  # @param [String] fields
19250
19503
  # Selector specifying which fields to include in a partial response.
19251
19504
  # @param [String] quota_user
@@ -19321,7 +19574,7 @@ module Google
19321
19574
  # by a previous list request to get the next page of results.
19322
19575
  # @param [Boolean] return_partial_success
19323
19576
  # Opt-in for partial success behavior which provides partial results in case of
19324
- # failure. The default value is false and the logic is the same as today.
19577
+ # failure. The default value is false.
19325
19578
  # @param [String] fields
19326
19579
  # Selector specifying which fields to include in a partial response.
19327
19580
  # @param [String] quota_user
@@ -19776,7 +20029,7 @@ module Google
19776
20029
  # by a previous list request to get the next page of results.
19777
20030
  # @param [Boolean] return_partial_success
19778
20031
  # Opt-in for partial success behavior which provides partial results in case of
19779
- # failure. The default value is false and the logic is the same as today.
20032
+ # failure. The default value is false.
19780
20033
  # @param [String] fields
19781
20034
  # Selector specifying which fields to include in a partial response.
19782
20035
  # @param [String] quota_user
@@ -19912,7 +20165,7 @@ module Google
19912
20165
  # by a previous list request to get the next page of results.
19913
20166
  # @param [Boolean] return_partial_success
19914
20167
  # Opt-in for partial success behavior which provides partial results in case of
19915
- # failure. The default value is false and the logic is the same as today.
20168
+ # failure. The default value is false.
19916
20169
  # @param [String] fields
19917
20170
  # Selector specifying which fields to include in a partial response.
19918
20171
  # @param [String] quota_user
@@ -20132,7 +20385,7 @@ module Google
20132
20385
  # by a previous list request to get the next page of results.
20133
20386
  # @param [Boolean] return_partial_success
20134
20387
  # Opt-in for partial success behavior which provides partial results in case of
20135
- # failure. The default value is false and the logic is the same as today.
20388
+ # failure. The default value is false.
20136
20389
  # @param [String] fields
20137
20390
  # Selector specifying which fields to include in a partial response.
20138
20391
  # @param [String] quota_user
@@ -20408,7 +20661,7 @@ module Google
20408
20661
  # by a previous list request to get the next page of results.
20409
20662
  # @param [Boolean] return_partial_success
20410
20663
  # Opt-in for partial success behavior which provides partial results in case of
20411
- # failure. The default value is false and the logic is the same as today.
20664
+ # failure. The default value is false.
20412
20665
  # @param [String] fields
20413
20666
  # Selector specifying which fields to include in a partial response.
20414
20667
  # @param [String] quota_user
@@ -20824,7 +21077,7 @@ module Google
20824
21077
  # by a previous list request to get the next page of results.
20825
21078
  # @param [Boolean] return_partial_success
20826
21079
  # Opt-in for partial success behavior which provides partial results in case of
20827
- # failure. The default value is false and the logic is the same as today.
21080
+ # failure. The default value is false.
20828
21081
  # @param [String] fields
20829
21082
  # Selector specifying which fields to include in a partial response.
20830
21083
  # @param [String] quota_user
@@ -21061,7 +21314,7 @@ module Google
21061
21314
  # by a previous list request to get the next page of results.
21062
21315
  # @param [Boolean] return_partial_success
21063
21316
  # Opt-in for partial success behavior which provides partial results in case of
21064
- # failure. The default value is false and the logic is the same as today.
21317
+ # failure. The default value is false.
21065
21318
  # @param [String] fields
21066
21319
  # Selector specifying which fields to include in a partial response.
21067
21320
  # @param [String] quota_user
@@ -21231,7 +21484,7 @@ module Google
21231
21484
  # by a previous list request to get the next page of results.
21232
21485
  # @param [Boolean] return_partial_success
21233
21486
  # Opt-in for partial success behavior which provides partial results in case of
21234
- # failure. The default value is false and the logic is the same as today.
21487
+ # failure. The default value is false.
21235
21488
  # @param [String] fields
21236
21489
  # Selector specifying which fields to include in a partial response.
21237
21490
  # @param [String] quota_user
@@ -21268,6 +21521,48 @@ module Google
21268
21521
  execute_or_queue_command(command, &block)
21269
21522
  end
21270
21523
 
21524
+ # Returns permissions that a caller has on the specified resource.
21525
+ # @param [String] project
21526
+ # Project ID for this request.
21527
+ # @param [String] region
21528
+ # The name of the region for this request.
21529
+ # @param [String] resource
21530
+ # Name or id of the resource for this request.
21531
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
21532
+ # @param [String] fields
21533
+ # Selector specifying which fields to include in a partial response.
21534
+ # @param [String] quota_user
21535
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
21536
+ # characters.
21537
+ # @param [String] user_ip
21538
+ # Deprecated. Please use quotaUser instead.
21539
+ # @param [Google::Apis::RequestOptions] options
21540
+ # Request-specific options
21541
+ #
21542
+ # @yield [result, err] Result & error if block supplied
21543
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
21544
+ # @yieldparam err [StandardError] error object if request failed
21545
+ #
21546
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
21547
+ #
21548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21551
+ def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21552
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
21553
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
21554
+ command.request_object = test_permissions_request_object
21555
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
21556
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
21557
+ command.params['project'] = project unless project.nil?
21558
+ command.params['region'] = region unless region.nil?
21559
+ command.params['resource'] = resource unless resource.nil?
21560
+ command.query['fields'] = fields unless fields.nil?
21561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21562
+ command.query['userIp'] = user_ip unless user_ip.nil?
21563
+ execute_or_queue_command(command, &block)
21564
+ end
21565
+
21271
21566
  # Transfers GPUs or local SSDs between reservations within commitments.
21272
21567
  # @param [String] project
21273
21568
  # Project ID for this request.
@@ -21403,7 +21698,7 @@ module Google
21403
21698
  # by a previous list request to get the next page of results.
21404
21699
  # @param [Boolean] return_partial_success
21405
21700
  # Opt-in for partial success behavior which provides partial results in case of
21406
- # failure. The default value is false and the logic is the same as today.
21701
+ # failure. The default value is false.
21407
21702
  # @param [String] fields
21408
21703
  # Selector specifying which fields to include in a partial response.
21409
21704
  # @param [String] quota_user
@@ -21781,7 +22076,7 @@ module Google
21781
22076
  # by a previous list request to get the next page of results.
21782
22077
  # @param [Boolean] return_partial_success
21783
22078
  # Opt-in for partial success behavior which provides partial results in case of
21784
- # failure. The default value is false and the logic is the same as today.
22079
+ # failure. The default value is false.
21785
22080
  # @param [String] fields
21786
22081
  # Selector specifying which fields to include in a partial response.
21787
22082
  # @param [String] quota_user
@@ -22251,7 +22546,7 @@ module Google
22251
22546
  # by a previous list request to get the next page of results.
22252
22547
  # @param [Boolean] return_partial_success
22253
22548
  # Opt-in for partial success behavior which provides partial results in case of
22254
- # failure. The default value is false and the logic is the same as today.
22549
+ # failure. The default value is false.
22255
22550
  # @param [String] fields
22256
22551
  # Selector specifying which fields to include in a partial response.
22257
22552
  # @param [String] quota_user
@@ -22345,24 +22640,14 @@ module Google
22345
22640
  execute_or_queue_command(command, &block)
22346
22641
  end
22347
22642
 
22348
- # Deletes the specified HealthCheck resource.
22643
+ # Returns permissions that a caller has on the specified resource.
22349
22644
  # @param [String] project
22350
22645
  # Project ID for this request.
22351
22646
  # @param [String] region
22352
- # Name of the region scoping this request.
22353
- # @param [String] health_check
22354
- # Name of the HealthCheck resource to delete.
22355
- # @param [String] request_id
22356
- # An optional request ID to identify requests. Specify a unique request ID so
22357
- # that if you must retry your request, the server will know to ignore the
22358
- # request if it has already been completed.
22359
- # For example, consider a situation where you make an initial request and the
22360
- # request times out. If you make the request again with the same request ID, the
22361
- # server can check if original operation with the same request ID was received,
22362
- # and if so, will ignore the second request. This prevents clients from
22363
- # accidentally creating duplicate commitments.
22364
- # The request ID must be a valid UUID with the exception that zero UUID is not
22365
- # supported (00000000-0000-0000-0000-000000000000).
22647
+ # The name of the region for this request.
22648
+ # @param [String] resource
22649
+ # Name or id of the resource for this request.
22650
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
22366
22651
  # @param [String] fields
22367
22652
  # Selector specifying which fields to include in a partial response.
22368
22653
  # @param [String] quota_user
@@ -22374,75 +22659,127 @@ module Google
22374
22659
  # Request-specific options
22375
22660
  #
22376
22661
  # @yield [result, err] Result & error if block supplied
22377
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
22662
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
22378
22663
  # @yieldparam err [StandardError] error object if request failed
22379
22664
  #
22380
- # @return [Google::Apis::ComputeBeta::Operation]
22665
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
22381
22666
  #
22382
22667
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22383
22668
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22384
22669
  # @raise [Google::Apis::AuthorizationError] Authorization is required
22385
- def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22386
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
22387
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
22388
- command.response_class = Google::Apis::ComputeBeta::Operation
22670
+ def test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22671
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
22672
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
22673
+ command.request_object = test_permissions_request_object
22674
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
22675
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
22389
22676
  command.params['project'] = project unless project.nil?
22390
22677
  command.params['region'] = region unless region.nil?
22391
- command.params['healthCheck'] = health_check unless health_check.nil?
22392
- command.query['requestId'] = request_id unless request_id.nil?
22678
+ command.params['resource'] = resource unless resource.nil?
22393
22679
  command.query['fields'] = fields unless fields.nil?
22394
22680
  command.query['quotaUser'] = quota_user unless quota_user.nil?
22395
22681
  command.query['userIp'] = user_ip unless user_ip.nil?
22396
22682
  execute_or_queue_command(command, &block)
22397
22683
  end
22398
22684
 
22399
- # Returns the specified HealthCheck resource. Gets a list of available health
22400
- # checks by making a list() request.
22685
+ # Deletes the specified HealthCheck resource.
22401
22686
  # @param [String] project
22402
22687
  # Project ID for this request.
22403
22688
  # @param [String] region
22404
22689
  # Name of the region scoping this request.
22405
22690
  # @param [String] health_check
22406
- # Name of the HealthCheck resource to return.
22407
- # @param [String] fields
22408
- # Selector specifying which fields to include in a partial response.
22409
- # @param [String] quota_user
22410
- # An opaque string that represents a user for quota purposes. Must not exceed 40
22411
- # characters.
22412
- # @param [String] user_ip
22413
- # Deprecated. Please use quotaUser instead.
22414
- # @param [Google::Apis::RequestOptions] options
22415
- # Request-specific options
22416
- #
22417
- # @yield [result, err] Result & error if block supplied
22418
- # @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
22419
- # @yieldparam err [StandardError] error object if request failed
22420
- #
22421
- # @return [Google::Apis::ComputeBeta::HealthCheck]
22422
- #
22423
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22424
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22425
- # @raise [Google::Apis::AuthorizationError] Authorization is required
22426
- def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22427
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
22428
- command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
22429
- command.response_class = Google::Apis::ComputeBeta::HealthCheck
22430
- command.params['project'] = project unless project.nil?
22431
- command.params['region'] = region unless region.nil?
22432
- command.params['healthCheck'] = health_check unless health_check.nil?
22433
- command.query['fields'] = fields unless fields.nil?
22434
- command.query['quotaUser'] = quota_user unless quota_user.nil?
22435
- command.query['userIp'] = user_ip unless user_ip.nil?
22436
- execute_or_queue_command(command, &block)
22437
- end
22438
-
22439
- # Creates a HealthCheck resource in the specified project using the data
22440
- # included in the request.
22441
- # @param [String] project
22442
- # Project ID for this request.
22443
- # @param [String] region
22444
- # Name of the region scoping this request.
22445
- # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
22691
+ # Name of the HealthCheck resource to delete.
22692
+ # @param [String] request_id
22693
+ # An optional request ID to identify requests. Specify a unique request ID so
22694
+ # that if you must retry your request, the server will know to ignore the
22695
+ # request if it has already been completed.
22696
+ # For example, consider a situation where you make an initial request and the
22697
+ # request times out. If you make the request again with the same request ID, the
22698
+ # server can check if original operation with the same request ID was received,
22699
+ # and if so, will ignore the second request. This prevents clients from
22700
+ # accidentally creating duplicate commitments.
22701
+ # The request ID must be a valid UUID with the exception that zero UUID is not
22702
+ # supported (00000000-0000-0000-0000-000000000000).
22703
+ # @param [String] fields
22704
+ # Selector specifying which fields to include in a partial response.
22705
+ # @param [String] quota_user
22706
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
22707
+ # characters.
22708
+ # @param [String] user_ip
22709
+ # Deprecated. Please use quotaUser instead.
22710
+ # @param [Google::Apis::RequestOptions] options
22711
+ # Request-specific options
22712
+ #
22713
+ # @yield [result, err] Result & error if block supplied
22714
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
22715
+ # @yieldparam err [StandardError] error object if request failed
22716
+ #
22717
+ # @return [Google::Apis::ComputeBeta::Operation]
22718
+ #
22719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22722
+ def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22723
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
22724
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
22725
+ command.response_class = Google::Apis::ComputeBeta::Operation
22726
+ command.params['project'] = project unless project.nil?
22727
+ command.params['region'] = region unless region.nil?
22728
+ command.params['healthCheck'] = health_check unless health_check.nil?
22729
+ command.query['requestId'] = request_id unless request_id.nil?
22730
+ command.query['fields'] = fields unless fields.nil?
22731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22732
+ command.query['userIp'] = user_ip unless user_ip.nil?
22733
+ execute_or_queue_command(command, &block)
22734
+ end
22735
+
22736
+ # Returns the specified HealthCheck resource. Gets a list of available health
22737
+ # checks by making a list() request.
22738
+ # @param [String] project
22739
+ # Project ID for this request.
22740
+ # @param [String] region
22741
+ # Name of the region scoping this request.
22742
+ # @param [String] health_check
22743
+ # Name of the HealthCheck resource to return.
22744
+ # @param [String] fields
22745
+ # Selector specifying which fields to include in a partial response.
22746
+ # @param [String] quota_user
22747
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
22748
+ # characters.
22749
+ # @param [String] user_ip
22750
+ # Deprecated. Please use quotaUser instead.
22751
+ # @param [Google::Apis::RequestOptions] options
22752
+ # Request-specific options
22753
+ #
22754
+ # @yield [result, err] Result & error if block supplied
22755
+ # @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
22756
+ # @yieldparam err [StandardError] error object if request failed
22757
+ #
22758
+ # @return [Google::Apis::ComputeBeta::HealthCheck]
22759
+ #
22760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22763
+ def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22764
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
22765
+ command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
22766
+ command.response_class = Google::Apis::ComputeBeta::HealthCheck
22767
+ command.params['project'] = project unless project.nil?
22768
+ command.params['region'] = region unless region.nil?
22769
+ command.params['healthCheck'] = health_check unless health_check.nil?
22770
+ command.query['fields'] = fields unless fields.nil?
22771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22772
+ command.query['userIp'] = user_ip unless user_ip.nil?
22773
+ execute_or_queue_command(command, &block)
22774
+ end
22775
+
22776
+ # Creates a HealthCheck resource in the specified project using the data
22777
+ # included in the request.
22778
+ # @param [String] project
22779
+ # Project ID for this request.
22780
+ # @param [String] region
22781
+ # Name of the region scoping this request.
22782
+ # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
22446
22783
  # @param [String] request_id
22447
22784
  # An optional request ID to identify requests. Specify a unique request ID so
22448
22785
  # that if you must retry your request, the server will know to ignore the
@@ -22529,7 +22866,7 @@ module Google
22529
22866
  # by a previous list request to get the next page of results.
22530
22867
  # @param [Boolean] return_partial_success
22531
22868
  # Opt-in for partial success behavior which provides partial results in case of
22532
- # failure. The default value is false and the logic is the same as today.
22869
+ # failure. The default value is false.
22533
22870
  # @param [String] fields
22534
22871
  # Selector specifying which fields to include in a partial response.
22535
22872
  # @param [String] quota_user
@@ -22622,6 +22959,48 @@ module Google
22622
22959
  execute_or_queue_command(command, &block)
22623
22960
  end
22624
22961
 
22962
+ # Returns permissions that a caller has on the specified resource.
22963
+ # @param [String] project
22964
+ # Project ID for this request.
22965
+ # @param [String] region
22966
+ # The name of the region for this request.
22967
+ # @param [String] resource
22968
+ # Name or id of the resource for this request.
22969
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
22970
+ # @param [String] fields
22971
+ # Selector specifying which fields to include in a partial response.
22972
+ # @param [String] quota_user
22973
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
22974
+ # characters.
22975
+ # @param [String] user_ip
22976
+ # Deprecated. Please use quotaUser instead.
22977
+ # @param [Google::Apis::RequestOptions] options
22978
+ # Request-specific options
22979
+ #
22980
+ # @yield [result, err] Result & error if block supplied
22981
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
22982
+ # @yieldparam err [StandardError] error object if request failed
22983
+ #
22984
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
22985
+ #
22986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22989
+ 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)
22990
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
22991
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
22992
+ command.request_object = test_permissions_request_object
22993
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
22994
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
22995
+ command.params['project'] = project unless project.nil?
22996
+ command.params['region'] = region unless region.nil?
22997
+ command.params['resource'] = resource unless resource.nil?
22998
+ command.query['fields'] = fields unless fields.nil?
22999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23000
+ command.query['userIp'] = user_ip unless user_ip.nil?
23001
+ execute_or_queue_command(command, &block)
23002
+ end
23003
+
22625
23004
  # Updates a HealthCheck resource in the specified project using the data
22626
23005
  # included in the request.
22627
23006
  # @param [String] project
@@ -23139,7 +23518,7 @@ module Google
23139
23518
  # by a previous list request to get the next page of results.
23140
23519
  # @param [Boolean] return_partial_success
23141
23520
  # Opt-in for partial success behavior which provides partial results in case of
23142
- # failure. The default value is false and the logic is the same as today.
23521
+ # failure. The default value is false.
23143
23522
  # @param [String] fields
23144
23523
  # Selector specifying which fields to include in a partial response.
23145
23524
  # @param [String] quota_user
@@ -23222,7 +23601,7 @@ module Google
23222
23601
  # by a previous list request to get the next page of results.
23223
23602
  # @param [Boolean] return_partial_success
23224
23603
  # Opt-in for partial success behavior which provides partial results in case of
23225
- # failure. The default value is false and the logic is the same as today.
23604
+ # failure. The default value is false.
23226
23605
  # @param [String] fields
23227
23606
  # Selector specifying which fields to include in a partial response.
23228
23607
  # @param [String] quota_user
@@ -23305,7 +23684,7 @@ module Google
23305
23684
  # by a previous list request to get the next page of results.
23306
23685
  # @param [Boolean] return_partial_success
23307
23686
  # Opt-in for partial success behavior which provides partial results in case of
23308
- # failure. The default value is false and the logic is the same as today.
23687
+ # failure. The default value is false.
23309
23688
  # @param [String] fields
23310
23689
  # Selector specifying which fields to include in a partial response.
23311
23690
  # @param [String] quota_user
@@ -23387,7 +23766,7 @@ module Google
23387
23766
  # by a previous list request to get the next page of results.
23388
23767
  # @param [Boolean] return_partial_success
23389
23768
  # Opt-in for partial success behavior which provides partial results in case of
23390
- # failure. The default value is false and the logic is the same as today.
23769
+ # failure. The default value is false.
23391
23770
  # @param [String] fields
23392
23771
  # Selector specifying which fields to include in a partial response.
23393
23772
  # @param [String] quota_user
@@ -24068,7 +24447,7 @@ module Google
24068
24447
  # by a previous list request to get the next page of results.
24069
24448
  # @param [Boolean] return_partial_success
24070
24449
  # Opt-in for partial success behavior which provides partial results in case of
24071
- # failure. The default value is false and the logic is the same as today.
24450
+ # failure. The default value is false.
24072
24451
  # @param [String] fields
24073
24452
  # Selector specifying which fields to include in a partial response.
24074
24453
  # @param [String] quota_user
@@ -24152,7 +24531,7 @@ module Google
24152
24531
  # by a previous list request to get the next page of results.
24153
24532
  # @param [Boolean] return_partial_success
24154
24533
  # Opt-in for partial success behavior which provides partial results in case of
24155
- # failure. The default value is false and the logic is the same as today.
24534
+ # failure. The default value is false.
24156
24535
  # @param [String] fields
24157
24536
  # Selector specifying which fields to include in a partial response.
24158
24537
  # @param [String] quota_user
@@ -24288,16 +24667,13 @@ module Google
24288
24667
  execute_or_queue_command(command, &block)
24289
24668
  end
24290
24669
 
24291
- # Deletes the specified network endpoint group. Note that the NEG cannot be
24292
- # deleted if it is configured as a backend of a backend service.
24670
+ # Creates multiple instances in a given region. Count specifies the number of
24671
+ # instances to create.
24293
24672
  # @param [String] project
24294
24673
  # Project ID for this request.
24295
24674
  # @param [String] region
24296
- # The name of the region where the network endpoint group is located. It should
24297
- # comply with RFC1035.
24298
- # @param [String] network_endpoint_group
24299
- # The name of the network endpoint group to delete. It should comply with
24300
- # RFC1035.
24675
+ # The name of the region for this request.
24676
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
24301
24677
  # @param [String] request_id
24302
24678
  # An optional request ID to identify requests. Specify a unique request ID so
24303
24679
  # that if you must retry your request, the server will know to ignore the
@@ -24328,13 +24704,14 @@ module Google
24328
24704
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24329
24705
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24330
24706
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24331
- def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24332
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24707
+ def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24708
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
24709
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
24710
+ command.request_object = bulk_insert_instance_resource_object
24333
24711
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24334
24712
  command.response_class = Google::Apis::ComputeBeta::Operation
24335
24713
  command.params['project'] = project unless project.nil?
24336
24714
  command.params['region'] = region unless region.nil?
24337
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24338
24715
  command.query['requestId'] = request_id unless request_id.nil?
24339
24716
  command.query['fields'] = fields unless fields.nil?
24340
24717
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24342,55 +24719,16 @@ module Google
24342
24719
  execute_or_queue_command(command, &block)
24343
24720
  end
24344
24721
 
24345
- # Returns the specified network endpoint group. Gets a list of available network
24346
- # endpoint groups by making a list() request.
24722
+ # Deletes the specified network endpoint group. Note that the NEG cannot be
24723
+ # deleted if it is configured as a backend of a backend service.
24347
24724
  # @param [String] project
24348
24725
  # Project ID for this request.
24349
24726
  # @param [String] region
24350
24727
  # The name of the region where the network endpoint group is located. It should
24351
24728
  # comply with RFC1035.
24352
24729
  # @param [String] network_endpoint_group
24353
- # The name of the network endpoint group. It should comply with RFC1035.
24354
- # @param [String] fields
24355
- # Selector specifying which fields to include in a partial response.
24356
- # @param [String] quota_user
24357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
24358
- # characters.
24359
- # @param [String] user_ip
24360
- # Deprecated. Please use quotaUser instead.
24361
- # @param [Google::Apis::RequestOptions] options
24362
- # Request-specific options
24363
- #
24364
- # @yield [result, err] Result & error if block supplied
24365
- # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroup] parsed result object
24366
- # @yieldparam err [StandardError] error object if request failed
24367
- #
24368
- # @return [Google::Apis::ComputeBeta::NetworkEndpointGroup]
24369
- #
24370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
24373
- def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24374
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24375
- command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24376
- command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup
24377
- command.params['project'] = project unless project.nil?
24378
- command.params['region'] = region unless region.nil?
24379
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24380
- command.query['fields'] = fields unless fields.nil?
24381
- command.query['quotaUser'] = quota_user unless quota_user.nil?
24382
- command.query['userIp'] = user_ip unless user_ip.nil?
24383
- execute_or_queue_command(command, &block)
24384
- end
24385
-
24386
- # Creates a network endpoint group in the specified project using the parameters
24387
- # that are included in the request.
24388
- # @param [String] project
24389
- # Project ID for this request.
24390
- # @param [String] region
24391
- # The name of the region where you want to create the network endpoint group. It
24392
- # should comply with RFC1035.
24393
- # @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_object
24730
+ # The name of the network endpoint group to delete. It should comply with
24731
+ # RFC1035.
24394
24732
  # @param [String] request_id
24395
24733
  # An optional request ID to identify requests. Specify a unique request ID so
24396
24734
  # that if you must retry your request, the server will know to ignore the
@@ -24421,14 +24759,13 @@ module Google
24421
24759
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24422
24760
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24423
24761
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24424
- def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24425
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24426
- command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24427
- command.request_object = network_endpoint_group_object
24762
+ def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24763
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24428
24764
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24429
24765
  command.response_class = Google::Apis::ComputeBeta::Operation
24430
24766
  command.params['project'] = project unless project.nil?
24431
24767
  command.params['region'] = region unless region.nil?
24768
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24432
24769
  command.query['requestId'] = request_id unless request_id.nil?
24433
24770
  command.query['fields'] = fields unless fields.nil?
24434
24771
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24436,50 +24773,15 @@ module Google
24436
24773
  execute_or_queue_command(command, &block)
24437
24774
  end
24438
24775
 
24439
- # Retrieves the list of regional network endpoint groups available to the
24440
- # specified project in the given region.
24776
+ # Returns the specified network endpoint group. Gets a list of available network
24777
+ # endpoint groups by making a list() request.
24441
24778
  # @param [String] project
24442
24779
  # Project ID for this request.
24443
24780
  # @param [String] region
24444
24781
  # The name of the region where the network endpoint group is located. It should
24445
24782
  # comply with RFC1035.
24446
- # @param [String] filter
24447
- # A filter expression that filters resources listed in the response. The
24448
- # expression must specify the field name, a comparison operator, and the value
24449
- # that you want to use for filtering. The value must be a string, a number, or a
24450
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
24451
- # For example, if you are filtering Compute Engine instances, you can exclude
24452
- # instances named `example-instance` by specifying `name != example-instance`.
24453
- # You can also filter nested fields. For example, you could specify `scheduling.
24454
- # automaticRestart = false` to include instances only if they are not scheduled
24455
- # for automatic restarts. You can use filtering on nested fields to filter based
24456
- # on resource labels.
24457
- # To filter on multiple expressions, provide each separate expression within
24458
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
24459
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
24460
- # expression. However, you can include `AND` and `OR` expressions explicitly.
24461
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
24462
- # Broadwell") AND (scheduling.automaticRestart = true) ```
24463
- # @param [Fixnum] max_results
24464
- # The maximum number of results per page that should be returned. If the number
24465
- # of available results is larger than `maxResults`, Compute Engine returns a `
24466
- # nextPageToken` that can be used to get the next page of results in subsequent
24467
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24468
- # @param [String] order_by
24469
- # Sorts list results by a certain order. By default, results are returned in
24470
- # alphanumerical order based on the resource name.
24471
- # You can also sort results in descending order based on the creation timestamp
24472
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
24473
- # creationTimestamp` field in reverse chronological order (newest result first).
24474
- # Use this to sort resources like operations so that the newest operation is
24475
- # returned first.
24476
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24477
- # @param [String] page_token
24478
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24479
- # by a previous list request to get the next page of results.
24480
- # @param [Boolean] return_partial_success
24481
- # Opt-in for partial success behavior which provides partial results in case of
24482
- # failure. The default value is false and the logic is the same as today.
24783
+ # @param [String] network_endpoint_group
24784
+ # The name of the network endpoint group. It should comply with RFC1035.
24483
24785
  # @param [String] fields
24484
24786
  # Selector specifying which fields to include in a partial response.
24485
24787
  # @param [String] quota_user
@@ -24491,38 +24793,167 @@ module Google
24491
24793
  # Request-specific options
24492
24794
  #
24493
24795
  # @yield [result, err] Result & error if block supplied
24494
- # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupList] parsed result object
24796
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroup] parsed result object
24495
24797
  # @yieldparam err [StandardError] error object if request failed
24496
24798
  #
24497
- # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList]
24799
+ # @return [Google::Apis::ComputeBeta::NetworkEndpointGroup]
24498
24800
  #
24499
24801
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24500
24802
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24501
24803
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24502
- def list_region_network_endpoint_groups(project, region, 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)
24503
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24504
- command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation
24505
- command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList
24804
+ def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24805
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24806
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24807
+ command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup
24506
24808
  command.params['project'] = project unless project.nil?
24507
24809
  command.params['region'] = region unless region.nil?
24508
- command.query['filter'] = filter unless filter.nil?
24509
- command.query['maxResults'] = max_results unless max_results.nil?
24510
- command.query['orderBy'] = order_by unless order_by.nil?
24511
- command.query['pageToken'] = page_token unless page_token.nil?
24512
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24810
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24513
24811
  command.query['fields'] = fields unless fields.nil?
24514
24812
  command.query['quotaUser'] = quota_user unless quota_user.nil?
24515
24813
  command.query['userIp'] = user_ip unless user_ip.nil?
24516
24814
  execute_or_queue_command(command, &block)
24517
24815
  end
24518
24816
 
24519
- # Deletes the specified NotificationEndpoint in the given region
24817
+ # Creates a network endpoint group in the specified project using the parameters
24818
+ # that are included in the request.
24520
24819
  # @param [String] project
24521
24820
  # Project ID for this request.
24522
24821
  # @param [String] region
24523
- # Name of the region scoping this request.
24524
- # @param [String] notification_endpoint
24525
- # Name of the NotificationEndpoint resource to delete.
24822
+ # The name of the region where you want to create the network endpoint group. It
24823
+ # should comply with RFC1035.
24824
+ # @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_object
24825
+ # @param [String] request_id
24826
+ # An optional request ID to identify requests. Specify a unique request ID so
24827
+ # that if you must retry your request, the server will know to ignore the
24828
+ # request if it has already been completed.
24829
+ # For example, consider a situation where you make an initial request and the
24830
+ # request times out. If you make the request again with the same request ID, the
24831
+ # server can check if original operation with the same request ID was received,
24832
+ # and if so, will ignore the second request. This prevents clients from
24833
+ # accidentally creating duplicate commitments.
24834
+ # The request ID must be a valid UUID with the exception that zero UUID is not
24835
+ # supported (00000000-0000-0000-0000-000000000000).
24836
+ # @param [String] fields
24837
+ # Selector specifying which fields to include in a partial response.
24838
+ # @param [String] quota_user
24839
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24840
+ # characters.
24841
+ # @param [String] user_ip
24842
+ # Deprecated. Please use quotaUser instead.
24843
+ # @param [Google::Apis::RequestOptions] options
24844
+ # Request-specific options
24845
+ #
24846
+ # @yield [result, err] Result & error if block supplied
24847
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24848
+ # @yieldparam err [StandardError] error object if request failed
24849
+ #
24850
+ # @return [Google::Apis::ComputeBeta::Operation]
24851
+ #
24852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24855
+ def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24856
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24857
+ command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24858
+ command.request_object = network_endpoint_group_object
24859
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24860
+ command.response_class = Google::Apis::ComputeBeta::Operation
24861
+ command.params['project'] = project unless project.nil?
24862
+ command.params['region'] = region unless region.nil?
24863
+ command.query['requestId'] = request_id unless request_id.nil?
24864
+ command.query['fields'] = fields unless fields.nil?
24865
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24866
+ command.query['userIp'] = user_ip unless user_ip.nil?
24867
+ execute_or_queue_command(command, &block)
24868
+ end
24869
+
24870
+ # Retrieves the list of regional network endpoint groups available to the
24871
+ # specified project in the given region.
24872
+ # @param [String] project
24873
+ # Project ID for this request.
24874
+ # @param [String] region
24875
+ # The name of the region where the network endpoint group is located. It should
24876
+ # comply with RFC1035.
24877
+ # @param [String] filter
24878
+ # A filter expression that filters resources listed in the response. The
24879
+ # expression must specify the field name, a comparison operator, and the value
24880
+ # that you want to use for filtering. The value must be a string, a number, or a
24881
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
24882
+ # For example, if you are filtering Compute Engine instances, you can exclude
24883
+ # instances named `example-instance` by specifying `name != example-instance`.
24884
+ # You can also filter nested fields. For example, you could specify `scheduling.
24885
+ # automaticRestart = false` to include instances only if they are not scheduled
24886
+ # for automatic restarts. You can use filtering on nested fields to filter based
24887
+ # on resource labels.
24888
+ # To filter on multiple expressions, provide each separate expression within
24889
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
24890
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
24891
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
24892
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
24893
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
24894
+ # @param [Fixnum] max_results
24895
+ # The maximum number of results per page that should be returned. If the number
24896
+ # of available results is larger than `maxResults`, Compute Engine returns a `
24897
+ # nextPageToken` that can be used to get the next page of results in subsequent
24898
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24899
+ # @param [String] order_by
24900
+ # Sorts list results by a certain order. By default, results are returned in
24901
+ # alphanumerical order based on the resource name.
24902
+ # You can also sort results in descending order based on the creation timestamp
24903
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
24904
+ # creationTimestamp` field in reverse chronological order (newest result first).
24905
+ # Use this to sort resources like operations so that the newest operation is
24906
+ # returned first.
24907
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24908
+ # @param [String] page_token
24909
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24910
+ # by a previous list request to get the next page of results.
24911
+ # @param [Boolean] return_partial_success
24912
+ # Opt-in for partial success behavior which provides partial results in case of
24913
+ # failure. The default value is false.
24914
+ # @param [String] fields
24915
+ # Selector specifying which fields to include in a partial response.
24916
+ # @param [String] quota_user
24917
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24918
+ # characters.
24919
+ # @param [String] user_ip
24920
+ # Deprecated. Please use quotaUser instead.
24921
+ # @param [Google::Apis::RequestOptions] options
24922
+ # Request-specific options
24923
+ #
24924
+ # @yield [result, err] Result & error if block supplied
24925
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupList] parsed result object
24926
+ # @yieldparam err [StandardError] error object if request failed
24927
+ #
24928
+ # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList]
24929
+ #
24930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24933
+ def list_region_network_endpoint_groups(project, region, 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)
24934
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24935
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation
24936
+ command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList
24937
+ command.params['project'] = project unless project.nil?
24938
+ command.params['region'] = region unless region.nil?
24939
+ command.query['filter'] = filter unless filter.nil?
24940
+ command.query['maxResults'] = max_results unless max_results.nil?
24941
+ command.query['orderBy'] = order_by unless order_by.nil?
24942
+ command.query['pageToken'] = page_token unless page_token.nil?
24943
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24944
+ command.query['fields'] = fields unless fields.nil?
24945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24946
+ command.query['userIp'] = user_ip unless user_ip.nil?
24947
+ execute_or_queue_command(command, &block)
24948
+ end
24949
+
24950
+ # Deletes the specified NotificationEndpoint in the given region
24951
+ # @param [String] project
24952
+ # Project ID for this request.
24953
+ # @param [String] region
24954
+ # Name of the region scoping this request.
24955
+ # @param [String] notification_endpoint
24956
+ # Name of the NotificationEndpoint resource to delete.
24526
24957
  # @param [String] request_id
24527
24958
  # An optional request ID to identify requests. Specify a unique request ID so
24528
24959
  # that if you must retry your request, the server will know to ignore the
@@ -24699,7 +25130,7 @@ module Google
24699
25130
  # by a previous list request to get the next page of results.
24700
25131
  # @param [Boolean] return_partial_success
24701
25132
  # Opt-in for partial success behavior which provides partial results in case of
24702
- # failure. The default value is false and the logic is the same as today.
25133
+ # failure. The default value is false.
24703
25134
  # @param [String] fields
24704
25135
  # Selector specifying which fields to include in a partial response.
24705
25136
  # @param [String] quota_user
@@ -24736,6 +25167,48 @@ module Google
24736
25167
  execute_or_queue_command(command, &block)
24737
25168
  end
24738
25169
 
25170
+ # Returns permissions that a caller has on the specified resource.
25171
+ # @param [String] project
25172
+ # Project ID for this request.
25173
+ # @param [String] region
25174
+ # The name of the region for this request.
25175
+ # @param [String] resource
25176
+ # Name or id of the resource for this request.
25177
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25178
+ # @param [String] fields
25179
+ # Selector specifying which fields to include in a partial response.
25180
+ # @param [String] quota_user
25181
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25182
+ # characters.
25183
+ # @param [String] user_ip
25184
+ # Deprecated. Please use quotaUser instead.
25185
+ # @param [Google::Apis::RequestOptions] options
25186
+ # Request-specific options
25187
+ #
25188
+ # @yield [result, err] Result & error if block supplied
25189
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25190
+ # @yieldparam err [StandardError] error object if request failed
25191
+ #
25192
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25193
+ #
25194
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25195
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25196
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25197
+ 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)
25198
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
25199
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
25200
+ command.request_object = test_permissions_request_object
25201
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
25202
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25203
+ command.params['project'] = project unless project.nil?
25204
+ command.params['region'] = region unless region.nil?
25205
+ command.params['resource'] = resource unless resource.nil?
25206
+ command.query['fields'] = fields unless fields.nil?
25207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25208
+ command.query['userIp'] = user_ip unless user_ip.nil?
25209
+ execute_or_queue_command(command, &block)
25210
+ end
25211
+
24739
25212
  # Deletes the specified region-specific Operations resource.
24740
25213
  # @param [String] project
24741
25214
  # Project ID for this request.
@@ -24853,7 +25326,7 @@ module Google
24853
25326
  # by a previous list request to get the next page of results.
24854
25327
  # @param [Boolean] return_partial_success
24855
25328
  # Opt-in for partial success behavior which provides partial results in case of
24856
- # failure. The default value is false and the logic is the same as today.
25329
+ # failure. The default value is false.
24857
25330
  # @param [String] fields
24858
25331
  # Selector specifying which fields to include in a partial response.
24859
25332
  # @param [String] quota_user
@@ -25124,7 +25597,7 @@ module Google
25124
25597
  # by a previous list request to get the next page of results.
25125
25598
  # @param [Boolean] return_partial_success
25126
25599
  # Opt-in for partial success behavior which provides partial results in case of
25127
- # failure. The default value is false and the logic is the same as today.
25600
+ # failure. The default value is false.
25128
25601
  # @param [String] fields
25129
25602
  # Selector specifying which fields to include in a partial response.
25130
25603
  # @param [String] quota_user
@@ -25161,6 +25634,48 @@ module Google
25161
25634
  execute_or_queue_command(command, &block)
25162
25635
  end
25163
25636
 
25637
+ # Returns permissions that a caller has on the specified resource and region.
25638
+ # @param [String] project
25639
+ # Project ID for this request.
25640
+ # @param [String] region
25641
+ # The name of the region for this request.
25642
+ # @param [String] resource
25643
+ # Name or id of the resource for this request.
25644
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25645
+ # @param [String] fields
25646
+ # Selector specifying which fields to include in a partial response.
25647
+ # @param [String] quota_user
25648
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25649
+ # characters.
25650
+ # @param [String] user_ip
25651
+ # Deprecated. Please use quotaUser instead.
25652
+ # @param [Google::Apis::RequestOptions] options
25653
+ # Request-specific options
25654
+ #
25655
+ # @yield [result, err] Result & error if block supplied
25656
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25657
+ # @yieldparam err [StandardError] error object if request failed
25658
+ #
25659
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25660
+ #
25661
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25662
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25663
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25664
+ def test_region_ssl_certificate_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25665
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions', options)
25666
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
25667
+ command.request_object = test_permissions_request_object
25668
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
25669
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25670
+ command.params['project'] = project unless project.nil?
25671
+ command.params['region'] = region unless region.nil?
25672
+ command.params['resource'] = resource unless resource.nil?
25673
+ command.query['fields'] = fields unless fields.nil?
25674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25675
+ command.query['userIp'] = user_ip unless user_ip.nil?
25676
+ execute_or_queue_command(command, &block)
25677
+ end
25678
+
25164
25679
  # Deletes the specified TargetHttpProxy resource.
25165
25680
  # @param [String] project
25166
25681
  # Project ID for this request.
@@ -25346,7 +25861,7 @@ module Google
25346
25861
  # by a previous list request to get the next page of results.
25347
25862
  # @param [Boolean] return_partial_success
25348
25863
  # Opt-in for partial success behavior which provides partial results in case of
25349
- # failure. The default value is false and the logic is the same as today.
25864
+ # failure. The default value is false.
25350
25865
  # @param [String] fields
25351
25866
  # Selector specifying which fields to include in a partial response.
25352
25867
  # @param [String] quota_user
@@ -25437,24 +25952,14 @@ module Google
25437
25952
  execute_or_queue_command(command, &block)
25438
25953
  end
25439
25954
 
25440
- # Deletes the specified TargetHttpsProxy resource.
25955
+ # Returns permissions that a caller has on the specified resource.
25441
25956
  # @param [String] project
25442
25957
  # Project ID for this request.
25443
25958
  # @param [String] region
25444
- # Name of the region scoping this request.
25445
- # @param [String] target_https_proxy
25446
- # Name of the TargetHttpsProxy resource to delete.
25447
- # @param [String] request_id
25448
- # An optional request ID to identify requests. Specify a unique request ID so
25449
- # that if you must retry your request, the server will know to ignore the
25450
- # request if it has already been completed.
25451
- # For example, consider a situation where you make an initial request and the
25452
- # request times out. If you make the request again with the same request ID, the
25453
- # server can check if original operation with the same request ID was received,
25454
- # and if so, will ignore the second request. This prevents clients from
25455
- # accidentally creating duplicate commitments.
25456
- # The request ID must be a valid UUID with the exception that zero UUID is not
25457
- # supported (00000000-0000-0000-0000-000000000000).
25959
+ # The name of the region for this request.
25960
+ # @param [String] resource
25961
+ # Name or id of the resource for this request.
25962
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25458
25963
  # @param [String] fields
25459
25964
  # Selector specifying which fields to include in a partial response.
25460
25965
  # @param [String] quota_user
@@ -25466,75 +25971,127 @@ module Google
25466
25971
  # Request-specific options
25467
25972
  #
25468
25973
  # @yield [result, err] Result & error if block supplied
25469
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
25974
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25470
25975
  # @yieldparam err [StandardError] error object if request failed
25471
25976
  #
25472
- # @return [Google::Apis::ComputeBeta::Operation]
25977
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25473
25978
  #
25474
25979
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25475
25980
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25476
25981
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25477
- def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25478
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25479
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
25480
- command.response_class = Google::Apis::ComputeBeta::Operation
25982
+ def test_region_target_http_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25983
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions', options)
25984
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
25985
+ command.request_object = test_permissions_request_object
25986
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
25987
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25481
25988
  command.params['project'] = project unless project.nil?
25482
25989
  command.params['region'] = region unless region.nil?
25483
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25484
- command.query['requestId'] = request_id unless request_id.nil?
25990
+ command.params['resource'] = resource unless resource.nil?
25485
25991
  command.query['fields'] = fields unless fields.nil?
25486
25992
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25487
25993
  command.query['userIp'] = user_ip unless user_ip.nil?
25488
25994
  execute_or_queue_command(command, &block)
25489
25995
  end
25490
25996
 
25491
- # Returns the specified TargetHttpsProxy resource in the specified region. Gets
25492
- # a list of available target HTTP proxies by making a list() request.
25997
+ # Deletes the specified TargetHttpsProxy resource.
25493
25998
  # @param [String] project
25494
25999
  # Project ID for this request.
25495
26000
  # @param [String] region
25496
26001
  # Name of the region scoping this request.
25497
26002
  # @param [String] target_https_proxy
25498
- # Name of the TargetHttpsProxy resource to return.
25499
- # @param [String] fields
25500
- # Selector specifying which fields to include in a partial response.
25501
- # @param [String] quota_user
25502
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25503
- # characters.
25504
- # @param [String] user_ip
25505
- # Deprecated. Please use quotaUser instead.
25506
- # @param [Google::Apis::RequestOptions] options
25507
- # Request-specific options
25508
- #
25509
- # @yield [result, err] Result & error if block supplied
25510
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
25511
- # @yieldparam err [StandardError] error object if request failed
25512
- #
25513
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
25514
- #
25515
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25516
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25517
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25518
- def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25519
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25520
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
25521
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
25522
- command.params['project'] = project unless project.nil?
25523
- command.params['region'] = region unless region.nil?
25524
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25525
- command.query['fields'] = fields unless fields.nil?
25526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25527
- command.query['userIp'] = user_ip unless user_ip.nil?
25528
- execute_or_queue_command(command, &block)
25529
- end
25530
-
25531
- # Creates a TargetHttpsProxy resource in the specified project and region using
25532
- # the data included in the request.
25533
- # @param [String] project
25534
- # Project ID for this request.
25535
- # @param [String] region
25536
- # Name of the region scoping this request.
25537
- # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
26003
+ # Name of the TargetHttpsProxy resource to delete.
26004
+ # @param [String] request_id
26005
+ # An optional request ID to identify requests. Specify a unique request ID so
26006
+ # that if you must retry your request, the server will know to ignore the
26007
+ # request if it has already been completed.
26008
+ # For example, consider a situation where you make an initial request and the
26009
+ # request times out. If you make the request again with the same request ID, the
26010
+ # server can check if original operation with the same request ID was received,
26011
+ # and if so, will ignore the second request. This prevents clients from
26012
+ # accidentally creating duplicate commitments.
26013
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26014
+ # supported (00000000-0000-0000-0000-000000000000).
26015
+ # @param [String] fields
26016
+ # Selector specifying which fields to include in a partial response.
26017
+ # @param [String] quota_user
26018
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26019
+ # characters.
26020
+ # @param [String] user_ip
26021
+ # Deprecated. Please use quotaUser instead.
26022
+ # @param [Google::Apis::RequestOptions] options
26023
+ # Request-specific options
26024
+ #
26025
+ # @yield [result, err] Result & error if block supplied
26026
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
26027
+ # @yieldparam err [StandardError] error object if request failed
26028
+ #
26029
+ # @return [Google::Apis::ComputeBeta::Operation]
26030
+ #
26031
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26032
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26033
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26034
+ def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26035
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
26036
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
26037
+ command.response_class = Google::Apis::ComputeBeta::Operation
26038
+ command.params['project'] = project unless project.nil?
26039
+ command.params['region'] = region unless region.nil?
26040
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
26041
+ command.query['requestId'] = request_id unless request_id.nil?
26042
+ command.query['fields'] = fields unless fields.nil?
26043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26044
+ command.query['userIp'] = user_ip unless user_ip.nil?
26045
+ execute_or_queue_command(command, &block)
26046
+ end
26047
+
26048
+ # Returns the specified TargetHttpsProxy resource in the specified region. Gets
26049
+ # a list of available target HTTP proxies by making a list() request.
26050
+ # @param [String] project
26051
+ # Project ID for this request.
26052
+ # @param [String] region
26053
+ # Name of the region scoping this request.
26054
+ # @param [String] target_https_proxy
26055
+ # Name of the TargetHttpsProxy resource to return.
26056
+ # @param [String] fields
26057
+ # Selector specifying which fields to include in a partial response.
26058
+ # @param [String] quota_user
26059
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26060
+ # characters.
26061
+ # @param [String] user_ip
26062
+ # Deprecated. Please use quotaUser instead.
26063
+ # @param [Google::Apis::RequestOptions] options
26064
+ # Request-specific options
26065
+ #
26066
+ # @yield [result, err] Result & error if block supplied
26067
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
26068
+ # @yieldparam err [StandardError] error object if request failed
26069
+ #
26070
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
26071
+ #
26072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26075
+ def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26076
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
26077
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
26078
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
26079
+ command.params['project'] = project unless project.nil?
26080
+ command.params['region'] = region unless region.nil?
26081
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
26082
+ command.query['fields'] = fields unless fields.nil?
26083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26084
+ command.query['userIp'] = user_ip unless user_ip.nil?
26085
+ execute_or_queue_command(command, &block)
26086
+ end
26087
+
26088
+ # Creates a TargetHttpsProxy resource in the specified project and region using
26089
+ # the data included in the request.
26090
+ # @param [String] project
26091
+ # Project ID for this request.
26092
+ # @param [String] region
26093
+ # Name of the region scoping this request.
26094
+ # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
25538
26095
  # @param [String] request_id
25539
26096
  # An optional request ID to identify requests. Specify a unique request ID so
25540
26097
  # that if you must retry your request, the server will know to ignore the
@@ -25622,7 +26179,7 @@ module Google
25622
26179
  # by a previous list request to get the next page of results.
25623
26180
  # @param [Boolean] return_partial_success
25624
26181
  # Opt-in for partial success behavior which provides partial results in case of
25625
- # failure. The default value is false and the logic is the same as today.
26182
+ # failure. The default value is false.
25626
26183
  # @param [String] fields
25627
26184
  # Selector specifying which fields to include in a partial response.
25628
26185
  # @param [String] quota_user
@@ -25767,6 +26324,48 @@ module Google
25767
26324
  execute_or_queue_command(command, &block)
25768
26325
  end
25769
26326
 
26327
+ # Returns permissions that a caller has on the specified resource.
26328
+ # @param [String] project
26329
+ # Project ID for this request.
26330
+ # @param [String] region
26331
+ # The name of the region for this request.
26332
+ # @param [String] resource
26333
+ # Name or id of the resource for this request.
26334
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
26335
+ # @param [String] fields
26336
+ # Selector specifying which fields to include in a partial response.
26337
+ # @param [String] quota_user
26338
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26339
+ # characters.
26340
+ # @param [String] user_ip
26341
+ # Deprecated. Please use quotaUser instead.
26342
+ # @param [Google::Apis::RequestOptions] options
26343
+ # Request-specific options
26344
+ #
26345
+ # @yield [result, err] Result & error if block supplied
26346
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
26347
+ # @yieldparam err [StandardError] error object if request failed
26348
+ #
26349
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
26350
+ #
26351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26354
+ def test_region_target_https_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26355
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions', options)
26356
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
26357
+ command.request_object = test_permissions_request_object
26358
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
26359
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
26360
+ command.params['project'] = project unless project.nil?
26361
+ command.params['region'] = region unless region.nil?
26362
+ command.params['resource'] = resource unless resource.nil?
26363
+ command.query['fields'] = fields unless fields.nil?
26364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26365
+ command.query['userIp'] = user_ip unless user_ip.nil?
26366
+ execute_or_queue_command(command, &block)
26367
+ end
26368
+
25770
26369
  # Deletes the specified UrlMap resource.
25771
26370
  # @param [String] project
25772
26371
  # Project ID for this request.
@@ -25982,7 +26581,7 @@ module Google
25982
26581
  # by a previous list request to get the next page of results.
25983
26582
  # @param [Boolean] return_partial_success
25984
26583
  # Opt-in for partial success behavior which provides partial results in case of
25985
- # failure. The default value is false and the logic is the same as today.
26584
+ # failure. The default value is false.
25986
26585
  # @param [String] fields
25987
26586
  # Selector specifying which fields to include in a partial response.
25988
26587
  # @param [String] quota_user
@@ -26066,6 +26665,48 @@ module Google
26066
26665
  execute_or_queue_command(command, &block)
26067
26666
  end
26068
26667
 
26668
+ # Returns permissions that a caller has on the specified resource.
26669
+ # @param [String] project
26670
+ # Project ID for this request.
26671
+ # @param [String] region
26672
+ # The name of the region for this request.
26673
+ # @param [String] resource
26674
+ # Name or id of the resource for this request.
26675
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
26676
+ # @param [String] fields
26677
+ # Selector specifying which fields to include in a partial response.
26678
+ # @param [String] quota_user
26679
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26680
+ # characters.
26681
+ # @param [String] user_ip
26682
+ # Deprecated. Please use quotaUser instead.
26683
+ # @param [Google::Apis::RequestOptions] options
26684
+ # Request-specific options
26685
+ #
26686
+ # @yield [result, err] Result & error if block supplied
26687
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
26688
+ # @yieldparam err [StandardError] error object if request failed
26689
+ #
26690
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
26691
+ #
26692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26695
+ def test_region_url_map_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26696
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions', options)
26697
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
26698
+ command.request_object = test_permissions_request_object
26699
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
26700
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
26701
+ command.params['project'] = project unless project.nil?
26702
+ command.params['region'] = region unless region.nil?
26703
+ command.params['resource'] = resource unless resource.nil?
26704
+ command.query['fields'] = fields unless fields.nil?
26705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26706
+ command.query['userIp'] = user_ip unless user_ip.nil?
26707
+ execute_or_queue_command(command, &block)
26708
+ end
26709
+
26069
26710
  # Updates the specified UrlMap resource with the data included in the request.
26070
26711
  # @param [String] project
26071
26712
  # Project ID for this request.
@@ -26230,7 +26871,7 @@ module Google
26230
26871
  # by a previous list request to get the next page of results.
26231
26872
  # @param [Boolean] return_partial_success
26232
26873
  # Opt-in for partial success behavior which provides partial results in case of
26233
- # failure. The default value is false and the logic is the same as today.
26874
+ # failure. The default value is false.
26234
26875
  # @param [String] fields
26235
26876
  # Selector specifying which fields to include in a partial response.
26236
26877
  # @param [String] quota_user
@@ -26312,7 +26953,7 @@ module Google
26312
26953
  # by a previous list request to get the next page of results.
26313
26954
  # @param [Boolean] return_partial_success
26314
26955
  # Opt-in for partial success behavior which provides partial results in case of
26315
- # failure. The default value is false and the logic is the same as today.
26956
+ # failure. The default value is false.
26316
26957
  # @param [String] fields
26317
26958
  # Selector specifying which fields to include in a partial response.
26318
26959
  # @param [String] quota_user
@@ -26576,7 +27217,7 @@ module Google
26576
27217
  # by a previous list request to get the next page of results.
26577
27218
  # @param [Boolean] return_partial_success
26578
27219
  # Opt-in for partial success behavior which provides partial results in case of
26579
- # failure. The default value is false and the logic is the same as today.
27220
+ # failure. The default value is false.
26580
27221
  # @param [String] fields
26581
27222
  # Selector specifying which fields to include in a partial response.
26582
27223
  # @param [String] quota_user
@@ -26799,7 +27440,7 @@ module Google
26799
27440
  # by a previous list request to get the next page of results.
26800
27441
  # @param [Boolean] return_partial_success
26801
27442
  # Opt-in for partial success behavior which provides partial results in case of
26802
- # failure. The default value is false and the logic is the same as today.
27443
+ # failure. The default value is false.
26803
27444
  # @param [String] fields
26804
27445
  # Selector specifying which fields to include in a partial response.
26805
27446
  # @param [String] quota_user
@@ -27062,7 +27703,7 @@ module Google
27062
27703
  # by a previous list request to get the next page of results.
27063
27704
  # @param [Boolean] return_partial_success
27064
27705
  # Opt-in for partial success behavior which provides partial results in case of
27065
- # failure. The default value is false and the logic is the same as today.
27706
+ # failure. The default value is false.
27066
27707
  # @param [String] fields
27067
27708
  # Selector specifying which fields to include in a partial response.
27068
27709
  # @param [String] quota_user
@@ -27230,7 +27871,7 @@ module Google
27230
27871
  # by a previous list request to get the next page of results.
27231
27872
  # @param [Boolean] return_partial_success
27232
27873
  # Opt-in for partial success behavior which provides partial results in case of
27233
- # failure. The default value is false and the logic is the same as today.
27874
+ # failure. The default value is false.
27234
27875
  # @param [String] fields
27235
27876
  # Selector specifying which fields to include in a partial response.
27236
27877
  # @param [String] quota_user
@@ -27406,7 +28047,7 @@ module Google
27406
28047
  # by a previous list request to get the next page of results.
27407
28048
  # @param [Boolean] return_partial_success
27408
28049
  # Opt-in for partial success behavior which provides partial results in case of
27409
- # failure. The default value is false and the logic is the same as today.
28050
+ # failure. The default value is false.
27410
28051
  # @param [String] fields
27411
28052
  # Selector specifying which fields to include in a partial response.
27412
28053
  # @param [String] quota_user
@@ -27577,7 +28218,7 @@ module Google
27577
28218
  # by a previous list request to get the next page of results.
27578
28219
  # @param [Boolean] return_partial_success
27579
28220
  # Opt-in for partial success behavior which provides partial results in case of
27580
- # failure. The default value is false and the logic is the same as today.
28221
+ # failure. The default value is false.
27581
28222
  # @param [String] fields
27582
28223
  # Selector specifying which fields to include in a partial response.
27583
28224
  # @param [String] quota_user
@@ -27985,7 +28626,7 @@ module Google
27985
28626
  # by a previous list request to get the next page of results.
27986
28627
  # @param [Boolean] return_partial_success
27987
28628
  # Opt-in for partial success behavior which provides partial results in case of
27988
- # failure. The default value is false and the logic is the same as today.
28629
+ # failure. The default value is false.
27989
28630
  # @param [String] fields
27990
28631
  # Selector specifying which fields to include in a partial response.
27991
28632
  # @param [String] quota_user
@@ -28316,7 +28957,7 @@ module Google
28316
28957
  # by a previous list request to get the next page of results.
28317
28958
  # @param [Boolean] return_partial_success
28318
28959
  # Opt-in for partial success behavior which provides partial results in case of
28319
- # failure. The default value is false and the logic is the same as today.
28960
+ # failure. The default value is false.
28320
28961
  # @param [String] fields
28321
28962
  # Selector specifying which fields to include in a partial response.
28322
28963
  # @param [String] quota_user
@@ -28392,7 +29033,7 @@ module Google
28392
29033
  # by a previous list request to get the next page of results.
28393
29034
  # @param [Boolean] return_partial_success
28394
29035
  # Opt-in for partial success behavior which provides partial results in case of
28395
- # failure. The default value is false and the logic is the same as today.
29036
+ # failure. The default value is false.
28396
29037
  # @param [String] fields
28397
29038
  # Selector specifying which fields to include in a partial response.
28398
29039
  # @param [String] quota_user
@@ -28644,6 +29285,90 @@ module Google
28644
29285
  execute_or_queue_command(command, &block)
28645
29286
  end
28646
29287
 
29288
+ # Retrieves the list of all ServiceAttachment resources, regional and global,
29289
+ # available to the specified project.
29290
+ # @param [String] project
29291
+ # Name of the project scoping this request.
29292
+ # @param [String] filter
29293
+ # A filter expression that filters resources listed in the response. The
29294
+ # expression must specify the field name, a comparison operator, and the value
29295
+ # that you want to use for filtering. The value must be a string, a number, or a
29296
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
29297
+ # For example, if you are filtering Compute Engine instances, you can exclude
29298
+ # instances named `example-instance` by specifying `name != example-instance`.
29299
+ # You can also filter nested fields. For example, you could specify `scheduling.
29300
+ # automaticRestart = false` to include instances only if they are not scheduled
29301
+ # for automatic restarts. You can use filtering on nested fields to filter based
29302
+ # on resource labels.
29303
+ # To filter on multiple expressions, provide each separate expression within
29304
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
29305
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
29306
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
29307
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
29308
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
29309
+ # @param [Boolean] include_all_scopes
29310
+ # Indicates whether every visible scope for each scope type (zone, region,
29311
+ # global) should be included in the response. For new resource types added after
29312
+ # this field, the flag has no effect as new resource types will always include
29313
+ # every visible scope for each scope type in response. For resource types which
29314
+ # predate this field, if this flag is omitted or false, only scopes of the scope
29315
+ # types where the resource type is expected to be found will be included.
29316
+ # @param [Fixnum] max_results
29317
+ # The maximum number of results per page that should be returned. If the number
29318
+ # of available results is larger than `maxResults`, Compute Engine returns a `
29319
+ # nextPageToken` that can be used to get the next page of results in subsequent
29320
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
29321
+ # @param [String] order_by
29322
+ # Sorts list results by a certain order. By default, results are returned in
29323
+ # alphanumerical order based on the resource name.
29324
+ # You can also sort results in descending order based on the creation timestamp
29325
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
29326
+ # creationTimestamp` field in reverse chronological order (newest result first).
29327
+ # Use this to sort resources like operations so that the newest operation is
29328
+ # returned first.
29329
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
29330
+ # @param [String] page_token
29331
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
29332
+ # by a previous list request to get the next page of results.
29333
+ # @param [Boolean] return_partial_success
29334
+ # Opt-in for partial success behavior which provides partial results in case of
29335
+ # failure. The default value is false.
29336
+ # @param [String] fields
29337
+ # Selector specifying which fields to include in a partial response.
29338
+ # @param [String] quota_user
29339
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29340
+ # characters.
29341
+ # @param [String] user_ip
29342
+ # Deprecated. Please use quotaUser instead.
29343
+ # @param [Google::Apis::RequestOptions] options
29344
+ # Request-specific options
29345
+ #
29346
+ # @yield [result, err] Result & error if block supplied
29347
+ # @yieldparam result [Google::Apis::ComputeBeta::ServiceAttachmentAggregatedList] parsed result object
29348
+ # @yieldparam err [StandardError] error object if request failed
29349
+ #
29350
+ # @return [Google::Apis::ComputeBeta::ServiceAttachmentAggregatedList]
29351
+ #
29352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29355
+ def aggregated_service_attachment_list(project, filter: nil, include_all_scopes: 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)
29356
+ command = make_simple_command(:get, 'projects/{project}/aggregated/serviceAttachments', options)
29357
+ command.response_representation = Google::Apis::ComputeBeta::ServiceAttachmentAggregatedList::Representation
29358
+ command.response_class = Google::Apis::ComputeBeta::ServiceAttachmentAggregatedList
29359
+ command.params['project'] = project unless project.nil?
29360
+ command.query['filter'] = filter unless filter.nil?
29361
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
29362
+ command.query['maxResults'] = max_results unless max_results.nil?
29363
+ command.query['orderBy'] = order_by unless order_by.nil?
29364
+ command.query['pageToken'] = page_token unless page_token.nil?
29365
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
29366
+ command.query['fields'] = fields unless fields.nil?
29367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29368
+ command.query['userIp'] = user_ip unless user_ip.nil?
29369
+ execute_or_queue_command(command, &block)
29370
+ end
29371
+
28647
29372
  # Deletes the specified ServiceAttachment in the given scope
28648
29373
  # @param [String] project
28649
29374
  # Project ID for this request.
@@ -28734,6 +29459,49 @@ module Google
28734
29459
  execute_or_queue_command(command, &block)
28735
29460
  end
28736
29461
 
29462
+ # Gets the access control policy for a resource. May be empty if no such policy
29463
+ # or resource exists.
29464
+ # @param [String] project
29465
+ # Project ID for this request.
29466
+ # @param [String] region
29467
+ # The name of the region for this request.
29468
+ # @param [String] resource
29469
+ # Name or id of the resource for this request.
29470
+ # @param [Fixnum] options_requested_policy_version
29471
+ # Requested IAM Policy version.
29472
+ # @param [String] fields
29473
+ # Selector specifying which fields to include in a partial response.
29474
+ # @param [String] quota_user
29475
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29476
+ # characters.
29477
+ # @param [String] user_ip
29478
+ # Deprecated. Please use quotaUser instead.
29479
+ # @param [Google::Apis::RequestOptions] options
29480
+ # Request-specific options
29481
+ #
29482
+ # @yield [result, err] Result & error if block supplied
29483
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
29484
+ # @yieldparam err [StandardError] error object if request failed
29485
+ #
29486
+ # @return [Google::Apis::ComputeBeta::Policy]
29487
+ #
29488
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29489
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29490
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29491
+ def get_service_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29492
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options)
29493
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
29494
+ command.response_class = Google::Apis::ComputeBeta::Policy
29495
+ command.params['project'] = project unless project.nil?
29496
+ command.params['region'] = region unless region.nil?
29497
+ command.params['resource'] = resource unless resource.nil?
29498
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
29499
+ command.query['fields'] = fields unless fields.nil?
29500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29501
+ command.query['userIp'] = user_ip unless user_ip.nil?
29502
+ execute_or_queue_command(command, &block)
29503
+ end
29504
+
28737
29505
  # Creates a ServiceAttachment in the specified project in the given scope using
28738
29506
  # the parameters that are included in the request.
28739
29507
  # @param [String] project
@@ -28827,7 +29595,7 @@ module Google
28827
29595
  # by a previous list request to get the next page of results.
28828
29596
  # @param [Boolean] return_partial_success
28829
29597
  # Opt-in for partial success behavior which provides partial results in case of
28830
- # failure. The default value is false and the logic is the same as today.
29598
+ # failure. The default value is false.
28831
29599
  # @param [String] fields
28832
29600
  # Selector specifying which fields to include in a partial response.
28833
29601
  # @param [String] quota_user
@@ -28864,6 +29632,91 @@ module Google
28864
29632
  execute_or_queue_command(command, &block)
28865
29633
  end
28866
29634
 
29635
+ # Sets the access control policy on the specified resource. Replaces any
29636
+ # existing policy.
29637
+ # @param [String] project
29638
+ # Project ID for this request.
29639
+ # @param [String] region
29640
+ # The name of the region for this request.
29641
+ # @param [String] resource
29642
+ # Name or id of the resource for this request.
29643
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
29644
+ # @param [String] fields
29645
+ # Selector specifying which fields to include in a partial response.
29646
+ # @param [String] quota_user
29647
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29648
+ # characters.
29649
+ # @param [String] user_ip
29650
+ # Deprecated. Please use quotaUser instead.
29651
+ # @param [Google::Apis::RequestOptions] options
29652
+ # Request-specific options
29653
+ #
29654
+ # @yield [result, err] Result & error if block supplied
29655
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
29656
+ # @yieldparam err [StandardError] error object if request failed
29657
+ #
29658
+ # @return [Google::Apis::ComputeBeta::Policy]
29659
+ #
29660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29663
+ def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29664
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
29665
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
29666
+ command.request_object = region_set_policy_request_object
29667
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
29668
+ command.response_class = Google::Apis::ComputeBeta::Policy
29669
+ command.params['project'] = project unless project.nil?
29670
+ command.params['region'] = region unless region.nil?
29671
+ command.params['resource'] = resource unless resource.nil?
29672
+ command.query['fields'] = fields unless fields.nil?
29673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29674
+ command.query['userIp'] = user_ip unless user_ip.nil?
29675
+ execute_or_queue_command(command, &block)
29676
+ end
29677
+
29678
+ # Returns permissions that a caller has on the specified resource.
29679
+ # @param [String] project
29680
+ # Project ID for this request.
29681
+ # @param [String] region
29682
+ # The name of the region for this request.
29683
+ # @param [String] resource
29684
+ # Name or id of the resource for this request.
29685
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
29686
+ # @param [String] fields
29687
+ # Selector specifying which fields to include in a partial response.
29688
+ # @param [String] quota_user
29689
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29690
+ # characters.
29691
+ # @param [String] user_ip
29692
+ # Deprecated. Please use quotaUser instead.
29693
+ # @param [Google::Apis::RequestOptions] options
29694
+ # Request-specific options
29695
+ #
29696
+ # @yield [result, err] Result & error if block supplied
29697
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
29698
+ # @yieldparam err [StandardError] error object if request failed
29699
+ #
29700
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
29701
+ #
29702
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29703
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29704
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29705
+ def test_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29706
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
29707
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
29708
+ command.request_object = test_permissions_request_object
29709
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
29710
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
29711
+ command.params['project'] = project unless project.nil?
29712
+ command.params['region'] = region unless region.nil?
29713
+ command.params['resource'] = resource unless resource.nil?
29714
+ command.query['fields'] = fields unless fields.nil?
29715
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29716
+ command.query['userIp'] = user_ip unless user_ip.nil?
29717
+ execute_or_queue_command(command, &block)
29718
+ end
29719
+
28867
29720
  # Deletes the specified Snapshot resource. Keep in mind that deleting a single
28868
29721
  # snapshot might not necessarily delete all the data on that snapshot. If any
28869
29722
  # data on the snapshot that is marked for deletion is needed for subsequent
@@ -29082,7 +29935,7 @@ module Google
29082
29935
  # by a previous list request to get the next page of results.
29083
29936
  # @param [Boolean] return_partial_success
29084
29937
  # Opt-in for partial success behavior which provides partial results in case of
29085
- # failure. The default value is false and the logic is the same as today.
29938
+ # failure. The default value is false.
29086
29939
  # @param [String] fields
29087
29940
  # Selector specifying which fields to include in a partial response.
29088
29941
  # @param [String] quota_user
@@ -29284,7 +30137,7 @@ module Google
29284
30137
  # by a previous list request to get the next page of results.
29285
30138
  # @param [Boolean] return_partial_success
29286
30139
  # Opt-in for partial success behavior which provides partial results in case of
29287
- # failure. The default value is false and the logic is the same as today.
30140
+ # failure. The default value is false.
29288
30141
  # @param [String] fields
29289
30142
  # Selector specifying which fields to include in a partial response.
29290
30143
  # @param [String] quota_user
@@ -29495,7 +30348,7 @@ module Google
29495
30348
  # by a previous list request to get the next page of results.
29496
30349
  # @param [Boolean] return_partial_success
29497
30350
  # Opt-in for partial success behavior which provides partial results in case of
29498
- # failure. The default value is false and the logic is the same as today.
30351
+ # failure. The default value is false.
29499
30352
  # @param [String] fields
29500
30353
  # Selector specifying which fields to include in a partial response.
29501
30354
  # @param [String] quota_user
@@ -29745,7 +30598,7 @@ module Google
29745
30598
  # by a previous list request to get the next page of results.
29746
30599
  # @param [Boolean] return_partial_success
29747
30600
  # Opt-in for partial success behavior which provides partial results in case of
29748
- # failure. The default value is false and the logic is the same as today.
30601
+ # failure. The default value is false.
29749
30602
  # @param [String] fields
29750
30603
  # Selector specifying which fields to include in a partial response.
29751
30604
  # @param [String] quota_user
@@ -29821,7 +30674,7 @@ module Google
29821
30674
  # by a previous list request to get the next page of results.
29822
30675
  # @param [Boolean] return_partial_success
29823
30676
  # Opt-in for partial success behavior which provides partial results in case of
29824
- # failure. The default value is false and the logic is the same as today.
30677
+ # failure. The default value is false.
29825
30678
  # @param [String] fields
29826
30679
  # Selector specifying which fields to include in a partial response.
29827
30680
  # @param [String] quota_user
@@ -29994,7 +30847,7 @@ module Google
29994
30847
  # by a previous list request to get the next page of results.
29995
30848
  # @param [Boolean] return_partial_success
29996
30849
  # Opt-in for partial success behavior which provides partial results in case of
29997
- # failure. The default value is false and the logic is the same as today.
30850
+ # failure. The default value is false.
29998
30851
  # @param [String] fields
29999
30852
  # Selector specifying which fields to include in a partial response.
30000
30853
  # @param [String] quota_user
@@ -30312,7 +31165,7 @@ module Google
30312
31165
  # by a previous list request to get the next page of results.
30313
31166
  # @param [Boolean] return_partial_success
30314
31167
  # Opt-in for partial success behavior which provides partial results in case of
30315
- # failure. The default value is false and the logic is the same as today.
31168
+ # failure. The default value is false.
30316
31169
  # @param [String] fields
30317
31170
  # Selector specifying which fields to include in a partial response.
30318
31171
  # @param [String] quota_user
@@ -30388,7 +31241,7 @@ module Google
30388
31241
  # by a previous list request to get the next page of results.
30389
31242
  # @param [Boolean] return_partial_success
30390
31243
  # Opt-in for partial success behavior which provides partial results in case of
30391
- # failure. The default value is false and the logic is the same as today.
31244
+ # failure. The default value is false.
30392
31245
  # @param [String] fields
30393
31246
  # Selector specifying which fields to include in a partial response.
30394
31247
  # @param [String] quota_user
@@ -30802,7 +31655,7 @@ module Google
30802
31655
  # by a previous list request to get the next page of results.
30803
31656
  # @param [Boolean] return_partial_success
30804
31657
  # Opt-in for partial success behavior which provides partial results in case of
30805
- # failure. The default value is false and the logic is the same as today.
31658
+ # failure. The default value is false.
30806
31659
  # @param [String] fields
30807
31660
  # Selector specifying which fields to include in a partial response.
30808
31661
  # @param [String] quota_user
@@ -30891,6 +31744,45 @@ module Google
30891
31744
  execute_or_queue_command(command, &block)
30892
31745
  end
30893
31746
 
31747
+ # Returns permissions that a caller has on the specified resource.
31748
+ # @param [String] project
31749
+ # Project ID for this request.
31750
+ # @param [String] resource
31751
+ # Name or id of the resource for this request.
31752
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
31753
+ # @param [String] fields
31754
+ # Selector specifying which fields to include in a partial response.
31755
+ # @param [String] quota_user
31756
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
31757
+ # characters.
31758
+ # @param [String] user_ip
31759
+ # Deprecated. Please use quotaUser instead.
31760
+ # @param [Google::Apis::RequestOptions] options
31761
+ # Request-specific options
31762
+ #
31763
+ # @yield [result, err] Result & error if block supplied
31764
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
31765
+ # @yieldparam err [StandardError] error object if request failed
31766
+ #
31767
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
31768
+ #
31769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31772
+ def test_target_grpc_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31773
+ command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions', options)
31774
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
31775
+ command.request_object = test_permissions_request_object
31776
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
31777
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
31778
+ command.params['project'] = project unless project.nil?
31779
+ command.params['resource'] = resource unless resource.nil?
31780
+ command.query['fields'] = fields unless fields.nil?
31781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31782
+ command.query['userIp'] = user_ip unless user_ip.nil?
31783
+ execute_or_queue_command(command, &block)
31784
+ end
31785
+
30894
31786
  # Retrieves the list of all TargetHttpProxy resources, regional and global,
30895
31787
  # available to the specified project.
30896
31788
  # @param [String] project
@@ -30938,7 +31830,7 @@ module Google
30938
31830
  # by a previous list request to get the next page of results.
30939
31831
  # @param [Boolean] return_partial_success
30940
31832
  # Opt-in for partial success behavior which provides partial results in case of
30941
- # failure. The default value is false and the logic is the same as today.
31833
+ # failure. The default value is false.
30942
31834
  # @param [String] fields
30943
31835
  # Selector specifying which fields to include in a partial response.
30944
31836
  # @param [String] quota_user
@@ -31149,7 +32041,7 @@ module Google
31149
32041
  # by a previous list request to get the next page of results.
31150
32042
  # @param [Boolean] return_partial_success
31151
32043
  # Opt-in for partial success behavior which provides partial results in case of
31152
- # failure. The default value is false and the logic is the same as today.
32044
+ # failure. The default value is false.
31153
32045
  # @param [String] fields
31154
32046
  # Selector specifying which fields to include in a partial response.
31155
32047
  # @param [String] quota_user
@@ -31375,7 +32267,7 @@ module Google
31375
32267
  # by a previous list request to get the next page of results.
31376
32268
  # @param [Boolean] return_partial_success
31377
32269
  # Opt-in for partial success behavior which provides partial results in case of
31378
- # failure. The default value is false and the logic is the same as today.
32270
+ # failure. The default value is false.
31379
32271
  # @param [String] fields
31380
32272
  # Selector specifying which fields to include in a partial response.
31381
32273
  # @param [String] quota_user
@@ -31586,7 +32478,7 @@ module Google
31586
32478
  # by a previous list request to get the next page of results.
31587
32479
  # @param [Boolean] return_partial_success
31588
32480
  # Opt-in for partial success behavior which provides partial results in case of
31589
- # failure. The default value is false and the logic is the same as today.
32481
+ # failure. The default value is false.
31590
32482
  # @param [String] fields
31591
32483
  # Selector specifying which fields to include in a partial response.
31592
32484
  # @param [String] quota_user
@@ -31969,7 +32861,7 @@ module Google
31969
32861
  # by a previous list request to get the next page of results.
31970
32862
  # @param [Boolean] return_partial_success
31971
32863
  # Opt-in for partial success behavior which provides partial results in case of
31972
- # failure. The default value is false and the logic is the same as today.
32864
+ # failure. The default value is false.
31973
32865
  # @param [String] fields
31974
32866
  # Selector specifying which fields to include in a partial response.
31975
32867
  # @param [String] quota_user
@@ -32191,7 +33083,7 @@ module Google
32191
33083
  # by a previous list request to get the next page of results.
32192
33084
  # @param [Boolean] return_partial_success
32193
33085
  # Opt-in for partial success behavior which provides partial results in case of
32194
- # failure. The default value is false and the logic is the same as today.
33086
+ # failure. The default value is false.
32195
33087
  # @param [String] fields
32196
33088
  # Selector specifying which fields to include in a partial response.
32197
33089
  # @param [String] quota_user
@@ -32424,7 +33316,7 @@ module Google
32424
33316
  # by a previous list request to get the next page of results.
32425
33317
  # @param [Boolean] return_partial_success
32426
33318
  # Opt-in for partial success behavior which provides partial results in case of
32427
- # failure. The default value is false and the logic is the same as today.
33319
+ # failure. The default value is false.
32428
33320
  # @param [String] fields
32429
33321
  # Selector specifying which fields to include in a partial response.
32430
33322
  # @param [String] quota_user
@@ -32688,7 +33580,7 @@ module Google
32688
33580
  # by a previous list request to get the next page of results.
32689
33581
  # @param [Boolean] return_partial_success
32690
33582
  # Opt-in for partial success behavior which provides partial results in case of
32691
- # failure. The default value is false and the logic is the same as today.
33583
+ # failure. The default value is false.
32692
33584
  # @param [String] fields
32693
33585
  # Selector specifying which fields to include in a partial response.
32694
33586
  # @param [String] quota_user
@@ -33106,7 +33998,7 @@ module Google
33106
33998
  # by a previous list request to get the next page of results.
33107
33999
  # @param [Boolean] return_partial_success
33108
34000
  # Opt-in for partial success behavior which provides partial results in case of
33109
- # failure. The default value is false and the logic is the same as today.
34001
+ # failure. The default value is false.
33110
34002
  # @param [String] fields
33111
34003
  # Selector specifying which fields to include in a partial response.
33112
34004
  # @param [String] quota_user
@@ -33424,8 +34316,221 @@ module Google
33424
34316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33425
34317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33426
34318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33427
- def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33428
- command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34319
+ def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34320
+ command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34321
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34322
+ command.response_class = Google::Apis::ComputeBeta::Operation
34323
+ command.params['project'] = project unless project.nil?
34324
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
34325
+ command.query['requestId'] = request_id unless request_id.nil?
34326
+ command.query['fields'] = fields unless fields.nil?
34327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34328
+ command.query['userIp'] = user_ip unless user_ip.nil?
34329
+ execute_or_queue_command(command, &block)
34330
+ end
34331
+
34332
+ # Returns the specified TargetTcpProxy resource. Gets a list of available target
34333
+ # TCP proxies by making a list() request.
34334
+ # @param [String] project
34335
+ # Project ID for this request.
34336
+ # @param [String] target_tcp_proxy
34337
+ # Name of the TargetTcpProxy resource to return.
34338
+ # @param [String] fields
34339
+ # Selector specifying which fields to include in a partial response.
34340
+ # @param [String] quota_user
34341
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34342
+ # characters.
34343
+ # @param [String] user_ip
34344
+ # Deprecated. Please use quotaUser instead.
34345
+ # @param [Google::Apis::RequestOptions] options
34346
+ # Request-specific options
34347
+ #
34348
+ # @yield [result, err] Result & error if block supplied
34349
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
34350
+ # @yieldparam err [StandardError] error object if request failed
34351
+ #
34352
+ # @return [Google::Apis::ComputeBeta::TargetTcpProxy]
34353
+ #
34354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34357
+ def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34358
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34359
+ command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
34360
+ command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
34361
+ command.params['project'] = project unless project.nil?
34362
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
34363
+ command.query['fields'] = fields unless fields.nil?
34364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34365
+ command.query['userIp'] = user_ip unless user_ip.nil?
34366
+ execute_or_queue_command(command, &block)
34367
+ end
34368
+
34369
+ # Creates a TargetTcpProxy resource in the specified project using the data
34370
+ # included in the request.
34371
+ # @param [String] project
34372
+ # Project ID for this request.
34373
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
34374
+ # @param [String] request_id
34375
+ # An optional request ID to identify requests. Specify a unique request ID so
34376
+ # that if you must retry your request, the server will know to ignore the
34377
+ # request if it has already been completed.
34378
+ # For example, consider a situation where you make an initial request and the
34379
+ # request times out. If you make the request again with the same request ID, the
34380
+ # server can check if original operation with the same request ID was received,
34381
+ # and if so, will ignore the second request. This prevents clients from
34382
+ # accidentally creating duplicate commitments.
34383
+ # The request ID must be a valid UUID with the exception that zero UUID is not
34384
+ # supported (00000000-0000-0000-0000-000000000000).
34385
+ # @param [String] fields
34386
+ # Selector specifying which fields to include in a partial response.
34387
+ # @param [String] quota_user
34388
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34389
+ # characters.
34390
+ # @param [String] user_ip
34391
+ # Deprecated. Please use quotaUser instead.
34392
+ # @param [Google::Apis::RequestOptions] options
34393
+ # Request-specific options
34394
+ #
34395
+ # @yield [result, err] Result & error if block supplied
34396
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34397
+ # @yieldparam err [StandardError] error object if request failed
34398
+ #
34399
+ # @return [Google::Apis::ComputeBeta::Operation]
34400
+ #
34401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34404
+ def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34405
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
34406
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
34407
+ command.request_object = target_tcp_proxy_object
34408
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34409
+ command.response_class = Google::Apis::ComputeBeta::Operation
34410
+ command.params['project'] = project unless project.nil?
34411
+ command.query['requestId'] = request_id unless request_id.nil?
34412
+ command.query['fields'] = fields unless fields.nil?
34413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34414
+ command.query['userIp'] = user_ip unless user_ip.nil?
34415
+ execute_or_queue_command(command, &block)
34416
+ end
34417
+
34418
+ # Retrieves the list of TargetTcpProxy resources available to the specified
34419
+ # project.
34420
+ # @param [String] project
34421
+ # Project ID for this request.
34422
+ # @param [String] filter
34423
+ # A filter expression that filters resources listed in the response. The
34424
+ # expression must specify the field name, a comparison operator, and the value
34425
+ # that you want to use for filtering. The value must be a string, a number, or a
34426
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
34427
+ # For example, if you are filtering Compute Engine instances, you can exclude
34428
+ # instances named `example-instance` by specifying `name != example-instance`.
34429
+ # You can also filter nested fields. For example, you could specify `scheduling.
34430
+ # automaticRestart = false` to include instances only if they are not scheduled
34431
+ # for automatic restarts. You can use filtering on nested fields to filter based
34432
+ # on resource labels.
34433
+ # To filter on multiple expressions, provide each separate expression within
34434
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
34435
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
34436
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
34437
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
34438
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
34439
+ # @param [Fixnum] max_results
34440
+ # The maximum number of results per page that should be returned. If the number
34441
+ # of available results is larger than `maxResults`, Compute Engine returns a `
34442
+ # nextPageToken` that can be used to get the next page of results in subsequent
34443
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
34444
+ # @param [String] order_by
34445
+ # Sorts list results by a certain order. By default, results are returned in
34446
+ # alphanumerical order based on the resource name.
34447
+ # You can also sort results in descending order based on the creation timestamp
34448
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
34449
+ # creationTimestamp` field in reverse chronological order (newest result first).
34450
+ # Use this to sort resources like operations so that the newest operation is
34451
+ # returned first.
34452
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
34453
+ # @param [String] page_token
34454
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
34455
+ # by a previous list request to get the next page of results.
34456
+ # @param [Boolean] return_partial_success
34457
+ # Opt-in for partial success behavior which provides partial results in case of
34458
+ # failure. The default value is false.
34459
+ # @param [String] fields
34460
+ # Selector specifying which fields to include in a partial response.
34461
+ # @param [String] quota_user
34462
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34463
+ # characters.
34464
+ # @param [String] user_ip
34465
+ # Deprecated. Please use quotaUser instead.
34466
+ # @param [Google::Apis::RequestOptions] options
34467
+ # Request-specific options
34468
+ #
34469
+ # @yield [result, err] Result & error if block supplied
34470
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
34471
+ # @yieldparam err [StandardError] error object if request failed
34472
+ #
34473
+ # @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
34474
+ #
34475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34478
+ def list_target_tcp_proxies(project, 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)
34479
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
34480
+ command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
34481
+ command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
34482
+ command.params['project'] = project unless project.nil?
34483
+ command.query['filter'] = filter unless filter.nil?
34484
+ command.query['maxResults'] = max_results unless max_results.nil?
34485
+ command.query['orderBy'] = order_by unless order_by.nil?
34486
+ command.query['pageToken'] = page_token unless page_token.nil?
34487
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
34488
+ command.query['fields'] = fields unless fields.nil?
34489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34490
+ command.query['userIp'] = user_ip unless user_ip.nil?
34491
+ execute_or_queue_command(command, &block)
34492
+ end
34493
+
34494
+ # Changes the BackendService for TargetTcpProxy.
34495
+ # @param [String] project
34496
+ # Project ID for this request.
34497
+ # @param [String] target_tcp_proxy
34498
+ # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
34499
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
34500
+ # @param [String] request_id
34501
+ # An optional request ID to identify requests. Specify a unique request ID so
34502
+ # that if you must retry your request, the server will know to ignore the
34503
+ # request if it has already been completed.
34504
+ # For example, consider a situation where you make an initial request and the
34505
+ # request times out. If you make the request again with the same request ID, the
34506
+ # server can check if original operation with the same request ID was received,
34507
+ # and if so, will ignore the second request. This prevents clients from
34508
+ # accidentally creating duplicate commitments.
34509
+ # The request ID must be a valid UUID with the exception that zero UUID is not
34510
+ # supported (00000000-0000-0000-0000-000000000000).
34511
+ # @param [String] fields
34512
+ # Selector specifying which fields to include in a partial response.
34513
+ # @param [String] quota_user
34514
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34515
+ # characters.
34516
+ # @param [String] user_ip
34517
+ # Deprecated. Please use quotaUser instead.
34518
+ # @param [Google::Apis::RequestOptions] options
34519
+ # Request-specific options
34520
+ #
34521
+ # @yield [result, err] Result & error if block supplied
34522
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34523
+ # @yieldparam err [StandardError] error object if request failed
34524
+ #
34525
+ # @return [Google::Apis::ComputeBeta::Operation]
34526
+ #
34527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34530
+ def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34531
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
34532
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
34533
+ command.request_object = target_tcp_proxies_set_backend_service_request_object
33429
34534
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33430
34535
  command.response_class = Google::Apis::ComputeBeta::Operation
33431
34536
  command.params['project'] = project unless project.nil?
@@ -33437,174 +34542,12 @@ module Google
33437
34542
  execute_or_queue_command(command, &block)
33438
34543
  end
33439
34544
 
33440
- # Returns the specified TargetTcpProxy resource. Gets a list of available target
33441
- # TCP proxies by making a list() request.
33442
- # @param [String] project
33443
- # Project ID for this request.
33444
- # @param [String] target_tcp_proxy
33445
- # Name of the TargetTcpProxy resource to return.
33446
- # @param [String] fields
33447
- # Selector specifying which fields to include in a partial response.
33448
- # @param [String] quota_user
33449
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33450
- # characters.
33451
- # @param [String] user_ip
33452
- # Deprecated. Please use quotaUser instead.
33453
- # @param [Google::Apis::RequestOptions] options
33454
- # Request-specific options
33455
- #
33456
- # @yield [result, err] Result & error if block supplied
33457
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
33458
- # @yieldparam err [StandardError] error object if request failed
33459
- #
33460
- # @return [Google::Apis::ComputeBeta::TargetTcpProxy]
33461
- #
33462
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33463
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33464
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33465
- def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33466
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
33467
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33468
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
33469
- command.params['project'] = project unless project.nil?
33470
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33471
- command.query['fields'] = fields unless fields.nil?
33472
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33473
- command.query['userIp'] = user_ip unless user_ip.nil?
33474
- execute_or_queue_command(command, &block)
33475
- end
33476
-
33477
- # Creates a TargetTcpProxy resource in the specified project using the data
33478
- # included in the request.
33479
- # @param [String] project
33480
- # Project ID for this request.
33481
- # @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
33482
- # @param [String] request_id
33483
- # An optional request ID to identify requests. Specify a unique request ID so
33484
- # that if you must retry your request, the server will know to ignore the
33485
- # request if it has already been completed.
33486
- # For example, consider a situation where you make an initial request and the
33487
- # request times out. If you make the request again with the same request ID, the
33488
- # server can check if original operation with the same request ID was received,
33489
- # and if so, will ignore the second request. This prevents clients from
33490
- # accidentally creating duplicate commitments.
33491
- # The request ID must be a valid UUID with the exception that zero UUID is not
33492
- # supported (00000000-0000-0000-0000-000000000000).
33493
- # @param [String] fields
33494
- # Selector specifying which fields to include in a partial response.
33495
- # @param [String] quota_user
33496
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33497
- # characters.
33498
- # @param [String] user_ip
33499
- # Deprecated. Please use quotaUser instead.
33500
- # @param [Google::Apis::RequestOptions] options
33501
- # Request-specific options
33502
- #
33503
- # @yield [result, err] Result & error if block supplied
33504
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
33505
- # @yieldparam err [StandardError] error object if request failed
33506
- #
33507
- # @return [Google::Apis::ComputeBeta::Operation]
33508
- #
33509
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33510
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33511
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33512
- def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33513
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
33514
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33515
- command.request_object = target_tcp_proxy_object
33516
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33517
- command.response_class = Google::Apis::ComputeBeta::Operation
33518
- command.params['project'] = project unless project.nil?
33519
- command.query['requestId'] = request_id unless request_id.nil?
33520
- command.query['fields'] = fields unless fields.nil?
33521
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33522
- command.query['userIp'] = user_ip unless user_ip.nil?
33523
- execute_or_queue_command(command, &block)
33524
- end
33525
-
33526
- # Retrieves the list of TargetTcpProxy resources available to the specified
33527
- # project.
33528
- # @param [String] project
33529
- # Project ID for this request.
33530
- # @param [String] filter
33531
- # A filter expression that filters resources listed in the response. The
33532
- # expression must specify the field name, a comparison operator, and the value
33533
- # that you want to use for filtering. The value must be a string, a number, or a
33534
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
33535
- # For example, if you are filtering Compute Engine instances, you can exclude
33536
- # instances named `example-instance` by specifying `name != example-instance`.
33537
- # You can also filter nested fields. For example, you could specify `scheduling.
33538
- # automaticRestart = false` to include instances only if they are not scheduled
33539
- # for automatic restarts. You can use filtering on nested fields to filter based
33540
- # on resource labels.
33541
- # To filter on multiple expressions, provide each separate expression within
33542
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
33543
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
33544
- # expression. However, you can include `AND` and `OR` expressions explicitly.
33545
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
33546
- # Broadwell") AND (scheduling.automaticRestart = true) ```
33547
- # @param [Fixnum] max_results
33548
- # The maximum number of results per page that should be returned. If the number
33549
- # of available results is larger than `maxResults`, Compute Engine returns a `
33550
- # nextPageToken` that can be used to get the next page of results in subsequent
33551
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33552
- # @param [String] order_by
33553
- # Sorts list results by a certain order. By default, results are returned in
33554
- # alphanumerical order based on the resource name.
33555
- # You can also sort results in descending order based on the creation timestamp
33556
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
33557
- # creationTimestamp` field in reverse chronological order (newest result first).
33558
- # Use this to sort resources like operations so that the newest operation is
33559
- # returned first.
33560
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33561
- # @param [String] page_token
33562
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33563
- # by a previous list request to get the next page of results.
33564
- # @param [Boolean] return_partial_success
33565
- # Opt-in for partial success behavior which provides partial results in case of
33566
- # failure. The default value is false and the logic is the same as today.
33567
- # @param [String] fields
33568
- # Selector specifying which fields to include in a partial response.
33569
- # @param [String] quota_user
33570
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33571
- # characters.
33572
- # @param [String] user_ip
33573
- # Deprecated. Please use quotaUser instead.
33574
- # @param [Google::Apis::RequestOptions] options
33575
- # Request-specific options
33576
- #
33577
- # @yield [result, err] Result & error if block supplied
33578
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
33579
- # @yieldparam err [StandardError] error object if request failed
33580
- #
33581
- # @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
33582
- #
33583
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33584
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33585
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33586
- def list_target_tcp_proxies(project, 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)
33587
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
33588
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
33589
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
33590
- command.params['project'] = project unless project.nil?
33591
- command.query['filter'] = filter unless filter.nil?
33592
- command.query['maxResults'] = max_results unless max_results.nil?
33593
- command.query['orderBy'] = order_by unless order_by.nil?
33594
- command.query['pageToken'] = page_token unless page_token.nil?
33595
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33596
- command.query['fields'] = fields unless fields.nil?
33597
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33598
- command.query['userIp'] = user_ip unless user_ip.nil?
33599
- execute_or_queue_command(command, &block)
33600
- end
33601
-
33602
- # Changes the BackendService for TargetTcpProxy.
34545
+ # Changes the ProxyHeaderType for TargetTcpProxy.
33603
34546
  # @param [String] project
33604
34547
  # Project ID for this request.
33605
34548
  # @param [String] target_tcp_proxy
33606
- # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
33607
- # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
34549
+ # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
34550
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
33608
34551
  # @param [String] request_id
33609
34552
  # An optional request ID to identify requests. Specify a unique request ID so
33610
34553
  # that if you must retry your request, the server will know to ignore the
@@ -33635,10 +34578,10 @@ module Google
33635
34578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33636
34579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33637
34580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33638
- def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33639
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
33640
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
33641
- command.request_object = target_tcp_proxies_set_backend_service_request_object
34581
+ def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34582
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
34583
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
34584
+ command.request_object = target_tcp_proxies_set_proxy_header_request_object
33642
34585
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33643
34586
  command.response_class = Google::Apis::ComputeBeta::Operation
33644
34587
  command.params['project'] = project unless project.nil?
@@ -33650,23 +34593,12 @@ module Google
33650
34593
  execute_or_queue_command(command, &block)
33651
34594
  end
33652
34595
 
33653
- # Changes the ProxyHeaderType for TargetTcpProxy.
34596
+ # Returns permissions that a caller has on the specified resource.
33654
34597
  # @param [String] project
33655
34598
  # Project ID for this request.
33656
- # @param [String] target_tcp_proxy
33657
- # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
33658
- # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
33659
- # @param [String] request_id
33660
- # An optional request ID to identify requests. Specify a unique request ID so
33661
- # that if you must retry your request, the server will know to ignore the
33662
- # request if it has already been completed.
33663
- # For example, consider a situation where you make an initial request and the
33664
- # request times out. If you make the request again with the same request ID, the
33665
- # server can check if original operation with the same request ID was received,
33666
- # and if so, will ignore the second request. This prevents clients from
33667
- # accidentally creating duplicate commitments.
33668
- # The request ID must be a valid UUID with the exception that zero UUID is not
33669
- # supported (00000000-0000-0000-0000-000000000000).
34599
+ # @param [String] resource
34600
+ # Name or id of the resource for this request.
34601
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
33670
34602
  # @param [String] fields
33671
34603
  # Selector specifying which fields to include in a partial response.
33672
34604
  # @param [String] quota_user
@@ -33678,23 +34610,22 @@ module Google
33678
34610
  # Request-specific options
33679
34611
  #
33680
34612
  # @yield [result, err] Result & error if block supplied
33681
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34613
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
33682
34614
  # @yieldparam err [StandardError] error object if request failed
33683
34615
  #
33684
- # @return [Google::Apis::ComputeBeta::Operation]
34616
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
33685
34617
  #
33686
34618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33687
34619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33688
34620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33689
- def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33690
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
33691
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
33692
- command.request_object = target_tcp_proxies_set_proxy_header_request_object
33693
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33694
- command.response_class = Google::Apis::ComputeBeta::Operation
34621
+ 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)
34622
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
34623
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
34624
+ command.request_object = test_permissions_request_object
34625
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
34626
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
33695
34627
  command.params['project'] = project unless project.nil?
33696
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33697
- command.query['requestId'] = request_id unless request_id.nil?
34628
+ command.params['resource'] = resource unless resource.nil?
33698
34629
  command.query['fields'] = fields unless fields.nil?
33699
34630
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33700
34631
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -33747,7 +34678,7 @@ module Google
33747
34678
  # by a previous list request to get the next page of results.
33748
34679
  # @param [Boolean] return_partial_success
33749
34680
  # Opt-in for partial success behavior which provides partial results in case of
33750
- # failure. The default value is false and the logic is the same as today.
34681
+ # failure. The default value is false.
33751
34682
  # @param [String] fields
33752
34683
  # Selector specifying which fields to include in a partial response.
33753
34684
  # @param [String] quota_user
@@ -33969,7 +34900,7 @@ module Google
33969
34900
  # by a previous list request to get the next page of results.
33970
34901
  # @param [Boolean] return_partial_success
33971
34902
  # Opt-in for partial success behavior which provides partial results in case of
33972
- # failure. The default value is false and the logic is the same as today.
34903
+ # failure. The default value is false.
33973
34904
  # @param [String] fields
33974
34905
  # Selector specifying which fields to include in a partial response.
33975
34906
  # @param [String] quota_user
@@ -34150,7 +35081,7 @@ module Google
34150
35081
  # by a previous list request to get the next page of results.
34151
35082
  # @param [Boolean] return_partial_success
34152
35083
  # Opt-in for partial success behavior which provides partial results in case of
34153
- # failure. The default value is false and the logic is the same as today.
35084
+ # failure. The default value is false.
34154
35085
  # @param [String] fields
34155
35086
  # Selector specifying which fields to include in a partial response.
34156
35087
  # @param [String] quota_user
@@ -34414,7 +35345,7 @@ module Google
34414
35345
  # by a previous list request to get the next page of results.
34415
35346
  # @param [Boolean] return_partial_success
34416
35347
  # Opt-in for partial success behavior which provides partial results in case of
34417
- # failure. The default value is false and the logic is the same as today.
35348
+ # failure. The default value is false.
34418
35349
  # @param [String] fields
34419
35350
  # Selector specifying which fields to include in a partial response.
34420
35351
  # @param [String] quota_user
@@ -34679,7 +35610,7 @@ module Google
34679
35610
  # by a previous list request to get the next page of results.
34680
35611
  # @param [Boolean] return_partial_success
34681
35612
  # Opt-in for partial success behavior which provides partial results in case of
34682
- # failure. The default value is false and the logic is the same as today.
35613
+ # failure. The default value is false.
34683
35614
  # @param [String] fields
34684
35615
  # Selector specifying which fields to include in a partial response.
34685
35616
  # @param [String] quota_user
@@ -34939,7 +35870,7 @@ module Google
34939
35870
  # by a previous list request to get the next page of results.
34940
35871
  # @param [Boolean] return_partial_success
34941
35872
  # Opt-in for partial success behavior which provides partial results in case of
34942
- # failure. The default value is false and the logic is the same as today.
35873
+ # failure. The default value is false.
34943
35874
  # @param [String] fields
34944
35875
  # Selector specifying which fields to include in a partial response.
34945
35876
  # @param [String] quota_user
@@ -35031,6 +35962,48 @@ module Google
35031
35962
  execute_or_queue_command(command, &block)
35032
35963
  end
35033
35964
 
35965
+ # Returns permissions that a caller has on the specified resource.
35966
+ # @param [String] project
35967
+ # Project ID for this request.
35968
+ # @param [String] region
35969
+ # The name of the region for this request.
35970
+ # @param [String] resource
35971
+ # Name or id of the resource for this request.
35972
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
35973
+ # @param [String] fields
35974
+ # Selector specifying which fields to include in a partial response.
35975
+ # @param [String] quota_user
35976
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35977
+ # characters.
35978
+ # @param [String] user_ip
35979
+ # Deprecated. Please use quotaUser instead.
35980
+ # @param [Google::Apis::RequestOptions] options
35981
+ # Request-specific options
35982
+ #
35983
+ # @yield [result, err] Result & error if block supplied
35984
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
35985
+ # @yieldparam err [StandardError] error object if request failed
35986
+ #
35987
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
35988
+ #
35989
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35990
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35991
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35992
+ def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35993
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
35994
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
35995
+ command.request_object = test_permissions_request_object
35996
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
35997
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
35998
+ command.params['project'] = project unless project.nil?
35999
+ command.params['region'] = region unless region.nil?
36000
+ command.params['resource'] = resource unless resource.nil?
36001
+ command.query['fields'] = fields unless fields.nil?
36002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36003
+ command.query['userIp'] = user_ip unless user_ip.nil?
36004
+ execute_or_queue_command(command, &block)
36005
+ end
36006
+
35034
36007
  # Retrieves an aggregated list of VPN tunnels.
35035
36008
  # @param [String] project
35036
36009
  # Project ID for this request.
@@ -35077,7 +36050,7 @@ module Google
35077
36050
  # by a previous list request to get the next page of results.
35078
36051
  # @param [Boolean] return_partial_success
35079
36052
  # Opt-in for partial success behavior which provides partial results in case of
35080
- # failure. The default value is false and the logic is the same as today.
36053
+ # failure. The default value is false.
35081
36054
  # @param [String] fields
35082
36055
  # Selector specifying which fields to include in a partial response.
35083
36056
  # @param [String] quota_user
@@ -35299,7 +36272,7 @@ module Google
35299
36272
  # by a previous list request to get the next page of results.
35300
36273
  # @param [Boolean] return_partial_success
35301
36274
  # Opt-in for partial success behavior which provides partial results in case of
35302
- # failure. The default value is false and the logic is the same as today.
36275
+ # failure. The default value is false.
35303
36276
  # @param [String] fields
35304
36277
  # Selector specifying which fields to include in a partial response.
35305
36278
  # @param [String] quota_user
@@ -35550,7 +36523,7 @@ module Google
35550
36523
  # by a previous list request to get the next page of results.
35551
36524
  # @param [Boolean] return_partial_success
35552
36525
  # Opt-in for partial success behavior which provides partial results in case of
35553
- # failure. The default value is false and the logic is the same as today.
36526
+ # failure. The default value is false.
35554
36527
  # @param [String] fields
35555
36528
  # Selector specifying which fields to include in a partial response.
35556
36529
  # @param [String] quota_user
@@ -35712,7 +36685,7 @@ module Google
35712
36685
  # by a previous list request to get the next page of results.
35713
36686
  # @param [Boolean] return_partial_success
35714
36687
  # Opt-in for partial success behavior which provides partial results in case of
35715
- # failure. The default value is false and the logic is the same as today.
36688
+ # failure. The default value is false.
35716
36689
  # @param [String] fields
35717
36690
  # Selector specifying which fields to include in a partial response.
35718
36691
  # @param [String] quota_user