google-apis-compute_beta 0.3.0 → 0.8.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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210129"
25
+ REVISION = "20210316"
26
26
  end
27
27
  end
28
28
  end
@@ -508,6 +508,18 @@ module Google
508
508
  include Google::Apis::Core::JsonObjectSupport
509
509
  end
510
510
 
511
+ class BulkInsertInstanceResource
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
517
+ class BulkInsertInstanceResourcePerInstanceProperties
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
511
523
  class CacheInvalidationRule
512
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
525
 
@@ -1390,6 +1402,12 @@ module Google
1390
1402
  include Google::Apis::Core::JsonObjectSupport
1391
1403
  end
1392
1404
 
1405
+ class ImageFamilyView
1406
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1407
+
1408
+ include Google::Apis::Core::JsonObjectSupport
1409
+ end
1410
+
1393
1411
  class ImageList
1394
1412
  class Representation < Google::Apis::Core::JsonRepresentation; end
1395
1413
 
@@ -2182,6 +2200,18 @@ module Google
2182
2200
  include Google::Apis::Core::JsonObjectSupport
2183
2201
  end
2184
2202
 
2203
+ class LocationPolicy
2204
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2205
+
2206
+ include Google::Apis::Core::JsonObjectSupport
2207
+ end
2208
+
2209
+ class LocationPolicyLocation
2210
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2211
+
2212
+ include Google::Apis::Core::JsonObjectSupport
2213
+ end
2214
+
2185
2215
  class LogConfig
2186
2216
  class Representation < Google::Apis::Core::JsonRepresentation; end
2187
2217
 
@@ -4450,6 +4480,12 @@ module Google
4450
4480
  include Google::Apis::Core::JsonObjectSupport
4451
4481
  end
4452
4482
 
4483
+ class Subsetting
4484
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4485
+
4486
+ include Google::Apis::Core::JsonObjectSupport
4487
+ end
4488
+
4453
4489
  class TcpHealthCheck
4454
4490
  class Representation < Google::Apis::Core::JsonRepresentation; end
4455
4491
 
@@ -6036,6 +6072,8 @@ module Google
6036
6072
  property :locality_lb_policy, as: 'localityLbPolicy'
6037
6073
  property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation
6038
6074
 
6075
+ property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
6076
+
6039
6077
  property :name, as: 'name'
6040
6078
  property :network, as: 'network'
6041
6079
  property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeBeta::OutlierDetection, decorator: Google::Apis::ComputeBeta::OutlierDetection::Representation
@@ -6049,6 +6087,8 @@ module Google
6049
6087
 
6050
6088
  property :self_link, as: 'selfLink'
6051
6089
  property :session_affinity, as: 'sessionAffinity'
6090
+ property :subsetting, as: 'subsetting', class: Google::Apis::ComputeBeta::Subsetting, decorator: Google::Apis::ComputeBeta::Subsetting::Representation
6091
+
6052
6092
  property :timeout_sec, as: 'timeoutSec'
6053
6093
  end
6054
6094
  end
@@ -6298,6 +6338,29 @@ module Google
6298
6338
  end
6299
6339
  end
6300
6340
 
6341
+ class BulkInsertInstanceResource
6342
+ # @private
6343
+ class Representation < Google::Apis::Core::JsonRepresentation
6344
+ property :count, :numeric_string => true, as: 'count'
6345
+ property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::InstanceProperties, decorator: Google::Apis::ComputeBeta::InstanceProperties::Representation
6346
+
6347
+ property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeBeta::LocationPolicy, decorator: Google::Apis::ComputeBeta::LocationPolicy::Representation
6348
+
6349
+ property :min_count, :numeric_string => true, as: 'minCount'
6350
+ property :name_pattern, as: 'namePattern'
6351
+ hash :per_instance_properties, as: 'perInstanceProperties', class: Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties, decorator: Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties::Representation
6352
+
6353
+ property :source_instance_template, as: 'sourceInstanceTemplate'
6354
+ end
6355
+ end
6356
+
6357
+ class BulkInsertInstanceResourcePerInstanceProperties
6358
+ # @private
6359
+ class Representation < Google::Apis::Core::JsonRepresentation
6360
+ property :name, as: 'name'
6361
+ end
6362
+ end
6363
+
6301
6364
  class CacheInvalidationRule
6302
6365
  # @private
6303
6366
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7094,6 +7157,7 @@ module Google
7094
7157
 
7095
7158
  property :self_link, as: 'selfLink'
7096
7159
  property :self_link_with_id, as: 'selfLinkWithId'
7160
+ property :short_name, as: 'shortName'
7097
7161
  end
7098
7162
  end
7099
7163
 
@@ -7104,6 +7168,7 @@ module Google
7104
7168
  property :display_name, as: 'displayName'
7105
7169
  property :firewall_policy_id, as: 'firewallPolicyId'
7106
7170
  property :name, as: 'name'
7171
+ property :short_name, as: 'shortName'
7107
7172
  end
7108
7173
  end
7109
7174
 
@@ -7664,6 +7729,8 @@ module Google
7664
7729
  # @private
7665
7730
  class Representation < Google::Apis::Core::JsonRepresentation
7666
7731
  hash :annotations, as: 'annotations'
7732
+ property :forwarding_rule, as: 'forwardingRule'
7733
+ property :forwarding_rule_ip, as: 'forwardingRuleIp'
7667
7734
  property :health_state, as: 'healthState'
7668
7735
  property :instance, as: 'instance'
7669
7736
  property :ip_address, as: 'ipAddress'
@@ -7859,6 +7926,8 @@ module Google
7859
7926
 
7860
7927
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeBeta::HttpFaultInjection, decorator: Google::Apis::ComputeBeta::HttpFaultInjection::Representation
7861
7928
 
7929
+ property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
7930
+
7862
7931
  property :request_mirror_policy, as: 'requestMirrorPolicy', class: Google::Apis::ComputeBeta::RequestMirrorPolicy, decorator: Google::Apis::ComputeBeta::RequestMirrorPolicy::Representation
7863
7932
 
7864
7933
  property :retry_policy, as: 'retryPolicy', class: Google::Apis::ComputeBeta::HttpRetryPolicy, decorator: Google::Apis::ComputeBeta::HttpRetryPolicy::Representation
@@ -8014,6 +8083,14 @@ module Google
8014
8083
  end
8015
8084
  end
8016
8085
 
8086
+ class ImageFamilyView
8087
+ # @private
8088
+ class Representation < Google::Apis::Core::JsonRepresentation
8089
+ property :image, as: 'image', class: Google::Apis::ComputeBeta::Image, decorator: Google::Apis::ComputeBeta::Image::Representation
8090
+
8091
+ end
8092
+ end
8093
+
8017
8094
  class ImageList
8018
8095
  # @private
8019
8096
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8097,6 +8174,7 @@ module Google
8097
8174
 
8098
8175
  property :network_performance_config, as: 'networkPerformanceConfig', class: Google::Apis::ComputeBeta::NetworkPerformanceConfig, decorator: Google::Apis::ComputeBeta::NetworkPerformanceConfig::Representation
8099
8176
 
8177
+ property :post_key_revocation_action_type, as: 'postKeyRevocationActionType'
8100
8178
  property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
8101
8179
  property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation
8102
8180
 
@@ -8927,6 +9005,7 @@ module Google
8927
9005
  property :name, as: 'name'
8928
9006
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
8929
9007
 
9008
+ property :short_name, as: 'shortName'
8930
9009
  property :type, as: 'type'
8931
9010
  end
8932
9011
  end
@@ -9091,9 +9170,11 @@ module Google
9091
9170
  property :dataplane_version, as: 'dataplaneVersion'
9092
9171
  property :description, as: 'description'
9093
9172
  property :edge_availability_domain, as: 'edgeAvailabilityDomain'
9173
+ property :encryption, as: 'encryption'
9094
9174
  property :google_reference_id, as: 'googleReferenceId'
9095
9175
  property :id, :numeric_string => true, as: 'id'
9096
9176
  property :interconnect, as: 'interconnect'
9177
+ collection :ipsec_internal_addresses, as: 'ipsecInternalAddresses'
9097
9178
  property :kind, as: 'kind'
9098
9179
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
9099
9180
  hash :labels, as: 'labels'
@@ -9500,6 +9581,21 @@ module Google
9500
9581
  end
9501
9582
  end
9502
9583
 
9584
+ class LocationPolicy
9585
+ # @private
9586
+ class Representation < Google::Apis::Core::JsonRepresentation
9587
+ hash :locations, as: 'locations', class: Google::Apis::ComputeBeta::LocationPolicyLocation, decorator: Google::Apis::ComputeBeta::LocationPolicyLocation::Representation
9588
+
9589
+ end
9590
+ end
9591
+
9592
+ class LocationPolicyLocation
9593
+ # @private
9594
+ class Representation < Google::Apis::Core::JsonRepresentation
9595
+ property :preference, as: 'preference'
9596
+ end
9597
+ end
9598
+
9503
9599
  class LogConfig
9504
9600
  # @private
9505
9601
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10203,6 +10299,7 @@ module Google
10203
10299
  property :name, as: 'name'
10204
10300
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
10205
10301
 
10302
+ property :short_name, as: 'shortName'
10206
10303
  property :type, as: 'type'
10207
10304
  end
10208
10305
  end
@@ -10751,6 +10848,7 @@ module Google
10751
10848
  property :insert_time, as: 'insertTime'
10752
10849
  property :kind, as: 'kind'
10753
10850
  property :name, as: 'name'
10851
+ property :operation_group_id, as: 'operationGroupId'
10754
10852
  property :operation_type, as: 'operationType'
10755
10853
  property :progress, as: 'progress'
10756
10854
  property :region, as: 'region'
@@ -12354,6 +12452,7 @@ module Google
12354
12452
 
12355
12453
  property :creation_timestamp, as: 'creationTimestamp'
12356
12454
  property :description, as: 'description'
12455
+ property :encrypted_interconnect_router, as: 'encryptedInterconnectRouter'
12357
12456
  property :id, :numeric_string => true, as: 'id'
12358
12457
  collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeBeta::RouterInterface, decorator: Google::Apis::ComputeBeta::RouterInterface::Representation
12359
12458
 
@@ -12437,6 +12536,7 @@ module Google
12437
12536
  property :name, as: 'name'
12438
12537
  property :peer_asn, as: 'peerAsn'
12439
12538
  property :peer_ip_address, as: 'peerIpAddress'
12539
+ property :router_appliance_instance, as: 'routerApplianceInstance'
12440
12540
  end
12441
12541
  end
12442
12542
 
@@ -12458,6 +12558,9 @@ module Google
12458
12558
  property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
