google-apis-compute_beta 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeBeta
18
18
  # Version of the google-apis-compute_beta gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210301"
25
+ REVISION = "20210310"
26
26
  end
27
27
  end
28
28
  end
@@ -6066,6 +6066,8 @@ module Google
6066
6066
  property :locality_lb_policy, as: 'localityLbPolicy'
6067
6067
  property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation
6068
6068
 
6069
+ property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
6070
+
6069
6071
  property :name, as: 'name'
6070
6072
  property :network, as: 'network'
6071
6073
  property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeBeta::OutlierDetection, decorator: Google::Apis::ComputeBeta::OutlierDetection::Representation
@@ -7149,6 +7151,7 @@ module Google
7149
7151
 
7150
7152
  property :self_link, as: 'selfLink'
7151
7153
  property :self_link_with_id, as: 'selfLinkWithId'
7154
+ property :short_name, as: 'shortName'
7152
7155
  end
7153
7156
  end
7154
7157
 
@@ -7159,6 +7162,7 @@ module Google
7159
7162
  property :display_name, as: 'displayName'
7160
7163
  property :firewall_policy_id, as: 'firewallPolicyId'
7161
7164
  property :name, as: 'name'
7165
+ property :short_name, as: 'shortName'
7162
7166
  end
7163
7167
  end
7164
7168
 
@@ -7914,6 +7918,8 @@ module Google
7914
7918
 
7915
7919
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeBeta::HttpFaultInjection, decorator: Google::Apis::ComputeBeta::HttpFaultInjection::Representation
7916
7920
 
7921
+ property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
7922
+
7917
7923
  property :request_mirror_policy, as: 'requestMirrorPolicy', class: Google::Apis::ComputeBeta::RequestMirrorPolicy, decorator: Google::Apis::ComputeBeta::RequestMirrorPolicy::Representation
7918
7924
 
7919
7925
  property :retry_policy, as: 'retryPolicy', class: Google::Apis::ComputeBeta::HttpRetryPolicy, decorator: Google::Apis::ComputeBeta::HttpRetryPolicy::Representation
@@ -8983,6 +8989,7 @@ module Google
8983
8989
  property :name, as: 'name'
8984
8990
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
8985
8991
 
8992
+ property :short_name, as: 'shortName'
8986
8993
  property :type, as: 'type'
8987
8994
  end
8988
8995
  end
@@ -9147,9 +9154,11 @@ module Google
9147
9154
  property :dataplane_version, as: 'dataplaneVersion'
9148
9155
  property :description, as: 'description'
9149
9156
  property :edge_availability_domain, as: 'edgeAvailabilityDomain'
9157
+ property :encryption, as: 'encryption'
9150
9158
  property :google_reference_id, as: 'googleReferenceId'
9151
9159
  property :id, :numeric_string => true, as: 'id'
9152
9160
  property :interconnect, as: 'interconnect'
9161
+ collection :ipsec_internal_addresses, as: 'ipsecInternalAddresses'
9153
9162
  property :kind, as: 'kind'
9154
9163
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
9155
9164
  hash :labels, as: 'labels'
@@ -10274,6 +10283,7 @@ module Google
10274
10283
  property :name, as: 'name'
10275
10284
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
10276
10285
 
10286
+ property :short_name, as: 'shortName'
10277
10287
  property :type, as: 'type'
10278
10288
  end
10279
10289
  end
@@ -12426,6 +12436,7 @@ module Google
12426
12436
 
12427
12437
  property :creation_timestamp, as: 'creationTimestamp'
12428
12438
  property :description, as: 'description'
12439
+ property :encrypted_interconnect_router, as: 'encryptedInterconnectRouter'
12429
12440
  property :id, :numeric_string => true, as: 'id'
12430
12441
  collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeBeta::RouterInterface, decorator: Google::Apis::ComputeBeta::RouterInterface::Representation
12431
12442
 
@@ -12509,6 +12520,7 @@ module Google
12509
12520
  property :name, as: 'name'
12510
12521
  property :peer_asn, as: 'peerAsn'
12511
12522
  property :peer_ip_address, as: 'peerIpAddress'
12523
+ property :router_appliance_instance, as: 'routerApplianceInstance'
12512
12524
  end
12513
12525
  end
12514
12526
 
@@ -12530,6 +12542,9 @@ module Google
12530
12542
  property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
12531
12543
  property :management_type, as: 'managementType'
12532
12544
  property :name, as: 'name'
12545
+ property :private_ip_address, as: 'privateIpAddress'
12546
+ property :redundant_interface, as: 'redundantInterface'
12547
+ property :subnetwork, as: 'subnetwork'
12533
12548
  end
