google-apis-compute_beta 0.147.0 → 0.149.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.
|
@@ -927,6 +927,48 @@ module Google
|
|
|
927
927
|
execute_or_queue_command(command, &block)
|
|
928
928
|
end
|
|
929
929
|
|
|
930
|
+
# Advises on whether extending an existing future reservation is possible
|
|
931
|
+
# based on the desired extension end time. If capacity isn't available for
|
|
932
|
+
# the entire requested duration, the method recommends the longest possible
|
|
933
|
+
# extension.
|
|
934
|
+
# @param [String] project
|
|
935
|
+
# Project ID for this request.
|
|
936
|
+
# @param [String] region
|
|
937
|
+
# Name of the region for this request.
|
|
938
|
+
# @param [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest] calendar_mode_extension_advice_request_object
|
|
939
|
+
# @param [String] fields
|
|
940
|
+
# Selector specifying which fields to include in a partial response.
|
|
941
|
+
# @param [String] quota_user
|
|
942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
944
|
+
# @param [String] user_ip
|
|
945
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
946
|
+
# @param [Google::Apis::RequestOptions] options
|
|
947
|
+
# Request-specific options
|
|
948
|
+
#
|
|
949
|
+
# @yield [result, err] Result & error if block supplied
|
|
950
|
+
# @yieldparam result [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse] parsed result object
|
|
951
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
952
|
+
#
|
|
953
|
+
# @return [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse]
|
|
954
|
+
#
|
|
955
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
956
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
957
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
958
|
+
def calendar_mode_extension_advice(project, region, calendar_mode_extension_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
959
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarModeExtension', options)
|
|
960
|
+
command.request_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest::Representation
|
|
961
|
+
command.request_object = calendar_mode_extension_advice_request_object
|
|
962
|
+
command.response_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse::Representation
|
|
963
|
+
command.response_class = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse
|
|
964
|
+
command.params['project'] = project unless project.nil?
|
|
965
|
+
command.params['region'] = region unless region.nil?
|
|
966
|
+
command.query['fields'] = fields unless fields.nil?
|
|
967
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
968
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
969
|
+
execute_or_queue_command(command, &block)
|
|
970
|
+
end
|
|
971
|
+
|
|
930
972
|
# Advice on making real-time decisions (such as choosing zone or
|
|
931
973
|
# machine types) during deployment to maximize your chances of obtaining
|
|
932
974
|
# capacity.
|
|
@@ -9443,6 +9485,7 @@ module Google
|
|
|
9443
9485
|
|
|
9444
9486
|
# Gets the Global Frontend Billing Bundle Settings for a project.
|
|
9445
9487
|
# @param [String] project
|
|
9488
|
+
# Required. Project ID for this request.
|
|
9446
9489
|
# @param [String] fields
|
|
9447
9490
|
# Selector specifying which fields to include in a partial response.
|
|
9448
9491
|
# @param [String] quota_user
|
|
@@ -9475,10 +9518,12 @@ module Google
|
|
|
9475
9518
|
|
|
9476
9519
|
# Updates the Global Frontend Billing Bundle Settings for a project.
|
|
9477
9520
|
# @param [String] project
|
|
9521
|
+
# Required. Project ID for this request.
|
|
9478
9522
|
# @param [Google::Apis::ComputeBeta::GlobalFrontendSettings] global_frontend_settings_object
|
|
9479
9523
|
# @param [String] request_id
|
|
9524
|
+
# An optional request ID to identify requests.
|
|
9480
9525
|
# @param [String] update_mask
|
|
9481
|
-
#
|
|
9526
|
+
# Field mask to support patch. E.g., "type".
|
|
9482
9527
|
# @param [String] fields
|
|
9483
9528
|
# Selector specifying which fields to include in a partial response.
|
|
9484
9529
|
# @param [String] quota_user
|
|
@@ -12926,6 +12971,124 @@ module Google
|
|
|
12926
12971
|
execute_or_queue_command(command, &block)
|
|
12927
12972
|
end
|
|
12928
12973
|
|
|
12974
|
+
# Returns a list of global ImageView resources, with a regional
|
|
12975
|
+
# context.
|
|
12976
|
+
# @param [String] project
|
|
12977
|
+
# Required. Project ID for this request.
|
|
12978
|
+
# @param [String] region
|
|
12979
|
+
# Required. Name of the region for this request.
|
|
12980
|
+
# @param [String] filter
|
|
12981
|
+
# A filter expression that filters resources listed in the response. Most
|
|
12982
|
+
# Compute resources support two types of filter expressions:
|
|
12983
|
+
# expressions that support regular expressions and expressions that follow
|
|
12984
|
+
# API improvement proposal AIP-160.
|
|
12985
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
12986
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
12987
|
+
# operator, and the value that you want to use for filtering. The value
|
|
12988
|
+
# must be a string, a number, or a boolean. The operator
|
|
12989
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
12990
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
12991
|
+
# exclude instances named `example-instance` by specifying
|
|
12992
|
+
# `name != example-instance`.
|
|
12993
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
12994
|
+
# For example, to find all objects with `owner` label use:
|
|
12995
|
+
# ```
|
|
12996
|
+
# labels.owner:*
|
|
12997
|
+
# ```
|
|
12998
|
+
# You can also filter nested fields. For example, you could specify
|
|
12999
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
13000
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
13001
|
+
# on nested fields to filter based onresource labels.
|
|
13002
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
13003
|
+
# parentheses. For example:
|
|
13004
|
+
# ```
|
|
13005
|
+
# (scheduling.automaticRestart = true)
|
|
13006
|
+
# (cpuPlatform = "Intel Skylake")
|
|
13007
|
+
# ```
|
|
13008
|
+
# By default, each expression is an `AND` expression. However, you
|
|
13009
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
13010
|
+
# For example:
|
|
13011
|
+
# ```
|
|
13012
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
13013
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
13014
|
+
# (scheduling.automaticRestart = true)
|
|
13015
|
+
# ```
|
|
13016
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
13017
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
13018
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
13019
|
+
# `fieldname eq unquoted literal`
|
|
13020
|
+
# `fieldname eq 'single quoted literal'`
|
|
13021
|
+
# `fieldname eq "double quoted literal"`
|
|
13022
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
13023
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
13024
|
+
# library syntax.
|
|
13025
|
+
# The literal value must match the entire field.
|
|
13026
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
13027
|
+
# you would use `name ne .*instance`.
|
|
13028
|
+
# You cannot combine constraints on multiple fields using regular
|
|
13029
|
+
# expressions.
|
|
13030
|
+
# @param [Fixnum] max_results
|
|
13031
|
+
# The maximum number of results per page that should be returned.
|
|
13032
|
+
# If the number of available results is larger than `maxResults`,
|
|
13033
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
13034
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
13035
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
13036
|
+
# @param [String] order_by
|
|
13037
|
+
# Sorts list results by a certain order. By default, results
|
|
13038
|
+
# are returned in alphanumerical order based on the resource name.
|
|
13039
|
+
# You can also sort results in descending order based on the creation
|
|
13040
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
13041
|
+
# results based on the `creationTimestamp` field in
|
|
13042
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
13043
|
+
# resources like operations so that the newest operation is returned first.
|
|
13044
|
+
# Currently, only sorting by `name` or
|
|
13045
|
+
# `creationTimestamp desc` is supported.
|
|
13046
|
+
# @param [String] page_token
|
|
13047
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
13048
|
+
# `nextPageToken` returned by a previous list request to get
|
|
13049
|
+
# the next page of results.
|
|
13050
|
+
# @param [Boolean] return_partial_success
|
|
13051
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
13052
|
+
# of failure. The default value is false.
|
|
13053
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
13054
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
13055
|
+
# with an error code.
|
|
13056
|
+
# @param [String] fields
|
|
13057
|
+
# Selector specifying which fields to include in a partial response.
|
|
13058
|
+
# @param [String] quota_user
|
|
13059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
13060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
13061
|
+
# @param [String] user_ip
|
|
13062
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
13063
|
+
# @param [Google::Apis::RequestOptions] options
|
|
13064
|
+
# Request-specific options
|
|
13065
|
+
#
|
|
13066
|
+
# @yield [result, err] Result & error if block supplied
|
|
13067
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ImageViewsListResponse] parsed result object
|
|
13068
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
13069
|
+
#
|
|
13070
|
+
# @return [Google::Apis::ComputeBeta::ImageViewsListResponse]
|
|
13071
|
+
#
|
|
13072
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
13073
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
13074
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
13075
|
+
def list_image_views(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
13076
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/imageViews', options)
|
|
13077
|
+
command.response_representation = Google::Apis::ComputeBeta::ImageViewsListResponse::Representation
|
|
13078
|
+
command.response_class = Google::Apis::ComputeBeta::ImageViewsListResponse
|
|
13079
|
+
command.params['project'] = project unless project.nil?
|
|
13080
|
+
command.params['region'] = region unless region.nil?
|
|
13081
|
+
command.query['filter'] = filter unless filter.nil?
|
|
13082
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
13083
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
13084
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
13085
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
13086
|
+
command.query['fields'] = fields unless fields.nil?
|
|
13087
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
13088
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
13089
|
+
execute_or_queue_command(command, &block)
|
|
13090
|
+
end
|
|
13091
|
+
|
|
12929
13092
|
# Deletes the specified image.
|
|
12930
13093
|
# @param [String] project
|
|
12931
13094
|
# Project ID for this request.
|
|
@@ -50498,6 +50661,49 @@ module Google
|
|
|
50498
50661
|
execute_or_queue_command(command, &block)
|
|
50499
50662
|
end
|
|
50500
50663
|
|
|
50664
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
50665
|
+
# policy or resource exists.
|
|
50666
|
+
# @param [String] project
|
|
50667
|
+
# Project ID for this request.
|
|
50668
|
+
# @param [String] region
|
|
50669
|
+
# The name of the region for this request.
|
|
50670
|
+
# @param [String] resource
|
|
50671
|
+
# Name or id of the resource for this request.
|
|
50672
|
+
# @param [Fixnum] options_requested_policy_version
|
|
50673
|
+
# Requested IAM Policy version.
|
|
50674
|
+
# @param [String] fields
|
|
50675
|
+
# Selector specifying which fields to include in a partial response.
|
|
50676
|
+
# @param [String] quota_user
|
|
50677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
50678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
50679
|
+
# @param [String] user_ip
|
|
50680
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
50681
|
+
# @param [Google::Apis::RequestOptions] options
|
|
50682
|
+
# Request-specific options
|
|
50683
|
+
#
|
|
50684
|
+
# @yield [result, err] Result & error if block supplied
|
|
50685
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
50686
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
50687
|
+
#
|
|
50688
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
50689
|
+
#
|
|
50690
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
50691
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
50692
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
50693
|
+
def get_region_ssl_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
50694
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{resource}/getIamPolicy', options)
|
|
50695
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
50696
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
50697
|
+
command.params['project'] = project unless project.nil?
|
|
50698
|
+
command.params['region'] = region unless region.nil?
|
|
50699
|
+
command.params['resource'] = resource unless resource.nil?
|
|
50700
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
50701
|
+
command.query['fields'] = fields unless fields.nil?
|
|
50702
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
50703
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
50704
|
+
execute_or_queue_command(command, &block)
|
|
50705
|
+
end
|
|
50706
|
+
|
|
50501
50707
|
# Creates a new policy in the specified project and region using the data
|
|
50502
50708
|
# included in the request.
|
|
50503
50709
|
# @param [String] project
|
|
@@ -50843,6 +51049,49 @@ module Google
|
|
|
50843
51049
|
execute_or_queue_command(command, &block)
|
|
50844
51050
|
end
|
|
50845
51051
|
|
|
51052
|
+
# Sets the access control policy on the specified resource.
|
|
51053
|
+
# Replaces any existing policy.
|
|
51054
|
+
# @param [String] project
|
|
51055
|
+
# Project ID for this request.
|
|
51056
|
+
# @param [String] region
|
|
51057
|
+
# The name of the region for this request.
|
|
51058
|
+
# @param [String] resource
|
|
51059
|
+
# Name or id of the resource for this request.
|
|
51060
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
|
51061
|
+
# @param [String] fields
|
|
51062
|
+
# Selector specifying which fields to include in a partial response.
|
|
51063
|
+
# @param [String] quota_user
|
|
51064
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
51065
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
51066
|
+
# @param [String] user_ip
|
|
51067
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
51068
|
+
# @param [Google::Apis::RequestOptions] options
|
|
51069
|
+
# Request-specific options
|
|
51070
|
+
#
|
|
51071
|
+
# @yield [result, err] Result & error if block supplied
|
|
51072
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
51073
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
51074
|
+
#
|
|
51075
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
51076
|
+
#
|
|
51077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
51078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
51079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
51080
|
+
def set_region_ssl_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
51081
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies/{resource}/setIamPolicy', options)
|
|
51082
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
|
51083
|
+
command.request_object = region_set_policy_request_object
|
|
51084
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
51085
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
51086
|
+
command.params['project'] = project unless project.nil?
|
|
51087
|
+
command.params['region'] = region unless region.nil?
|
|
51088
|
+
command.params['resource'] = resource unless resource.nil?
|
|
51089
|
+
command.query['fields'] = fields unless fields.nil?
|
|
51090
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
51091
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
51092
|
+
execute_or_queue_command(command, &block)
|
|
51093
|
+
end
|
|
51094
|
+
|
|
50846
51095
|
# Returns permissions that a caller has on the specified resource.
|
|
50847
51096
|
# @param [String] project
|
|
50848
51097
|
# Project ID for this request.
|
|
@@ -56184,6 +56433,11 @@ module Google
|
|
|
56184
56433
|
# Name of the region for this request.
|
|
56185
56434
|
# @param [String] router
|
|
56186
56435
|
# Name of the Router resource to delete.
|
|
56436
|
+
# @param [String] etag
|
|
56437
|
+
# ETag for optimistic concurrency control as described by AIP 154. Used to
|
|
56438
|
+
# prevent conflicting updates. If provided, the request will succeed only if
|
|
56439
|
+
# the etag matches the current etag of the router; otherwise, the request
|
|
56440
|
+
# fails with an ABORTED error.
|
|
56187
56441
|
# @param [String] request_id
|
|
56188
56442
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
56189
56443
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -56215,13 +56469,14 @@ module Google
|
|
|
56215
56469
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56216
56470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56217
56471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56218
|
-
def delete_router(project, region, router, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
56472
|
+
def delete_router(project, region, router, etag: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
56219
56473
|
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/routers/{router}', options)
|
|
56220
56474
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
56221
56475
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
56222
56476
|
command.params['project'] = project unless project.nil?
|
|
56223
56477
|
command.params['region'] = region unless region.nil?
|
|
56224
56478
|
command.params['router'] = router unless router.nil?
|
|
56479
|
+
command.query['etag'] = etag unless etag.nil?
|
|
56225
56480
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
56226
56481
|
command.query['fields'] = fields unless fields.nil?
|
|
56227
56482
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -61136,6 +61391,46 @@ module Google
|
|
|
61136
61391
|
execute_or_queue_command(command, &block)
|
|
61137
61392
|
end
|
|
61138
61393
|
|
|
61394
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
61395
|
+
# policy or resource exists.
|
|
61396
|
+
# @param [String] project
|
|
61397
|
+
# Project ID for this request.
|
|
61398
|
+
# @param [String] resource
|
|
61399
|
+
# Name or id of the resource for this request.
|
|
61400
|
+
# @param [Fixnum] options_requested_policy_version
|
|
61401
|
+
# Requested IAM Policy version.
|
|
61402
|
+
# @param [String] fields
|
|
61403
|
+
# Selector specifying which fields to include in a partial response.
|
|
61404
|
+
# @param [String] quota_user
|
|
61405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
61406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61407
|
+
# @param [String] user_ip
|
|
61408
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
61409
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61410
|
+
# Request-specific options
|
|
61411
|
+
#
|
|
61412
|
+
# @yield [result, err] Result & error if block supplied
|
|
61413
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
61414
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
61415
|
+
#
|
|
61416
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
61417
|
+
#
|
|
61418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
61419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
61420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
61421
|
+
def get_ssl_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
61422
|
+
command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{resource}/getIamPolicy', options)
|
|
61423
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
61424
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
61425
|
+
command.params['project'] = project unless project.nil?
|
|
61426
|
+
command.params['resource'] = resource unless resource.nil?
|
|
61427
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
61428
|
+
command.query['fields'] = fields unless fields.nil?
|
|
61429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
61430
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
61431
|
+
execute_or_queue_command(command, &block)
|
|
61432
|
+
end
|
|
61433
|
+
|
|
61139
61434
|
# Returns the specified SSL policy resource.
|
|
61140
61435
|
# @param [String] project
|
|
61141
61436
|
# Project ID for this request.
|
|
@@ -61468,6 +61763,46 @@ module Google
|
|
|
61468
61763
|
execute_or_queue_command(command, &block)
|
|
61469
61764
|
end
|
|
61470
61765
|
|
|
61766
|
+
# Sets the access control policy on the specified resource.
|
|
61767
|
+
# Replaces any existing policy.
|
|
61768
|
+
# @param [String] project
|
|
61769
|
+
# Project ID for this request.
|
|
61770
|
+
# @param [String] resource
|
|
61771
|
+
# Name or id of the resource for this request.
|
|
61772
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
|
61773
|
+
# @param [String] fields
|
|
61774
|
+
# Selector specifying which fields to include in a partial response.
|
|
61775
|
+
# @param [String] quota_user
|
|
61776
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
61777
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61778
|
+
# @param [String] user_ip
|
|
61779
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
61780
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61781
|
+
# Request-specific options
|
|
61782
|
+
#
|
|
61783
|
+
# @yield [result, err] Result & error if block supplied
|
|
61784
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
61785
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
61786
|
+
#
|
|
61787
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
61788
|
+
#
|
|
61789
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
61790
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
61791
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
61792
|
+
def set_ssl_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
61793
|
+
command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/setIamPolicy', options)
|
|
61794
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
|
61795
|
+
command.request_object = global_set_policy_request_object
|
|
61796
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
61797
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
61798
|
+
command.params['project'] = project unless project.nil?
|
|
61799
|
+
command.params['resource'] = resource unless resource.nil?
|
|
61800
|
+
command.query['fields'] = fields unless fields.nil?
|
|
61801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
61802
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
61803
|
+
execute_or_queue_command(command, &block)
|
|
61804
|
+
end
|
|
61805
|
+
|
|
61471
61806
|
# Returns permissions that a caller has on the specified resource.
|
|
61472
61807
|
# @param [String] project
|
|
61473
61808
|
# Project ID for this request.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.149.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.149.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|