12459
12559
  property :management_type, as: 'managementType'
12460
12560
  property :name, as: 'name'
12561
+ property :private_ip_address, as: 'privateIpAddress'
12562
+ property :redundant_interface, as: 'redundantInterface'
12563
+ property :subnetwork, as: 'subnetwork'
12461
12564
  end
12462
12565
  end
12463
12566
 
@@ -12558,6 +12661,7 @@ module Google
12558
12661
  property :name, as: 'name'
12559
12662
  property :num_learned_routes, as: 'numLearnedRoutes'
12560
12663
  property :peer_ip_address, as: 'peerIpAddress'
12664
+ property :router_appliance_instance, as: 'routerApplianceInstance'
12561
12665
  property :state, as: 'state'
12562
12666
  property :status, as: 'status'
12563
12667
  property :uptime, as: 'uptime'
@@ -13604,6 +13708,13 @@ module Google
13604
13708
  end
13605
13709
  end
13606
13710
 
13711
+ class Subsetting
13712
+ # @private
13713
+ class Representation < Google::Apis::Core::JsonRepresentation
13714
+ property :policy, as: 'policy'
13715
+ end
13716
+ end
13717
+
13607
13718
  class TcpHealthCheck
13608
13719
  # @private
13609
13720
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13832,6 +13943,7 @@ module Google
13832
13943
  property :authorization_policy, as: 'authorizationPolicy'
13833
13944
  property :creation_timestamp, as: 'creationTimestamp'
13834
13945
  property :description, as: 'description'
13946
+ property :fingerprint, :base64 => true, as: 'fingerprint'
13835
13947
  collection :http_filters, as: 'httpFilters'
13836
13948
  property :id, :numeric_string => true, as: 'id'
13837
13949
  property :kind, as: 'kind'
@@ -14872,6 +14984,7 @@ module Google
14872
14984
  # @private
14873
14985
  class Representation < Google::Apis::Core::JsonRepresentation
14874
14986
  property :id, as: 'id'
14987
+ property :interconnect_attachment, as: 'interconnectAttachment'
14875
14988
  property :ip_address, as: 'ipAddress'
14876
14989
  end
14877
14990
  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
@@ -2023,7 +2142,8 @@ module Google
2023
2142
  execute_or_queue_command(command, &block)
2024
2143
  end
2025
2144
 
2026
- # Sets the security policy for the specified backend service.
2145
+ # Sets the Google Cloud Armor security policy for the specified backend service.
2146
+ # For more information, see Google Cloud Armor Overview
2027
2147
  # @param [String] project
2028
2148
  # Project ID for this request.
2029
2149
  # @param [String] backend_service
@@ -7954,6 +8074,46 @@ module Google
7954
8074
  execute_or_queue_command(command, &block)
7955
8075
  end
7956
8076
 
8077
+ # Returns the latest image that is part of an image family, is not deprecated
8078
+ # and is rolled out in the specified zone.
8079
+ # @param [String] project
8080
+ # Project ID for this request.
8081
+ # @param [String] zone
8082
+ # The name of the zone for this request.
8083
+ # @param [String] family
8084
+ # Name of the image family to search for.
8085
+ # @param [String] fields
8086
+ # Selector specifying which fields to include in a partial response.
8087
+ # @param [String] quota_user
8088
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
8089
+ # characters.
8090
+ # @param [String] user_ip
8091
+ # Deprecated. Please use quotaUser instead.
8092
+ # @param [Google::Apis::RequestOptions] options
8093
+ # Request-specific options
8094
+ #
8095
+ # @yield [result, err] Result & error if block supplied
8096
+ # @yieldparam result [Google::Apis::ComputeBeta::ImageFamilyView] parsed result object
8097
+ # @yieldparam err [StandardError] error object if request failed
8098
+ #
8099
+ # @return [Google::Apis::ComputeBeta::ImageFamilyView]
8100
+ #
8101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8104
+ def get_image_family_view(project, zone, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8105
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/imageFamilyViews/{family}', options)
8106
+ command.response_representation = Google::Apis::ComputeBeta::ImageFamilyView::Representation
8107
+ command.response_class = Google::Apis::ComputeBeta::ImageFamilyView
8108
+ command.params['project'] = project unless project.nil?
8109
+ command.params['zone'] = zone unless zone.nil?
8110
+ command.params['family'] = family unless family.nil?
8111
+ command.query['fields'] = fields unless fields.nil?
8112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8113
+ command.query['userIp'] = user_ip unless user_ip.nil?
8114
+ execute_or_queue_command(command, &block)
8115
+ end
8116
+
7957
8117
  # Deletes the specified image.
7958
8118
  # @param [String] project
7959
8119
  # Project ID for this request.
@@ -9428,12 +9588,12 @@ module Google
9428
9588
  execute_or_queue_command(command, &block)
9429
9589
  end
9430
9590
 
9431
- # Flags the specified instances in the managed instance group to be immediately
9432
- # recreated. The instances are deleted and recreated using the current instance
9433
- # template for the managed instance group. This operation is marked as DONE when
9434
- # the flag is set even if the instances have not yet been recreated. You must
9435
- # separately verify the status of the recreating action with the
9436
- # listmanagedinstances method.
9591
+ # Flags the specified VM instances in the managed instance group to be
9592
+ # immediately recreated. Each instance is recreated using the group's current
9593
+ # configuration. This operation is marked as DONE when the flag is set even if
9594
+ # the instances have not yet been recreated. You must separately verify the
9595
+ # status of each instance by checking its currentAction field; for more
9596
+ # information, see Checking the status of managed instances.
9437
9597
  # If the group is part of a backend service that has enabled connection draining,
9438
9598
  # it can take up to 60 seconds after the connection draining duration has
9439
9599
  # elapsed before the VM instance is removed or deleted.
@@ -11155,8 +11315,59 @@ module Google
11155
11315
  execute_or_queue_command(command, &block)
11156
11316
  end
11157
11317
 
11158
- # Deletes the specified Instance resource. For more information, see Stopping or
11159
- # Deleting an Instance.
11318
+ # Creates multiple instances. Count specifies the number of instances to create.
11319
+ # @param [String] project
11320
+ # Project ID for this request.
11321
+ # @param [String] zone
11322
+ # The name of the zone for this request.
11323
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
11324
+ # @param [String] request_id
11325
+ # An optional request ID to identify requests. Specify a unique request ID so
11326
+ # that if you must retry your request, the server will know to ignore the
11327
+ # request if it has already been completed.
11328
+ # For example, consider a situation where you make an initial request and the
11329
+ # request times out. If you make the request again with the same request ID, the
11330
+ # server can check if original operation with the same request ID was received,
11331
+ # and if so, will ignore the second request. This prevents clients from
11332
+ # accidentally creating duplicate commitments.
11333
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11334
+ # supported (00000000-0000-0000-0000-000000000000).
11335
+ # @param [String] fields
11336
+ # Selector specifying which fields to include in a partial response.
11337
+ # @param [String] quota_user
11338
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11339
+ # characters.
11340
+ # @param [String] user_ip
11341
+ # Deprecated. Please use quotaUser instead.
11342
+ # @param [Google::Apis::RequestOptions] options
11343
+ # Request-specific options
11344
+ #
11345
+ # @yield [result, err] Result & error if block supplied
11346
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11347
+ # @yieldparam err [StandardError] error object if request failed
11348
+ #
11349
+ # @return [Google::Apis::ComputeBeta::Operation]
11350
+ #
11351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11354
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11355
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
11356
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
11357
+ command.request_object = bulk_insert_instance_resource_object
11358
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11359
+ command.response_class = Google::Apis::ComputeBeta::Operation
11360
+ command.params['project'] = project unless project.nil?
11361
+ command.params['zone'] = zone unless zone.nil?
11362
+ command.query['requestId'] = request_id unless request_id.nil?
11363
+ command.query['fields'] = fields unless fields.nil?
11364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11365
+ command.query['userIp'] = user_ip unless user_ip.nil?
11366
+ execute_or_queue_command(command, &block)
11367
+ end
11368
+
11369
+ # Deletes the specified Instance resource. For more information, see Deleting an
11370
+ # instance.
11160
11371
  # @param [String] project
11161
11372
  # Project ID for this request.
11162
11373
  # @param [String] zone
@@ -14464,6 +14675,47 @@ module Google
14464
14675
  execute_or_queue_command(command, &block)
14465
14676
  end
14466
14677
 
14678
+ # Returns permissions that a caller has on the specified resource. Caution This
14679
+ # resource is intended for use only by third-party partners who are creating
14680
+ # Cloud Marketplace images.
14681
+ # @param [String] project
14682
+ # Project ID for this request.
14683
+ # @param [String] resource
14684
+ # Name or id of the resource for this request.
14685
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
14686
+ # @param [String] fields
14687
+ # Selector specifying which fields to include in a partial response.
14688
+ # @param [String] quota_user
14689
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14690
+ # characters.
14691
+ # @param [String] user_ip
14692
+ # Deprecated. Please use quotaUser instead.
14693
+ # @param [Google::Apis::RequestOptions] options
14694
+ # Request-specific options
14695
+ #
14696
+ # @yield [result, err] Result & error if block supplied
14697
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
14698
+ # @yieldparam err [StandardError] error object if request failed
14699
+ #
14700
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
14701
+ #
14702
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14703
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14704
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14705
+ def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14706
+ command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/testIamPermissions', options)
14707
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
14708
+ command.request_object = test_permissions_request_object
14709
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
14710
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
14711
+ command.params['project'] = project unless project.nil?
14712
+ command.params['resource'] = resource unless resource.nil?
14713
+ command.query['fields'] = fields unless fields.nil?
14714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14715
+ command.query['userIp'] = user_ip unless user_ip.nil?
14716
+ execute_or_queue_command(command, &block)
14717
+ end
14718
+
14467
14719
  # Deletes the specified license. Caution This resource is intended for use only
14468
14720
  # by third-party partners who are creating Cloud Marketplace images.
14469
14721
  # @param [String] project
@@ -14763,6 +15015,47 @@ module Google
14763
15015
  execute_or_queue_command(command, &block)
14764
15016
  end
14765
15017
 
15018
+ # Returns permissions that a caller has on the specified resource. Caution This
15019
+ # resource is intended for use only by third-party partners who are creating
15020
+ # Cloud Marketplace images.
15021
+ # @param [String] project
15022
+ # Project ID for this request.
15023
+ # @param [String] resource
15024
+ # Name or id of the resource for this request.
15025
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
15026
+ # @param [String] fields
15027
+ # Selector specifying which fields to include in a partial response.
15028
+ # @param [String] quota_user
15029
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15030
+ # characters.
15031
+ # @param [String] user_ip
15032
+ # Deprecated. Please use quotaUser instead.
15033
+ # @param [Google::Apis::RequestOptions] options
15034
+ # Request-specific options
15035
+ #
15036
+ # @yield [result, err] Result & error if block supplied
15037
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
15038
+ # @yieldparam err [StandardError] error object if request failed
15039
+ #
15040
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
15041
+ #
15042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15045
+ def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15046
+ command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/testIamPermissions', options)
15047
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
15048
+ command.request_object = test_permissions_request_object
15049
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
15050
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
15051
+ command.params['project'] = project unless project.nil?
15052
+ command.params['resource'] = resource unless resource.nil?
15053
+ command.query['fields'] = fields unless fields.nil?
15054
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15055
+ command.query['userIp'] = user_ip unless user_ip.nil?
15056
+ execute_or_queue_command(command, &block)
15057
+ end
15058
+
14766
15059
  # Deletes the specified machine image. Deleting a machine image is permanent and
14767
15060
  # cannot be undone.
14768
15061
  # @param [String] project
@@ -21268,6 +21561,48 @@ module Google
21268
21561
  execute_or_queue_command(command, &block)
21269
21562
  end
21270
21563
 
21564
+ # Returns permissions that a caller has on the specified resource.
21565
+ # @param [String] project
21566
+ # Project ID for this request.
21567
+ # @param [String] region
21568
+ # The name of the region for this request.
21569
+ # @param [String] resource
21570
+ # Name or id of the resource for this request.
21571
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
21572
+ # @param [String] fields
21573
+ # Selector specifying which fields to include in a partial response.
21574
+ # @param [String] quota_user
21575
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
21576
+ # characters.
21577
+ # @param [String] user_ip
21578
+ # Deprecated. Please use quotaUser instead.
21579
+ # @param [Google::Apis::RequestOptions] options
21580
+ # Request-specific options
21581
+ #
21582
+ # @yield [result, err] Result & error if block supplied
21583
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
21584
+ # @yieldparam err [StandardError] error object if request failed
21585
+ #
21586
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
21587
+ #
21588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21591
+ 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)
21592
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
21593
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
21594
+ command.request_object = test_permissions_request_object
21595
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
21596
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
21597
+ command.params['project'] = project unless project.nil?
21598
+ command.params['region'] = region unless region.nil?
21599
+ command.params['resource'] = resource unless resource.nil?
21600
+ command.query['fields'] = fields unless fields.nil?
21601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21602
+ command.query['userIp'] = user_ip unless user_ip.nil?
21603
+ execute_or_queue_command(command, &block)
21604
+ end
21605
+
21271
21606
  # Transfers GPUs or local SSDs between reservations within commitments.