12534
12549
  end
12535
12550
 
@@ -12630,6 +12645,7 @@ module Google
12630
12645
  property :name, as: 'name'
12631
12646
  property :num_learned_routes, as: 'numLearnedRoutes'
12632
12647
  property :peer_ip_address, as: 'peerIpAddress'
12648
+ property :router_appliance_instance, as: 'routerApplianceInstance'
12633
12649
  property :state, as: 'state'
12634
12650
  property :status, as: 'status'
12635
12651
  property :uptime, as: 'uptime'
@@ -14952,6 +14968,7 @@ module Google
14952
14968
  # @private
14953
14969
  class Representation < Google::Apis::Core::JsonRepresentation
14954
14970
  property :id, as: 'id'
14971
+ property :interconnect_attachment, as: 'interconnectAttachment'
14955
14972
  property :ip_address, as: 'ipAddress'
14956
14973
  end
14957
14974
  end
@@ -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
@@ -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
@@ -14516,6 +14635,47 @@ module Google
14516
14635
  execute_or_queue_command(command, &block)
14517
14636
  end
14518
14637
 
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.
14641
+ # @param [String] project
14642
+ # Project ID for this request.
14643
+ # @param [String] resource
14644
+ # Name or id of the resource for this request.
14645
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
14646
+ # @param [String] fields
14647
+ # Selector specifying which fields to include in a partial response.
14648
+ # @param [String] quota_user
14649
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14650
+ # characters.
14651
+ # @param [String] user_ip
14652
+ # Deprecated. Please use quotaUser instead.
14653
+ # @param [Google::Apis::RequestOptions] options
14654
+ # Request-specific options
14655
+ #
14656
+ # @yield [result, err] Result & error if block supplied
14657
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
14658
+ # @yieldparam err [StandardError] error object if request failed
14659
+ #
14660
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
14661
+ #
14662
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14663
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14664
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
14671
+ command.params['project'] = project unless project.nil?
14672
+ command.params['resource'] = resource unless resource.nil?
14673
+ command.query['fields'] = fields unless fields.nil?
14674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14675
+ command.query['userIp'] = user_ip unless user_ip.nil?
14676
+ execute_or_queue_command(command, &block)
14677
+ end
14678
+
14519
14679
  # Deletes the specified license. Caution This resource is intended for use only
14520
14680
  # by third-party partners who are creating Cloud Marketplace images.
14521
14681
  # @param [String] project
@@ -14815,6 +14975,47 @@ module Google
14815
14975
  execute_or_queue_command(command, &block)
14816
14976
  end
14817
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
+
14818
15019
  # Deletes the specified machine image. Deleting a machine image is permanent and
14819
15020
  # cannot be undone.
14820
15021
  # @param [String] project
@@ -21320,6 +21521,48 @@ module Google
21320
21521
  execute_or_queue_command(command, &block)
21321
21522
  end
21322
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
+
21323
21566
  # Transfers GPUs or local SSDs between reservations within commitments.
21324
21567
  # @param [String] project
21325
21568
  # Project ID for this request.
@@ -22397,6 +22640,48 @@ module Google
22397
22640
  execute_or_queue_command(command, &block)
22398
22641
  end
22399
22642
 
22643
+ # Returns permissions that a caller has on the specified resource.
22644
+ # @param [String] project
22645
+ # Project ID for this request.
22646
+ # @param [String] region
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
22651
+ # @param [String] fields
22652
+ # Selector specifying which fields to include in a partial response.
22653
+ # @param [String] quota_user
22654
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
22655
+ # characters.
22656
+ # @param [String] user_ip
22657
+ # Deprecated. Please use quotaUser instead.
22658
+ # @param [Google::Apis::RequestOptions] options
22659
+ # Request-specific options
22660
+ #
22661
+ # @yield [result, err] Result & error if block supplied
22662
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
22663
+ # @yieldparam err [StandardError] error object if request failed
22664
+ #
22665
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
22666
+ #
22667
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22668
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22669
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
22676
+ command.params['project'] = project unless project.nil?
22677
+ command.params['region'] = region unless region.nil?
22678
+ command.params['resource'] = resource unless resource.nil?
22679
+ command.query['fields'] = fields unless fields.nil?
22680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22681
+ command.query['userIp'] = user_ip unless user_ip.nil?
22682
+ execute_or_queue_command(command, &block)
22683
+ end
22684
+
22400
22685
  # Deletes the specified HealthCheck resource.
22401
22686
  # @param [String] project
22402
22687
  # Project ID for this request.
@@ -22674,6 +22959,48 @@ module Google
22674
22959
  execute_or_queue_command(command, &block)
