google-apis-compute_alpha 0.112.0 → 0.114.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.
@@ -821,6 +821,49 @@ module Google
|
|
821
821
|
execute_or_queue_command(command, &block)
|
822
822
|
end
|
823
823
|
|
824
|
+
# Advice on making real-time decisions (such as choosing zone or machine types)
|
825
|
+
# during deployment to maximize your chances of obtaining capacity.
|
826
|
+
# @param [String] project
|
827
|
+
# Project ID for this request.
|
828
|
+
# @param [String] region
|
829
|
+
# Name of the region for this request.
|
830
|
+
# @param [Fixnum] size
|
831
|
+
# Size of requested capacity.
|
832
|
+
# @param [Google::Apis::ComputeAlpha::CapacityAdviceRequest] capacity_advice_request_object
|
833
|
+
# @param [String] fields
|
834
|
+
# Selector specifying which fields to include in a partial response.
|
835
|
+
# @param [String] quota_user
|
836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
838
|
+
# @param [String] user_ip
|
839
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
840
|
+
# @param [Google::Apis::RequestOptions] options
|
841
|
+
# Request-specific options
|
842
|
+
#
|
843
|
+
# @yield [result, err] Result & error if block supplied
|
844
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CapacityAdviceResponse] parsed result object
|
845
|
+
# @yieldparam err [StandardError] error object if request failed
|
846
|
+
#
|
847
|
+
# @return [Google::Apis::ComputeAlpha::CapacityAdviceResponse]
|
848
|
+
#
|
849
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
850
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
851
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
852
|
+
def capacity_advice(project, region, size, capacity_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
853
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/capacity', options)
|
854
|
+
command.request_representation = Google::Apis::ComputeAlpha::CapacityAdviceRequest::Representation
|
855
|
+
command.request_object = capacity_advice_request_object
|
856
|
+
command.response_representation = Google::Apis::ComputeAlpha::CapacityAdviceResponse::Representation
|
857
|
+
command.response_class = Google::Apis::ComputeAlpha::CapacityAdviceResponse
|
858
|
+
command.params['project'] = project unless project.nil?
|
859
|
+
command.params['region'] = region unless region.nil?
|
860
|
+
command.query['size'] = size unless size.nil?
|
861
|
+
command.query['fields'] = fields unless fields.nil?
|
862
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
863
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
864
|
+
execute_or_queue_command(command, &block)
|
865
|
+
end
|
866
|
+
|
824
867
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
825
868
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
826
869
|
# @param [String] project
|
@@ -28378,7 +28421,7 @@ module Google
|
|
28378
28421
|
# Returns the details of the given PreviewFeature.
|
28379
28422
|
# @param [String] project
|
28380
28423
|
# Project ID for this request.
|
28381
|
-
# @param [String]
|
28424
|
+
# @param [String] preview_feature
|
28382
28425
|
# Name of the PreviewFeature for this request.
|
28383
28426
|
# @param [String] fields
|
28384
28427
|
# Selector specifying which fields to include in a partial response.
|
@@ -28399,12 +28442,12 @@ module Google
|
|
28399
28442
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28400
28443
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28401
28444
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28402
|
-
def get_preview_feature(project,
|
28403
|
-
command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{
|
28445
|
+
def get_preview_feature(project, preview_feature, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28446
|
+
command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
|
28404
28447
|
command.response_representation = Google::Apis::ComputeAlpha::PreviewFeature::Representation
|
28405
28448
|
command.response_class = Google::Apis::ComputeAlpha::PreviewFeature
|
28406
28449
|
command.params['project'] = project unless project.nil?
|
28407
|
-
command.params['
|
28450
|
+
command.params['previewFeature'] = preview_feature unless preview_feature.nil?
|
28408
28451
|
command.query['fields'] = fields unless fields.nil?
|
28409
28452
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28410
28453
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -28506,7 +28549,7 @@ module Google
|
|
28506
28549
|
# PreviewFeature.
|
28507
28550
|
# @param [String] project
|
28508
28551
|
# Project ID for this request.
|
28509
|
-
# @param [String]
|
28552
|
+
# @param [String] preview_feature
|
28510
28553
|
# Name of the PreviewFeature for this request.
|
28511
28554
|
# @param [Google::Apis::ComputeAlpha::PreviewFeature] preview_feature_object
|
28512
28555
|
# @param [String] request_id
|
@@ -28538,14 +28581,14 @@ module Google
|
|
28538
28581
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28539
28582
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28540
28583
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28541
|
-
def update_preview_feature(project,
|
28542
|
-
command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{
|
28584
|
+
def update_preview_feature(project, preview_feature, preview_feature_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28585
|
+
command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
|
28543
28586
|
command.request_representation = Google::Apis::ComputeAlpha::PreviewFeature::Representation
|
28544
28587
|
command.request_object = preview_feature_object
|
28545
28588
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28546
28589
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28547
28590
|
command.params['project'] = project unless project.nil?
|
28548
|
-
command.params['
|
28591
|
+
command.params['previewFeature'] = preview_feature unless preview_feature.nil?
|
28549
28592
|
command.query['requestId'] = request_id unless request_id.nil?
|
28550
28593
|
command.query['fields'] = fields unless fields.nil?
|
28551
28594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -30639,6 +30682,526 @@ module Google
|
|
30639
30682
|
execute_or_queue_command(command, &block)
|
30640
30683
|
end
|
30641
30684
|
|
30685
|
+
# Deletes the specified regional BackendBucket resource.
|
30686
|
+
# @param [String] project
|
30687
|
+
# Project ID for this request.
|
30688
|
+
# @param [String] region
|
30689
|
+
# Name of the region scoping this request.
|
30690
|
+
# @param [String] backend_bucket
|
30691
|
+
# Name of the BackendBucket resource to delete.
|
30692
|
+
# @param [Boolean] force_delete
|
30693
|
+
# Force delete the backend bucket even if it is still in use by other resources.
|
30694
|
+
# It's intended to be used internally only for requests from wipeout.
|
30695
|
+
# @param [String] request_id
|
30696
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30697
|
+
# that if you must retry your request, the server will know to ignore the
|
30698
|
+
# request if it has already been completed. For example, consider a situation
|
30699
|
+
# where you make an initial request and the request times out. If you make the
|
30700
|
+
# request again with the same request ID, the server can check if original
|
30701
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30702
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30703
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30704
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
30705
|
+
# MixerMutationRequestBuilder
|
30706
|
+
# @param [String] fields
|
30707
|
+
# Selector specifying which fields to include in a partial response.
|
30708
|
+
# @param [String] quota_user
|
30709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30711
|
+
# @param [String] user_ip
|
30712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30713
|
+
# @param [Google::Apis::RequestOptions] options
|
30714
|
+
# Request-specific options
|
30715
|
+
#
|
30716
|
+
# @yield [result, err] Result & error if block supplied
|
30717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30718
|
+
# @yieldparam err [StandardError] error object if request failed
|
30719
|
+
#
|
30720
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30721
|
+
#
|
30722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30725
|
+
def delete_region_backend_bucket(project, region, backend_bucket, force_delete: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30726
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
30727
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30728
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30729
|
+
command.params['project'] = project unless project.nil?
|
30730
|
+
command.params['region'] = region unless region.nil?
|
30731
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
30732
|
+
command.query['forceDelete'] = force_delete unless force_delete.nil?
|
30733
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30734
|
+
command.query['fields'] = fields unless fields.nil?
|
30735
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30736
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30737
|
+
execute_or_queue_command(command, &block)
|
30738
|
+
end
|
30739
|
+
|
30740
|
+
# Returns the specified regional BackendBucket resource.
|
30741
|
+
# @param [String] project
|
30742
|
+
# Project ID for this request.
|
30743
|
+
# @param [String] region
|
30744
|
+
# Name of the region scoping this request.
|
30745
|
+
# @param [String] backend_bucket
|
30746
|
+
# Name of the BackendBucket resource to return.
|
30747
|
+
# @param [String] fields
|
30748
|
+
# Selector specifying which fields to include in a partial response.
|
30749
|
+
# @param [String] quota_user
|
30750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30752
|
+
# @param [String] user_ip
|
30753
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30754
|
+
# @param [Google::Apis::RequestOptions] options
|
30755
|
+
# Request-specific options
|
30756
|
+
#
|
30757
|
+
# @yield [result, err] Result & error if block supplied
|
30758
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucket] parsed result object
|
30759
|
+
# @yieldparam err [StandardError] error object if request failed
|
30760
|
+
#
|
30761
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucket]
|
30762
|
+
#
|
30763
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30764
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30765
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30766
|
+
def get_region_backend_bucket(project, region, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30767
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
30768
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
30769
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucket
|
30770
|
+
command.params['project'] = project unless project.nil?
|
30771
|
+
command.params['region'] = region unless region.nil?
|
30772
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
30773
|
+
command.query['fields'] = fields unless fields.nil?
|
30774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30775
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30776
|
+
execute_or_queue_command(command, &block)
|
30777
|
+
end
|
30778
|
+
|
30779
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
30780
|
+
# or resource exists.
|
30781
|
+
# @param [String] project
|
30782
|
+
# Project ID for this request.
|
30783
|
+
# @param [String] region
|
30784
|
+
# The name of the region for this request.
|
30785
|
+
# @param [String] resource
|
30786
|
+
# Name or id of the resource for this request.
|
30787
|
+
# @param [Fixnum] options_requested_policy_version
|
30788
|
+
# Requested IAM Policy version.
|
30789
|
+
# @param [String] fields
|
30790
|
+
# Selector specifying which fields to include in a partial response.
|
30791
|
+
# @param [String] quota_user
|
30792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30794
|
+
# @param [String] user_ip
|
30795
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30796
|
+
# @param [Google::Apis::RequestOptions] options
|
30797
|
+
# Request-specific options
|
30798
|
+
#
|
30799
|
+
# @yield [result, err] Result & error if block supplied
|
30800
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
30801
|
+
# @yieldparam err [StandardError] error object if request failed
|
30802
|
+
#
|
30803
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
30804
|
+
#
|
30805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30808
|
+
def get_region_backend_bucket_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30809
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy', options)
|
30810
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
30811
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
30812
|
+
command.params['project'] = project unless project.nil?
|
30813
|
+
command.params['region'] = region unless region.nil?
|
30814
|
+
command.params['resource'] = resource unless resource.nil?
|
30815
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
30816
|
+
command.query['fields'] = fields unless fields.nil?
|
30817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30818
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30819
|
+
execute_or_queue_command(command, &block)
|
30820
|
+
end
|
30821
|
+
|
30822
|
+
# Creates a RegionBackendBucket in the specified project in the given scope
|
30823
|
+
# using the parameters that are included in the request.
|
30824
|
+
# @param [String] project
|
30825
|
+
# Project ID for this request.
|
30826
|
+
# @param [String] region
|
30827
|
+
# Name of the region of this request.
|
30828
|
+
# @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
|
30829
|
+
# @param [String] request_id
|
30830
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30831
|
+
# that if you must retry your request, the server will know to ignore the
|
30832
|
+
# request if it has already been completed. For example, consider a situation
|
30833
|
+
# where you make an initial request and the request times out. If you make the
|
30834
|
+
# request again with the same request ID, the server can check if original
|
30835
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30836
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30837
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30838
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30839
|
+
# @param [String] fields
|
30840
|
+
# Selector specifying which fields to include in a partial response.
|
30841
|
+
# @param [String] quota_user
|
30842
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30843
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30844
|
+
# @param [String] user_ip
|
30845
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30846
|
+
# @param [Google::Apis::RequestOptions] options
|
30847
|
+
# Request-specific options
|
30848
|
+
#
|
30849
|
+
# @yield [result, err] Result & error if block supplied
|
30850
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30851
|
+
# @yieldparam err [StandardError] error object if request failed
|
30852
|
+
#
|
30853
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30854
|
+
#
|
30855
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30856
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30857
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30858
|
+
def insert_region_backend_bucket(project, region, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30859
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/regionBackendBuckets', options)
|
30860
|
+
command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
30861
|
+
command.request_object = backend_bucket_object
|
30862
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30863
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30864
|
+
command.params['project'] = project unless project.nil?
|
30865
|
+
command.params['region'] = region unless region.nil?
|
30866
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30867
|
+
command.query['fields'] = fields unless fields.nil?
|
30868
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30869
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30870
|
+
execute_or_queue_command(command, &block)
|
30871
|
+
end
|
30872
|
+
|
30873
|
+
# Retrieves the list of BackendBucket resources available to the specified
|
30874
|
+
# project in the given region.
|
30875
|
+
# @param [String] project
|
30876
|
+
# Project ID for this request.
|
30877
|
+
# @param [String] region
|
30878
|
+
# Name of the region of this request.
|
30879
|
+
# @param [String] filter
|
30880
|
+
# A filter expression that filters resources listed in the response. Most
|
30881
|
+
# Compute resources support two types of filter expressions: expressions that
|
30882
|
+
# support regular expressions and expressions that follow API improvement
|
30883
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30884
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30885
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30886
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30887
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30888
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30889
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30890
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30891
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30892
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30893
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30894
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30895
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30896
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30897
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30898
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30899
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30900
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30901
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30902
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30903
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
30904
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
30905
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
30906
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
30907
|
+
# literal value must match the entire field. For example, to filter for
|
30908
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
30909
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
30910
|
+
# expressions.
|
30911
|
+
# @param [Fixnum] max_results
|
30912
|
+
# The maximum number of results per page that should be returned. If the number
|
30913
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30914
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30915
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30916
|
+
# @param [String] order_by
|
30917
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30918
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
30919
|
+
# descending order based on the creation timestamp using `orderBy="
|
30920
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
30921
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
30922
|
+
# resources like operations so that the newest operation is returned first.
|
30923
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30924
|
+
# @param [String] page_token
|
30925
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30926
|
+
# by a previous list request to get the next page of results.
|
30927
|
+
# @param [Boolean] return_partial_success
|
30928
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30929
|
+
# failure. The default value is false. For example, when partial success
|
30930
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
30931
|
+
# resources in the zone or no resources, with an error code.
|
30932
|
+
# @param [String] fields
|
30933
|
+
# Selector specifying which fields to include in a partial response.
|
30934
|
+
# @param [String] quota_user
|
30935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30937
|
+
# @param [String] user_ip
|
30938
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30939
|
+
# @param [Google::Apis::RequestOptions] options
|
30940
|
+
# Request-specific options
|
30941
|
+
#
|
30942
|
+
# @yield [result, err] Result & error if block supplied
|
30943
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketList] parsed result object
|
30944
|
+
# @yieldparam err [StandardError] error object if request failed
|
30945
|
+
#
|
30946
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketList]
|
30947
|
+
#
|
30948
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30949
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30950
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30951
|
+
def list_region_backend_buckets(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)
|
30952
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets', options)
|
30953
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketList::Representation
|
30954
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketList
|
30955
|
+
command.params['project'] = project unless project.nil?
|
30956
|
+
command.params['region'] = region unless region.nil?
|
30957
|
+
command.query['filter'] = filter unless filter.nil?
|
30958
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30959
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30960
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30961
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30962
|
+
command.query['fields'] = fields unless fields.nil?
|
30963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30964
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30965
|
+
execute_or_queue_command(command, &block)
|
30966
|
+
end
|
30967
|
+
|
30968
|
+
# Retrieves a list of all usable backend buckets in the specified project in the
|
30969
|
+
# given region.
|
30970
|
+
# @param [String] project
|
30971
|
+
# Project ID for this request.
|
30972
|
+
# @param [String] region
|
30973
|
+
# Name of the region scoping this request. It must be a string that meets the
|
30974
|
+
# requirements in RFC1035.
|
30975
|
+
# @param [String] filter
|
30976
|
+
# A filter expression that filters resources listed in the response. Most
|
30977
|
+
# Compute resources support two types of filter expressions: expressions that
|
30978
|
+
# support regular expressions and expressions that follow API improvement
|
30979
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30980
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30981
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30982
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30983
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30984
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30985
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30986
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30987
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30988
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30989
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30990
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30991
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30992
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30993
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30994
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30995
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30996
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30997
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30998
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30999
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31000
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31001
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31002
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31003
|
+
# literal value must match the entire field. For example, to filter for
|
31004
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31005
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
31006
|
+
# expressions.
|
31007
|
+
# @param [Fixnum] max_results
|
31008
|
+
# The maximum number of results per page that should be returned. If the number
|
31009
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31010
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31011
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31012
|
+
# @param [String] order_by
|
31013
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31014
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31015
|
+
# descending order based on the creation timestamp using `orderBy="
|
31016
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31017
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31018
|
+
# resources like operations so that the newest operation is returned first.
|
31019
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31020
|
+
# @param [String] page_token
|
31021
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31022
|
+
# by a previous list request to get the next page of results.
|
31023
|
+
# @param [Boolean] return_partial_success
|
31024
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
31025
|
+
# failure. The default value is false. For example, when partial success
|
31026
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
31027
|
+
# resources in the zone or no resources, with an error code.
|
31028
|
+
# @param [String] fields
|
31029
|
+
# Selector specifying which fields to include in a partial response.
|
31030
|
+
# @param [String] quota_user
|
31031
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31032
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31033
|
+
# @param [String] user_ip
|
31034
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31035
|
+
# @param [Google::Apis::RequestOptions] options
|
31036
|
+
# Request-specific options
|
31037
|
+
#
|
31038
|
+
# @yield [result, err] Result & error if block supplied
|
31039
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketListUsable] parsed result object
|
31040
|
+
# @yieldparam err [StandardError] error object if request failed
|
31041
|
+
#
|
31042
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketListUsable]
|
31043
|
+
#
|
31044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31047
|
+
def list_region_backend_bucket_usable(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)
|
31048
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/listUsable', options)
|
31049
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketListUsable::Representation
|
31050
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketListUsable
|
31051
|
+
command.params['project'] = project unless project.nil?
|
31052
|
+
command.params['region'] = region unless region.nil?
|
31053
|
+
command.query['filter'] = filter unless filter.nil?
|
31054
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
31055
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
31056
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
31057
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31058
|
+
command.query['fields'] = fields unless fields.nil?
|
31059
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31060
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31061
|
+
execute_or_queue_command(command, &block)
|
31062
|
+
end
|
31063
|
+
|
31064
|
+
# Updates the specified BackendBucket resource with the data included in the
|
31065
|
+
# request. This method supports PATCH semantics and uses the JSON merge patch
|
31066
|
+
# format and processing rules.
|
31067
|
+
# @param [String] project
|
31068
|
+
# Project ID for this request.
|
31069
|
+
# @param [String] region
|
31070
|
+
# Name of the region scoping this request.
|
31071
|
+
# @param [String] backend_bucket
|
31072
|
+
# Name of the BackendBucket resource to patch.
|
31073
|
+
# @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
|
31074
|
+
# @param [String] request_id
|
31075
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31076
|
+
# that if you must retry your request, the server will know to ignore the
|
31077
|
+
# request if it has already been completed. For example, consider a situation
|
31078
|
+
# where you make an initial request and the request times out. If you make the
|
31079
|
+
# request again with the same request ID, the server can check if original
|
31080
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31081
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31082
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31083
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
31084
|
+
# MixerMutationRequestBuilder
|
31085
|
+
# @param [String] fields
|
31086
|
+
# Selector specifying which fields to include in a partial response.
|
31087
|
+
# @param [String] quota_user
|
31088
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31089
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31090
|
+
# @param [String] user_ip
|
31091
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31092
|
+
# @param [Google::Apis::RequestOptions] options
|
31093
|
+
# Request-specific options
|
31094
|
+
#
|
31095
|
+
# @yield [result, err] Result & error if block supplied
|
31096
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31097
|
+
# @yieldparam err [StandardError] error object if request failed
|
31098
|
+
#
|
31099
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31100
|
+
#
|
31101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31104
|
+
def patch_region_backend_bucket(project, region, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31105
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
|
31106
|
+
command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
31107
|
+
command.request_object = backend_bucket_object
|
31108
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31109
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31110
|
+
command.params['project'] = project unless project.nil?
|
31111
|
+
command.params['region'] = region unless region.nil?
|
31112
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
31113
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31114
|
+
command.query['fields'] = fields unless fields.nil?
|
31115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31116
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31117
|
+
execute_or_queue_command(command, &block)
|
31118
|
+
end
|
31119
|
+
|
31120
|
+
# Sets the access control policy on the specified resource. Replaces any
|
31121
|
+
# existing policy.
|
31122
|
+
# @param [String] project
|
31123
|
+
# Project ID for this request.
|
31124
|
+
# @param [String] region
|
31125
|
+
# The name of the region for this request.
|
31126
|
+
# @param [String] resource
|
31127
|
+
# Name or id of the resource for this request.
|
31128
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
31129
|
+
# @param [String] fields
|
31130
|
+
# Selector specifying which fields to include in a partial response.
|
31131
|
+
# @param [String] quota_user
|
31132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31134
|
+
# @param [String] user_ip
|
31135
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31136
|
+
# @param [Google::Apis::RequestOptions] options
|
31137
|
+
# Request-specific options
|
31138
|
+
#
|
31139
|
+
# @yield [result, err] Result & error if block supplied
|
31140
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
31141
|
+
# @yieldparam err [StandardError] error object if request failed
|
31142
|
+
#
|
31143
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
31144
|
+
#
|
31145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31148
|
+
def set_region_backend_bucket_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31149
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy', options)
|
31150
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
31151
|
+
command.request_object = region_set_policy_request_object
|
31152
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
31153
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
31154
|
+
command.params['project'] = project unless project.nil?
|
31155
|
+
command.params['region'] = region unless region.nil?
|
31156
|
+
command.params['resource'] = resource unless resource.nil?
|
31157
|
+
command.query['fields'] = fields unless fields.nil?
|
31158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31159
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31160
|
+
execute_or_queue_command(command, &block)
|
31161
|
+
end
|
31162
|
+
|
31163
|
+
# Returns permissions that a caller has on the specified resource.
|
31164
|
+
# @param [String] project
|
31165
|
+
# Project ID for this request.
|
31166
|
+
# @param [String] region
|
31167
|
+
# The name of the region for this request.
|
31168
|
+
# @param [String] resource
|
31169
|
+
# Name or id of the resource for this request.
|
31170
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
31171
|
+
# @param [String] fields
|
31172
|
+
# Selector specifying which fields to include in a partial response.
|
31173
|
+
# @param [String] quota_user
|
31174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31176
|
+
# @param [String] user_ip
|
31177
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31178
|
+
# @param [Google::Apis::RequestOptions] options
|
31179
|
+
# Request-specific options
|
31180
|
+
#
|
31181
|
+
# @yield [result, err] Result & error if block supplied
|
31182
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
31183
|
+
# @yieldparam err [StandardError] error object if request failed
|
31184
|
+
#
|
31185
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
31186
|
+
#
|
31187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31190
|
+
def test_region_backend_bucket_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31191
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions', options)
|
31192
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
31193
|
+
command.request_object = test_permissions_request_object
|
31194
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
31195
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
31196
|
+
command.params['project'] = project unless project.nil?
|
31197
|
+
command.params['region'] = region unless region.nil?
|
31198
|
+
command.params['resource'] = resource unless resource.nil?
|
31199
|
+
command.query['fields'] = fields unless fields.nil?
|
31200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31201
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31202
|
+
execute_or_queue_command(command, &block)
|
31203
|
+
end
|
31204
|
+
|
30642
31205
|
# Deletes the specified regional BackendService resource.
|
30643
31206
|
# @param [String] project
|
30644
31207
|
# Project ID for this request.
|