21272
21607
  # @param [String] project
21273
21608
  # Project ID for this request.
@@ -22345,6 +22680,48 @@ module Google
22345
22680
  execute_or_queue_command(command, &block)
22346
22681
  end
22347
22682
 
22683
+ # Returns permissions that a caller has on the specified resource.
22684
+ # @param [String] project
22685
+ # Project ID for this request.
22686
+ # @param [String] region
22687
+ # The name of the region for this request.
22688
+ # @param [String] resource
22689
+ # Name or id of the resource for this request.
22690
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
22691
+ # @param [String] fields
22692
+ # Selector specifying which fields to include in a partial response.
22693
+ # @param [String] quota_user
22694
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
22695
+ # characters.
22696
+ # @param [String] user_ip
22697
+ # Deprecated. Please use quotaUser instead.
22698
+ # @param [Google::Apis::RequestOptions] options
22699
+ # Request-specific options
22700
+ #
22701
+ # @yield [result, err] Result & error if block supplied
22702
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
22703
+ # @yieldparam err [StandardError] error object if request failed
22704
+ #
22705
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
22706
+ #
22707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22710
+ 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)
22711
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
22712
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
22713
+ command.request_object = test_permissions_request_object
22714
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
22715
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
22716
+ command.params['project'] = project unless project.nil?
22717
+ command.params['region'] = region unless region.nil?
22718
+ command.params['resource'] = resource unless resource.nil?
22719
+ command.query['fields'] = fields unless fields.nil?
22720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22721
+ command.query['userIp'] = user_ip unless user_ip.nil?
22722
+ execute_or_queue_command(command, &block)
22723
+ end
22724
+
22348
22725
  # Deletes the specified HealthCheck resource.
22349
22726
  # @param [String] project
22350
22727
  # Project ID for this request.
@@ -22622,6 +22999,48 @@ module Google
22622
22999
  execute_or_queue_command(command, &block)
22623
23000
  end
22624
23001
 
23002
+ # Returns permissions that a caller has on the specified resource.
23003
+ # @param [String] project
23004
+ # Project ID for this request.
23005
+ # @param [String] region
23006
+ # The name of the region for this request.
23007
+ # @param [String] resource
23008
+ # Name or id of the resource for this request.
23009
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
23010
+ # @param [String] fields
23011
+ # Selector specifying which fields to include in a partial response.
23012
+ # @param [String] quota_user
23013
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
23014
+ # characters.
23015
+ # @param [String] user_ip
23016
+ # Deprecated. Please use quotaUser instead.
23017
+ # @param [Google::Apis::RequestOptions] options
23018
+ # Request-specific options
23019
+ #
23020
+ # @yield [result, err] Result & error if block supplied
23021
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
23022
+ # @yieldparam err [StandardError] error object if request failed
23023
+ #
23024
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
23025
+ #
23026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23029
+ 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)
23030
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
23031
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
23032
+ command.request_object = test_permissions_request_object
23033
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
23034
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
23035
+ command.params['project'] = project unless project.nil?
23036
+ command.params['region'] = region unless region.nil?
23037
+ command.params['resource'] = resource unless resource.nil?
23038
+ command.query['fields'] = fields unless fields.nil?
23039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23040
+ command.query['userIp'] = user_ip unless user_ip.nil?
23041
+ execute_or_queue_command(command, &block)
23042
+ end
23043
+
22625
23044
  # Updates a HealthCheck resource in the specified project using the data
22626
23045
  # included in the request.
22627
23046
  # @param [String] project
@@ -23540,12 +23959,12 @@ module Google
23540
23959
  execute_or_queue_command(command, &block)
23541
23960
  end
23542
23961
 
23543
- # Flags the specified instances in the managed instance group to be immediately
23544
- # recreated. The instances are deleted and recreated using the current instance
23545
- # template for the managed instance group. This operation is marked as DONE when
23546
- # the flag is set even if the instances have not yet been recreated. You must
23547
- # separately verify the status of the recreating action with the
23548
- # listmanagedinstances method.
23962
+ # Flags the specified VM instances in the managed instance group to be
23963
+ # immediately recreated. Each instance is recreated using the group's current
23964
+ # configuration. This operation is marked as DONE when the flag is set even if
23965
+ # the instances have not yet been recreated. You must separately verify the
23966
+ # status of each instance by checking its currentAction field; for more
23967
+ # information, see Checking the status of managed instances.
23549
23968
  # If the group is part of a backend service that has enabled connection draining,
23550
23969
  # it can take up to 60 seconds after the connection draining duration has
23551
23970
  # elapsed before the VM instance is removed or deleted.
@@ -24288,16 +24707,13 @@ module Google
24288
24707
  execute_or_queue_command(command, &block)
24289
24708
  end
24290
24709
 
24291
- # Deletes the specified network endpoint group. Note that the NEG cannot be
24292
- # deleted if it is configured as a backend of a backend service.
24710
+ # Creates multiple instances in a given region. Count specifies the number of
24711
+ # instances to create.
24293
24712
  # @param [String] project
24294
24713
  # Project ID for this request.
24295
24714
  # @param [String] region
24296
- # The name of the region where the network endpoint group is located. It should
24297
- # comply with RFC1035.
24298
- # @param [String] network_endpoint_group
24299
- # The name of the network endpoint group to delete. It should comply with
24300
- # RFC1035.
24715
+ # The name of the region for this request.
24716
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
24301
24717
  # @param [String] request_id
24302
24718
  # An optional request ID to identify requests. Specify a unique request ID so
24303
24719
  # that if you must retry your request, the server will know to ignore the
@@ -24328,13 +24744,14 @@ module Google
24328
24744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24329
24745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24330
24746
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24331
- def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24332
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24747
+ def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24748
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
24749
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
24750
+ command.request_object = bulk_insert_instance_resource_object
24333
24751
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24334
24752
  command.response_class = Google::Apis::ComputeBeta::Operation
24335
24753
  command.params['project'] = project unless project.nil?
24336
24754
  command.params['region'] = region unless region.nil?
24337
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24338
24755
  command.query['requestId'] = request_id unless request_id.nil?
24339
24756
  command.query['fields'] = fields unless fields.nil?
24340
24757
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24342,55 +24759,16 @@ module Google
24342
24759
  execute_or_queue_command(command, &block)
24343
24760
  end
24344
24761
 
24345
- # Returns the specified network endpoint group. Gets a list of available network
24346
- # endpoint groups by making a list() request.
24762
+ # Deletes the specified network endpoint group. Note that the NEG cannot be
24763
+ # deleted if it is configured as a backend of a backend service.
24347
24764
  # @param [String] project
24348
24765
  # Project ID for this request.
24349
24766
  # @param [String] region
24350
24767
  # The name of the region where the network endpoint group is located. It should
24351
24768
  # comply with RFC1035.
24352
24769
  # @param [String] network_endpoint_group
24353
- # The name of the network endpoint group. It should comply with RFC1035.
24354
- # @param [String] fields
24355
- # Selector specifying which fields to include in a partial response.
24356
- # @param [String] quota_user
24357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
24358
- # characters.
24359
- # @param [String] user_ip
24360
- # Deprecated. Please use quotaUser instead.
24361
- # @param [Google::Apis::RequestOptions] options
24362
- # Request-specific options
24363
- #
24364
- # @yield [result, err] Result & error if block supplied
24365
- # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroup] parsed result object
24366
- # @yieldparam err [StandardError] error object if request failed
24367
- #
24368
- # @return [Google::Apis::ComputeBeta::NetworkEndpointGroup]
24369
- #
24370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
24373
- def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24374
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24375
- command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24376
- command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup
24377
- command.params['project'] = project unless project.nil?
24378
- command.params['region'] = region unless region.nil?
24379
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24380
- command.query['fields'] = fields unless fields.nil?
24381
- command.query['quotaUser'] = quota_user unless quota_user.nil?
24382
- command.query['userIp'] = user_ip unless user_ip.nil?
24383
- execute_or_queue_command(command, &block)
24384
- end
24385
-
24386
- # Creates a network endpoint group in the specified project using the parameters
24387
- # that are included in the request.
24388
- # @param [String] project
24389
- # Project ID for this request.
24390
- # @param [String] region
24391
- # The name of the region where you want to create the network endpoint group. It
24392
- # should comply with RFC1035.
24393
- # @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_object
24770
+ # The name of the network endpoint group to delete. It should comply with
24771
+ # RFC1035.
24394
24772
  # @param [String] request_id