22675
22960
  end
22676
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
+
22677
23004
  # Updates a HealthCheck resource in the specified project using the data
22678
23005
  # included in the request.
22679
23006
  # @param [String] project
@@ -24840,6 +25167,48 @@ module Google
24840
25167
  execute_or_queue_command(command, &block)
24841
25168
  end
24842
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
+
24843
25212
  # Deletes the specified region-specific Operations resource.
24844
25213
  # @param [String] project
24845
25214
  # Project ID for this request.
@@ -25265,6 +25634,48 @@ module Google
25265
25634
  execute_or_queue_command(command, &block)
25266
25635
  end
25267
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
+
25268
25679
  # Deletes the specified TargetHttpProxy resource.
25269
25680
  # @param [String] project
25270
25681
  # Project ID for this request.
@@ -25541,24 +25952,14 @@ module Google
25541
25952
  execute_or_queue_command(command, &block)
25542
25953
  end
25543
25954
 
25544
- # Deletes the specified TargetHttpsProxy resource.
25955
+ # Returns permissions that a caller has on the specified resource.
25545
25956
  # @param [String] project
25546
25957
  # Project ID for this request.
25547
25958
  # @param [String] region
25548
- # Name of the region scoping this request.
25549
- # @param [String] target_https_proxy
25550
- # Name of the TargetHttpsProxy resource to delete.
25551
- # @param [String] request_id
25552
- # An optional request ID to identify requests. Specify a unique request ID so
25553
- # that if you must retry your request, the server will know to ignore the
25554
- # request if it has already been completed.
25555
- # For example, consider a situation where you make an initial request and the
25556
- # request times out. If you make the request again with the same request ID, the
25557
- # server can check if original operation with the same request ID was received,
25558
- # and if so, will ignore the second request. This prevents clients from
25559
- # accidentally creating duplicate commitments.
25560
- # The request ID must be a valid UUID with the exception that zero UUID is not
25561
- # 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
25562
25963
  # @param [String] fields
25563
25964
  # Selector specifying which fields to include in a partial response.
25564
25965
  # @param [String] quota_user
@@ -25570,75 +25971,36 @@ module Google
25570
25971
  # Request-specific options
25571
25972
  #
25572
25973
  # @yield [result, err] Result & error if block supplied
25573
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
25974
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25574
25975
  # @yieldparam err [StandardError] error object if request failed
25575
25976
  #
25576
- # @return [Google::Apis::ComputeBeta::Operation]
25977
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25577
25978
  #
25578
25979
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25579
25980
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25580
25981
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25581
- 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)
25582
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25583
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
25584
- 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
25585
25988
  command.params['project'] = project unless project.nil?
25586
25989
  command.params['region'] = region unless region.nil?
25587
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25588
- command.query['requestId'] = request_id unless request_id.nil?
25990
+ command.params['resource'] = resource unless resource.nil?
25589
25991
  command.query['fields'] = fields unless fields.nil?
25590
25992
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25591
25993
  command.query['userIp'] = user_ip unless user_ip.nil?
25592
25994
  execute_or_queue_command(command, &block)
25593
25995
  end
25594
25996
 
25595
- # Returns the specified TargetHttpsProxy resource in the specified region. Gets
25596
- # a list of available target HTTP proxies by making a list() request.
25997
+ # Deletes the specified TargetHttpsProxy resource.
25597
25998
  # @param [String] project
25598
25999
  # Project ID for this request.
25599
26000
  # @param [String] region
25600
26001
  # Name of the region scoping this request.
25601
26002
  # @param [String] target_https_proxy
25602
- # Name of the TargetHttpsProxy resource to return.
25603
- # @param [String] fields
25604
- # Selector specifying which fields to include in a partial response.
25605
- # @param [String] quota_user
25606
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25607
- # characters.
25608
- # @param [String] user_ip
25609
- # Deprecated. Please use quotaUser instead.
25610
- # @param [Google::Apis::RequestOptions] options
25611
- # Request-specific options
25612
- #
25613
- # @yield [result, err] Result & error if block supplied
25614
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
25615
- # @yieldparam err [StandardError] error object if request failed
25616
- #
25617
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
25618
- #
25619
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25620
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25621
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25622
- def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25623
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25624
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
25625
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
25626
- command.params['project'] = project unless project.nil?
25627
- command.params['region'] = region unless region.nil?
25628
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25629
- command.query['fields'] = fields unless fields.nil?
25630
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25631
- command.query['userIp'] = user_ip unless user_ip.nil?
25632
- execute_or_queue_command(command, &block)
25633
- end
25634
-
25635
- # Creates a TargetHttpsProxy resource in the specified project and region using
25636
- # the data included in the request.
25637
- # @param [String] project
25638
- # Project ID for this request.
25639
- # @param [String] region
25640
- # Name of the region scoping this request.
25641
- # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
26003
+ # Name of the TargetHttpsProxy resource to delete.
25642
26004
  # @param [String] request_id
