google-apis-compute_beta 0.66.0 → 0.67.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.
@@ -13930,6 +13930,61 @@ module Google
|
|
13930
13930
|
execute_or_queue_command(command, &block)
|
13931
13931
|
end
|
13932
13932
|
|
13933
|
+
# Sets the Google Cloud Armor security policy for the specified instance. For
|
13934
|
+
# more information, see Google Cloud Armor Overview
|
13935
|
+
# @param [String] project
|
13936
|
+
# Project ID for this request.
|
13937
|
+
# @param [String] zone
|
13938
|
+
# Name of the zone scoping this request.
|
13939
|
+
# @param [String] instance
|
13940
|
+
# Name of the Instance resource to which the security policy should be set. The
|
13941
|
+
# name should conform to RFC1035.
|
13942
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
|
13943
|
+
# @param [String] request_id
|
13944
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13945
|
+
# that if you must retry your request, the server will know to ignore the
|
13946
|
+
# request if it has already been completed. For example, consider a situation
|
13947
|
+
# where you make an initial request and the request times out. If you make the
|
13948
|
+
# request again with the same request ID, the server can check if original
|
13949
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13950
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13951
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13952
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13953
|
+
# @param [String] fields
|
13954
|
+
# Selector specifying which fields to include in a partial response.
|
13955
|
+
# @param [String] quota_user
|
13956
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13957
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13958
|
+
# @param [String] user_ip
|
13959
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13960
|
+
# @param [Google::Apis::RequestOptions] options
|
13961
|
+
# Request-specific options
|
13962
|
+
#
|
13963
|
+
# @yield [result, err] Result & error if block supplied
|
13964
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
13965
|
+
# @yieldparam err [StandardError] error object if request failed
|
13966
|
+
#
|
13967
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
13968
|
+
#
|
13969
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13970
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13971
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13972
|
+
def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13973
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
|
13974
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest::Representation
|
13975
|
+
command.request_object = instances_set_security_policy_request_object
|
13976
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
13977
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
13978
|
+
command.params['project'] = project unless project.nil?
|
13979
|
+
command.params['zone'] = zone unless zone.nil?
|
13980
|
+
command.params['instance'] = instance unless instance.nil?
|
13981
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13982
|
+
command.query['fields'] = fields unless fields.nil?
|
13983
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13984
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13985
|
+
execute_or_queue_command(command, &block)
|
13986
|
+
end
|
13987
|
+
|
13933
13988
|
# Sets the service account on the instance. For more information, read Changing
|
13934
13989
|
# the service account and access scopes for an instance.
|
13935
13990
|
# @param [String] project
|
@@ -15421,6 +15476,132 @@ module Google
|
|
15421
15476
|
execute_or_queue_command(command, &block)
|
15422
15477
|
end
|
15423
15478
|
|
15479
|
+
# Returns the details for the specified interconnect remote location. Gets a
|
15480
|
+
# list of available interconnect remote locations by making a list() request.
|
15481
|
+
# @param [String] project
|
15482
|
+
# Project ID for this request.
|
15483
|
+
# @param [String] interconnect_remote_location
|
15484
|
+
# Name of the interconnect remote location to return.
|
15485
|
+
# @param [String] fields
|
15486
|
+
# Selector specifying which fields to include in a partial response.
|
15487
|
+
# @param [String] quota_user
|
15488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15490
|
+
# @param [String] user_ip
|
15491
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15492
|
+
# @param [Google::Apis::RequestOptions] options
|
15493
|
+
# Request-specific options
|
15494
|
+
#
|
15495
|
+
# @yield [result, err] Result & error if block supplied
|
15496
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocation] parsed result object
|
15497
|
+
# @yieldparam err [StandardError] error object if request failed
|
15498
|
+
#
|
15499
|
+
# @return [Google::Apis::ComputeBeta::InterconnectRemoteLocation]
|
15500
|
+
#
|
15501
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15502
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15503
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15504
|
+
def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15505
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
|
15506
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocation::Representation
|
15507
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocation
|
15508
|
+
command.params['project'] = project unless project.nil?
|
15509
|
+
command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
|
15510
|
+
command.query['fields'] = fields unless fields.nil?
|
15511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15512
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15513
|
+
execute_or_queue_command(command, &block)
|
15514
|
+
end
|
15515
|
+
|
15516
|
+
# Retrieves the list of interconnect remote locations available to the specified
|
15517
|
+
# project.
|
15518
|
+
# @param [String] project
|
15519
|
+
# Project ID for this request.
|
15520
|
+
# @param [String] filter
|
15521
|
+
# A filter expression that filters resources listed in the response. Most
|
15522
|
+
# Compute resources support two types of filter expressions: expressions that
|
15523
|
+
# support regular expressions and expressions that follow API improvement
|
15524
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
15525
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
15526
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
15527
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
15528
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
15529
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
15530
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
15531
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
15532
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
15533
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
15534
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
15535
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
15536
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
15537
|
+
# provide each separate expression within parentheses. For example: ``` (
|
15538
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
15539
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
15540
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
15541
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
15542
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
15543
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
15544
|
+
# expression with or without quotes or against multiple parenthesized
|
15545
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
15546
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
15547
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
15548
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
15549
|
+
# match the entire field. For example, to filter for instances that do not end
|
15550
|
+
# with name "instance", you would use `name ne .*instance`.
|
15551
|
+
# @param [Fixnum] max_results
|
15552
|
+
# The maximum number of results per page that should be returned. If the number
|
15553
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
15554
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
15555
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
15556
|
+
# @param [String] order_by
|
15557
|
+
# Sorts list results by a certain order. By default, results are returned in
|
15558
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
15559
|
+
# descending order based on the creation timestamp using `orderBy="
|
15560
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
15561
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
15562
|
+
# resources like operations so that the newest operation is returned first.
|
15563
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
15564
|
+
# @param [String] page_token
|
15565
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
15566
|
+
# by a previous list request to get the next page of results.
|
15567
|
+
# @param [Boolean] return_partial_success
|
15568
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
15569
|
+
# failure. The default value is false.
|
15570
|
+
# @param [String] fields
|
15571
|
+
# Selector specifying which fields to include in a partial response.
|
15572
|
+
# @param [String] quota_user
|
15573
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15574
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15575
|
+
# @param [String] user_ip
|
15576
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15577
|
+
# @param [Google::Apis::RequestOptions] options
|
15578
|
+
# Request-specific options
|
15579
|
+
#
|
15580
|
+
# @yield [result, err] Result & error if block supplied
|
15581
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocationList] parsed result object
|
15582
|
+
# @yieldparam err [StandardError] error object if request failed
|
15583
|
+
#
|
15584
|
+
# @return [Google::Apis::ComputeBeta::InterconnectRemoteLocationList]
|
15585
|
+
#
|
15586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15589
|
+
def list_interconnect_remote_locations(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)
|
15590
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
|
15591
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocationList::Representation
|
15592
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocationList
|
15593
|
+
command.params['project'] = project unless project.nil?
|
15594
|
+
command.query['filter'] = filter unless filter.nil?
|
15595
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
15596
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
15597
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
15598
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
15599
|
+
command.query['fields'] = fields unless fields.nil?
|
15600
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15601
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15602
|
+
execute_or_queue_command(command, &block)
|
15603
|
+
end
|
15604
|
+
|
15424
15605
|
# Deletes the specified Interconnect.
|
15425
15606
|
# @param [String] project
|
15426
15607
|
# Project ID for this request.
|
@@ -24347,6 +24528,61 @@ module Google
|
|
24347
24528
|
execute_or_queue_command(command, &block)
|
24348
24529
|
end
|
24349
24530
|
|
24531
|
+
# Sets the Google Cloud Armor security policy for the specified backend service.
|
24532
|
+
# For more information, see Google Cloud Armor Overview
|
24533
|
+
# @param [String] project
|
24534
|
+
# Project ID for this request.
|
24535
|
+
# @param [String] region
|
24536
|
+
# Name of the region scoping this request.
|
24537
|
+
# @param [String] backend_service
|
24538
|
+
# Name of the BackendService resource to which the security policy should be set.
|
24539
|
+
# The name should conform to RFC1035.
|
24540
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
24541
|
+
# @param [String] request_id
|
24542
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24543
|
+
# that if you must retry your request, the server will know to ignore the
|
24544
|
+
# request if it has already been completed. For example, consider a situation
|
24545
|
+
# where you make an initial request and the request times out. If you make the
|
24546
|
+
# request again with the same request ID, the server can check if original
|
24547
|
+
# operation with the same request ID was received, and if so, will ignore the
|
24548
|
+
# second request. This prevents clients from accidentally creating duplicate
|
24549
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
24550
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
24551
|
+
# @param [String] fields
|
24552
|
+
# Selector specifying which fields to include in a partial response.
|
24553
|
+
# @param [String] quota_user
|
24554
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24555
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24556
|
+
# @param [String] user_ip
|
24557
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
24558
|
+
# @param [Google::Apis::RequestOptions] options
|
24559
|
+
# Request-specific options
|
24560
|
+
#
|
24561
|
+
# @yield [result, err] Result & error if block supplied
|
24562
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
24563
|
+
# @yieldparam err [StandardError] error object if request failed
|
24564
|
+
#
|
24565
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
24566
|
+
#
|
24567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24570
|
+
def set_region_backend_service_security_policy(project, region, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24571
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy', options)
|
24572
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
24573
|
+
command.request_object = security_policy_reference_object
|
24574
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24575
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
24576
|
+
command.params['project'] = project unless project.nil?
|
24577
|
+
command.params['region'] = region unless region.nil?
|
24578
|
+
command.params['backendService'] = backend_service unless backend_service.nil?
|
24579
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
24580
|
+
command.query['fields'] = fields unless fields.nil?
|
24581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24582
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24583
|
+
execute_or_queue_command(command, &block)
|
24584
|
+
end
|
24585
|
+
|
24350
24586
|
# Returns permissions that a caller has on the specified resource.
|
24351
24587
|
# @param [String] project
|
24352
24588
|
# Project ID for this request.
|
@@ -39965,6 +40201,61 @@ module Google
|
|
39965
40201
|
execute_or_queue_command(command, &block)
|
39966
40202
|
end
|
39967
40203
|
|
40204
|
+
# Sets the Google Cloud Armor security policy for the specified target instance.
|
40205
|
+
# For more information, see Google Cloud Armor Overview
|
40206
|
+
# @param [String] project
|
40207
|
+
# Project ID for this request.
|
40208
|
+
# @param [String] zone
|
40209
|
+
# Name of the zone scoping this request.
|
40210
|
+
# @param [String] target_instance
|
40211
|
+
# Name of the TargetInstance resource to which the security policy should be set.
|
40212
|
+
# The name should conform to RFC1035.
|
40213
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
40214
|
+
# @param [String] request_id
|
40215
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
40216
|
+
# that if you must retry your request, the server will know to ignore the
|
40217
|
+
# request if it has already been completed. For example, consider a situation
|
40218
|
+
# where you make an initial request and the request times out. If you make the
|
40219
|
+
# request again with the same request ID, the server can check if original
|
40220
|
+
# operation with the same request ID was received, and if so, will ignore the
|
40221
|
+
# second request. This prevents clients from accidentally creating duplicate
|
40222
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
40223
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
40224
|
+
# @param [String] fields
|
40225
|
+
# Selector specifying which fields to include in a partial response.
|
40226
|
+
# @param [String] quota_user
|
40227
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
40228
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
40229
|
+
# @param [String] user_ip
|
40230
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
40231
|
+
# @param [Google::Apis::RequestOptions] options
|
40232
|
+
# Request-specific options
|
40233
|
+
#
|
40234
|
+
# @yield [result, err] Result & error if block supplied
|
40235
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
40236
|
+
# @yieldparam err [StandardError] error object if request failed
|
40237
|
+
#
|
40238
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
40239
|
+
#
|
40240
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40241
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40242
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40243
|
+
def set_target_instance_security_policy(project, zone, target_instance, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
40244
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy', options)
|
40245
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
40246
|
+
command.request_object = security_policy_reference_object
|
40247
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
40248
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
40249
|
+
command.params['project'] = project unless project.nil?
|
40250
|
+
command.params['zone'] = zone unless zone.nil?
|
40251
|
+
command.params['targetInstance'] = target_instance unless target_instance.nil?
|
40252
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
40253
|
+
command.query['fields'] = fields unless fields.nil?
|
40254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
40255
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
40256
|
+
execute_or_queue_command(command, &block)
|
40257
|
+
end
|
40258
|
+
|
39968
40259
|
# Returns permissions that a caller has on the specified resource.
|
39969
40260
|
# @param [String] project
|
39970
40261
|
# Project ID for this request.
|
@@ -40645,6 +40936,61 @@ module Google
|
|
40645
40936
|
execute_or_queue_command(command, &block)
|
40646
40937
|
end
|
40647
40938
|
|
40939
|
+
# Sets the Google Cloud Armor security policy for the specified target pool. For
|
40940
|
+
# more information, see Google Cloud Armor Overview
|
40941
|
+
# @param [String] project
|
40942
|
+
# Project ID for this request.
|
40943
|
+
# @param [String] region
|
40944
|
+
# Name of the region scoping this request.
|
40945
|
+
# @param [String] target_pool
|
40946
|
+
# Name of the TargetPool resource to which the security policy should be set.
|
40947
|
+
# The name should conform to RFC1035.
|
40948
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
40949
|
+
# @param [String] request_id
|
40950
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
40951
|
+
# that if you must retry your request, the server will know to ignore the
|
40952
|
+
# request if it has already been completed. For example, consider a situation
|
40953
|
+
# where you make an initial request and the request times out. If you make the
|
40954
|
+
# request again with the same request ID, the server can check if original
|
40955
|
+
# operation with the same request ID was received, and if so, will ignore the
|
40956
|
+
# second request. This prevents clients from accidentally creating duplicate
|
40957
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
40958
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
40959
|
+
# @param [String] fields
|
40960
|
+
# Selector specifying which fields to include in a partial response.
|
40961
|
+
# @param [String] quota_user
|
40962
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
40963
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
40964
|
+
# @param [String] user_ip
|
40965
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
40966
|
+
# @param [Google::Apis::RequestOptions] options
|
40967
|
+
# Request-specific options
|
40968
|
+
#
|
40969
|
+
# @yield [result, err] Result & error if block supplied
|
40970
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
40971
|
+
# @yieldparam err [StandardError] error object if request failed
|
40972
|
+
#
|
40973
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
40974
|
+
#
|
40975
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40976
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40977
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40978
|
+
def set_target_pool_security_policy(project, region, target_pool, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
40979
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy', options)
|
40980
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
40981
|
+
command.request_object = security_policy_reference_object
|
40982
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
40983
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
40984
|
+
command.params['project'] = project unless project.nil?
|
40985
|
+
command.params['region'] = region unless region.nil?
|
40986
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
40987
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
40988
|
+
command.query['fields'] = fields unless fields.nil?
|
40989
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
40990
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
40991
|
+
execute_or_queue_command(command, &block)
|
40992
|
+
end
|
40993
|
+
|
40648
40994
|
# Returns permissions that a caller has on the specified resource.
|
40649
40995
|
# @param [String] project
|
40650
40996
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.67.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.67.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|