24395
24773
  # An optional request ID to identify requests. Specify a unique request ID so
24396
24774
  # that if you must retry your request, the server will know to ignore the
@@ -24421,14 +24799,13 @@ module Google
24421
24799
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24422
24800
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24423
24801
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24424
- def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24425
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24426
- command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24427
- command.request_object = network_endpoint_group_object
24802
+ def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24803
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24428
24804
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24429
24805
  command.response_class = Google::Apis::ComputeBeta::Operation
24430
24806
  command.params['project'] = project unless project.nil?
24431
24807
  command.params['region'] = region unless region.nil?
24808
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24432
24809
  command.query['requestId'] = request_id unless request_id.nil?
24433
24810
  command.query['fields'] = fields unless fields.nil?
24434
24811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24436,50 +24813,15 @@ module Google
24436
24813
  execute_or_queue_command(command, &block)
24437
24814
  end
24438
24815
 
24439
- # Retrieves the list of regional network endpoint groups available to the
24440
- # specified project in the given region.
24816
+ # Returns the specified network endpoint group. Gets a list of available network
24817
+ # endpoint groups by making a list() request.
24441
24818
  # @param [String] project
24442
24819
  # Project ID for this request.
24443
24820
  # @param [String] region
24444
24821
  # The name of the region where the network endpoint group is located. It should
24445
24822
  # comply with RFC1035.
24446
- # @param [String] filter
24447
- # A filter expression that filters resources listed in the response. The
24448
- # expression must specify the field name, a comparison operator, and the value
24449
- # that you want to use for filtering. The value must be a string, a number, or a
24450
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
24451
- # For example, if you are filtering Compute Engine instances, you can exclude
24452
- # instances named `example-instance` by specifying `name != example-instance`.
24453
- # You can also filter nested fields. For example, you could specify `scheduling.
24454
- # automaticRestart = false` to include instances only if they are not scheduled
24455
- # for automatic restarts. You can use filtering on nested fields to filter based
24456
- # on resource labels.
24457
- # To filter on multiple expressions, provide each separate expression within
24458
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
24459
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
24460
- # expression. However, you can include `AND` and `OR` expressions explicitly.
24461
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
24462
- # Broadwell") AND (scheduling.automaticRestart = true) ```
24463
- # @param [Fixnum] max_results
24464
- # The maximum number of results per page that should be returned. If the number
24465
- # of available results is larger than `maxResults`, Compute Engine returns a `
24466
- # nextPageToken` that can be used to get the next page of results in subsequent
24467
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24468
- # @param [String] order_by
24469
- # Sorts list results by a certain order. By default, results are returned in
24470
- # alphanumerical order based on the resource name.
24471
- # You can also sort results in descending order based on the creation timestamp
24472
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
24473
- # creationTimestamp` field in reverse chronological order (newest result first).
24474
- # Use this to sort resources like operations so that the newest operation is
24475
- # returned first.
24476
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24477
- # @param [String] page_token
24478
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24479
- # by a previous list request to get the next page of results.
24480
- # @param [Boolean] return_partial_success
24481
- # Opt-in for partial success behavior which provides partial results in case of
24482
- # failure. The default value is false.
24823
+ # @param [String] network_endpoint_group
24824
+ # The name of the network endpoint group. It should comply with RFC1035.
24483
24825
  # @param [String] fields
24484
24826
  # Selector specifying which fields to include in a partial response.
24485
24827
  # @param [String] quota_user
@@ -24491,38 +24833,167 @@ module Google
24491
24833
  # Request-specific options
24492
24834
  #
24493
24835
  # @yield [result, err] Result & error if block supplied
24494
- # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupList] parsed result object
24836
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroup] parsed result object
24495
24837
  # @yieldparam err [StandardError] error object if request failed
24496
24838
  #
24497
- # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList]
24839
+ # @return [Google::Apis::ComputeBeta::NetworkEndpointGroup]
24498
24840
  #
24499
24841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24500
24842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24501
24843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24502
- def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24503
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24504
- command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation
24505
- command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList
24844
+ def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24845
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
24846
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24847
+ command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup
24506
24848
  command.params['project'] = project unless project.nil?
24507
24849
  command.params['region'] = region unless region.nil?
24508
- command.query['filter'] = filter unless filter.nil?
24509
- command.query['maxResults'] = max_results unless max_results.nil?
24510
- command.query['orderBy'] = order_by unless order_by.nil?
24511
- command.query['pageToken'] = page_token unless page_token.nil?
24512
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24850
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
24513
24851
  command.query['fields'] = fields unless fields.nil?
24514
24852
  command.query['quotaUser'] = quota_user unless quota_user.nil?
24515
24853
  command.query['userIp'] = user_ip unless user_ip.nil?
24516
24854
  execute_or_queue_command(command, &block)
24517
24855
  end
24518
24856
 
24519
- # Deletes the specified NotificationEndpoint in the given region
24857
+ # Creates a network endpoint group in the specified project using the parameters
24858
+ # that are included in the request.
24520
24859
  # @param [String] project
24521
24860
  # Project ID for this request.
24522
24861
  # @param [String] region
24523
- # Name of the region scoping this request.
24524
- # @param [String] notification_endpoint
24525
- # Name of the NotificationEndpoint resource to delete.
24862
+ # The name of the region where you want to create the network endpoint group. It
24863
+ # should comply with RFC1035.
24864
+ # @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_object
24865
+ # @param [String] request_id
24866
+ # An optional request ID to identify requests. Specify a unique request ID so
24867
+ # that if you must retry your request, the server will know to ignore the
24868
+ # request if it has already been completed.
24869
+ # For example, consider a situation where you make an initial request and the
24870
+ # request times out. If you make the request again with the same request ID, the
24871
+ # server can check if original operation with the same request ID was received,
24872
+ # and if so, will ignore the second request. This prevents clients from
24873
+ # accidentally creating duplicate commitments.
24874
+ # The request ID must be a valid UUID with the exception that zero UUID is not
24875
+ # supported (00000000-0000-0000-0000-000000000000).
24876
+ # @param [String] fields
24877
+ # Selector specifying which fields to include in a partial response.
24878
+ # @param [String] quota_user
24879
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24880
+ # characters.
24881
+ # @param [String] user_ip
24882
+ # Deprecated. Please use quotaUser instead.
24883
+ # @param [Google::Apis::RequestOptions] options
24884
+ # Request-specific options
24885
+ #
24886
+ # @yield [result, err] Result & error if block supplied
24887
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24888
+ # @yieldparam err [StandardError] error object if request failed
24889
+ #
24890
+ # @return [Google::Apis::ComputeBeta::Operation]
24891
+ #
24892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24895
+ def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24896
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24897
+ command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation
24898
+ command.request_object = network_endpoint_group_object
24899
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24900
+ command.response_class = Google::Apis::ComputeBeta::Operation
24901
+ command.params['project'] = project unless project.nil?
24902
+ command.params['region'] = region unless region.nil?
24903
+ command.query['requestId'] = request_id unless request_id.nil?
24904
+ command.query['fields'] = fields unless fields.nil?
24905
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24906
+ command.query['userIp'] = user_ip unless user_ip.nil?
24907
+ execute_or_queue_command(command, &block)
24908
+ end
24909
+
24910
+ # Retrieves the list of regional network endpoint groups available to the
24911
+ # specified project in the given region.
24912
+ # @param [String] project
24913
+ # Project ID for this request.
24914
+ # @param [String] region
24915
+ # The name of the region where the network endpoint group is located. It should
24916
+ # comply with RFC1035.
24917
+ # @param [String] filter
24918
+ # A filter expression that filters resources listed in the response. The
24919
+ # expression must specify the field name, a comparison operator, and the value
24920
+ # that you want to use for filtering. The value must be a string, a number, or a
24921
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
24922
+ # For example, if you are filtering Compute Engine instances, you can exclude
24923
+ # instances named `example-instance` by specifying `name != example-instance`.
24924
+ # You can also filter nested fields. For example, you could specify `scheduling.
24925
+ # automaticRestart = false` to include instances only if they are not scheduled
24926
+ # for automatic restarts. You can use filtering on nested fields to filter based
24927
+ # on resource labels.
24928
+ # To filter on multiple expressions, provide each separate expression within
24929
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
24930
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
24931
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
24932
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
24933
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
24934
+ # @param [Fixnum] max_results
24935
+ # The maximum number of results per page that should be returned. If the number
24936
+ # of available results is larger than `maxResults`, Compute Engine returns a `
24937
+ # nextPageToken` that can be used to get the next page of results in subsequent
24938
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24939
+ # @param [String] order_by
24940
+ # Sorts list results by a certain order. By default, results are returned in
24941
+ # alphanumerical order based on the resource name.
24942
+ # You can also sort results in descending order based on the creation timestamp
24943
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
24944
+ # creationTimestamp` field in reverse chronological order (newest result first).
24945
+ # Use this to sort resources like operations so that the newest operation is
24946
+ # returned first.
24947
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24948
+ # @param [String] page_token
24949
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24950
+ # by a previous list request to get the next page of results.
24951
+ # @param [Boolean] return_partial_success
24952
+ # Opt-in for partial success behavior which provides partial results in case of
24953
+ # failure. The default value is false.
24954
+ # @param [String] fields
24955
+ # Selector specifying which fields to include in a partial response.
24956
+ # @param [String] quota_user
24957
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24958
+ # characters.
24959
+ # @param [String] user_ip
24960
+ # Deprecated. Please use quotaUser instead.
24961
+ # @param [Google::Apis::RequestOptions] options
24962
+ # Request-specific options
24963
+ #
24964
+ # @yield [result, err] Result & error if block supplied
24965
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupList] parsed result object
24966
+ # @yieldparam err [StandardError] error object if request failed
24967
+ #
24968
+ # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList]
24969
+ #
24970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24973
+ def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24974
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
24975
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation
24976
+ command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList
24977
+ command.params['project'] = project unless project.nil?
24978
+ command.params['region'] = region unless region.nil?
24979
+ command.query['filter'] = filter unless filter.nil?
24980
+ command.query['maxResults'] = max_results unless max_results.nil?
24981
+ command.query['orderBy'] = order_by unless order_by.nil?
24982
+ command.query['pageToken'] = page_token unless page_token.nil?
24983
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24984
+ command.query['fields'] = fields unless fields.nil?
24985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24986
+ command.query['userIp'] = user_ip unless user_ip.nil?
24987
+ execute_or_queue_command(command, &block)
24988
+ end
24989
+
24990
+ # Deletes the specified NotificationEndpoint in the given region
24991
+ # @param [String] project
24992
+ # Project ID for this request.
24993
+ # @param [String] region
24994
+ # Name of the region scoping this request.
24995
+ # @param [String] notification_endpoint
24996
+ # Name of the NotificationEndpoint resource to delete.
24526
24997
  # @param [String] request_id