25643
26005
  # An optional request ID to identify requests. Specify a unique request ID so
25644
26006
  # that if you must retry your request, the server will know to ignore the
@@ -25669,14 +26031,13 @@ module Google
25669
26031
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25670
26032
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25671
26033
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25672
- def insert_region_target_https_proxy(project, region, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25673
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies', options)
25674
- command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
25675
- command.request_object = target_https_proxy_object
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)
25676
26036
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
25677
26037
  command.response_class = Google::Apis::ComputeBeta::Operation
25678
26038
  command.params['project'] = project unless project.nil?
25679
26039
  command.params['region'] = region unless region.nil?
26040
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25680
26041
  command.query['requestId'] = request_id unless request_id.nil?
25681
26042
  command.query['fields'] = fields unless fields.nil?
25682
26043
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25684,49 +26045,14 @@ module Google
25684
26045
  execute_or_queue_command(command, &block)
25685
26046
  end
25686
26047
 
25687
- # Retrieves the list of TargetHttpsProxy resources available to the specified
25688
- # project in the specified region.
26048
+ # Returns the specified TargetHttpsProxy resource in the specified region. Gets
26049
+ # a list of available target HTTP proxies by making a list() request.
25689
26050
  # @param [String] project
25690
26051
  # Project ID for this request.
25691
26052
  # @param [String] region
25692
26053
  # Name of the region scoping this request.
25693
- # @param [String] filter
25694
- # A filter expression that filters resources listed in the response. The
25695
- # expression must specify the field name, a comparison operator, and the value
25696
- # that you want to use for filtering. The value must be a string, a number, or a
25697
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
25698
- # For example, if you are filtering Compute Engine instances, you can exclude
25699
- # instances named `example-instance` by specifying `name != example-instance`.
25700
- # You can also filter nested fields. For example, you could specify `scheduling.
25701
- # automaticRestart = false` to include instances only if they are not scheduled
25702
- # for automatic restarts. You can use filtering on nested fields to filter based
25703
- # on resource labels.
25704
- # To filter on multiple expressions, provide each separate expression within
25705
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
25706
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
25707
- # expression. However, you can include `AND` and `OR` expressions explicitly.
25708
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
25709
- # Broadwell") AND (scheduling.automaticRestart = true) ```
25710
- # @param [Fixnum] max_results
25711
- # The maximum number of results per page that should be returned. If the number
25712
- # of available results is larger than `maxResults`, Compute Engine returns a `
25713
- # nextPageToken` that can be used to get the next page of results in subsequent
25714
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25715
- # @param [String] order_by
25716
- # Sorts list results by a certain order. By default, results are returned in
25717
- # alphanumerical order based on the resource name.
25718
- # You can also sort results in descending order based on the creation timestamp
25719
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
25720
- # creationTimestamp` field in reverse chronological order (newest result first).
25721
- # Use this to sort resources like operations so that the newest operation is
25722
- # returned first.
25723
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25724
- # @param [String] page_token
25725
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25726
- # by a previous list request to get the next page of results.
25727
- # @param [Boolean] return_partial_success
25728
- # Opt-in for partial success behavior which provides partial results in case of
25729
- # failure. The default value is false.
26054
+ # @param [String] target_https_proxy
26055
+ # Name of the TargetHttpsProxy resource to return.
25730
26056
  # @param [String] fields
25731
26057
  # Selector specifying which fields to include in a partial response.
25732
26058
  # @param [String] quota_user
@@ -25738,39 +26064,166 @@ module Google
25738
26064
  # Request-specific options
25739
26065
  #
25740
26066
  # @yield [result, err] Result & error if block supplied
25741
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyList] parsed result object
26067
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
25742
26068
  # @yieldparam err [StandardError] error object if request failed
25743
26069
  #
25744
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxyList]
26070
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
25745
26071
  #
25746
26072
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25747
26073
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25748
26074
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25749
- def list_region_target_https_proxies(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)
25750
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies', options)
25751
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation
25752
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList
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
25753
26079
  command.params['project'] = project unless project.nil?
25754
26080
  command.params['region'] = region unless region.nil?
25755
- command.query['filter'] = filter unless filter.nil?
25756
- command.query['maxResults'] = max_results unless max_results.nil?
25757
- command.query['orderBy'] = order_by unless order_by.nil?
25758
- command.query['pageToken'] = page_token unless page_token.nil?
25759
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26081
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25760
26082
  command.query['fields'] = fields unless fields.nil?
