google-apis-compute_beta 0.6.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/compute_beta.rb +1 -1
- data/lib/google/apis/compute_beta/classes.rb +715 -127
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +143 -3
- data/lib/google/apis/compute_beta/service.rb +1396 -410
- metadata +4 -4
@@ -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,137 @@ module Google
|
|
1478
1518
|
execute_or_queue_command(command, &block)
|
1479
1519
|
end
|
1480
1520
|
|
1521
|
+
# Sets the edge security policy for the specified backend bucket.
|
1522
|
+
# @param [String] project
|
1523
|
+
# Project ID for this request.
|
1524
|
+
# @param [String] backend_bucket
|
1525
|
+
# Name of the BackendService resource to which the security policy should be set.
|
1526
|
+
# The name should conform to RFC1035.
|
1527
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
1528
|
+
# @param [String] request_id
|
1529
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
1530
|
+
# that if you must retry your request, the server will know to ignore the
|
1531
|
+
# request if it has already been completed.
|
1532
|
+
# For example, consider a situation where you make an initial request and the
|
1533
|
+
# request times out. If you make the request again with the same request ID, the
|
1534
|
+
# server can check if original operation with the same request ID was received,
|
1535
|
+
# and if so, will ignore the second request. This prevents clients from
|
1536
|
+
# accidentally creating duplicate commitments.
|
1537
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
1538
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
1539
|
+
# @param [String] fields
|
1540
|
+
# Selector specifying which fields to include in a partial response.
|
1541
|
+
# @param [String] quota_user
|
1542
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1543
|
+
# characters.
|
1544
|
+
# @param [String] user_ip
|
1545
|
+
# Deprecated. Please use quotaUser instead.
|
1546
|
+
# @param [Google::Apis::RequestOptions] options
|
1547
|
+
# Request-specific options
|
1548
|
+
#
|
1549
|
+
# @yield [result, err] Result & error if block supplied
|
1550
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1551
|
+
# @yieldparam err [StandardError] error object if request failed
|
1552
|
+
#
|
1553
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
1554
|
+
#
|
1555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1558
|
+
def set_backend_bucket_edge_security_policy(project, backend_bucket, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1559
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy', options)
|
1560
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
1561
|
+
command.request_object = security_policy_reference_object
|
1562
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1563
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
1564
|
+
command.params['project'] = project unless project.nil?
|
1565
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1566
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1567
|
+
command.query['fields'] = fields unless fields.nil?
|
1568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1569
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1570
|
+
execute_or_queue_command(command, &block)
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1574
|
+
# existing policy.
|
1575
|
+
# @param [String] project
|
1576
|
+
# Project ID for this request.
|
1577
|
+
# @param [String] resource
|
1578
|
+
# Name or id of the resource for this request.
|
1579
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
1580
|
+
# @param [String] fields
|
1581
|
+
# Selector specifying which fields to include in a partial response.
|
1582
|
+
# @param [String] quota_user
|
1583
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1584
|
+
# characters.
|
1585
|
+
# @param [String] user_ip
|
1586
|
+
# Deprecated. Please use quotaUser instead.
|
1587
|
+
# @param [Google::Apis::RequestOptions] options
|
1588
|
+
# Request-specific options
|
1589
|
+
#
|
1590
|
+
# @yield [result, err] Result & error if block supplied
|
1591
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
1592
|
+
# @yieldparam err [StandardError] error object if request failed
|
1593
|
+
#
|
1594
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
1595
|
+
#
|
1596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1599
|
+
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)
|
1600
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
|
1601
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
1602
|
+
command.request_object = global_set_policy_request_object
|
1603
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
1604
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
1605
|
+
command.params['project'] = project unless project.nil?
|
1606
|
+
command.params['resource'] = resource unless resource.nil?
|
1607
|
+
command.query['fields'] = fields unless fields.nil?
|
1608
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1609
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1610
|
+
execute_or_queue_command(command, &block)
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
# Returns permissions that a caller has on the specified resource.
|
1614
|
+
# @param [String] project
|
1615
|
+
# Project ID for this request.
|
1616
|
+
# @param [String] resource
|
1617
|
+
# Name or id of the resource for this request.
|
1618
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
1619
|
+
# @param [String] fields
|
1620
|
+
# Selector specifying which fields to include in a partial response.
|
1621
|
+
# @param [String] quota_user
|
1622
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1623
|
+
# characters.
|
1624
|
+
# @param [String] user_ip
|
1625
|
+
# Deprecated. Please use quotaUser instead.
|
1626
|
+
# @param [Google::Apis::RequestOptions] options
|
1627
|
+
# Request-specific options
|
1628
|
+
#
|
1629
|
+
# @yield [result, err] Result & error if block supplied
|
1630
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
1631
|
+
# @yieldparam err [StandardError] error object if request failed
|
1632
|
+
#
|
1633
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
1634
|
+
#
|
1635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1638
|
+
def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1639
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/testIamPermissions', options)
|
1640
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
1641
|
+
command.request_object = test_permissions_request_object
|
1642
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
1643
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
1644
|
+
command.params['project'] = project unless project.nil?
|
1645
|
+
command.params['resource'] = resource unless resource.nil?
|
1646
|
+
command.query['fields'] = fields unless fields.nil?
|
1647
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1648
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1649
|
+
execute_or_queue_command(command, &block)
|
1650
|
+
end
|
1651
|
+
|
1481
1652
|
# Updates the specified BackendBucket resource with the data included in the
|
1482
1653
|
# request.
|
1483
1654
|
# @param [String] project
|
@@ -2023,6 +2194,58 @@ module Google
|
|
2023
2194
|
execute_or_queue_command(command, &block)
|
2024
2195
|
end
|
2025
2196
|
|
2197
|
+
# Sets the edge security policy for the specified backend service.
|
2198
|
+
# @param [String] project
|
2199
|
+
# Project ID for this request.
|
2200
|
+
# @param [String] backend_service
|
2201
|
+
# Name of the BackendService resource to which the edge security policy should
|
2202
|
+
# be set. The name should conform to RFC1035.
|
2203
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
2204
|
+
# @param [String] request_id
|
2205
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
2206
|
+
# that if you must retry your request, the server will know to ignore the
|
2207
|
+
# request if it has already been completed.
|
2208
|
+
# For example, consider a situation where you make an initial request and the
|
2209
|
+
# request times out. If you make the request again with the same request ID, the
|
2210
|
+
# server can check if original operation with the same request ID was received,
|
2211
|
+
# and if so, will ignore the second request. This prevents clients from
|
2212
|
+
# accidentally creating duplicate commitments.
|
2213
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
2214
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
2215
|
+
# @param [String] fields
|
2216
|
+
# Selector specifying which fields to include in a partial response.
|
2217
|
+
# @param [String] quota_user
|
2218
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2219
|
+
# characters.
|
2220
|
+
# @param [String] user_ip
|
2221
|
+
# Deprecated. Please use quotaUser instead.
|
2222
|
+
# @param [Google::Apis::RequestOptions] options
|
2223
|
+
# Request-specific options
|
2224
|
+
#
|
2225
|
+
# @yield [result, err] Result & error if block supplied
|
2226
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
2227
|
+
# @yieldparam err [StandardError] error object if request failed
|
2228
|
+
#
|
2229
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
2230
|
+
#
|
2231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2234
|
+
def set_backend_service_edge_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2235
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy', options)
|
2236
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
2237
|
+
command.request_object = security_policy_reference_object
|
2238
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
2239
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
2240
|
+
command.params['project'] = project unless project.nil?
|
2241
|
+
command.params['backendService'] = backend_service unless backend_service.nil?
|
2242
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2243
|
+
command.query['fields'] = fields unless fields.nil?
|
2244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2245
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2246
|
+
execute_or_queue_command(command, &block)
|
2247
|
+
end
|
2248
|
+
|
2026
2249
|
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2027
2250
|
# For more information, see Google Cloud Armor Overview
|
2028
2251
|
# @param [String] project
|
@@ -7955,6 +8178,46 @@ module Google
|
|
7955
8178
|
execute_or_queue_command(command, &block)
|
7956
8179
|
end
|
7957
8180
|
|
8181
|
+
# Returns the latest image that is part of an image family, is not deprecated
|
8182
|
+
# and is rolled out in the specified zone.
|
8183
|
+
# @param [String] project
|
8184
|
+
# Project ID for this request.
|
8185
|
+
# @param [String] zone
|
8186
|
+
# The name of the zone for this request.
|
8187
|
+
# @param [String] family
|
8188
|
+
# Name of the image family to search for.
|
8189
|
+
# @param [String] fields
|
8190
|
+
# Selector specifying which fields to include in a partial response.
|
8191
|
+
# @param [String] quota_user
|
8192
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
8193
|
+
# characters.
|
8194
|
+
# @param [String] user_ip
|
8195
|
+
# Deprecated. Please use quotaUser instead.
|
8196
|
+
# @param [Google::Apis::RequestOptions] options
|
8197
|
+
# Request-specific options
|
8198
|
+
#
|
8199
|
+
# @yield [result, err] Result & error if block supplied
|
8200
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ImageFamilyView] parsed result object
|
8201
|
+
# @yieldparam err [StandardError] error object if request failed
|
8202
|
+
#
|
8203
|
+
# @return [Google::Apis::ComputeBeta::ImageFamilyView]
|
8204
|
+
#
|
8205
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8206
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8207
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8208
|
+
def get_image_family_view(project, zone, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
8209
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/imageFamilyViews/{family}', options)
|
8210
|
+
command.response_representation = Google::Apis::ComputeBeta::ImageFamilyView::Representation
|
8211
|
+
command.response_class = Google::Apis::ComputeBeta::ImageFamilyView
|
8212
|
+
command.params['project'] = project unless project.nil?
|
8213
|
+
command.params['zone'] = zone unless zone.nil?
|
8214
|
+
command.params['family'] = family unless family.nil?
|
8215
|
+
command.query['fields'] = fields unless fields.nil?
|
8216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8217
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8218
|
+
execute_or_queue_command(command, &block)
|
8219
|
+
end
|
8220
|
+
|
7958
8221
|
# Deletes the specified image.
|
7959
8222
|
# @param [String] project
|
7960
8223
|
# Project ID for this request.
|
@@ -9429,12 +9692,12 @@ module Google
|
|
9429
9692
|
execute_or_queue_command(command, &block)
|
9430
9693
|
end
|
9431
9694
|
|
9432
|
-
# Flags the specified instances in the managed instance group to be
|
9433
|
-
# recreated.
|
9434
|
-
#
|
9435
|
-
# the
|
9436
|
-
#
|
9437
|
-
#
|
9695
|
+
# Flags the specified VM instances in the managed instance group to be
|
9696
|
+
# immediately recreated. Each instance is recreated using the group's current
|
9697
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
9698
|
+
# the instances have not yet been recreated. You must separately verify the
|
9699
|
+
# status of each instance by checking its currentAction field; for more
|
9700
|
+
# information, see Checking the status of managed instances.
|
9438
9701
|
# If the group is part of a backend service that has enabled connection draining,
|
9439
9702
|
# it can take up to 60 seconds after the connection draining duration has
|
9440
9703
|
# elapsed before the VM instance is removed or deleted.
|
@@ -11207,8 +11470,8 @@ module Google
|
|
11207
11470
|
execute_or_queue_command(command, &block)
|
11208
11471
|
end
|
11209
11472
|
|
11210
|
-
# Deletes the specified Instance resource. For more information, see
|
11211
|
-
#
|
11473
|
+
# Deletes the specified Instance resource. For more information, see Deleting an
|
11474
|
+
# instance.
|
11212
11475
|
# @param [String] project
|
11213
11476
|
# Project ID for this request.
|
11214
11477
|
# @param [String] zone
|
@@ -14516,6 +14779,47 @@ module Google
|
|
14516
14779
|
execute_or_queue_command(command, &block)
|
14517
14780
|
end
|
14518
14781
|
|
14782
|
+
# Returns permissions that a caller has on the specified resource. Caution This
|
14783
|
+
# resource is intended for use only by third-party partners who are creating
|
14784
|
+
# Cloud Marketplace images.
|
14785
|
+
# @param [String] project
|
14786
|
+
# Project ID for this request.
|
14787
|
+
# @param [String] resource
|
14788
|
+
# Name or id of the resource for this request.
|
14789
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
14790
|
+
# @param [String] fields
|
14791
|
+
# Selector specifying which fields to include in a partial response.
|
14792
|
+
# @param [String] quota_user
|
14793
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14794
|
+
# characters.
|
14795
|
+
# @param [String] user_ip
|
14796
|
+
# Deprecated. Please use quotaUser instead.
|
14797
|
+
# @param [Google::Apis::RequestOptions] options
|
14798
|
+
# Request-specific options
|
14799
|
+
#
|
14800
|
+
# @yield [result, err] Result & error if block supplied
|
14801
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
14802
|
+
# @yieldparam err [StandardError] error object if request failed
|
14803
|
+
#
|
14804
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
14805
|
+
#
|
14806
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14807
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14808
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14809
|
+
def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14810
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/testIamPermissions', options)
|
14811
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
14812
|
+
command.request_object = test_permissions_request_object
|
14813
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
14814
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
14815
|
+
command.params['project'] = project unless project.nil?
|
14816
|
+
command.params['resource'] = resource unless resource.nil?
|
14817
|
+
command.query['fields'] = fields unless fields.nil?
|
14818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14819
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14820
|
+
execute_or_queue_command(command, &block)
|
14821
|
+
end
|
14822
|
+
|
14519
14823
|
# Deletes the specified license. Caution This resource is intended for use only
|
14520
14824
|
# by third-party partners who are creating Cloud Marketplace images.
|
14521
14825
|
# @param [String] project
|
@@ -14815,6 +15119,47 @@ module Google
|
|
14815
15119
|
execute_or_queue_command(command, &block)
|
14816
15120
|
end
|
14817
15121
|
|
15122
|
+
# Returns permissions that a caller has on the specified resource. Caution This
|
15123
|
+
# resource is intended for use only by third-party partners who are creating
|
15124
|
+
# Cloud Marketplace images.
|
15125
|
+
# @param [String] project
|
15126
|
+
# Project ID for this request.
|
15127
|
+
# @param [String] resource
|
15128
|
+
# Name or id of the resource for this request.
|
15129
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
15130
|
+
# @param [String] fields
|
15131
|
+
# Selector specifying which fields to include in a partial response.
|
15132
|
+
# @param [String] quota_user
|
15133
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
15134
|
+
# characters.
|
15135
|
+
# @param [String] user_ip
|
15136
|
+
# Deprecated. Please use quotaUser instead.
|
15137
|
+
# @param [Google::Apis::RequestOptions] options
|
15138
|
+
# Request-specific options
|
15139
|
+
#
|
15140
|
+
# @yield [result, err] Result & error if block supplied
|
15141
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
15142
|
+
# @yieldparam err [StandardError] error object if request failed
|
15143
|
+
#
|
15144
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
15145
|
+
#
|
15146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15149
|
+
def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15150
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/testIamPermissions', options)
|
15151
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
15152
|
+
command.request_object = test_permissions_request_object
|
15153
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
15154
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
15155
|
+
command.params['project'] = project unless project.nil?
|
15156
|
+
command.params['resource'] = resource unless resource.nil?
|
15157
|
+
command.query['fields'] = fields unless fields.nil?
|
15158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15159
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15160
|
+
execute_or_queue_command(command, &block)
|
15161
|
+
end
|
15162
|
+
|
14818
15163
|
# Deletes the specified machine image. Deleting a machine image is permanent and
|
14819
15164
|
# cannot be undone.
|
14820
15165
|
# @param [String] project
|
@@ -21320,6 +21665,48 @@ module Google
|
|
21320
21665
|
execute_or_queue_command(command, &block)
|
21321
21666
|
end
|
21322
21667
|
|
21668
|
+
# Returns permissions that a caller has on the specified resource.
|
21669
|
+
# @param [String] project
|
21670
|
+
# Project ID for this request.
|
21671
|
+
# @param [String] region
|
21672
|
+
# The name of the region for this request.
|
21673
|
+
# @param [String] resource
|
21674
|
+
# Name or id of the resource for this request.
|
21675
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
21676
|
+
# @param [String] fields
|
21677
|
+
# Selector specifying which fields to include in a partial response.
|
21678
|
+
# @param [String] quota_user
|
21679
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
21680
|
+
# characters.
|
21681
|
+
# @param [String] user_ip
|
21682
|
+
# Deprecated. Please use quotaUser instead.
|
21683
|
+
# @param [Google::Apis::RequestOptions] options
|
21684
|
+
# Request-specific options
|
21685
|
+
#
|
21686
|
+
# @yield [result, err] Result & error if block supplied
|
21687
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
21688
|
+
# @yieldparam err [StandardError] error object if request failed
|
21689
|
+
#
|
21690
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
21691
|
+
#
|
21692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21695
|
+
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)
|
21696
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
|
21697
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
21698
|
+
command.request_object = test_permissions_request_object
|
21699
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
21700
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
21701
|
+
command.params['project'] = project unless project.nil?
|
21702
|
+
command.params['region'] = region unless region.nil?
|
21703
|
+
command.params['resource'] = resource unless resource.nil?
|
21704
|
+
command.query['fields'] = fields unless fields.nil?
|
21705
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21706
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21707
|
+
execute_or_queue_command(command, &block)
|
21708
|
+
end
|
21709
|
+
|
21323
21710
|
# Transfers GPUs or local SSDs between reservations within commitments.
|
21324
21711
|
# @param [String] project
|
21325
21712
|
# Project ID for this request.
|
@@ -22397,6 +22784,48 @@ module Google
|
|
22397
22784
|
execute_or_queue_command(command, &block)
|
22398
22785
|
end
|
22399
22786
|
|
22787
|
+
# Returns permissions that a caller has on the specified resource.
|
22788
|
+
# @param [String] project
|
22789
|
+
# Project ID for this request.
|
22790
|
+
# @param [String] region
|
22791
|
+
# The name of the region for this request.
|
22792
|
+
# @param [String] resource
|
22793
|
+
# Name or id of the resource for this request.
|
22794
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
22795
|
+
# @param [String] fields
|
22796
|
+
# Selector specifying which fields to include in a partial response.
|
22797
|
+
# @param [String] quota_user
|
22798
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
22799
|
+
# characters.
|
22800
|
+
# @param [String] user_ip
|
22801
|
+
# Deprecated. Please use quotaUser instead.
|
22802
|
+
# @param [Google::Apis::RequestOptions] options
|
22803
|
+
# Request-specific options
|
22804
|
+
#
|
22805
|
+
# @yield [result, err] Result & error if block supplied
|
22806
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
22807
|
+
# @yieldparam err [StandardError] error object if request failed
|
22808
|
+
#
|
22809
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
22810
|
+
#
|
22811
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22812
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22813
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22814
|
+
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)
|
22815
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
|
22816
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
22817
|
+
command.request_object = test_permissions_request_object
|
22818
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
22819
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
22820
|
+
command.params['project'] = project unless project.nil?
|
22821
|
+
command.params['region'] = region unless region.nil?
|
22822
|
+
command.params['resource'] = resource unless resource.nil?
|
22823
|
+
command.query['fields'] = fields unless fields.nil?
|
22824
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22825
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
22826
|
+
execute_or_queue_command(command, &block)
|
22827
|
+
end
|
22828
|
+
|
22400
22829
|
# Deletes the specified HealthCheck resource.
|
22401
22830
|
# @param [String] project
|
22402
22831
|
# Project ID for this request.
|
@@ -22674,26 +23103,14 @@ module Google
|
|
22674
23103
|
execute_or_queue_command(command, &block)
|
22675
23104
|
end
|
22676
23105
|
|
22677
|
-
#
|
22678
|
-
# included in the request.
|
23106
|
+
# Returns permissions that a caller has on the specified resource.
|
22679
23107
|
# @param [String] project
|
22680
23108
|
# Project ID for this request.
|
22681
23109
|
# @param [String] region
|
22682
|
-
#
|
22683
|
-
# @param [String]
|
22684
|
-
# Name of the
|
22685
|
-
# @param [Google::Apis::ComputeBeta::
|
22686
|
-
# @param [String] request_id
|
22687
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
22688
|
-
# that if you must retry your request, the server will know to ignore the
|
22689
|
-
# request if it has already been completed.
|
22690
|
-
# For example, consider a situation where you make an initial request and the
|
22691
|
-
# request times out. If you make the request again with the same request ID, the
|
22692
|
-
# server can check if original operation with the same request ID was received,
|
22693
|
-
# and if so, will ignore the second request. This prevents clients from
|
22694
|
-
# accidentally creating duplicate commitments.
|
22695
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
22696
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
23110
|
+
# The name of the region for this request.
|
23111
|
+
# @param [String] resource
|
23112
|
+
# Name or id of the resource for this request.
|
23113
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
22697
23114
|
# @param [String] fields
|
22698
23115
|
# Selector specifying which fields to include in a partial response.
|
22699
23116
|
# @param [String] quota_user
|
@@ -22705,49 +23122,38 @@ module Google
|
|
22705
23122
|
# Request-specific options
|
22706
23123
|
#
|
22707
23124
|
# @yield [result, err] Result & error if block supplied
|
22708
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
23125
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
22709
23126
|
# @yieldparam err [StandardError] error object if request failed
|
22710
23127
|
#
|
22711
|
-
# @return [Google::Apis::ComputeBeta::
|
23128
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
22712
23129
|
#
|
22713
23130
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22714
23131
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22715
23132
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22716
|
-
def
|
22717
|
-
command = make_simple_command(:
|
22718
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
22719
|
-
command.request_object =
|
22720
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
22721
|
-
command.response_class = Google::Apis::ComputeBeta::
|
23133
|
+
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)
|
23134
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
|
23135
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
23136
|
+
command.request_object = test_permissions_request_object
|
23137
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
23138
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
22722
23139
|
command.params['project'] = project unless project.nil?
|
22723
23140
|
command.params['region'] = region unless region.nil?
|
22724
|
-
command.params['
|
22725
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
23141
|
+
command.params['resource'] = resource unless resource.nil?
|
22726
23142
|
command.query['fields'] = fields unless fields.nil?
|
22727
23143
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22728
23144
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
22729
23145
|
execute_or_queue_command(command, &block)
|
22730
23146
|
end
|
22731
23147
|
|
22732
|
-
#
|
22733
|
-
#
|
22734
|
-
# does remove the instance from any target pools that are applied by the managed
|
22735
|
-
# instance group. This method reduces the targetSize of the managed instance
|
22736
|
-
# group by the number of instances that you abandon. This operation is marked as
|
22737
|
-
# DONE when the action is scheduled even if the instances have not yet been
|
22738
|
-
# removed from the group. You must separately verify the status of the
|
22739
|
-
# abandoning action with the listmanagedinstances method.
|
22740
|
-
# If the group is part of a backend service that has enabled connection draining,
|
22741
|
-
# it can take up to 60 seconds after the connection draining duration has
|
22742
|
-
# elapsed before the VM instance is removed or deleted.
|
22743
|
-
# You can specify a maximum of 1000 instances with this method per request.
|
23148
|
+
# Updates a HealthCheck resource in the specified project using the data
|
23149
|
+
# included in the request.
|
22744
23150
|
# @param [String] project
|
22745
23151
|
# Project ID for this request.
|
22746
23152
|
# @param [String] region
|
22747
23153
|
# Name of the region scoping this request.
|
22748
|
-
# @param [String]
|
22749
|
-
# Name of the
|
22750
|
-
# @param [Google::Apis::ComputeBeta::
|
23154
|
+
# @param [String] health_check
|
23155
|
+
# Name of the HealthCheck resource to update.
|
23156
|
+
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
22751
23157
|
# @param [String] request_id
|
22752
23158
|
# An optional request ID to identify requests. Specify a unique request ID so
|
22753
23159
|
# that if you must retry your request, the server will know to ignore the
|
@@ -22778,15 +23184,15 @@ module Google
|
|
22778
23184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22779
23185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22780
23186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22781
|
-
def
|
22782
|
-
command = make_simple_command(:
|
22783
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
22784
|
-
command.request_object =
|
23187
|
+
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23188
|
+
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
23189
|
+
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
23190
|
+
command.request_object = health_check_object
|
22785
23191
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
22786
23192
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
22787
23193
|
command.params['project'] = project unless project.nil?
|
22788
23194
|
command.params['region'] = region unless region.nil?
|
22789
|
-
command.params['
|
23195
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
22790
23196
|
command.query['requestId'] = request_id unless request_id.nil?
|
22791
23197
|
command.query['fields'] = fields unless fields.nil?
|
22792
23198
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -22794,62 +23200,25 @@ module Google
|
|
22794
23200
|
execute_or_queue_command(command, &block)
|
22795
23201
|
end
|
22796
23202
|
|
22797
|
-
#
|
22798
|
-
#
|
22799
|
-
#
|
22800
|
-
#
|
22801
|
-
#
|
22802
|
-
#
|
22803
|
-
#
|
22804
|
-
#
|
22805
|
-
#
|
22806
|
-
#
|
22807
|
-
#
|
22808
|
-
#
|
22809
|
-
# characters.
|
22810
|
-
# @param [String] user_ip
|
22811
|
-
# Deprecated. Please use quotaUser instead.
|
22812
|
-
# @param [Google::Apis::RequestOptions] options
|
22813
|
-
# Request-specific options
|
22814
|
-
#
|
22815
|
-
# @yield [result, err] Result & error if block supplied
|
22816
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
22817
|
-
# @yieldparam err [StandardError] error object if request failed
|
22818
|
-
#
|
22819
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
22820
|
-
#
|
22821
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22822
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22823
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22824
|
-
def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22825
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
|
22826
|
-
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
|
22827
|
-
command.request_object = region_instance_group_managers_apply_updates_request_object
|
22828
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
22829
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
22830
|
-
command.params['project'] = project unless project.nil?
|
22831
|
-
command.params['region'] = region unless region.nil?
|
22832
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
22833
|
-
command.query['fields'] = fields unless fields.nil?
|
22834
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22835
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
22836
|
-
execute_or_queue_command(command, &block)
|
22837
|
-
end
|
22838
|
-
|
22839
|
-
# Creates instances with per-instance configs in this regional managed instance
|
22840
|
-
# group. Instances are created using the current instance template. The create
|
22841
|
-
# instances operation is marked DONE if the createInstances request is
|
22842
|
-
# successful. The underlying actions take additional time. You must separately
|
22843
|
-
# verify the status of the creating or actions with the listmanagedinstances
|
22844
|
-
# method.
|
23203
|
+
# Flags the specified instances to be immediately removed from the managed
|
23204
|
+
# instance group. Abandoning an instance does not delete the instance, but it
|
23205
|
+
# does remove the instance from any target pools that are applied by the managed
|
23206
|
+
# instance group. This method reduces the targetSize of the managed instance
|
23207
|
+
# group by the number of instances that you abandon. This operation is marked as
|
23208
|
+
# DONE when the action is scheduled even if the instances have not yet been
|
23209
|
+
# removed from the group. You must separately verify the status of the
|
23210
|
+
# abandoning action with the listmanagedinstances method.
|
23211
|
+
# If the group is part of a backend service that has enabled connection draining,
|
23212
|
+
# it can take up to 60 seconds after the connection draining duration has
|
23213
|
+
# elapsed before the VM instance is removed or deleted.
|
23214
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
22845
23215
|
# @param [String] project
|
22846
23216
|
# Project ID for this request.
|
22847
23217
|
# @param [String] region
|
22848
|
-
#
|
22849
|
-
# conform to RFC1035.
|
23218
|
+
# Name of the region scoping this request.
|
22850
23219
|
# @param [String] instance_group_manager
|
22851
|
-
#
|
22852
|
-
# @param [Google::Apis::ComputeBeta::
|
23220
|
+
# Name of the managed instance group.
|
23221
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
|
22853
23222
|
# @param [String] request_id
|
22854
23223
|
# An optional request ID to identify requests. Specify a unique request ID so
|
22855
23224
|
# that if you must retry your request, the server will know to ignore the
|
@@ -22857,7 +23226,109 @@ module Google
|
|
22857
23226
|
# For example, consider a situation where you make an initial request and the
|
22858
23227
|
# request times out. If you make the request again with the same request ID, the
|
22859
23228
|
# server can check if original operation with the same request ID was received,
|
22860
|
-
# and if so, will ignore the second request.
|
23229
|
+
# and if so, will ignore the second request. This prevents clients from
|
23230
|
+
# accidentally creating duplicate commitments.
|
23231
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
23232
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
23233
|
+
# @param [String] fields
|
23234
|
+
# Selector specifying which fields to include in a partial response.
|
23235
|
+
# @param [String] quota_user
|
23236
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23237
|
+
# characters.
|
23238
|
+
# @param [String] user_ip
|
23239
|
+
# Deprecated. Please use quotaUser instead.
|
23240
|
+
# @param [Google::Apis::RequestOptions] options
|
23241
|
+
# Request-specific options
|
23242
|
+
#
|
23243
|
+
# @yield [result, err] Result & error if block supplied
|
23244
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
23245
|
+
# @yieldparam err [StandardError] error object if request failed
|
23246
|
+
#
|
23247
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
23248
|
+
#
|
23249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23252
|
+
def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23253
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
|
23254
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
|
23255
|
+
command.request_object = region_instance_group_managers_abandon_instances_request_object
|
23256
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
23257
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
23258
|
+
command.params['project'] = project unless project.nil?
|
23259
|
+
command.params['region'] = region unless region.nil?
|
23260
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
23261
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
23262
|
+
command.query['fields'] = fields unless fields.nil?
|
23263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23264
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23265
|
+
execute_or_queue_command(command, &block)
|
23266
|
+
end
|
23267
|
+
|
23268
|
+
# Apply updates to selected instances the managed instance group.
|
23269
|
+
# @param [String] project
|
23270
|
+
# Project ID for this request.
|
23271
|
+
# @param [String] region
|
23272
|
+
# Name of the region scoping this request, should conform to RFC1035.
|
23273
|
+
# @param [String] instance_group_manager
|
23274
|
+
# The name of the managed instance group, should conform to RFC1035.
|
23275
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
|
23276
|
+
# @param [String] fields
|
23277
|
+
# Selector specifying which fields to include in a partial response.
|
23278
|
+
# @param [String] quota_user
|
23279
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23280
|
+
# characters.
|
23281
|
+
# @param [String] user_ip
|
23282
|
+
# Deprecated. Please use quotaUser instead.
|
23283
|
+
# @param [Google::Apis::RequestOptions] options
|
23284
|
+
# Request-specific options
|
23285
|
+
#
|
23286
|
+
# @yield [result, err] Result & error if block supplied
|
23287
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
23288
|
+
# @yieldparam err [StandardError] error object if request failed
|
23289
|
+
#
|
23290
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
23291
|
+
#
|
23292
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23293
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23294
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23295
|
+
def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23296
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
|
23297
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
|
23298
|
+
command.request_object = region_instance_group_managers_apply_updates_request_object
|
23299
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
23300
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
23301
|
+
command.params['project'] = project unless project.nil?
|
23302
|
+
command.params['region'] = region unless region.nil?
|
23303
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
23304
|
+
command.query['fields'] = fields unless fields.nil?
|
23305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23306
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23307
|
+
execute_or_queue_command(command, &block)
|
23308
|
+
end
|
23309
|
+
|
23310
|
+
# Creates instances with per-instance configs in this regional managed instance
|
23311
|
+
# group. Instances are created using the current instance template. The create
|
23312
|
+
# instances operation is marked DONE if the createInstances request is
|
23313
|
+
# successful. The underlying actions take additional time. You must separately
|
23314
|
+
# verify the status of the creating or actions with the listmanagedinstances
|
23315
|
+
# method.
|
23316
|
+
# @param [String] project
|
23317
|
+
# Project ID for this request.
|
23318
|
+
# @param [String] region
|
23319
|
+
# The name of the region where the managed instance group is located. It should
|
23320
|
+
# conform to RFC1035.
|
23321
|
+
# @param [String] instance_group_manager
|
23322
|
+
# The name of the managed instance group. It should conform to RFC1035.
|
23323
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
|
23324
|
+
# @param [String] request_id
|
23325
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
23326
|
+
# that if you must retry your request, the server will know to ignore the
|
23327
|
+
# request if it has already been completed.
|
23328
|
+
# For example, consider a situation where you make an initial request and the
|
23329
|
+
# request times out. If you make the request again with the same request ID, the
|
23330
|
+
# server can check if original operation with the same request ID was received,
|
23331
|
+
# and if so, will ignore the second request.
|
22861
23332
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
22862
23333
|
# supported (00000000-0000-0000-0000-000000000000).
|
22863
23334
|
# @param [String] fields
|
@@ -23592,12 +24063,12 @@ module Google
|
|
23592
24063
|
execute_or_queue_command(command, &block)
|
23593
24064
|
end
|
23594
24065
|
|
23595
|
-
# Flags the specified instances in the managed instance group to be
|
23596
|
-
# recreated.
|
23597
|
-
#
|
23598
|
-
# the
|
23599
|
-
#
|
23600
|
-
#
|
24066
|
+
# Flags the specified VM instances in the managed instance group to be
|
24067
|
+
# immediately recreated. Each instance is recreated using the group's current
|
24068
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
24069
|
+
# the instances have not yet been recreated. You must separately verify the
|
24070
|
+
# status of each instance by checking its currentAction field; for more
|
24071
|
+
# information, see Checking the status of managed instances.
|
23601
24072
|
# If the group is part of a backend service that has enabled connection draining,
|
23602
24073
|
# it can take up to 60 seconds after the connection draining duration has
|
23603
24074
|
# elapsed before the VM instance is removed or deleted.
|
@@ -24840,6 +25311,48 @@ module Google
|
|
24840
25311
|
execute_or_queue_command(command, &block)
|
24841
25312
|
end
|
24842
25313
|
|
25314
|
+
# Returns permissions that a caller has on the specified resource.
|
25315
|
+
# @param [String] project
|
25316
|
+
# Project ID for this request.
|
25317
|
+
# @param [String] region
|
25318
|
+
# The name of the region for this request.
|
25319
|
+
# @param [String] resource
|
25320
|
+
# Name or id of the resource for this request.
|
25321
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
25322
|
+
# @param [String] fields
|
25323
|
+
# Selector specifying which fields to include in a partial response.
|
25324
|
+
# @param [String] quota_user
|
25325
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
25326
|
+
# characters.
|
25327
|
+
# @param [String] user_ip
|
25328
|
+
# Deprecated. Please use quotaUser instead.
|
25329
|
+
# @param [Google::Apis::RequestOptions] options
|
25330
|
+
# Request-specific options
|
25331
|
+
#
|
25332
|
+
# @yield [result, err] Result & error if block supplied
|
25333
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
25334
|
+
# @yieldparam err [StandardError] error object if request failed
|
25335
|
+
#
|
25336
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
25337
|
+
#
|
25338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25341
|
+
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)
|
25342
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
|
25343
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
25344
|
+
command.request_object = test_permissions_request_object
|
25345
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
25346
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
25347
|
+
command.params['project'] = project unless project.nil?
|
25348
|
+
command.params['region'] = region unless region.nil?
|
25349
|
+
command.params['resource'] = resource unless resource.nil?
|
25350
|
+
command.query['fields'] = fields unless fields.nil?
|
25351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25352
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25353
|
+
execute_or_queue_command(command, &block)
|
25354
|
+
end
|
25355
|
+
|
24843
25356
|
# Deletes the specified region-specific Operations resource.
|
24844
25357
|
# @param [String] project
|
24845
25358
|
# Project ID for this request.
|
@@ -25265,6 +25778,48 @@ module Google
|
|
25265
25778
|
execute_or_queue_command(command, &block)
|
25266
25779
|
end
|
25267
25780
|
|
25781
|
+
# Returns permissions that a caller has on the specified resource and region.
|
25782
|
+
# @param [String] project
|
25783
|
+
# Project ID for this request.
|
25784
|
+
# @param [String] region
|
25785
|
+
# The name of the region for this request.
|
25786
|
+
# @param [String] resource
|
25787
|
+
# Name or id of the resource for this request.
|
25788
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
25789
|
+
# @param [String] fields
|
25790
|
+
# Selector specifying which fields to include in a partial response.
|
25791
|
+
# @param [String] quota_user
|
25792
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
25793
|
+
# characters.
|
25794
|
+
# @param [String] user_ip
|
25795
|
+
# Deprecated. Please use quotaUser instead.
|
25796
|
+
# @param [Google::Apis::RequestOptions] options
|
25797
|
+
# Request-specific options
|
25798
|
+
#
|
25799
|
+
# @yield [result, err] Result & error if block supplied
|
25800
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
25801
|
+
# @yieldparam err [StandardError] error object if request failed
|
25802
|
+
#
|
25803
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
25804
|
+
#
|
25805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25808
|
+
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)
|
25809
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions', options)
|
25810
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
25811
|
+
command.request_object = test_permissions_request_object
|
25812
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
25813
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
25814
|
+
command.params['project'] = project unless project.nil?
|
25815
|
+
command.params['region'] = region unless region.nil?
|
25816
|
+
command.params['resource'] = resource unless resource.nil?
|
25817
|
+
command.query['fields'] = fields unless fields.nil?
|
25818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25819
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25820
|
+
execute_or_queue_command(command, &block)
|
25821
|
+
end
|
25822
|
+
|
25268
25823
|
# Deletes the specified TargetHttpProxy resource.
|
25269
25824
|
# @param [String] project
|
25270
25825
|
# Project ID for this request.
|
@@ -25541,24 +26096,14 @@ module Google
|
|
25541
26096
|
execute_or_queue_command(command, &block)
|
25542
26097
|
end
|
25543
26098
|
|
25544
|
-
#
|
26099
|
+
# Returns permissions that a caller has on the specified resource.
|
25545
26100
|
# @param [String] project
|
25546
26101
|
# Project ID for this request.
|
25547
26102
|
# @param [String] region
|
25548
|
-
#
|
25549
|
-
# @param [String]
|
25550
|
-
# Name of the
|
25551
|
-
# @param [
|
25552
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
25553
|
-
# that if you must retry your request, the server will know to ignore the
|
25554
|
-
# request if it has already been completed.
|
25555
|
-
# For example, consider a situation where you make an initial request and the
|
25556
|
-
# request times out. If you make the request again with the same request ID, the
|
25557
|
-
# server can check if original operation with the same request ID was received,
|
25558
|
-
# and if so, will ignore the second request. This prevents clients from
|
25559
|
-
# accidentally creating duplicate commitments.
|
25560
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
25561
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
26103
|
+
# The name of the region for this request.
|
26104
|
+
# @param [String] resource
|
26105
|
+
# Name or id of the resource for this request.
|
26106
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
25562
26107
|
# @param [String] fields
|
25563
26108
|
# Selector specifying which fields to include in a partial response.
|
25564
26109
|
# @param [String] quota_user
|
@@ -25570,75 +26115,127 @@ module Google
|
|
25570
26115
|
# Request-specific options
|
25571
26116
|
#
|
25572
26117
|
# @yield [result, err] Result & error if block supplied
|
25573
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
26118
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
25574
26119
|
# @yieldparam err [StandardError] error object if request failed
|
25575
26120
|
#
|
25576
|
-
# @return [Google::Apis::ComputeBeta::
|
26121
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
25577
26122
|
#
|
25578
26123
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25579
26124
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25580
26125
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25581
|
-
def
|
25582
|
-
command = make_simple_command(:
|
25583
|
-
command.
|
25584
|
-
command.
|
26126
|
+
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)
|
26127
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions', options)
|
26128
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26129
|
+
command.request_object = test_permissions_request_object
|
26130
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26131
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
25585
26132
|
command.params['project'] = project unless project.nil?
|
25586
26133
|
command.params['region'] = region unless region.nil?
|
25587
|
-
command.params['
|
25588
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
26134
|
+
command.params['resource'] = resource unless resource.nil?
|
25589
26135
|
command.query['fields'] = fields unless fields.nil?
|
25590
26136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25591
26137
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
25592
26138
|
execute_or_queue_command(command, &block)
|
25593
26139
|
end
|
25594
26140
|
|
25595
|
-
#
|
25596
|
-
# a list of available target HTTP proxies by making a list() request.
|
26141
|
+
# Deletes the specified TargetHttpsProxy resource.
|
25597
26142
|
# @param [String] project
|
25598
26143
|
# Project ID for this request.
|
25599
26144
|
# @param [String] region
|
25600
26145
|
# Name of the region scoping this request.
|
25601
26146
|
# @param [String] target_https_proxy
|
25602
|
-
# Name of the TargetHttpsProxy resource to
|
25603
|
-
# @param [String]
|
25604
|
-
#
|
25605
|
-
#
|
25606
|
-
#
|
25607
|
-
#
|
25608
|
-
#
|
25609
|
-
#
|
25610
|
-
#
|
25611
|
-
#
|
25612
|
-
#
|
25613
|
-
#
|
25614
|
-
# @
|
25615
|
-
#
|
25616
|
-
#
|
25617
|
-
#
|
25618
|
-
#
|
25619
|
-
# @
|
25620
|
-
#
|
25621
|
-
# @
|
25622
|
-
|
25623
|
-
|
25624
|
-
|
25625
|
-
|
25626
|
-
|
25627
|
-
|
25628
|
-
|
25629
|
-
|
25630
|
-
|
25631
|
-
|
25632
|
-
|
25633
|
-
|
25634
|
-
|
25635
|
-
|
25636
|
-
|
25637
|
-
|
25638
|
-
|
25639
|
-
|
25640
|
-
|
25641
|
-
|
26147
|
+
# Name of the TargetHttpsProxy resource to delete.
|
26148
|
+
# @param [String] request_id
|
26149
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26150
|
+
# that if you must retry your request, the server will know to ignore the
|
26151
|
+
# request if it has already been completed.
|
26152
|
+
# For example, consider a situation where you make an initial request and the
|
26153
|
+
# request times out. If you make the request again with the same request ID, the
|
26154
|
+
# server can check if original operation with the same request ID was received,
|
26155
|
+
# and if so, will ignore the second request. This prevents clients from
|
26156
|
+
# accidentally creating duplicate commitments.
|
26157
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26158
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26159
|
+
# @param [String] fields
|
26160
|
+
# Selector specifying which fields to include in a partial response.
|
26161
|
+
# @param [String] quota_user
|
26162
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26163
|
+
# characters.
|
26164
|
+
# @param [String] user_ip
|
26165
|
+
# Deprecated. Please use quotaUser instead.
|
26166
|
+
# @param [Google::Apis::RequestOptions] options
|
26167
|
+
# Request-specific options
|
26168
|
+
#
|
26169
|
+
# @yield [result, err] Result & error if block supplied
|
26170
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
26171
|
+
# @yieldparam err [StandardError] error object if request failed
|
26172
|
+
#
|
26173
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
26174
|
+
#
|
26175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26178
|
+
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)
|
26179
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
|
26180
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
26181
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
26182
|
+
command.params['project'] = project unless project.nil?
|
26183
|
+
command.params['region'] = region unless region.nil?
|
26184
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
26185
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26186
|
+
command.query['fields'] = fields unless fields.nil?
|
26187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26188
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26189
|
+
execute_or_queue_command(command, &block)
|
26190
|
+
end
|
26191
|
+
|
26192
|
+
# Returns the specified TargetHttpsProxy resource in the specified region. Gets
|
26193
|
+
# a list of available target HTTP proxies by making a list() request.
|
26194
|
+
# @param [String] project
|
26195
|
+
# Project ID for this request.
|
26196
|
+
# @param [String] region
|
26197
|
+
# Name of the region scoping this request.
|
26198
|
+
# @param [String] target_https_proxy
|
26199
|
+
# Name of the TargetHttpsProxy resource to return.
|
26200
|
+
# @param [String] fields
|
26201
|
+
# Selector specifying which fields to include in a partial response.
|
26202
|
+
# @param [String] quota_user
|
26203
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26204
|
+
# characters.
|
26205
|
+
# @param [String] user_ip
|
26206
|
+
# Deprecated. Please use quotaUser instead.
|
26207
|
+
# @param [Google::Apis::RequestOptions] options
|
26208
|
+
# Request-specific options
|
26209
|
+
#
|
26210
|
+
# @yield [result, err] Result & error if block supplied
|
26211
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
|
26212
|
+
# @yieldparam err [StandardError] error object if request failed
|
26213
|
+
#
|
26214
|
+
# @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
|
26215
|
+
#
|
26216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26219
|
+
def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26220
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
|
26221
|
+
command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
|
26222
|
+
command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
|
26223
|
+
command.params['project'] = project unless project.nil?
|
26224
|
+
command.params['region'] = region unless region.nil?
|
26225
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
26226
|
+
command.query['fields'] = fields unless fields.nil?
|
26227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26228
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26229
|
+
execute_or_queue_command(command, &block)
|
26230
|
+
end
|
26231
|
+
|
26232
|
+
# Creates a TargetHttpsProxy resource in the specified project and region using
|
26233
|
+
# the data included in the request.
|
26234
|
+
# @param [String] project
|
26235
|
+
# Project ID for this request.
|
26236
|
+
# @param [String] region
|
26237
|
+
# Name of the region scoping this request.
|
26238
|
+
# @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
|
25642
26239
|
# @param [String] request_id
|
25643
26240
|
# An optional request ID to identify requests. Specify a unique request ID so
|
25644
26241
|
# that if you must retry your request, the server will know to ignore the
|
@@ -25871,6 +26468,48 @@ module Google
|
|
25871
26468
|
execute_or_queue_command(command, &block)
|
25872
26469
|
end
|
25873
26470
|
|
26471
|
+
# Returns permissions that a caller has on the specified resource.
|
26472
|
+
# @param [String] project
|
26473
|
+
# Project ID for this request.
|
26474
|
+
# @param [String] region
|
26475
|
+
# The name of the region for this request.
|
26476
|
+
# @param [String] resource
|
26477
|
+
# Name or id of the resource for this request.
|
26478
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
26479
|
+
# @param [String] fields
|
26480
|
+
# Selector specifying which fields to include in a partial response.
|
26481
|
+
# @param [String] quota_user
|
26482
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26483
|
+
# characters.
|
26484
|
+
# @param [String] user_ip
|
26485
|
+
# Deprecated. Please use quotaUser instead.
|
26486
|
+
# @param [Google::Apis::RequestOptions] options
|
26487
|
+
# Request-specific options
|
26488
|
+
#
|
26489
|
+
# @yield [result, err] Result & error if block supplied
|
26490
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
26491
|
+
# @yieldparam err [StandardError] error object if request failed
|
26492
|
+
#
|
26493
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
26494
|
+
#
|
26495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26498
|
+
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)
|
26499
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions', options)
|
26500
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26501
|
+
command.request_object = test_permissions_request_object
|
26502
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26503
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
26504
|
+
command.params['project'] = project unless project.nil?
|
26505
|
+
command.params['region'] = region unless region.nil?
|
26506
|
+
command.params['resource'] = resource unless resource.nil?
|
26507
|
+
command.query['fields'] = fields unless fields.nil?
|
26508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26509
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26510
|
+
execute_or_queue_command(command, &block)
|
26511
|
+
end
|
26512
|
+
|
25874
26513
|
# Deletes the specified UrlMap resource.
|
25875
26514
|
# @param [String] project
|
25876
26515
|
# Project ID for this request.
|
@@ -26170,6 +26809,48 @@ module Google
|
|
26170
26809
|
execute_or_queue_command(command, &block)
|
26171
26810
|
end
|
26172
26811
|
|
26812
|
+
# Returns permissions that a caller has on the specified resource.
|
26813
|
+
# @param [String] project
|
26814
|
+
# Project ID for this request.
|
26815
|
+
# @param [String] region
|
26816
|
+
# The name of the region for this request.
|
26817
|
+
# @param [String] resource
|
26818
|
+
# Name or id of the resource for this request.
|
26819
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
26820
|
+
# @param [String] fields
|
26821
|
+
# Selector specifying which fields to include in a partial response.
|
26822
|
+
# @param [String] quota_user
|
26823
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26824
|
+
# characters.
|
26825
|
+
# @param [String] user_ip
|
26826
|
+
# Deprecated. Please use quotaUser instead.
|
26827
|
+
# @param [Google::Apis::RequestOptions] options
|
26828
|
+
# Request-specific options
|
26829
|
+
#
|
26830
|
+
# @yield [result, err] Result & error if block supplied
|
26831
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
26832
|
+
# @yieldparam err [StandardError] error object if request failed
|
26833
|
+
#
|
26834
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
26835
|
+
#
|
26836
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26837
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26838
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26839
|
+
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)
|
26840
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions', options)
|
26841
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26842
|
+
command.request_object = test_permissions_request_object
|
26843
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26844
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
26845
|
+
command.params['project'] = project unless project.nil?
|
26846
|
+
command.params['region'] = region unless region.nil?
|
26847
|
+
command.params['resource'] = resource unless resource.nil?
|
26848
|
+
command.query['fields'] = fields unless fields.nil?
|
26849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26850
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26851
|
+
execute_or_queue_command(command, &block)
|
26852
|
+
end
|
26853
|
+
|
26173
26854
|
# Updates the specified UrlMap resource with the data included in the request.
|
26174
26855
|
# @param [String] project
|
26175
26856
|
# Project ID for this request.
|
@@ -28922,6 +29603,49 @@ module Google
|
|
28922
29603
|
execute_or_queue_command(command, &block)
|
28923
29604
|
end
|
28924
29605
|
|
29606
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
29607
|
+
# or resource exists.
|
29608
|
+
# @param [String] project
|
29609
|
+
# Project ID for this request.
|
29610
|
+
# @param [String] region
|
29611
|
+
# The name of the region for this request.
|
29612
|
+
# @param [String] resource
|
29613
|
+
# Name or id of the resource for this request.
|
29614
|
+
# @param [Fixnum] options_requested_policy_version
|
29615
|
+
# Requested IAM Policy version.
|
29616
|
+
# @param [String] fields
|
29617
|
+
# Selector specifying which fields to include in a partial response.
|
29618
|
+
# @param [String] quota_user
|
29619
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29620
|
+
# characters.
|
29621
|
+
# @param [String] user_ip
|
29622
|
+
# Deprecated. Please use quotaUser instead.
|
29623
|
+
# @param [Google::Apis::RequestOptions] options
|
29624
|
+
# Request-specific options
|
29625
|
+
#
|
29626
|
+
# @yield [result, err] Result & error if block supplied
|
29627
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29628
|
+
# @yieldparam err [StandardError] error object if request failed
|
29629
|
+
#
|
29630
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29631
|
+
#
|
29632
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29633
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29634
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29635
|
+
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)
|
29636
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options)
|
29637
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29638
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29639
|
+
command.params['project'] = project unless project.nil?
|
29640
|
+
command.params['region'] = region unless region.nil?
|
29641
|
+
command.params['resource'] = resource unless resource.nil?
|
29642
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
29643
|
+
command.query['fields'] = fields unless fields.nil?
|
29644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29645
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29646
|
+
execute_or_queue_command(command, &block)
|
29647
|
+
end
|
29648
|
+
|
28925
29649
|
# Creates a ServiceAttachment in the specified project in the given scope using
|
28926
29650
|
# the parameters that are included in the request.
|
28927
29651
|
# @param [String] project
|
@@ -29052,15 +29776,17 @@ module Google
|
|
29052
29776
|
execute_or_queue_command(command, &block)
|
29053
29777
|
end
|
29054
29778
|
|
29055
|
-
#
|
29056
|
-
#
|
29057
|
-
#
|
29058
|
-
# snapshots, the data will be moved to the next corresponding snapshot.
|
29059
|
-
# For more information, see Deleting snapshots.
|
29779
|
+
# Patches the specified ServiceAttachment resource with the data included in the
|
29780
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
29781
|
+
# and processing rules.
|
29060
29782
|
# @param [String] project
|
29061
29783
|
# Project ID for this request.
|
29062
|
-
# @param [String]
|
29063
|
-
#
|
29784
|
+
# @param [String] region
|
29785
|
+
# The region scoping this request and should conform to RFC1035.
|
29786
|
+
# @param [String] service_attachment
|
29787
|
+
# The resource id of the ServiceAttachment to patch. It should conform to
|
29788
|
+
# RFC1035 resource name or be a string form on an unsigned long number.
|
29789
|
+
# @param [Google::Apis::ComputeBeta::ServiceAttachment] service_attachment_object
|
29064
29790
|
# @param [String] request_id
|
29065
29791
|
# An optional request ID to identify requests. Specify a unique request ID so
|
29066
29792
|
# that if you must retry your request, the server will know to ignore the
|
@@ -29091,12 +29817,15 @@ module Google
|
|
29091
29817
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29092
29818
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29093
29819
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29094
|
-
def
|
29095
|
-
command = make_simple_command(:
|
29820
|
+
def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29821
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
29822
|
+
command.request_representation = Google::Apis::ComputeBeta::ServiceAttachment::Representation
|
29823
|
+
command.request_object = service_attachment_object
|
29096
29824
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29097
29825
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
29098
29826
|
command.params['project'] = project unless project.nil?
|
29099
|
-
command.params['
|
29827
|
+
command.params['region'] = region unless region.nil?
|
29828
|
+
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
29100
29829
|
command.query['requestId'] = request_id unless request_id.nil?
|
29101
29830
|
command.query['fields'] = fields unless fields.nil?
|
29102
29831
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -29104,12 +29833,15 @@ module Google
|
|
29104
29833
|
execute_or_queue_command(command, &block)
|
29105
29834
|
end
|
29106
29835
|
|
29107
|
-
#
|
29108
|
-
#
|
29836
|
+
# Sets the access control policy on the specified resource. Replaces any
|
29837
|
+
# existing policy.
|
29109
29838
|
# @param [String] project
|
29110
29839
|
# Project ID for this request.
|
29111
|
-
# @param [String]
|
29112
|
-
#
|
29840
|
+
# @param [String] region
|
29841
|
+
# The name of the region for this request.
|
29842
|
+
# @param [String] resource
|
29843
|
+
# Name or id of the resource for this request.
|
29844
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
29113
29845
|
# @param [String] fields
|
29114
29846
|
# Selector specifying which fields to include in a partial response.
|
29115
29847
|
# @param [String] quota_user
|
@@ -29121,34 +29853,37 @@ module Google
|
|
29121
29853
|
# Request-specific options
|
29122
29854
|
#
|
29123
29855
|
# @yield [result, err] Result & error if block supplied
|
29124
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29856
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29125
29857
|
# @yieldparam err [StandardError] error object if request failed
|
29126
29858
|
#
|
29127
|
-
# @return [Google::Apis::ComputeBeta::
|
29859
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29128
29860
|
#
|
29129
29861
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29130
29862
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29131
29863
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29132
|
-
def
|
29133
|
-
command = make_simple_command(:
|
29134
|
-
command.
|
29135
|
-
command.
|
29864
|
+
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)
|
29865
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
|
29866
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
29867
|
+
command.request_object = region_set_policy_request_object
|
29868
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29869
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29136
29870
|
command.params['project'] = project unless project.nil?
|
29137
|
-
command.params['
|
29871
|
+
command.params['region'] = region unless region.nil?
|
29872
|
+
command.params['resource'] = resource unless resource.nil?
|
29138
29873
|
command.query['fields'] = fields unless fields.nil?
|
29139
29874
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29140
29875
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29141
29876
|
execute_or_queue_command(command, &block)
|
29142
29877
|
end
|
29143
29878
|
|
29144
|
-
#
|
29145
|
-
# or resource exists.
|
29879
|
+
# Returns permissions that a caller has on the specified resource.
|
29146
29880
|
# @param [String] project
|
29147
29881
|
# Project ID for this request.
|
29882
|
+
# @param [String] region
|
29883
|
+
# The name of the region for this request.
|
29148
29884
|
# @param [String] resource
|
29149
29885
|
# Name or id of the resource for this request.
|
29150
|
-
# @param [
|
29151
|
-
# Requested IAM Policy version.
|
29886
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
29152
29887
|
# @param [String] fields
|
29153
29888
|
# Selector specifying which fields to include in a partial response.
|
29154
29889
|
# @param [String] quota_user
|
@@ -29160,32 +29895,163 @@ module Google
|
|
29160
29895
|
# Request-specific options
|
29161
29896
|
#
|
29162
29897
|
# @yield [result, err] Result & error if block supplied
|
29163
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29898
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
29164
29899
|
# @yieldparam err [StandardError] error object if request failed
|
29165
29900
|
#
|
29166
|
-
# @return [Google::Apis::ComputeBeta::
|
29901
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
29167
29902
|
#
|
29168
29903
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29169
29904
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29170
29905
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29171
|
-
def
|
29172
|
-
command = make_simple_command(:
|
29173
|
-
command.
|
29174
|
-
command.
|
29906
|
+
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)
|
29907
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
|
29908
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
29909
|
+
command.request_object = test_permissions_request_object
|
29910
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
29911
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
29175
29912
|
command.params['project'] = project unless project.nil?
|
29913
|
+
command.params['region'] = region unless region.nil?
|
29176
29914
|
command.params['resource'] = resource unless resource.nil?
|
29177
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
29178
29915
|
command.query['fields'] = fields unless fields.nil?
|
29179
29916
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29180
29917
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29181
29918
|
execute_or_queue_command(command, &block)
|
29182
29919
|
end
|
29183
29920
|
|
29184
|
-
#
|
29185
|
-
#
|
29921
|
+
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
29922
|
+
# snapshot might not necessarily delete all the data on that snapshot. If any
|
29923
|
+
# data on the snapshot that is marked for deletion is needed for subsequent
|
29924
|
+
# snapshots, the data will be moved to the next corresponding snapshot.
|
29925
|
+
# For more information, see Deleting snapshots.
|
29186
29926
|
# @param [String] project
|
29187
29927
|
# Project ID for this request.
|
29188
|
-
# @param [
|
29928
|
+
# @param [String] snapshot
|
29929
|
+
# Name of the Snapshot resource to delete.
|
29930
|
+
# @param [String] request_id
|
29931
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29932
|
+
# that if you must retry your request, the server will know to ignore the
|
29933
|
+
# request if it has already been completed.
|
29934
|
+
# For example, consider a situation where you make an initial request and the
|
29935
|
+
# request times out. If you make the request again with the same request ID, the
|
29936
|
+
# server can check if original operation with the same request ID was received,
|
29937
|
+
# and if so, will ignore the second request. This prevents clients from
|
29938
|
+
# accidentally creating duplicate commitments.
|
29939
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29940
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29941
|
+
# @param [String] fields
|
29942
|
+
# Selector specifying which fields to include in a partial response.
|
29943
|
+
# @param [String] quota_user
|
29944
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29945
|
+
# characters.
|
29946
|
+
# @param [String] user_ip
|
29947
|
+
# Deprecated. Please use quotaUser instead.
|
29948
|
+
# @param [Google::Apis::RequestOptions] options
|
29949
|
+
# Request-specific options
|
29950
|
+
#
|
29951
|
+
# @yield [result, err] Result & error if block supplied
|
29952
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
29953
|
+
# @yieldparam err [StandardError] error object if request failed
|
29954
|
+
#
|
29955
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
29956
|
+
#
|
29957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29960
|
+
def delete_snapshot(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29961
|
+
command = make_simple_command(:delete, 'projects/{project}/global/snapshots/{snapshot}', options)
|
29962
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29963
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
29964
|
+
command.params['project'] = project unless project.nil?
|
29965
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
29966
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29967
|
+
command.query['fields'] = fields unless fields.nil?
|
29968
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29969
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29970
|
+
execute_or_queue_command(command, &block)
|
29971
|
+
end
|
29972
|
+
|
29973
|
+
# Returns the specified Snapshot resource. Gets a list of available snapshots by
|
29974
|
+
# making a list() request.
|
29975
|
+
# @param [String] project
|
29976
|
+
# Project ID for this request.
|
29977
|
+
# @param [String] snapshot
|
29978
|
+
# Name of the Snapshot resource to return.
|
29979
|
+
# @param [String] fields
|
29980
|
+
# Selector specifying which fields to include in a partial response.
|
29981
|
+
# @param [String] quota_user
|
29982
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29983
|
+
# characters.
|
29984
|
+
# @param [String] user_ip
|
29985
|
+
# Deprecated. Please use quotaUser instead.
|
29986
|
+
# @param [Google::Apis::RequestOptions] options
|
29987
|
+
# Request-specific options
|
29988
|
+
#
|
29989
|
+
# @yield [result, err] Result & error if block supplied
|
29990
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Snapshot] parsed result object
|
29991
|
+
# @yieldparam err [StandardError] error object if request failed
|
29992
|
+
#
|
29993
|
+
# @return [Google::Apis::ComputeBeta::Snapshot]
|
29994
|
+
#
|
29995
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29996
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29997
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29998
|
+
def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29999
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}', options)
|
30000
|
+
command.response_representation = Google::Apis::ComputeBeta::Snapshot::Representation
|
30001
|
+
command.response_class = Google::Apis::ComputeBeta::Snapshot
|
30002
|
+
command.params['project'] = project unless project.nil?
|
30003
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
30004
|
+
command.query['fields'] = fields unless fields.nil?
|
30005
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30006
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30007
|
+
execute_or_queue_command(command, &block)
|
30008
|
+
end
|
30009
|
+
|
30010
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
30011
|
+
# or resource exists.
|
30012
|
+
# @param [String] project
|
30013
|
+
# Project ID for this request.
|
30014
|
+
# @param [String] resource
|
30015
|
+
# Name or id of the resource for this request.
|
30016
|
+
# @param [Fixnum] options_requested_policy_version
|
30017
|
+
# Requested IAM Policy version.
|
30018
|
+
# @param [String] fields
|
30019
|
+
# Selector specifying which fields to include in a partial response.
|
30020
|
+
# @param [String] quota_user
|
30021
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30022
|
+
# characters.
|
30023
|
+
# @param [String] user_ip
|
30024
|
+
# Deprecated. Please use quotaUser instead.
|
30025
|
+
# @param [Google::Apis::RequestOptions] options
|
30026
|
+
# Request-specific options
|
30027
|
+
#
|
30028
|
+
# @yield [result, err] Result & error if block supplied
|
30029
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
30030
|
+
# @yieldparam err [StandardError] error object if request failed
|
30031
|
+
#
|
30032
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
30033
|
+
#
|
30034
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30035
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30036
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30037
|
+
def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30038
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshots/{resource}/getIamPolicy', options)
|
30039
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
30040
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
30041
|
+
command.params['project'] = project unless project.nil?
|
30042
|
+
command.params['resource'] = resource unless resource.nil?
|
30043
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
30044
|
+
command.query['fields'] = fields unless fields.nil?
|
30045
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30046
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30047
|
+
execute_or_queue_command(command, &block)
|
30048
|
+
end
|
30049
|
+
|
30050
|
+
# Creates a snapshot in the specified project using the data included in the
|
30051
|
+
# request.
|
30052
|
+
# @param [String] project
|
30053
|
+
# Project ID for this request.
|
30054
|
+
# @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object
|
29189
30055
|
# @param [String] request_id
|
29190
30056
|
# An optional request ID to identify requests. Specify a unique request ID so
|
29191
30057
|
# that if you must retry your request, the server will know to ignore the
|
@@ -31079,6 +31945,45 @@ module Google
|
|
31079
31945
|
execute_or_queue_command(command, &block)
|
31080
31946
|
end
|
31081
31947
|
|
31948
|
+
# Returns permissions that a caller has on the specified resource.
|
31949
|
+
# @param [String] project
|
31950
|
+
# Project ID for this request.
|
31951
|
+
# @param [String] resource
|
31952
|
+
# Name or id of the resource for this request.
|
31953
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
31954
|
+
# @param [String] fields
|
31955
|
+
# Selector specifying which fields to include in a partial response.
|
31956
|
+
# @param [String] quota_user
|
31957
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
31958
|
+
# characters.
|
31959
|
+
# @param [String] user_ip
|
31960
|
+
# Deprecated. Please use quotaUser instead.
|
31961
|
+
# @param [Google::Apis::RequestOptions] options
|
31962
|
+
# Request-specific options
|
31963
|
+
#
|
31964
|
+
# @yield [result, err] Result & error if block supplied
|
31965
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
31966
|
+
# @yieldparam err [StandardError] error object if request failed
|
31967
|
+
#
|
31968
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
31969
|
+
#
|
31970
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31971
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31972
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31973
|
+
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)
|
31974
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions', options)
|
31975
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
31976
|
+
command.request_object = test_permissions_request_object
|
31977
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
31978
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
31979
|
+
command.params['project'] = project unless project.nil?
|
31980
|
+
command.params['resource'] = resource unless resource.nil?
|
31981
|
+
command.query['fields'] = fields unless fields.nil?
|
31982
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31983
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31984
|
+
execute_or_queue_command(command, &block)
|
31985
|
+
end
|
31986
|
+
|
31082
31987
|
# Retrieves the list of all TargetHttpProxy resources, regional and global,
|
31083
31988
|
# available to the specified project.
|
31084
31989
|
# @param [String] project
|
@@ -33612,8 +34517,221 @@ module Google
|
|
33612
34517
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33613
34518
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33614
34519
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33615
|
-
def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33616
|
-
command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34520
|
+
def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34521
|
+
command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34522
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
34523
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
34524
|
+
command.params['project'] = project unless project.nil?
|
34525
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
34526
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34527
|
+
command.query['fields'] = fields unless fields.nil?
|
34528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34529
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34530
|
+
execute_or_queue_command(command, &block)
|
34531
|
+
end
|
34532
|
+
|
34533
|
+
# Returns the specified TargetTcpProxy resource. Gets a list of available target
|
34534
|
+
# TCP proxies by making a list() request.
|
34535
|
+
# @param [String] project
|
34536
|
+
# Project ID for this request.
|
34537
|
+
# @param [String] target_tcp_proxy
|
34538
|
+
# Name of the TargetTcpProxy resource to return.
|
34539
|
+
# @param [String] fields
|
34540
|
+
# Selector specifying which fields to include in a partial response.
|
34541
|
+
# @param [String] quota_user
|
34542
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34543
|
+
# characters.
|
34544
|
+
# @param [String] user_ip
|
34545
|
+
# Deprecated. Please use quotaUser instead.
|
34546
|
+
# @param [Google::Apis::RequestOptions] options
|
34547
|
+
# Request-specific options
|
34548
|
+
#
|
34549
|
+
# @yield [result, err] Result & error if block supplied
|
34550
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
|
34551
|
+
# @yieldparam err [StandardError] error object if request failed
|
34552
|
+
#
|
34553
|
+
# @return [Google::Apis::ComputeBeta::TargetTcpProxy]
|
34554
|
+
#
|
34555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34558
|
+
def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34559
|
+
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34560
|
+
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
34561
|
+
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
|
34562
|
+
command.params['project'] = project unless project.nil?
|
34563
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
34564
|
+
command.query['fields'] = fields unless fields.nil?
|
34565
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34566
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34567
|
+
execute_or_queue_command(command, &block)
|
34568
|
+
end
|
34569
|
+
|
34570
|
+
# Creates a TargetTcpProxy resource in the specified project using the data
|
34571
|
+
# included in the request.
|
34572
|
+
# @param [String] project
|
34573
|
+
# Project ID for this request.
|
34574
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
|
34575
|
+
# @param [String] request_id
|
34576
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34577
|
+
# that if you must retry your request, the server will know to ignore the
|
34578
|
+
# request if it has already been completed.
|
34579
|
+
# For example, consider a situation where you make an initial request and the
|
34580
|
+
# request times out. If you make the request again with the same request ID, the
|
34581
|
+
# server can check if original operation with the same request ID was received,
|
34582
|
+
# and if so, will ignore the second request. This prevents clients from
|
34583
|
+
# accidentally creating duplicate commitments.
|
34584
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
34585
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
34586
|
+
# @param [String] fields
|
34587
|
+
# Selector specifying which fields to include in a partial response.
|
34588
|
+
# @param [String] quota_user
|
34589
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34590
|
+
# characters.
|
34591
|
+
# @param [String] user_ip
|
34592
|
+
# Deprecated. Please use quotaUser instead.
|
34593
|
+
# @param [Google::Apis::RequestOptions] options
|
34594
|
+
# Request-specific options
|
34595
|
+
#
|
34596
|
+
# @yield [result, err] Result & error if block supplied
|
34597
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
34598
|
+
# @yieldparam err [StandardError] error object if request failed
|
34599
|
+
#
|
34600
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
34601
|
+
#
|
34602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34605
|
+
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)
|
34606
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
|
34607
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
34608
|
+
command.request_object = target_tcp_proxy_object
|
34609
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
34610
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
34611
|
+
command.params['project'] = project unless project.nil?
|
34612
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34613
|
+
command.query['fields'] = fields unless fields.nil?
|
34614
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34615
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34616
|
+
execute_or_queue_command(command, &block)
|
34617
|
+
end
|
34618
|
+
|
34619
|
+
# Retrieves the list of TargetTcpProxy resources available to the specified
|
34620
|
+
# project.
|
34621
|
+
# @param [String] project
|
34622
|
+
# Project ID for this request.
|
34623
|
+
# @param [String] filter
|
34624
|
+
# A filter expression that filters resources listed in the response. The
|
34625
|
+
# expression must specify the field name, a comparison operator, and the value
|
34626
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
34627
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
34628
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
34629
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
34630
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
34631
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
34632
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
34633
|
+
# on resource labels.
|
34634
|
+
# To filter on multiple expressions, provide each separate expression within
|
34635
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
34636
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
34637
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
34638
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
34639
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
34640
|
+
# @param [Fixnum] max_results
|
34641
|
+
# The maximum number of results per page that should be returned. If the number
|
34642
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34643
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34644
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34645
|
+
# @param [String] order_by
|
34646
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34647
|
+
# alphanumerical order based on the resource name.
|
34648
|
+
# You can also sort results in descending order based on the creation timestamp
|
34649
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
34650
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
34651
|
+
# Use this to sort resources like operations so that the newest operation is
|
34652
|
+
# returned first.
|
34653
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34654
|
+
# @param [String] page_token
|
34655
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34656
|
+
# by a previous list request to get the next page of results.
|
34657
|
+
# @param [Boolean] return_partial_success
|
34658
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34659
|
+
# failure. The default value is false.
|
34660
|
+
# @param [String] fields
|
34661
|
+
# Selector specifying which fields to include in a partial response.
|
34662
|
+
# @param [String] quota_user
|
34663
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34664
|
+
# characters.
|
34665
|
+
# @param [String] user_ip
|
34666
|
+
# Deprecated. Please use quotaUser instead.
|
34667
|
+
# @param [Google::Apis::RequestOptions] options
|
34668
|
+
# Request-specific options
|
34669
|
+
#
|
34670
|
+
# @yield [result, err] Result & error if block supplied
|
34671
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
|
34672
|
+
# @yieldparam err [StandardError] error object if request failed
|
34673
|
+
#
|
34674
|
+
# @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
|
34675
|
+
#
|
34676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34679
|
+
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)
|
34680
|
+
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
|
34681
|
+
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
|
34682
|
+
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
|
34683
|
+
command.params['project'] = project unless project.nil?
|
34684
|
+
command.query['filter'] = filter unless filter.nil?
|
34685
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34686
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34687
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34688
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34689
|
+
command.query['fields'] = fields unless fields.nil?
|
34690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34691
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34692
|
+
execute_or_queue_command(command, &block)
|
34693
|
+
end
|
34694
|
+
|
34695
|
+
# Changes the BackendService for TargetTcpProxy.
|
34696
|
+
# @param [String] project
|
34697
|
+
# Project ID for this request.
|
34698
|
+
# @param [String] target_tcp_proxy
|
34699
|
+
# Name of the TargetTcpProxy resource whose BackendService resource is to be set.
|
34700
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
|
34701
|
+
# @param [String] request_id
|
34702
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34703
|
+
# that if you must retry your request, the server will know to ignore the
|
34704
|
+
# request if it has already been completed.
|
34705
|
+
# For example, consider a situation where you make an initial request and the
|
34706
|
+
# request times out. If you make the request again with the same request ID, the
|
34707
|
+
# server can check if original operation with the same request ID was received,
|
34708
|
+
# and if so, will ignore the second request. This prevents clients from
|
34709
|
+
# accidentally creating duplicate commitments.
|
34710
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
34711
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
34712
|
+
# @param [String] fields
|
34713
|
+
# Selector specifying which fields to include in a partial response.
|
34714
|
+
# @param [String] quota_user
|
34715
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34716
|
+
# characters.
|
34717
|
+
# @param [String] user_ip
|
34718
|
+
# Deprecated. Please use quotaUser instead.
|
34719
|
+
# @param [Google::Apis::RequestOptions] options
|
34720
|
+
# Request-specific options
|
34721
|
+
#
|
34722
|
+
# @yield [result, err] Result & error if block supplied
|
34723
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
34724
|
+
# @yieldparam err [StandardError] error object if request failed
|
34725
|
+
#
|
34726
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
34727
|
+
#
|
34728
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34729
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34730
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34731
|
+
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)
|
34732
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
|
34733
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
|
34734
|
+
command.request_object = target_tcp_proxies_set_backend_service_request_object
|
33617
34735
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33618
34736
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
33619
34737
|
command.params['project'] = project unless project.nil?
|
@@ -33625,174 +34743,12 @@ module Google
|
|
33625
34743
|
execute_or_queue_command(command, &block)
|
33626
34744
|
end
|
33627
34745
|
|
33628
|
-
#
|
33629
|
-
# TCP proxies by making a list() request.
|
33630
|
-
# @param [String] project
|
33631
|
-
# Project ID for this request.
|
33632
|
-
# @param [String] target_tcp_proxy
|
33633
|
-
# Name of the TargetTcpProxy resource to return.
|
33634
|
-
# @param [String] fields
|
33635
|
-
# Selector specifying which fields to include in a partial response.
|
33636
|
-
# @param [String] quota_user
|
33637
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33638
|
-
# characters.
|
33639
|
-
# @param [String] user_ip
|
33640
|
-
# Deprecated. Please use quotaUser instead.
|
33641
|
-
# @param [Google::Apis::RequestOptions] options
|
33642
|
-
# Request-specific options
|
33643
|
-
#
|
33644
|
-
# @yield [result, err] Result & error if block supplied
|
33645
|
-
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
|
33646
|
-
# @yieldparam err [StandardError] error object if request failed
|
33647
|
-
#
|
33648
|
-
# @return [Google::Apis::ComputeBeta::TargetTcpProxy]
|
33649
|
-
#
|
33650
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33651
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33652
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33653
|
-
def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33654
|
-
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
33655
|
-
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
33656
|
-
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
|
33657
|
-
command.params['project'] = project unless project.nil?
|
33658
|
-
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
33659
|
-
command.query['fields'] = fields unless fields.nil?
|
33660
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33661
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33662
|
-
execute_or_queue_command(command, &block)
|
33663
|
-
end
|
33664
|
-
|
33665
|
-
# Creates a TargetTcpProxy resource in the specified project using the data
|
33666
|
-
# included in the request.
|
33667
|
-
# @param [String] project
|
33668
|
-
# Project ID for this request.
|
33669
|
-
# @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
|
33670
|
-
# @param [String] request_id
|
33671
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
33672
|
-
# that if you must retry your request, the server will know to ignore the
|
33673
|
-
# request if it has already been completed.
|
33674
|
-
# For example, consider a situation where you make an initial request and the
|
33675
|
-
# request times out. If you make the request again with the same request ID, the
|
33676
|
-
# server can check if original operation with the same request ID was received,
|
33677
|
-
# and if so, will ignore the second request. This prevents clients from
|
33678
|
-
# accidentally creating duplicate commitments.
|
33679
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
33680
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
33681
|
-
# @param [String] fields
|
33682
|
-
# Selector specifying which fields to include in a partial response.
|
33683
|
-
# @param [String] quota_user
|
33684
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33685
|
-
# characters.
|
33686
|
-
# @param [String] user_ip
|
33687
|
-
# Deprecated. Please use quotaUser instead.
|
33688
|
-
# @param [Google::Apis::RequestOptions] options
|
33689
|
-
# Request-specific options
|
33690
|
-
#
|
33691
|
-
# @yield [result, err] Result & error if block supplied
|
33692
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
33693
|
-
# @yieldparam err [StandardError] error object if request failed
|
33694
|
-
#
|
33695
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
33696
|
-
#
|
33697
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33698
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33699
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33700
|
-
def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33701
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
|
33702
|
-
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
33703
|
-
command.request_object = target_tcp_proxy_object
|
33704
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33705
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
33706
|
-
command.params['project'] = project unless project.nil?
|
33707
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
33708
|
-
command.query['fields'] = fields unless fields.nil?
|
33709
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33710
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33711
|
-
execute_or_queue_command(command, &block)
|
33712
|
-
end
|
33713
|
-
|
33714
|
-
# Retrieves the list of TargetTcpProxy resources available to the specified
|
33715
|
-
# project.
|
33716
|
-
# @param [String] project
|
33717
|
-
# Project ID for this request.
|
33718
|
-
# @param [String] filter
|
33719
|
-
# A filter expression that filters resources listed in the response. The
|
33720
|
-
# expression must specify the field name, a comparison operator, and the value
|
33721
|
-
# that you want to use for filtering. The value must be a string, a number, or a
|
33722
|
-
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
33723
|
-
# For example, if you are filtering Compute Engine instances, you can exclude
|
33724
|
-
# instances named `example-instance` by specifying `name != example-instance`.
|
33725
|
-
# You can also filter nested fields. For example, you could specify `scheduling.
|
33726
|
-
# automaticRestart = false` to include instances only if they are not scheduled
|
33727
|
-
# for automatic restarts. You can use filtering on nested fields to filter based
|
33728
|
-
# on resource labels.
|
33729
|
-
# To filter on multiple expressions, provide each separate expression within
|
33730
|
-
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
33731
|
-
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
33732
|
-
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
33733
|
-
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
33734
|
-
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
33735
|
-
# @param [Fixnum] max_results
|
33736
|
-
# The maximum number of results per page that should be returned. If the number
|
33737
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33738
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
33739
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33740
|
-
# @param [String] order_by
|
33741
|
-
# Sorts list results by a certain order. By default, results are returned in
|
33742
|
-
# alphanumerical order based on the resource name.
|
33743
|
-
# You can also sort results in descending order based on the creation timestamp
|
33744
|
-
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
33745
|
-
# creationTimestamp` field in reverse chronological order (newest result first).
|
33746
|
-
# Use this to sort resources like operations so that the newest operation is
|
33747
|
-
# returned first.
|
33748
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33749
|
-
# @param [String] page_token
|
33750
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33751
|
-
# by a previous list request to get the next page of results.
|
33752
|
-
# @param [Boolean] return_partial_success
|
33753
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
33754
|
-
# failure. The default value is false.
|
33755
|
-
# @param [String] fields
|
33756
|
-
# Selector specifying which fields to include in a partial response.
|
33757
|
-
# @param [String] quota_user
|
33758
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33759
|
-
# characters.
|
33760
|
-
# @param [String] user_ip
|
33761
|
-
# Deprecated. Please use quotaUser instead.
|
33762
|
-
# @param [Google::Apis::RequestOptions] options
|
33763
|
-
# Request-specific options
|
33764
|
-
#
|
33765
|
-
# @yield [result, err] Result & error if block supplied
|
33766
|
-
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
|
33767
|
-
# @yieldparam err [StandardError] error object if request failed
|
33768
|
-
#
|
33769
|
-
# @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
|
33770
|
-
#
|
33771
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33772
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33773
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33774
|
-
def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33775
|
-
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
|
33776
|
-
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
|
33777
|
-
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
|
33778
|
-
command.params['project'] = project unless project.nil?
|
33779
|
-
command.query['filter'] = filter unless filter.nil?
|
33780
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
33781
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
33782
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
33783
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33784
|
-
command.query['fields'] = fields unless fields.nil?
|
33785
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33786
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33787
|
-
execute_or_queue_command(command, &block)
|
33788
|
-
end
|
33789
|
-
|
33790
|
-
# Changes the BackendService for TargetTcpProxy.
|
34746
|
+
# Changes the ProxyHeaderType for TargetTcpProxy.
|
33791
34747
|
# @param [String] project
|
33792
34748
|
# Project ID for this request.
|
33793
34749
|
# @param [String] target_tcp_proxy
|
33794
|
-
# Name of the TargetTcpProxy resource whose
|
33795
|
-
# @param [Google::Apis::ComputeBeta::
|
34750
|
+
# Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
|
34751
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
|
33796
34752
|
# @param [String] request_id
|
33797
34753
|
# An optional request ID to identify requests. Specify a unique request ID so
|
33798
34754
|
# that if you must retry your request, the server will know to ignore the
|
@@ -33823,10 +34779,10 @@ module Google
|
|
33823
34779
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33824
34780
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33825
34781
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33826
|
-
def
|
33827
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/
|
33828
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
33829
|
-
command.request_object =
|
34782
|
+
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)
|
34783
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
|
34784
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
|
34785
|
+
command.request_object = target_tcp_proxies_set_proxy_header_request_object
|
33830
34786
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33831
34787
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
33832
34788
|
command.params['project'] = project unless project.nil?
|
@@ -33838,23 +34794,12 @@ module Google
|
|
33838
34794
|
execute_or_queue_command(command, &block)
|
33839
34795
|
end
|
33840
34796
|
|
33841
|
-
#
|
34797
|
+
# Returns permissions that a caller has on the specified resource.
|
33842
34798
|
# @param [String] project
|
33843
34799
|
# Project ID for this request.
|
33844
|
-
# @param [String]
|
33845
|
-
# Name of the
|
33846
|
-
# @param [Google::Apis::ComputeBeta::
|
33847
|
-
# @param [String] request_id
|
33848
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
33849
|
-
# that if you must retry your request, the server will know to ignore the
|
33850
|
-
# request if it has already been completed.
|
33851
|
-
# For example, consider a situation where you make an initial request and the
|
33852
|
-
# request times out. If you make the request again with the same request ID, the
|
33853
|
-
# server can check if original operation with the same request ID was received,
|
33854
|
-
# and if so, will ignore the second request. This prevents clients from
|
33855
|
-
# accidentally creating duplicate commitments.
|
33856
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
33857
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
34800
|
+
# @param [String] resource
|
34801
|
+
# Name or id of the resource for this request.
|
34802
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
33858
34803
|
# @param [String] fields
|
33859
34804
|
# Selector specifying which fields to include in a partial response.
|
33860
34805
|
# @param [String] quota_user
|
@@ -33866,23 +34811,22 @@ module Google
|
|
33866
34811
|
# Request-specific options
|
33867
34812
|
#
|
33868
34813
|
# @yield [result, err] Result & error if block supplied
|
33869
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
34814
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
33870
34815
|
# @yieldparam err [StandardError] error object if request failed
|
33871
34816
|
#
|
33872
|
-
# @return [Google::Apis::ComputeBeta::
|
34817
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
33873
34818
|
#
|
33874
34819
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33875
34820
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33876
34821
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33877
|
-
def
|
33878
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{
|
33879
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
33880
|
-
command.request_object =
|
33881
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
33882
|
-
command.response_class = Google::Apis::ComputeBeta::
|
34822
|
+
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)
|
34823
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
|
34824
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
34825
|
+
command.request_object = test_permissions_request_object
|
34826
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
34827
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
33883
34828
|
command.params['project'] = project unless project.nil?
|
33884
|
-
command.params['
|
33885
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
34829
|
+
command.params['resource'] = resource unless resource.nil?
|
33886
34830
|
command.query['fields'] = fields unless fields.nil?
|
33887
34831
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33888
34832
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -35219,6 +36163,48 @@ module Google
|
|
35219
36163
|
execute_or_queue_command(command, &block)
|
35220
36164
|
end
|
35221
36165
|
|
36166
|
+
# Returns permissions that a caller has on the specified resource.
|
36167
|
+
# @param [String] project
|
36168
|
+
# Project ID for this request.
|
36169
|
+
# @param [String] region
|
36170
|
+
# The name of the region for this request.
|
36171
|
+
# @param [String] resource
|
36172
|
+
# Name or id of the resource for this request.
|
36173
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
36174
|
+
# @param [String] fields
|
36175
|
+
# Selector specifying which fields to include in a partial response.
|
36176
|
+
# @param [String] quota_user
|
36177
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
36178
|
+
# characters.
|
36179
|
+
# @param [String] user_ip
|
36180
|
+
# Deprecated. Please use quotaUser instead.
|
36181
|
+
# @param [Google::Apis::RequestOptions] options
|
36182
|
+
# Request-specific options
|
36183
|
+
#
|
36184
|
+
# @yield [result, err] Result & error if block supplied
|
36185
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
36186
|
+
# @yieldparam err [StandardError] error object if request failed
|
36187
|
+
#
|
36188
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
36189
|
+
#
|
36190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36193
|
+
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)
|
36194
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
|
36195
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
36196
|
+
command.request_object = test_permissions_request_object
|
36197
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
36198
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
36199
|
+
command.params['project'] = project unless project.nil?
|
36200
|
+
command.params['region'] = region unless region.nil?
|
36201
|
+
command.params['resource'] = resource unless resource.nil?
|
36202
|
+
command.query['fields'] = fields unless fields.nil?
|
36203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36204
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36205
|
+
execute_or_queue_command(command, &block)
|
36206
|
+
end
|
36207
|
+
|
35222
36208
|
# Retrieves an aggregated list of VPN tunnels.
|
35223
36209
|
# @param [String] project
|
35224
36210
|
# Project ID for this request.
|