24527
24998
  # An optional request ID to identify requests. Specify a unique request ID so
24528
24999
  # that if you must retry your request, the server will know to ignore the
@@ -24736,6 +25207,48 @@ module Google
24736
25207
  execute_or_queue_command(command, &block)
24737
25208
  end
24738
25209
 
25210
+ # Returns permissions that a caller has on the specified resource.
25211
+ # @param [String] project
25212
+ # Project ID for this request.
25213
+ # @param [String] region
25214
+ # The name of the region for this request.
25215
+ # @param [String] resource
25216
+ # Name or id of the resource for this request.
25217
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25218
+ # @param [String] fields
25219
+ # Selector specifying which fields to include in a partial response.
25220
+ # @param [String] quota_user
25221
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25222
+ # characters.
25223
+ # @param [String] user_ip
25224
+ # Deprecated. Please use quotaUser instead.
25225
+ # @param [Google::Apis::RequestOptions] options
25226
+ # Request-specific options
25227
+ #
25228
+ # @yield [result, err] Result & error if block supplied
25229
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25230
+ # @yieldparam err [StandardError] error object if request failed
25231
+ #
25232
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25233
+ #
25234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25237
+ 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)
25238
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
25239
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
25240
+ command.request_object = test_permissions_request_object
25241
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
25242
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25243
+ command.params['project'] = project unless project.nil?
25244
+ command.params['region'] = region unless region.nil?
25245
+ command.params['resource'] = resource unless resource.nil?
25246
+ command.query['fields'] = fields unless fields.nil?
25247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25248
+ command.query['userIp'] = user_ip unless user_ip.nil?
25249
+ execute_or_queue_command(command, &block)
25250
+ end
25251
+
24739
25252
  # Deletes the specified region-specific Operations resource.
24740
25253
  # @param [String] project
24741
25254
  # Project ID for this request.
@@ -25161,6 +25674,48 @@ module Google
25161
25674
  execute_or_queue_command(command, &block)
25162
25675
  end
25163
25676
 
25677
+ # Returns permissions that a caller has on the specified resource and region.
25678
+ # @param [String] project
25679
+ # Project ID for this request.
25680
+ # @param [String] region
25681
+ # The name of the region for this request.
25682
+ # @param [String] resource
25683
+ # Name or id of the resource for this request.
25684
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25685
+ # @param [String] fields
25686
+ # Selector specifying which fields to include in a partial response.
25687
+ # @param [String] quota_user
25688
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25689
+ # characters.
25690
+ # @param [String] user_ip
25691
+ # Deprecated. Please use quotaUser instead.
25692
+ # @param [Google::Apis::RequestOptions] options
25693
+ # Request-specific options
25694
+ #
25695
+ # @yield [result, err] Result & error if block supplied
25696
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25697
+ # @yieldparam err [StandardError] error object if request failed
25698
+ #
25699
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25700
+ #
25701
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25702
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25703
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25704
+ 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)
25705
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions', options)
25706
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
25707
+ command.request_object = test_permissions_request_object
25708
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
25709
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25710
+ command.params['project'] = project unless project.nil?
25711
+ command.params['region'] = region unless region.nil?
25712
+ command.params['resource'] = resource unless resource.nil?
25713
+ command.query['fields'] = fields unless fields.nil?
25714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25715
+ command.query['userIp'] = user_ip unless user_ip.nil?
25716
+ execute_or_queue_command(command, &block)
25717
+ end
25718
+
25164
25719
  # Deletes the specified TargetHttpProxy resource.
25165
25720
  # @param [String] project
25166
25721
  # Project ID for this request.
@@ -25437,24 +25992,14 @@ module Google
25437
25992
  execute_or_queue_command(command, &block)
25438
25993
  end
25439
25994
 
25440
- # Deletes the specified TargetHttpsProxy resource.
25995
+ # Returns permissions that a caller has on the specified resource.
25441
25996
  # @param [String] project
25442
25997
  # Project ID for this request.
25443
25998
  # @param [String] region
25444
- # Name of the region scoping this request.
25445
- # @param [String] target_https_proxy
25446
- # Name of the TargetHttpsProxy resource to delete.
25447
- # @param [String] request_id
25448
- # An optional request ID to identify requests. Specify a unique request ID so
25449
- # that if you must retry your request, the server will know to ignore the
25450
- # request if it has already been completed.
25451
- # For example, consider a situation where you make an initial request and the
25452
- # request times out. If you make the request again with the same request ID, the
25453
- # server can check if original operation with the same request ID was received,
25454
- # and if so, will ignore the second request. This prevents clients from
25455
- # accidentally creating duplicate commitments.
25456
- # The request ID must be a valid UUID with the exception that zero UUID is not
25457
- # supported (00000000-0000-0000-0000-000000000000).
25999
+ # The name of the region for this request.
26000
+ # @param [String] resource
26001
+ # Name or id of the resource for this request.
26002
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
25458
26003
  # @param [String] fields
25459
26004
  # Selector specifying which fields to include in a partial response.
25460
26005
  # @param [String] quota_user
@@ -25466,75 +26011,127 @@ module Google
25466
26011
  # Request-specific options
25467
26012
  #
25468
26013
  # @yield [result, err] Result & error if block supplied
25469
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
26014
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
25470
26015
  # @yieldparam err [StandardError] error object if request failed
25471
26016
  #
25472
- # @return [Google::Apis::ComputeBeta::Operation]
26017
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
25473
26018
  #
25474
26019
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25475
26020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25476
26021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25477
- def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25478
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25479
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
25480
- command.response_class = Google::Apis::ComputeBeta::Operation
26022
+ 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)
26023
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions', options)
26024
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
26025
+ command.request_object = test_permissions_request_object
26026
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
26027
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
25481
26028
  command.params['project'] = project unless project.nil?
25482
26029
  command.params['region'] = region unless region.nil?
25483
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25484
- command.query['requestId'] = request_id unless request_id.nil?
26030
+ command.params['resource'] = resource unless resource.nil?
25485
26031
  command.query['fields'] = fields unless fields.nil?
25486
26032
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25487
26033
  command.query['userIp'] = user_ip unless user_ip.nil?
25488
26034
  execute_or_queue_command(command, &block)
25489
26035
  end
25490
26036
 
25491
- # Returns the specified TargetHttpsProxy resource in the specified region. Gets
25492
- # a list of available target HTTP proxies by making a list() request.
26037
+ # Deletes the specified TargetHttpsProxy resource.
25493
26038
  # @param [String] project
25494
26039
  # Project ID for this request.
25495
26040
  # @param [String] region
25496
26041
  # Name of the region scoping this request.
25497
26042
  # @param [String] target_https_proxy
25498
- # Name of the TargetHttpsProxy resource to return.
25499
- # @param [String] fields
25500
- # Selector specifying which fields to include in a partial response.
25501
- # @param [String] quota_user
25502
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25503
- # characters.
25504
- # @param [String] user_ip
25505
- # Deprecated. Please use quotaUser instead.
25506
- # @param [Google::Apis::RequestOptions] options
25507
- # Request-specific options
25508
- #
25509
- # @yield [result, err] Result & error if block supplied
25510
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
25511
- # @yieldparam err [StandardError] error object if request failed
25512
- #
25513
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
25514
- #
25515
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25516
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25517
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25518
- def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25519
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
25520
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
25521
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
25522
- command.params['project'] = project unless project.nil?
25523
- command.params['region'] = region unless region.nil?
25524
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
25525
- command.query['fields'] = fields unless fields.nil?
25526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25527
- command.query['userIp'] = user_ip unless user_ip.nil?
25528
- execute_or_queue_command(command, &block)
25529
- end
25530
-
25531
- # Creates a TargetHttpsProxy resource in the specified project and region using
25532
- # the data included in the request.
25533
- # @param [String] project
25534
- # Project ID for this request.
25535
- # @param [String] region
25536
- # Name of the region scoping this request.
25537
- # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
26043
+ # Name of the TargetHttpsProxy resource to delete.
26044
+ # @param [String] request_id
26045
+ # An optional request ID to identify requests. Specify a unique request ID so
26046
+ # that if you must retry your request, the server will know to ignore the
26047
+ # request if it has already been completed.
26048
+ # For example, consider a situation where you make an initial request and the
26049
+ # request times out. If you make the request again with the same request ID, the
26050
+ # server can check if original operation with the same request ID was received,
26051
+ # and if so, will ignore the second request. This prevents clients from
26052
+ # accidentally creating duplicate commitments.
26053
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26054
+ # supported (00000000-0000-0000-0000-000000000000).
26055
+ # @param [String] fields
26056
+ # Selector specifying which fields to include in a partial response.
26057
+ # @param [String] quota_user
26058
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26059
+ # characters.
26060
+ # @param [String] user_ip
26061
+ # Deprecated. Please use quotaUser instead.
26062
+ # @param [Google::Apis::RequestOptions] options
26063
+ # Request-specific options
26064
+ #
26065
+ # @yield [result, err] Result & error if block supplied
26066
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
26067
+ # @yieldparam err [StandardError] error object if request failed
26068
+ #
26069
+ # @return [Google::Apis::ComputeBeta::Operation]
26070
+ #
26071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26074
+ 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)
26075
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
26076
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
26077
+ command.response_class = Google::Apis::ComputeBeta::Operation
26078
+ command.params['project'] = project unless project.nil?
26079
+ command.params['region'] = region unless region.nil?
26080
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
26081
+ command.query['requestId'] = request_id unless request_id.nil?
26082
+ command.query['fields'] = fields unless fields.nil?
26083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26084
+ command.query['userIp'] = user_ip unless user_ip.nil?
26085
+ execute_or_queue_command(command, &block)
26086
+ end
26087
+
26088
+ # Returns the specified TargetHttpsProxy resource in the specified region. Gets
26089
+ # a list of available target HTTP proxies by making a list() request.
26090
+ # @param [String] project
26091
+ # Project ID for this request.
26092
+ # @param [String] region
26093
+ # Name of the region scoping this request.
26094
+ # @param [String] target_https_proxy
26095
+ # Name of the TargetHttpsProxy resource to return.
26096
+ # @param [String] fields
26097
+ # Selector specifying which fields to include in a partial response.
26098
+ # @param [String] quota_user
26099
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26100
+ # characters.
26101
+ # @param [String] user_ip
26102
+ # Deprecated. Please use quotaUser instead.
26103
+ # @param [Google::Apis::RequestOptions] options
26104
+ # Request-specific options
26105
+ #
26106
+ # @yield [result, err] Result & error if block supplied
26107
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
26108
+ # @yieldparam err [StandardError] error object if request failed
26109
+ #
26110
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
26111
+ #
26112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26115
+ def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26116
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
26117
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
26118
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
26119
+ command.params['project'] = project unless project.nil?
26120
+ command.params['region'] = region unless region.nil?
26121
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
26122
+ command.query['fields'] = fields unless fields.nil?
26123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26124
+ command.query['userIp'] = user_ip unless user_ip.nil?
26125
+ execute_or_queue_command(command, &block)
26126
+ end
26127
+
26128
+ # Creates a TargetHttpsProxy resource in the specified project and region using
26129
+ # the data included in the request.
26130
+ # @param [String] project
26131
+ # Project ID for this request.
26132
+ # @param [String] region
26133
+ # Name of the region scoping this request.
26134
+ # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
25538
26135
  # @param [String] request_id