25761
26083
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25762
26084
  command.query['userIp'] = user_ip unless user_ip.nil?
25763
26085
  execute_or_queue_command(command, &block)
25764
26086
  end
25765
26087
 
25766
- # Replaces SslCertificates for TargetHttpsProxy.
26088
+ # Creates a TargetHttpsProxy resource in the specified project and region using
26089
+ # the data included in the request.
25767
26090
  # @param [String] project
25768
26091
  # Project ID for this request.
25769
26092
  # @param [String] region
25770
26093
  # Name of the region scoping this request.
25771
- # @param [String] target_https_proxy
25772
- # Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
25773
- # @param [Google::Apis::ComputeBeta::RegionTargetHttpsProxiesSetSslCertificatesRequest] region_target_https_proxies_set_ssl_certificates_request_object
26094
+ # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
26095
+ # @param [String] request_id
26096
+ # An optional request ID to identify requests. Specify a unique request ID so
26097
+ # that if you must retry your request, the server will know to ignore the
26098
+ # request if it has already been completed.
26099
+ # For example, consider a situation where you make an initial request and the
26100
+ # request times out. If you make the request again with the same request ID, the
26101
+ # server can check if original operation with the same request ID was received,
26102
+ # and if so, will ignore the second request. This prevents clients from
26103
+ # accidentally creating duplicate commitments.
26104
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26105
+ # supported (00000000-0000-0000-0000-000000000000).
26106
+ # @param [String] fields
26107
+ # Selector specifying which fields to include in a partial response.
26108
+ # @param [String] quota_user
26109
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26110
+ # characters.
26111
+ # @param [String] user_ip
26112
+ # Deprecated. Please use quotaUser instead.
26113
+ # @param [Google::Apis::RequestOptions] options
26114
+ # Request-specific options
26115
+ #
26116
+ # @yield [result, err] Result & error if block supplied
26117
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
26118
+ # @yieldparam err [StandardError] error object if request failed
26119
+ #
26120
+ # @return [Google::Apis::ComputeBeta::Operation]
26121
+ #
26122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26125
+ def insert_region_target_https_proxy(project, region, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26126
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies', options)
26127
+ command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
26128
+ command.request_object = target_https_proxy_object
26129
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
26130
+ command.response_class = Google::Apis::ComputeBeta::Operation
26131
+ command.params['project'] = project unless project.nil?
26132
+ command.params['region'] = region unless region.nil?
26133
+ command.query['requestId'] = request_id unless request_id.nil?
26134
+ command.query['fields'] = fields unless fields.nil?
26135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26136
+ command.query['userIp'] = user_ip unless user_ip.nil?
26137
+ execute_or_queue_command(command, &block)
26138
+ end
26139
+
26140
+ # Retrieves the list of TargetHttpsProxy resources available to the specified
26141
+ # project in the specified region.
26142
+ # @param [String] project
26143
+ # Project ID for this request.
26144
+ # @param [String] region
26145
+ # Name of the region scoping this request.
26146
+ # @param [String] filter
26147
+ # A filter expression that filters resources listed in the response. The
26148
+ # expression must specify the field name, a comparison operator, and the value
26149
+ # that you want to use for filtering. The value must be a string, a number, or a
26150
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
26151
+ # For example, if you are filtering Compute Engine instances, you can exclude
26152
+ # instances named `example-instance` by specifying `name != example-instance`.
26153
+ # You can also filter nested fields. For example, you could specify `scheduling.
26154
+ # automaticRestart = false` to include instances only if they are not scheduled
26155
+ # for automatic restarts. You can use filtering on nested fields to filter based
26156
+ # on resource labels.
26157
+ # To filter on multiple expressions, provide each separate expression within
26158
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
26159
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
26160
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
26161
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
26162
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
26163
+ # @param [Fixnum] max_results
26164
+ # The maximum number of results per page that should be returned. If the number
26165
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26166
+ # nextPageToken` that can be used to get the next page of results in subsequent
26167
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26168
+ # @param [String] order_by
26169
+ # Sorts list results by a certain order. By default, results are returned in
26170
+ # alphanumerical order based on the resource name.
26171
+ # You can also sort results in descending order based on the creation timestamp
26172
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
26173
+ # creationTimestamp` field in reverse chronological order (newest result first).
26174
+ # Use this to sort resources like operations so that the newest operation is
26175
+ # returned first.
26176
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26177
+ # @param [String] page_token
26178
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26179
+ # by a previous list request to get the next page of results.
26180
+ # @param [Boolean] return_partial_success
26181
+ # Opt-in for partial success behavior which provides partial results in case of
26182
+ # failure. The default value is false.
26183
+ # @param [String] fields
26184
+ # Selector specifying which fields to include in a partial response.
26185
+ # @param [String] quota_user
26186
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26187
+ # characters.
26188
+ # @param [String] user_ip
26189
+ # Deprecated. Please use quotaUser instead.
26190
+ # @param [Google::Apis::RequestOptions] options
26191
+ # Request-specific options
26192
+ #
26193
+ # @yield [result, err] Result & error if block supplied
26194
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyList] parsed result object
26195
+ # @yieldparam err [StandardError] error object if request failed
26196
+ #
26197
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxyList]
26198
+ #
26199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26202
+ def list_region_target_https_proxies(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)
26203
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies', options)
26204
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation
26205
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList
26206
+ command.params['project'] = project unless project.nil?
26207
+ command.params['region'] = region unless region.nil?
26208
+ command.query['filter'] = filter unless filter.nil?
26209
+ command.query['maxResults'] = max_results unless max_results.nil?
26210
+ command.query['orderBy'] = order_by unless order_by.nil?
26211
+ command.query['pageToken'] = page_token unless page_token.nil?
26212
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26213
+ command.query['fields'] = fields unless fields.nil?
26214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26215
+ command.query['userIp'] = user_ip unless user_ip.nil?
26216
+ execute_or_queue_command(command, &block)
26217
+ end
26218
+
26219
+ # Replaces SslCertificates for TargetHttpsProxy.
26220
+ # @param [String] project
26221
+ # Project ID for this request.
26222
+ # @param [String] region
26223
+ # Name of the region scoping this request.
26224
+ # @param [String] target_https_proxy
26225
+ # Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
26226
+ # @param [Google::Apis::ComputeBeta::RegionTargetHttpsProxiesSetSslCertificatesRequest] region_target_https_proxies_set_ssl_certificates_request_object
25774
26227
  # @param [String] request_id
25775
26228
  # An optional request ID to identify requests. Specify a unique request ID so
25776
26229
  # that if you must retry your request, the server will know to ignore the
@@ -25871,6 +26324,48 @@ module Google
25871
26324
  execute_or_queue_command(command, &block)
25872
26325
  end
25873
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
+
25874
26369
  # Deletes the specified UrlMap resource.
25875
26370
  # @param [String] project
25876
26371
  # Project ID for this request.
@@ -26170,6 +26665,48 @@ module Google
26170
26665
  execute_or_queue_command(command, &block)
26171
26666
  end
26172
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
+
26173
26710
  # Updates the specified UrlMap resource with the data included in the request.
26174
26711
  # @param [String] project
26175
26712
  # Project ID for this request.
@@ -28922,6 +29459,49 @@ module Google
28922
29459
  execute_or_queue_command(command, &block)
28923
29460
  end
28924
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
+
28925
29505
  # Creates a ServiceAttachment in the specified project in the given scope using
28926
29506
  # the parameters that are included in the request.
28927
29507
  # @param [String] project
@@ -29052,6 +29632,91 @@ module Google
29052
29632
  execute_or_queue_command(command, &block)
29053
29633
  end
29054
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
+
29055
29720
  # Deletes the specified Snapshot resource. Keep in mind that deleting a single
29056
29721
  # snapshot might not necessarily delete all the data on that snapshot. If any
29057
29722
  # data on the snapshot that is marked for deletion is needed for subsequent
@@ -31079,6 +31744,45 @@ module Google
31079
31744
  execute_or_queue_command(command, &block)
31080
31745
  end
31081
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
+
31082
31786
  # Retrieves the list of all TargetHttpProxy resources, regional and global,
31083
31787
  # available to the specified project.
31084
31788
  # @param [String] project
@@ -33612,8 +34316,221 @@ module Google
33612
34316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33613
34317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33614
34318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33615
- def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33616
- 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
33617
34534
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33618
34535
  command.response_class = Google::Apis::ComputeBeta::Operation
33619
34536
  command.params['project'] = project unless project.nil?
@@ -33625,174 +34542,12 @@ module Google
33625
34542
  execute_or_queue_command(command, &block)
33626
34543
  end
33627
34544
 