25539
26136
  # An optional request ID to identify requests. Specify a unique request ID so
25540
26137
  # that if you must retry your request, the server will know to ignore the
@@ -25767,6 +26364,48 @@ module Google
25767
26364
  execute_or_queue_command(command, &block)
25768
26365
  end
25769
26366
 
26367
+ # Returns permissions that a caller has on the specified resource.
26368
+ # @param [String] project
26369
+ # Project ID for this request.
26370
+ # @param [String] region
26371
+ # The name of the region for this request.
26372
+ # @param [String] resource
26373
+ # Name or id of the resource for this request.
26374
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
26375
+ # @param [String] fields
26376
+ # Selector specifying which fields to include in a partial response.
26377
+ # @param [String] quota_user
26378
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26379
+ # characters.
26380
+ # @param [String] user_ip
26381
+ # Deprecated. Please use quotaUser instead.
26382
+ # @param [Google::Apis::RequestOptions] options
26383
+ # Request-specific options
26384
+ #
26385
+ # @yield [result, err] Result & error if block supplied
26386
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
26387
+ # @yieldparam err [StandardError] error object if request failed
26388
+ #
26389
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
26390
+ #
26391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26394
+ 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)
26395
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions', options)
26396
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
26397
+ command.request_object = test_permissions_request_object
26398
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
26399
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
26400
+ command.params['project'] = project unless project.nil?
26401
+ command.params['region'] = region unless region.nil?
26402
+ command.params['resource'] = resource unless resource.nil?
26403
+ command.query['fields'] = fields unless fields.nil?
26404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26405
+ command.query['userIp'] = user_ip unless user_ip.nil?
26406
+ execute_or_queue_command(command, &block)
26407
+ end
26408
+
25770
26409
  # Deletes the specified UrlMap resource.
25771
26410
  # @param [String] project
25772
26411
  # Project ID for this request.
@@ -26066,6 +26705,48 @@ module Google
26066
26705
  execute_or_queue_command(command, &block)
26067
26706
  end
26068
26707
 
26708
+ # Returns permissions that a caller has on the specified resource.
26709
+ # @param [String] project
26710
+ # Project ID for this request.
26711
+ # @param [String] region
26712
+ # The name of the region for this request.
26713
+ # @param [String] resource
26714
+ # Name or id of the resource for this request.
26715
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
26716
+ # @param [String] fields
26717
+ # Selector specifying which fields to include in a partial response.
26718
+ # @param [String] quota_user
26719
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26720
+ # characters.
26721
+ # @param [String] user_ip
26722
+ # Deprecated. Please use quotaUser instead.
26723
+ # @param [Google::Apis::RequestOptions] options
26724
+ # Request-specific options
26725
+ #
26726
+ # @yield [result, err] Result & error if block supplied
26727
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
26728
+ # @yieldparam err [StandardError] error object if request failed
26729
+ #
26730
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
26731
+ #
26732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26735
+ 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)
26736
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions', options)
26737
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
26738
+ command.request_object = test_permissions_request_object
26739
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
26740
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
26741
+ command.params['project'] = project unless project.nil?
26742
+ command.params['region'] = region unless region.nil?
26743
+ command.params['resource'] = resource unless resource.nil?
26744
+ command.query['fields'] = fields unless fields.nil?
26745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26746
+ command.query['userIp'] = user_ip unless user_ip.nil?
26747
+ execute_or_queue_command(command, &block)
26748
+ end
26749
+
26069
26750
  # Updates the specified UrlMap resource with the data included in the request.
26070
26751
  # @param [String] project
26071
26752
  # Project ID for this request.
@@ -28818,6 +29499,49 @@ module Google
28818
29499
  execute_or_queue_command(command, &block)
28819
29500
  end
28820
29501
 
29502
+ # Gets the access control policy for a resource. May be empty if no such policy
29503
+ # or resource exists.
29504
+ # @param [String] project
29505
+ # Project ID for this request.
29506
+ # @param [String] region
29507
+ # The name of the region for this request.
29508
+ # @param [String] resource
29509
+ # Name or id of the resource for this request.
29510
+ # @param [Fixnum] options_requested_policy_version
29511
+ # Requested IAM Policy version.
29512
+ # @param [String] fields
29513
+ # Selector specifying which fields to include in a partial response.
29514
+ # @param [String] quota_user
29515
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29516
+ # characters.
29517
+ # @param [String] user_ip
29518
+ # Deprecated. Please use quotaUser instead.
29519
+ # @param [Google::Apis::RequestOptions] options
29520
+ # Request-specific options
29521
+ #
29522
+ # @yield [result, err] Result & error if block supplied
29523
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
29524
+ # @yieldparam err [StandardError] error object if request failed
29525
+ #
29526
+ # @return [Google::Apis::ComputeBeta::Policy]
29527
+ #
29528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29531
+ 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)
29532
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options)
29533
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
29534
+ command.response_class = Google::Apis::ComputeBeta::Policy
29535
+ command.params['project'] = project unless project.nil?
29536
+ command.params['region'] = region unless region.nil?
29537
+ command.params['resource'] = resource unless resource.nil?
29538
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
29539
+ command.query['fields'] = fields unless fields.nil?
29540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29541
+ command.query['userIp'] = user_ip unless user_ip.nil?
29542
+ execute_or_queue_command(command, &block)
29543
+ end
29544
+
28821
29545
  # Creates a ServiceAttachment in the specified project in the given scope using
28822
29546
  # the parameters that are included in the request.
28823
29547
  # @param [String] project
@@ -28948,6 +29672,91 @@ module Google
28948
29672
  execute_or_queue_command(command, &block)
28949
29673
  end
28950
29674
 
29675
+ # Sets the access control policy on the specified resource. Replaces any
29676
+ # existing policy.
29677
+ # @param [String] project
29678
+ # Project ID for this request.
29679
+ # @param [String] region
29680
+ # The name of the region for this request.
29681
+ # @param [String] resource
29682
+ # Name or id of the resource for this request.
29683
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
29684
+ # @param [String] fields
29685
+ # Selector specifying which fields to include in a partial response.
29686
+ # @param [String] quota_user
29687
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29688
+ # characters.
29689
+ # @param [String] user_ip
29690
+ # Deprecated. Please use quotaUser instead.
29691
+ # @param [Google::Apis::RequestOptions] options
29692
+ # Request-specific options
29693
+ #
29694
+ # @yield [result, err] Result & error if block supplied
29695
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
29696
+ # @yieldparam err [StandardError] error object if request failed
29697
+ #
29698
+ # @return [Google::Apis::ComputeBeta::Policy]
29699
+ #
29700
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29701
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29702
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29703
+ 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)
29704
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
29705
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
29706
+ command.request_object = region_set_policy_request_object
29707
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
29708
+ command.response_class = Google::Apis::ComputeBeta::Policy
29709
+ command.params['project'] = project unless project.nil?
29710
+ command.params['region'] = region unless region.nil?
29711
+ command.params['resource'] = resource unless resource.nil?
29712
+ command.query['fields'] = fields unless fields.nil?
29713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29714
+ command.query['userIp'] = user_ip unless user_ip.nil?
29715
+ execute_or_queue_command(command, &block)
29716
+ end
29717
+
29718
+ # Returns permissions that a caller has on the specified resource.
29719
+ # @param [String] project
29720
+ # Project ID for this request.
29721
+ # @param [String] region
29722
+ # The name of the region for this request.
29723
+ # @param [String] resource
29724
+ # Name or id of the resource for this request.
29725
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
29726
+ # @param [String] fields
29727
+ # Selector specifying which fields to include in a partial response.
29728
+ # @param [String] quota_user
29729
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29730
+ # characters.
29731
+ # @param [String] user_ip
29732
+ # Deprecated. Please use quotaUser instead.
29733
+ # @param [Google::Apis::RequestOptions] options
29734
+ # Request-specific options
29735
+ #
29736
+ # @yield [result, err] Result & error if block supplied
29737
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
29738
+ # @yieldparam err [StandardError] error object if request failed
29739
+ #
29740
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
29741
+ #
29742
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29743
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29744
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29745
+ 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)
29746
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
29747
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
29748
+ command.request_object = test_permissions_request_object
29749
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
29750
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
29751
+ command.params['project'] = project unless project.nil?
29752
+ command.params['region'] = region unless region.nil?
29753
+ command.params['resource'] = resource unless resource.nil?
29754
+ command.query['fields'] = fields unless fields.nil?
29755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29756
+ command.query['userIp'] = user_ip unless user_ip.nil?
29757
+ execute_or_queue_command(command, &block)
29758
+ end
29759
+
28951
29760
  # Deletes the specified Snapshot resource. Keep in mind that deleting a single
28952
29761
  # snapshot might not necessarily delete all the data on that snapshot. If any
28953
29762
  # data on the snapshot that is marked for deletion is needed for subsequent
@@ -30975,6 +31784,45 @@ module Google
30975
31784
  execute_or_queue_command(command, &block)
30976
31785
  end
30977
31786
 
31787
+ # Returns permissions that a caller has on the specified resource.
31788
+ # @param [String] project
31789
+ # Project ID for this request.
31790
+ # @param [String] resource
31791
+ # Name or id of the resource for this request.
31792
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
31793
+ # @param [String] fields
31794
+ # Selector specifying which fields to include in a partial response.
31795
+ # @param [String] quota_user
31796
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
31797
+ # characters.
31798
+ # @param [String] user_ip
31799
+ # Deprecated. Please use quotaUser instead.
31800
+ # @param [Google::Apis::RequestOptions] options
31801
+ # Request-specific options
31802
+ #
31803
+ # @yield [result, err] Result & error if block supplied
31804
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
31805
+ # @yieldparam err [StandardError] error object if request failed
31806
+ #
31807
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
31808
+ #
31809
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31810
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31811
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31812
+ 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)
31813
+ command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions', options)
31814
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
31815
+ command.request_object = test_permissions_request_object
31816
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
31817
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
31818
+ command.params['project'] = project unless project.nil?
31819
+ command.params['resource'] = resource unless resource.nil?
31820
+ command.query['fields'] = fields unless fields.nil?
31821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31822
+ command.query['userIp'] = user_ip unless user_ip.nil?
31823
+ execute_or_queue_command(command, &block)
31824
+ end
31825
+
30978
31826
  # Retrieves the list of all TargetHttpProxy resources, regional and global,
30979
31827
  # available to the specified project.
30980
31828
  # @param [String] project
@@ -33508,8 +34356,221 @@ module Google
33508
34356
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33509
34357
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33510
34358
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33511
- def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33512
- command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34359
+ def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34360
+ command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34361
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34362
+ command.response_class = Google::Apis::ComputeBeta::Operation
34363
+ command.params['project'] = project unless project.nil?
34364
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
34365
+ command.query['requestId'] = request_id unless request_id.nil?
34366
+ command.query['fields'] = fields unless fields.nil?
34367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34368
+ command.query['userIp'] = user_ip unless user_ip.nil?
34369
+ execute_or_queue_command(command, &block)
34370
+ end
34371
+
34372
+ # Returns the specified TargetTcpProxy resource. Gets a list of available target
34373
+ # TCP proxies by making a list() request.
34374
+ # @param [String] project
34375
+ # Project ID for this request.
34376
+ # @param [String] target_tcp_proxy
34377
+ # Name of the TargetTcpProxy resource to return.
34378
+ # @param [String] fields
34379
+ # Selector specifying which fields to include in a partial response.
34380
+ # @param [String] quota_user
34381
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34382
+ # characters.
34383
+ # @param [String] user_ip
34384
+ # Deprecated. Please use quotaUser instead.
34385
+ # @param [Google::Apis::RequestOptions] options
34386
+ # Request-specific options
34387
+ #
34388
+ # @yield [result, err] Result & error if block supplied
34389
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
34390
+ # @yieldparam err [StandardError] error object if request failed
34391
+ #
34392
+ # @return [Google::Apis::ComputeBeta::TargetTcpProxy]
34393
+ #
34394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34397
+ def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34398
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
34399
+ command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
34400
+ command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
34401
+ command.params['project'] = project unless project.nil?
34402
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
34403
+ command.query['fields'] = fields unless fields.nil?
34404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34405
+ command.query['userIp'] = user_ip unless user_ip.nil?
34406
+ execute_or_queue_command(command, &block)
34407
+ end
34408
+
34409
+ # Creates a TargetTcpProxy resource in the specified project using the data
34410
+ # included in the request.
34411
+ # @param [String] project
34412
+ # Project ID for this request.
34413
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
34414
+ # @param [String] request_id
34415
+ # An optional request ID to identify requests. Specify a unique request ID so
34416
+ # that if you must retry your request, the server will know to ignore the
34417
+ # request if it has already been completed.
34418
+ # For example, consider a situation where you make an initial request and the
34419
+ # request times out. If you make the request again with the same request ID, the
34420
+ # server can check if original operation with the same request ID was received,
34421
+ # and if so, will ignore the second request. This prevents clients from
34422
+ # accidentally creating duplicate commitments.
34423
+ # The request ID must be a valid UUID with the exception that zero UUID is not
34424
+ # supported (00000000-0000-0000-0000-000000000000).
34425
+ # @param [String] fields
34426
+ # Selector specifying which fields to include in a partial response.
34427
+ # @param [String] quota_user
34428
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34429
+ # characters.
34430
+ # @param [String] user_ip
34431
+ # Deprecated. Please use quotaUser instead.
34432
+ # @param [Google::Apis::RequestOptions] options
34433
+ # Request-specific options
34434
+ #
34435
+ # @yield [result, err] Result & error if block supplied
34436
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34437
+ # @yieldparam err [StandardError] error object if request failed
34438
+ #
34439
+ # @return [Google::Apis::ComputeBeta::Operation]
34440
+ #
34441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34444
+ 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)
34445
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
34446
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
34447
+ command.request_object = target_tcp_proxy_object
34448
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34449
+ command.response_class = Google::Apis::ComputeBeta::Operation
34450
+ command.params['project'] = project unless project.nil?
34451
+ command.query['requestId'] = request_id unless request_id.nil?
34452
+ command.query['fields'] = fields unless fields.nil?
34453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34454
+ command.query['userIp'] = user_ip unless user_ip.nil?
34455
+ execute_or_queue_command(command, &block)
34456
+ end
34457
+
34458
+ # Retrieves the list of TargetTcpProxy resources available to the specified
34459
+ # project.
34460
+ # @param [String] project
34461
+ # Project ID for this request.
34462
+ # @param [String] filter
34463
+ # A filter expression that filters resources listed in the response. The
34464
+ # expression must specify the field name, a comparison operator, and the value
34465
+ # that you want to use for filtering. The value must be a string, a number, or a
34466
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
34467
+ # For example, if you are filtering Compute Engine instances, you can exclude
34468
+ # instances named `example-instance` by specifying `name != example-instance`.
34469
+ # You can also filter nested fields. For example, you could specify `scheduling.
34470
+ # automaticRestart = false` to include instances only if they are not scheduled
34471
+ # for automatic restarts. You can use filtering on nested fields to filter based
34472
+ # on resource labels.
34473
+ # To filter on multiple expressions, provide each separate expression within
34474
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
34475
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
34476
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
34477
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
34478
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
34479
+ # @param [Fixnum] max_results
34480
+ # The maximum number of results per page that should be returned. If the number
34481
+ # of available results is larger than `maxResults`, Compute Engine returns a `
34482
+ # nextPageToken` that can be used to get the next page of results in subsequent
34483
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
34484
+ # @param [String] order_by
34485
+ # Sorts list results by a certain order. By default, results are returned in
34486
+ # alphanumerical order based on the resource name.
34487
+ # You can also sort results in descending order based on the creation timestamp
34488
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
34489
+ # creationTimestamp` field in reverse chronological order (newest result first).
34490
+ # Use this to sort resources like operations so that the newest operation is
34491
+ # returned first.
34492
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
34493
+ # @param [String] page_token
34494
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
34495
+ # by a previous list request to get the next page of results.
34496
+ # @param [Boolean] return_partial_success
34497
+ # Opt-in for partial success behavior which provides partial results in case of
34498
+ # failure. The default value is false.
34499
+ # @param [String] fields
34500
+ # Selector specifying which fields to include in a partial response.
34501
+ # @param [String] quota_user
34502
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34503
+ # characters.
34504
+ # @param [String] user_ip
34505
+ # Deprecated. Please use quotaUser instead.
34506
+ # @param [Google::Apis::RequestOptions] options
34507
+ # Request-specific options
34508
+ #
34509
+ # @yield [result, err] Result & error if block supplied
34510
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
34511
+ # @yieldparam err [StandardError] error object if request failed
34512
+ #
34513
+ # @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
34514
+ #
34515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34518
+ 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)
34519
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
34520
+ command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
34521
+ command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
34522
+ command.params['project'] = project unless project.nil?
34523
+ command.query['filter'] = filter unless filter.nil?
34524
+ command.query['maxResults'] = max_results unless max_results.nil?
34525
+ command.query['orderBy'] = order_by unless order_by.nil?
34526
+ command.query['pageToken'] = page_token unless page_token.nil?
34527
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
34528
+ command.query['fields'] = fields unless fields.nil?
34529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34530
+ command.query['userIp'] = user_ip unless user_ip.nil?
34531
+ execute_or_queue_command(command, &block)
34532
+ end
34533
+
34534
+ # Changes the BackendService for TargetTcpProxy.
34535
+ # @param [String] project
34536
+ # Project ID for this request.
34537
+ # @param [String] target_tcp_proxy
34538
+ # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
34539
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
34540
+ # @param [String] request_id
34541
+ # An optional request ID to identify requests. Specify a unique request ID so
34542
+ # that if you must retry your request, the server will know to ignore the
34543
+ # request if it has already been completed.
34544
+ # For example, consider a situation where you make an initial request and the
34545
+ # request times out. If you make the request again with the same request ID, the
34546
+ # server can check if original operation with the same request ID was received,
34547
+ # and if so, will ignore the second request. This prevents clients from
34548
+ # accidentally creating duplicate commitments.
34549
+ # The request ID must be a valid UUID with the exception that zero UUID is not
34550
+ # supported (00000000-0000-0000-0000-000000000000).
34551
+ # @param [String] fields
34552
+ # Selector specifying which fields to include in a partial response.
34553
+ # @param [String] quota_user
34554
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34555
+ # characters.
34556
+ # @param [String] user_ip
34557
+ # Deprecated. Please use quotaUser instead.
34558
+ # @param [Google::Apis::RequestOptions] options
34559
+ # Request-specific options
34560
+ #
34561
+ # @yield [result, err] Result & error if block supplied
34562
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34563
+ # @yieldparam err [StandardError] error object if request failed
34564
+ #
34565
+ # @return [Google::Apis::ComputeBeta::Operation]
34566
+ #
34567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34570
+ 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)
34571
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
34572
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
34573
+ command.request_object = target_tcp_proxies_set_backend_service_request_object
33513
34574
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33514
34575
  command.response_class = Google::Apis::ComputeBeta::Operation
33515
34576
  command.params['project'] = project unless project.nil?
@@ -33521,174 +34582,12 @@ module Google
33521
34582
  execute_or_queue_command(command, &block)
33522
34583
  end
33523
34584
 