33628
- # Returns the specified TargetTcpProxy resource. Gets a list of available target
33629
- # TCP proxies by making a list() request.
33630
- # @param [String] project
33631
- # Project ID for this request.
33632
- # @param [String] target_tcp_proxy
33633
- # Name of the TargetTcpProxy resource to return.
33634
- # @param [String] fields
33635
- # Selector specifying which fields to include in a partial response.
33636
- # @param [String] quota_user
33637
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33638
- # characters.
33639
- # @param [String] user_ip
33640
- # Deprecated. Please use quotaUser instead.
33641
- # @param [Google::Apis::RequestOptions] options
33642
- # Request-specific options
33643
- #
33644
- # @yield [result, err] Result & error if block supplied
33645
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
33646
- # @yieldparam err [StandardError] error object if request failed
33647
- #
33648
- # @return [Google::Apis::ComputeBeta::TargetTcpProxy]
33649
- #
33650
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33651
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33652
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33653
- def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33654
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
33655
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33656
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
33657
- command.params['project'] = project unless project.nil?
33658
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33659
- command.query['fields'] = fields unless fields.nil?
33660
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33661
- command.query['userIp'] = user_ip unless user_ip.nil?
33662
- execute_or_queue_command(command, &block)
33663
- end
33664
-
33665
- # Creates a TargetTcpProxy resource in the specified project using the data
33666
- # included in the request.
33667
- # @param [String] project
33668
- # Project ID for this request.
33669
- # @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
33670
- # @param [String] request_id
33671
- # An optional request ID to identify requests. Specify a unique request ID so
33672
- # that if you must retry your request, the server will know to ignore the
33673
- # request if it has already been completed.
33674
- # For example, consider a situation where you make an initial request and the
33675
- # request times out. If you make the request again with the same request ID, the
33676
- # server can check if original operation with the same request ID was received,
33677
- # and if so, will ignore the second request. This prevents clients from
33678
- # accidentally creating duplicate commitments.
33679
- # The request ID must be a valid UUID with the exception that zero UUID is not
33680
- # supported (00000000-0000-0000-0000-000000000000).
33681
- # @param [String] fields
33682
- # Selector specifying which fields to include in a partial response.
33683
- # @param [String] quota_user
33684
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33685
- # characters.
33686
- # @param [String] user_ip
33687
- # Deprecated. Please use quotaUser instead.
33688
- # @param [Google::Apis::RequestOptions] options
33689
- # Request-specific options
33690
- #
33691
- # @yield [result, err] Result & error if block supplied
33692
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
33693
- # @yieldparam err [StandardError] error object if request failed
33694
- #
33695
- # @return [Google::Apis::ComputeBeta::Operation]
33696
- #
33697
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33698
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33699
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33700
- 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)
33701
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
33702
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33703
- command.request_object = target_tcp_proxy_object
33704
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33705
- command.response_class = Google::Apis::ComputeBeta::Operation
33706
- command.params['project'] = project unless project.nil?
33707
- command.query['requestId'] = request_id unless request_id.nil?
33708
- command.query['fields'] = fields unless fields.nil?
33709
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33710
- command.query['userIp'] = user_ip unless user_ip.nil?
33711
- execute_or_queue_command(command, &block)
33712
- end
33713
-
33714
- # Retrieves the list of TargetTcpProxy resources available to the specified
33715
- # project.
33716
- # @param [String] project
33717
- # Project ID for this request.
33718
- # @param [String] filter
33719
- # A filter expression that filters resources listed in the response. The
33720
- # expression must specify the field name, a comparison operator, and the value
33721
- # that you want to use for filtering. The value must be a string, a number, or a
33722
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
33723
- # For example, if you are filtering Compute Engine instances, you can exclude
33724
- # instances named `example-instance` by specifying `name != example-instance`.
33725
- # You can also filter nested fields. For example, you could specify `scheduling.
33726
- # automaticRestart = false` to include instances only if they are not scheduled
33727
- # for automatic restarts. You can use filtering on nested fields to filter based
33728
- # on resource labels.
33729
- # To filter on multiple expressions, provide each separate expression within
33730
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
33731
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
33732
- # expression. However, you can include `AND` and `OR` expressions explicitly.
33733
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
33734
- # Broadwell") AND (scheduling.automaticRestart = true) ```
33735
- # @param [Fixnum] max_results
33736
- # The maximum number of results per page that should be returned. If the number
33737
- # of available results is larger than `maxResults`, Compute Engine returns a `
33738
- # nextPageToken` that can be used to get the next page of results in subsequent
33739
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33740
- # @param [String] order_by
33741
- # Sorts list results by a certain order. By default, results are returned in
33742
- # alphanumerical order based on the resource name.
33743
- # You can also sort results in descending order based on the creation timestamp
33744
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
33745
- # creationTimestamp` field in reverse chronological order (newest result first).
33746
- # Use this to sort resources like operations so that the newest operation is
33747
- # returned first.
33748
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33749
- # @param [String] page_token
33750
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33751
- # by a previous list request to get the next page of results.
33752
- # @param [Boolean] return_partial_success
33753
- # Opt-in for partial success behavior which provides partial results in case of
33754
- # failure. The default value is false.
33755
- # @param [String] fields
33756
- # Selector specifying which fields to include in a partial response.
33757
- # @param [String] quota_user
33758
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33759
- # characters.
33760
- # @param [String] user_ip
33761
- # Deprecated. Please use quotaUser instead.
33762
- # @param [Google::Apis::RequestOptions] options
33763
- # Request-specific options
33764
- #
33765
- # @yield [result, err] Result & error if block supplied
33766
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
33767
- # @yieldparam err [StandardError] error object if request failed
33768
- #
33769
- # @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
33770
- #
33771
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33772
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33773
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33774
- 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)
33775
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
33776
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
33777
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
33778
- command.params['project'] = project unless project.nil?
33779
- command.query['filter'] = filter unless filter.nil?
33780
- command.query['maxResults'] = max_results unless max_results.nil?
33781
- command.query['orderBy'] = order_by unless order_by.nil?
33782
- command.query['pageToken'] = page_token unless page_token.nil?
33783
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33784
- command.query['fields'] = fields unless fields.nil?
33785
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33786
- command.query['userIp'] = user_ip unless user_ip.nil?
33787
- execute_or_queue_command(command, &block)
33788
- end
33789
-
33790
- # Changes the BackendService for TargetTcpProxy.
34545
+ # Changes the ProxyHeaderType for TargetTcpProxy.
33791
34546
  # @param [String] project