33524
- # Returns the specified TargetTcpProxy resource. Gets a list of available target
33525
- # TCP proxies by making a list() request.
33526
- # @param [String] project
33527
- # Project ID for this request.
33528
- # @param [String] target_tcp_proxy
33529
- # Name of the TargetTcpProxy resource to return.
33530
- # @param [String] fields
33531
- # Selector specifying which fields to include in a partial response.
33532
- # @param [String] quota_user
33533
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33534
- # characters.
33535
- # @param [String] user_ip
33536
- # Deprecated. Please use quotaUser instead.
33537
- # @param [Google::Apis::RequestOptions] options
33538
- # Request-specific options
33539
- #
33540
- # @yield [result, err] Result & error if block supplied
33541
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
33542
- # @yieldparam err [StandardError] error object if request failed
33543
- #
33544
- # @return [Google::Apis::ComputeBeta::TargetTcpProxy]
33545
- #
33546
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33547
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33548
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33549
- def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33550
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
33551
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33552
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
33553
- command.params['project'] = project unless project.nil?
33554
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33555
- command.query['fields'] = fields unless fields.nil?
33556
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33557
- command.query['userIp'] = user_ip unless user_ip.nil?
33558
- execute_or_queue_command(command, &block)
33559
- end
33560
-
33561
- # Creates a TargetTcpProxy resource in the specified project using the data
33562
- # included in the request.
33563
- # @param [String] project
33564
- # Project ID for this request.
33565
- # @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
33566
- # @param [String] request_id
33567
- # An optional request ID to identify requests. Specify a unique request ID so
33568
- # that if you must retry your request, the server will know to ignore the
33569
- # request if it has already been completed.
33570
- # For example, consider a situation where you make an initial request and the
33571
- # request times out. If you make the request again with the same request ID, the
33572
- # server can check if original operation with the same request ID was received,
33573
- # and if so, will ignore the second request. This prevents clients from
33574
- # accidentally creating duplicate commitments.
33575
- # The request ID must be a valid UUID with the exception that zero UUID is not
33576
- # supported (00000000-0000-0000-0000-000000000000).
33577
- # @param [String] fields
33578
- # Selector specifying which fields to include in a partial response.
33579
- # @param [String] quota_user
33580
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33581
- # characters.
33582
- # @param [String] user_ip
33583
- # Deprecated. Please use quotaUser instead.
33584
- # @param [Google::Apis::RequestOptions] options
33585
- # Request-specific options
33586
- #
33587
- # @yield [result, err] Result & error if block supplied
33588
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
33589
- # @yieldparam err [StandardError] error object if request failed
33590
- #
33591
- # @return [Google::Apis::ComputeBeta::Operation]
33592
- #
33593
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33594
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33595
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33596
- 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)
33597
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
33598
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
33599
- command.request_object = target_tcp_proxy_object
33600
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33601
- command.response_class = Google::Apis::ComputeBeta::Operation
33602
- command.params['project'] = project unless project.nil?
33603
- command.query['requestId'] = request_id unless request_id.nil?
33604
- command.query['fields'] = fields unless fields.nil?
33605
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33606
- command.query['userIp'] = user_ip unless user_ip.nil?
33607
- execute_or_queue_command(command, &block)
33608
- end
33609
-
33610
- # Retrieves the list of TargetTcpProxy resources available to the specified
33611
- # project.
33612
- # @param [String] project
33613
- # Project ID for this request.
33614
- # @param [String] filter
33615
- # A filter expression that filters resources listed in the response. The
33616
- # expression must specify the field name, a comparison operator, and the value
33617
- # that you want to use for filtering. The value must be a string, a number, or a
33618
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
33619
- # For example, if you are filtering Compute Engine instances, you can exclude
33620
- # instances named `example-instance` by specifying `name != example-instance`.
33621
- # You can also filter nested fields. For example, you could specify `scheduling.
33622
- # automaticRestart = false` to include instances only if they are not scheduled
33623
- # for automatic restarts. You can use filtering on nested fields to filter based
33624
- # on resource labels.
33625
- # To filter on multiple expressions, provide each separate expression within
33626
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
33627
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
33628
- # expression. However, you can include `AND` and `OR` expressions explicitly.
33629
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
33630
- # Broadwell") AND (scheduling.automaticRestart = true) ```
33631
- # @param [Fixnum] max_results
33632
- # The maximum number of results per page that should be returned. If the number
33633
- # of available results is larger than `maxResults`, Compute Engine returns a `
33634
- # nextPageToken` that can be used to get the next page of results in subsequent
33635
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33636
- # @param [String] order_by
33637
- # Sorts list results by a certain order. By default, results are returned in
33638
- # alphanumerical order based on the resource name.
33639
- # You can also sort results in descending order based on the creation timestamp
33640
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
33641
- # creationTimestamp` field in reverse chronological order (newest result first).
33642
- # Use this to sort resources like operations so that the newest operation is
33643
- # returned first.
33644
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33645
- # @param [String] page_token
33646
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33647
- # by a previous list request to get the next page of results.
33648
- # @param [Boolean] return_partial_success
33649
- # Opt-in for partial success behavior which provides partial results in case of
33650
- # failure. The default value is false.
33651
- # @param [String] fields
33652
- # Selector specifying which fields to include in a partial response.
33653
- # @param [String] quota_user
33654
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33655
- # characters.
33656
- # @param [String] user_ip
33657
- # Deprecated. Please use quotaUser instead.
33658
- # @param [Google::Apis::RequestOptions] options
33659
- # Request-specific options
33660
- #
33661
- # @yield [result, err] Result & error if block supplied
33662
- # @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
33663
- # @yieldparam err [StandardError] error object if request failed
33664
- #
33665
- # @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
33666
- #
33667
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33668
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33669
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33670
- 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)
33671
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
33672
- command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
33673
- command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
33674
- command.params['project'] = project unless project.nil?
33675
- command.query['filter'] = filter unless filter.nil?
33676
- command.query['maxResults'] = max_results unless max_results.nil?
33677
- command.query['orderBy'] = order_by unless order_by.nil?
33678
- command.query['pageToken'] = page_token unless page_token.nil?
33679
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33680
- command.query['fields'] = fields unless fields.nil?
33681
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33682
- command.query['userIp'] = user_ip unless user_ip.nil?
33683
- execute_or_queue_command(command, &block)
33684
- end
33685
-
33686
- # Changes the BackendService for TargetTcpProxy.
34585
+ # Changes the ProxyHeaderType for TargetTcpProxy.
33687
34586
  # @param [String] project
33688
34587
  # Project ID for this request.
33689
34588
  # @param [String] target_tcp_proxy
33690
- # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
33691
- # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
34589
+ # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
34590
+ # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
33692
34591
  # @param [String] request_id
33693
34592
  # An optional request ID to identify requests. Specify a unique request ID so
33694
34593
  # that if you must retry your request, the server will know to ignore the
@@ -33719,10 +34618,10 @@ module Google
33719
34618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33720
34619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33721
34620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33722
- 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)
33723
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
33724
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
33725
- command.request_object = target_tcp_proxies_set_backend_service_request_object
34621
+ 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)
34622
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
34623
+ command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
34624
+ command.request_object = target_tcp_proxies_set_proxy_header_request_object
33726
34625
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33727
34626
  command.response_class = Google::Apis::ComputeBeta::Operation
33728
34627
  command.params['project'] = project unless project.nil?
@@ -33734,23 +34633,12 @@ module Google
33734
34633
  execute_or_queue_command(command, &block)
33735
34634
  end
33736
34635
 
33737
- # Changes the ProxyHeaderType for TargetTcpProxy.
34636
+ # Returns permissions that a caller has on the specified resource.
33738
34637
  # @param [String] project
33739
34638
  # Project ID for this request.
33740
- # @param [String] target_tcp_proxy
33741
- # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
33742
- # @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
33743
- # @param [String] request_id
33744
- # An optional request ID to identify requests. Specify a unique request ID so
33745
- # that if you must retry your request, the server will know to ignore the
33746
- # request if it has already been completed.
33747
- # For example, consider a situation where you make an initial request and the
33748
- # request times out. If you make the request again with the same request ID, the
33749
- # server can check if original operation with the same request ID was received,
33750
- # and if so, will ignore the second request. This prevents clients from
33751
- # accidentally creating duplicate commitments.
33752
- # The request ID must be a valid UUID with the exception that zero UUID is not
33753
- # supported (00000000-0000-0000-0000-000000000000).
34639
+ # @param [String] resource
34640
+ # Name or id of the resource for this request.
34641
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
33754
34642
  # @param [String] fields
33755
34643
  # Selector specifying which fields to include in a partial response.
33756
34644
  # @param [String] quota_user
@@ -33762,23 +34650,22 @@ module Google
33762
34650
  # Request-specific options
33763
34651
  #
33764
34652
  # @yield [result, err] Result & error if block supplied
33765
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
34653
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
33766
34654
  # @yieldparam err [StandardError] error object if request failed
33767
34655
  #
33768
- # @return [Google::Apis::ComputeBeta::Operation]
34656
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
33769
34657
  #
33770
34658
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33771
34659
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33772
34660
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33773
- 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)
33774
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
33775
- command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
33776
- command.request_object = target_tcp_proxies_set_proxy_header_request_object
33777
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33778
- command.response_class = Google::Apis::ComputeBeta::Operation
34661
+ 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)
34662
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
34663
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
34664
+ command.request_object = test_permissions_request_object
34665
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
34666
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
33779
34667
  command.params['project'] = project unless project.nil?
33780
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
33781
- command.query['requestId'] = request_id unless request_id.nil?
34668
+ command.params['resource'] = resource unless resource.nil?
33782
34669
  command.query['fields'] = fields unless fields.nil?
33783
34670
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33784
34671
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -35115,6 +36002,48 @@ module Google
35115
36002
  execute_or_queue_command(command, &block)
35116
36003
  end
35117
36004
 
36005
+ # Returns permissions that a caller has on the specified resource.
36006
+ # @param [String] project
36007
+ # Project ID for this request.
36008
+ # @param [String] region
36009
+ # The name of the region for this request.
36010
+ # @param [String] resource
36011
+ # Name or id of the resource for this request.
36012
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
36013
+ # @param [String] fields
36014
+ # Selector specifying which fields to include in a partial response.
36015
+ # @param [String] quota_user
36016
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36017
+ # characters.
36018
+ # @param [String] user_ip
36019
+ # Deprecated. Please use quotaUser instead.
36020
+ # @param [Google::Apis::RequestOptions] options
36021
+ # Request-specific options
36022
+ #
36023
+ # @yield [result, err] Result & error if block supplied
36024
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
36025
+ # @yieldparam err [StandardError] error object if request failed
36026
+ #
36027
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
36028
+ #
36029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36032
+ 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)
36033
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
36034
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
36035
+ command.request_object = test_permissions_request_object
36036
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
36037
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
36038
+ command.params['project'] = project unless project.nil?
36039
+ command.params['region'] = region unless region.nil?
36040
+ command.params['resource'] = resource unless resource.nil?
36041
+ command.query['fields'] = fields unless fields.nil?
36042
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36043
+ command.query['userIp'] = user_ip unless user_ip.nil?
36044
+ execute_or_queue_command(command, &block)
36045
+ end
36046
+
35118
36047
  # Retrieves an aggregated list of VPN tunnels.
35119
36048
  # @param [String] project
35120
36049
  # Project ID for this request.