33792
34547
  # Project ID for this request.
33793
34548
  # @param [String] target_tcp_proxy
33794
- # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
33795
- # @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
33796
34551
  # @param [String] request_id
33797
34552
  # An optional request ID to identify requests. Specify a unique request ID so
33798
34553
  # that if you must retry your request, the server will know to ignore the
@@ -33823,10 +34578,10 @@ module Google
33823
34578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33824
34579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33825
34580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33826
- 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)
33827
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
33828
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
33829
- 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
33830
34585
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33831
34586
  command.response_class = Google::Apis::ComputeBeta::Operation
33832
34587
  command.params['project'] = project unless project.nil?
@@ -33838,23 +34593,12 @@ module Google
33838
34593
  execute_or_queue_command(command, &block)
33839
34594
  end
33840
34595
 
33841
- # Changes the ProxyHeaderType for TargetTcpProxy.
34596
+ # Returns permissions that a caller has on the specified resource.
33842
34597
  # @param [String] project
33843
34598
  # Project ID for this request.
33844
- # @param [String] target_tcp_proxy
33845
- # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
33846
- # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
33847
- # @param [String] request_id
33848
- # An optional request ID to identify requests. Specify a unique request ID so
33849
- # that if you must retry your request, the server will know to ignore the
33850
- # request if it has already been completed.
33851
- # For example, consider a situation where you make an initial request and the
33852
- # request times out. If you make the request again with the same request ID, the
33853
- # server can check if original operation with the same request ID was received,
33854
- # and if so, will ignore the second request. This prevents clients from
33855
- # accidentally creating duplicate commitments.
33856
- # The request ID must be a valid UUID with the exception that zero UUID is not
33857
- # 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
33858
34602
  # @param [String] fields
33859
34603
  # Selector specifying which fields to include in a partial response.
33860
34604
  # @param [String] quota_user
@@ -33866,23 +34610,22 @@ module Google
33866
34610
  # Request-specific options
33867
34611
  #
33868
34612
  # @yield [result, err] Result & error if block supplied
33869
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34613
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
33870
34614
  # @yieldparam err [StandardError] error object if request failed
33871
34615
  #
33872
- # @return [Google::Apis::ComputeBeta::Operation]
34616
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
33873
34617
  #
33874
34618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33875
34619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33876
34620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33877
- 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)
33878
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
33879
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
33880
- command.request_object = target_tcp_proxies_set_proxy_header_request_object
33881
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33882
- 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
33883
34627
  command.params['project'] = project unless project.nil?
33884
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33885
- command.query['requestId'] = request_id unless request_id.nil?
34628
+ command.params['resource'] = resource unless resource.nil?
33886
34629
  command.query['fields'] = fields unless fields.nil?
33887
34630
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33888
34631
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -35219,6 +35962,48 @@ module Google
35219
35962
  execute_or_queue_command(command, &block)
35220
35963
  end
35221
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
+
35222
36007
  # Retrieves an aggregated list of VPN tunnels.
35223
36008
  # @param [String] project
35224
36009
  # Project ID for this request.