google-apis-compute_alpha 0.105.0 → 0.106.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/compute_alpha/classes.rb +4548 -1602
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +1451 -249
- data/lib/google/apis/compute_alpha/service.rb +2993 -702
- metadata +4 -4
@@ -1634,6 +1634,97 @@ module Google
|
|
1634
1634
|
execute_or_queue_command(command, &block)
|
1635
1635
|
end
|
1636
1636
|
|
1637
|
+
# Retrieves a list of all usable backend buckets in the specified project.
|
1638
|
+
# @param [String] project
|
1639
|
+
# Project ID for this request.
|
1640
|
+
# @param [String] filter
|
1641
|
+
# A filter expression that filters resources listed in the response. Most
|
1642
|
+
# Compute resources support two types of filter expressions: expressions that
|
1643
|
+
# support regular expressions and expressions that follow API improvement
|
1644
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
1645
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
1646
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
1647
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
1648
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
1649
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
1650
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
1651
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
1652
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
1653
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
1654
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
1655
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
1656
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
1657
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
1658
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
1659
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
1660
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
1661
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
1662
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
1663
|
+
# un-parenthesized expression with or without quotes or against multiple
|
1664
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
1665
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
1666
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
1667
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
1668
|
+
# literal value must match the entire field. For example, to filter for
|
1669
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
1670
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
1671
|
+
# expressions.
|
1672
|
+
# @param [Fixnum] max_results
|
1673
|
+
# The maximum number of results per page that should be returned. If the number
|
1674
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1675
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1676
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1677
|
+
# @param [String] order_by
|
1678
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1679
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1680
|
+
# descending order based on the creation timestamp using `orderBy="
|
1681
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1682
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1683
|
+
# resources like operations so that the newest operation is returned first.
|
1684
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1685
|
+
# @param [String] page_token
|
1686
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1687
|
+
# by a previous list request to get the next page of results.
|
1688
|
+
# @param [Boolean] return_partial_success
|
1689
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
1690
|
+
# failure. The default value is false. For example, when partial success
|
1691
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
1692
|
+
# resources in the zone or no resources, with an error code.
|
1693
|
+
# @param [String] fields
|
1694
|
+
# Selector specifying which fields to include in a partial response.
|
1695
|
+
# @param [String] quota_user
|
1696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1698
|
+
# @param [String] user_ip
|
1699
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1700
|
+
# @param [Google::Apis::RequestOptions] options
|
1701
|
+
# Request-specific options
|
1702
|
+
#
|
1703
|
+
# @yield [result, err] Result & error if block supplied
|
1704
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketListUsable] parsed result object
|
1705
|
+
# @yieldparam err [StandardError] error object if request failed
|
1706
|
+
#
|
1707
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketListUsable]
|
1708
|
+
#
|
1709
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1710
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1711
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1712
|
+
def list_backend_bucket_usable(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)
|
1713
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/listUsable', options)
|
1714
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketListUsable::Representation
|
1715
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketListUsable
|
1716
|
+
command.params['project'] = project unless project.nil?
|
1717
|
+
command.query['filter'] = filter unless filter.nil?
|
1718
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1719
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1720
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1721
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
1722
|
+
command.query['fields'] = fields unless fields.nil?
|
1723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1724
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1725
|
+
execute_or_queue_command(command, &block)
|
1726
|
+
end
|
1727
|
+
|
1637
1728
|
# Updates the specified BackendBucket resource with the data included in the
|
1638
1729
|
# request. This method supports PATCH semantics and uses the JSON merge patch
|
1639
1730
|
# format and processing rules.
|
@@ -2378,8 +2469,7 @@ module Google
|
|
2378
2469
|
execute_or_queue_command(command, &block)
|
2379
2470
|
end
|
2380
2471
|
|
2381
|
-
# Retrieves
|
2382
|
-
# project.
|
2472
|
+
# Retrieves a list of all usable backend services in the specified project.
|
2383
2473
|
# @param [String] project
|
2384
2474
|
# Project ID for this request.
|
2385
2475
|
# @param [String] filter
|
@@ -2756,11 +2846,22 @@ module Google
|
|
2756
2846
|
execute_or_queue_command(command, &block)
|
2757
2847
|
end
|
2758
2848
|
|
2759
|
-
#
|
2849
|
+
# Deletes the specified cross-site network in the given scope.
|
2760
2850
|
# @param [String] project
|
2761
2851
|
# Project ID for this request.
|
2762
|
-
# @param [String]
|
2763
|
-
# Name of the
|
2852
|
+
# @param [String] cross_site_network
|
2853
|
+
# Name of the cross-site network to delete.
|
2854
|
+
# @param [String] request_id
|
2855
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
2856
|
+
# that if you must retry your request, the server will know to ignore the
|
2857
|
+
# request if it has already been completed. For example, consider a situation
|
2858
|
+
# where you make an initial request and the request times out. If you make the
|
2859
|
+
# request again with the same request ID, the server can check if original
|
2860
|
+
# operation with the same request ID was received, and if so, will ignore the
|
2861
|
+
# second request. This prevents clients from accidentally creating duplicate
|
2862
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
2863
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
2864
|
+
# MixerMutationRequestBuilder
|
2764
2865
|
# @param [String] fields
|
2765
2866
|
# Selector specifying which fields to include in a partial response.
|
2766
2867
|
# @param [String] quota_user
|
@@ -2772,32 +2873,68 @@ module Google
|
|
2772
2873
|
# Request-specific options
|
2773
2874
|
#
|
2774
2875
|
# @yield [result, err] Result & error if block supplied
|
2775
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
2876
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
2776
2877
|
# @yieldparam err [StandardError] error object if request failed
|
2777
2878
|
#
|
2778
|
-
# @return [Google::Apis::ComputeAlpha::
|
2879
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
2779
2880
|
#
|
2780
2881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2781
2882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2782
2883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2783
|
-
def
|
2784
|
-
command = make_simple_command(:
|
2785
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
2786
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
2884
|
+
def delete_cross_site_network(project, cross_site_network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2885
|
+
command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
2886
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
2887
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
2787
2888
|
command.params['project'] = project unless project.nil?
|
2788
|
-
command.params['
|
2889
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
2890
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2789
2891
|
command.query['fields'] = fields unless fields.nil?
|
2790
2892
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2791
2893
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
2792
2894
|
execute_or_queue_command(command, &block)
|
2793
2895
|
end
|
2794
2896
|
|
2795
|
-
#
|
2897
|
+
# Returns the specified cross-site network in the given scope.
|
2796
2898
|
# @param [String] project
|
2797
2899
|
# Project ID for this request.
|
2798
|
-
# @param [String]
|
2799
|
-
#
|
2800
|
-
# @param [
|
2900
|
+
# @param [String] cross_site_network
|
2901
|
+
# Name of the cross-site network to return.
|
2902
|
+
# @param [String] fields
|
2903
|
+
# Selector specifying which fields to include in a partial response.
|
2904
|
+
# @param [String] quota_user
|
2905
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2906
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2907
|
+
# @param [String] user_ip
|
2908
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2909
|
+
# @param [Google::Apis::RequestOptions] options
|
2910
|
+
# Request-specific options
|
2911
|
+
#
|
2912
|
+
# @yield [result, err] Result & error if block supplied
|
2913
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CrossSiteNetwork] parsed result object
|
2914
|
+
# @yieldparam err [StandardError] error object if request failed
|
2915
|
+
#
|
2916
|
+
# @return [Google::Apis::ComputeAlpha::CrossSiteNetwork]
|
2917
|
+
#
|
2918
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2919
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2920
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2921
|
+
def get_cross_site_network(project, cross_site_network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2922
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
2923
|
+
command.response_representation = Google::Apis::ComputeAlpha::CrossSiteNetwork::Representation
|
2924
|
+
command.response_class = Google::Apis::ComputeAlpha::CrossSiteNetwork
|
2925
|
+
command.params['project'] = project unless project.nil?
|
2926
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
2927
|
+
command.query['fields'] = fields unless fields.nil?
|
2928
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2929
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2930
|
+
execute_or_queue_command(command, &block)
|
2931
|
+
end
|
2932
|
+
|
2933
|
+
# Creates a cross-site network in the specified project in the given scope using
|
2934
|
+
# the parameters that are included in the request.
|
2935
|
+
# @param [String] project
|
2936
|
+
# Project ID for this request.
|
2937
|
+
# @param [Google::Apis::ComputeAlpha::CrossSiteNetwork] cross_site_network_object
|
2801
2938
|
# @param [String] request_id
|
2802
2939
|
# An optional request ID to identify requests. Specify a unique request ID so
|
2803
2940
|
# that if you must retry your request, the server will know to ignore the
|
@@ -2807,9 +2944,12 @@ module Google
|
|
2807
2944
|
# operation with the same request ID was received, and if so, will ignore the
|
2808
2945
|
# second request. This prevents clients from accidentally creating duplicate
|
2809
2946
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
2810
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
2811
|
-
#
|
2812
|
-
#
|
2947
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
2948
|
+
# MixerMutationRequestBuilder
|
2949
|
+
# @param [Boolean] validate_only
|
2950
|
+
# [Input Only] Validate the new configuration, but don't create it. If
|
2951
|
+
# applicable, any configuration notices are returned in the `
|
2952
|
+
# configurationNotices` field.
|
2813
2953
|
# @param [String] fields
|
2814
2954
|
# Selector specifying which fields to include in a partial response.
|
2815
2955
|
# @param [String] quota_user
|
@@ -2829,24 +2969,22 @@ module Google
|
|
2829
2969
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2830
2970
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2831
2971
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2832
|
-
def
|
2833
|
-
command = make_simple_command(:
|
2834
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
2835
|
-
command.request_object =
|
2972
|
+
def insert_cross_site_network(project, cross_site_network_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2973
|
+
command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks', options)
|
2974
|
+
command.request_representation = Google::Apis::ComputeAlpha::CrossSiteNetwork::Representation
|
2975
|
+
command.request_object = cross_site_network_object
|
2836
2976
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
2837
2977
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
2838
2978
|
command.params['project'] = project unless project.nil?
|
2839
|
-
command.params['zone'] = zone unless zone.nil?
|
2840
2979
|
command.query['requestId'] = request_id unless request_id.nil?
|
2841
|
-
command.query['
|
2980
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2842
2981
|
command.query['fields'] = fields unless fields.nil?
|
2843
2982
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2844
2983
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
2845
2984
|
execute_or_queue_command(command, &block)
|
2846
2985
|
end
|
2847
2986
|
|
2848
|
-
#
|
2849
|
-
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
2987
|
+
# Lists the cross-site networks for a project in the given scope.
|
2850
2988
|
# @param [String] project
|
2851
2989
|
# Project ID for this request.
|
2852
2990
|
# @param [String] filter
|
@@ -2881,13 +3019,6 @@ module Google
|
|
2881
3019
|
# instances that do not end with name "instance", you would use `name ne .*
|
2882
3020
|
# instance`. You cannot combine constraints on multiple fields using regular
|
2883
3021
|
# expressions.
|
2884
|
-
# @param [Boolean] include_all_scopes
|
2885
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
2886
|
-
# global) should be included in the response. For new resource types added after
|
2887
|
-
# this field, the flag has no effect as new resource types will always include
|
2888
|
-
# every visible scope for each scope type in response. For resource types which
|
2889
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
2890
|
-
# types where the resource type is expected to be found will be included.
|
2891
3022
|
# @param [Fixnum] max_results
|
2892
3023
|
# The maximum number of results per page that should be returned. If the number
|
2893
3024
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
@@ -2909,9 +3040,6 @@ module Google
|
|
2909
3040
|
# failure. The default value is false. For example, when partial success
|
2910
3041
|
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
2911
3042
|
# resources in the zone or no resources, with an error code.
|
2912
|
-
# @param [Fixnum] service_project_number
|
2913
|
-
# The Shared VPC service project id or service project number for which
|
2914
|
-
# aggregated list request is invoked for subnetworks list-usable api.
|
2915
3043
|
# @param [String] fields
|
2916
3044
|
# Selector specifying which fields to include in a partial response.
|
2917
3045
|
# @param [String] quota_user
|
@@ -2923,39 +3051,93 @@ module Google
|
|
2923
3051
|
# Request-specific options
|
2924
3052
|
#
|
2925
3053
|
# @yield [result, err] Result & error if block supplied
|
2926
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
3054
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CrossSiteNetworkList] parsed result object
|
2927
3055
|
# @yieldparam err [StandardError] error object if request failed
|
2928
3056
|
#
|
2929
|
-
# @return [Google::Apis::ComputeAlpha::
|
3057
|
+
# @return [Google::Apis::ComputeAlpha::CrossSiteNetworkList]
|
2930
3058
|
#
|
2931
3059
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2932
3060
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2933
3061
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2934
|
-
def
|
2935
|
-
command = make_simple_command(:get, 'projects/{project}/
|
2936
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
2937
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
3062
|
+
def list_cross_site_networks(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)
|
3063
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks', options)
|
3064
|
+
command.response_representation = Google::Apis::ComputeAlpha::CrossSiteNetworkList::Representation
|
3065
|
+
command.response_class = Google::Apis::ComputeAlpha::CrossSiteNetworkList
|
2938
3066
|
command.params['project'] = project unless project.nil?
|
2939
3067
|
command.query['filter'] = filter unless filter.nil?
|
2940
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
2941
3068
|
command.query['maxResults'] = max_results unless max_results.nil?
|
2942
3069
|
command.query['orderBy'] = order_by unless order_by.nil?
|
2943
3070
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2944
3071
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
2945
|
-
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
2946
3072
|
command.query['fields'] = fields unless fields.nil?
|
2947
3073
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2948
3074
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
2949
3075
|
execute_or_queue_command(command, &block)
|
2950
3076
|
end
|
2951
3077
|
|
2952
|
-
#
|
3078
|
+
# Updates the specified cross-site network with the data included in the request.
|
3079
|
+
# This method supports PATCH semantics and uses the JSON merge patch format and
|
3080
|
+
# processing rules.
|
3081
|
+
# @param [String] project
|
3082
|
+
# Project ID for this request.
|
3083
|
+
# @param [String] cross_site_network
|
3084
|
+
# Name of the cross-site network to update.
|
3085
|
+
# @param [Google::Apis::ComputeAlpha::CrossSiteNetwork] cross_site_network_object
|
3086
|
+
# @param [String] request_id
|
3087
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3088
|
+
# that if you must retry your request, the server will know to ignore the
|
3089
|
+
# request if it has already been completed. For example, consider a situation
|
3090
|
+
# where you make an initial request and the request times out. If you make the
|
3091
|
+
# request again with the same request ID, the server can check if original
|
3092
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3093
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3094
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3095
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
3096
|
+
# MixerMutationRequestBuilder
|
3097
|
+
# @param [Boolean] validate_only
|
3098
|
+
# [Input Only] Validate the new configuration, but don't update it. If
|
3099
|
+
# applicable, any configuration notices are returned in the `
|
3100
|
+
# configurationNotices` field.
|
3101
|
+
# @param [String] fields
|
3102
|
+
# Selector specifying which fields to include in a partial response.
|
3103
|
+
# @param [String] quota_user
|
3104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3106
|
+
# @param [String] user_ip
|
3107
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3108
|
+
# @param [Google::Apis::RequestOptions] options
|
3109
|
+
# Request-specific options
|
3110
|
+
#
|
3111
|
+
# @yield [result, err] Result & error if block supplied
|
3112
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3113
|
+
# @yieldparam err [StandardError] error object if request failed
|
3114
|
+
#
|
3115
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3116
|
+
#
|
3117
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3118
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3119
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3120
|
+
def patch_cross_site_network(project, cross_site_network, cross_site_network_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3121
|
+
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
3122
|
+
command.request_representation = Google::Apis::ComputeAlpha::CrossSiteNetwork::Representation
|
3123
|
+
command.request_object = cross_site_network_object
|
3124
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3125
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3126
|
+
command.params['project'] = project unless project.nil?
|
3127
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
3128
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3129
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3130
|
+
command.query['fields'] = fields unless fields.nil?
|
3131
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3132
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3133
|
+
execute_or_queue_command(command, &block)
|
3134
|
+
end
|
3135
|
+
|
3136
|
+
# Get Zonal Disk Settings.
|
2953
3137
|
# @param [String] project
|
2954
3138
|
# Project ID for this request.
|
2955
3139
|
# @param [String] zone
|
2956
|
-
#
|
2957
|
-
# @param [String] disk_type
|
2958
|
-
# Name of the disk type to return.
|
3140
|
+
# Name of the zone for this request.
|
2959
3141
|
# @param [String] fields
|
2960
3142
|
# Selector specifying which fields to include in a partial response.
|
2961
3143
|
# @param [String] quota_user
|
@@ -2967,28 +3149,223 @@ module Google
|
|
2967
3149
|
# Request-specific options
|
2968
3150
|
#
|
2969
3151
|
# @yield [result, err] Result & error if block supplied
|
2970
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
3152
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
2971
3153
|
# @yieldparam err [StandardError] error object if request failed
|
2972
3154
|
#
|
2973
|
-
# @return [Google::Apis::ComputeAlpha::
|
3155
|
+
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
2974
3156
|
#
|
2975
3157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2976
3158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2977
3159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2978
|
-
def
|
2979
|
-
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/
|
2980
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
2981
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
3160
|
+
def get_disk_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3161
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3162
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
3163
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
2982
3164
|
command.params['project'] = project unless project.nil?
|
2983
3165
|
command.params['zone'] = zone unless zone.nil?
|
2984
|
-
command.params['diskType'] = disk_type unless disk_type.nil?
|
2985
3166
|
command.query['fields'] = fields unless fields.nil?
|
2986
3167
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2987
3168
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
2988
3169
|
execute_or_queue_command(command, &block)
|
2989
3170
|
end
|
2990
3171
|
|
2991
|
-
#
|
3172
|
+
# Patch Zonal Disk Settings
|
3173
|
+
# @param [String] project
|
3174
|
+
# Project ID for this request.
|
3175
|
+
# @param [String] zone
|
3176
|
+
# The name of the zone for this request.
|
3177
|
+
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
3178
|
+
# @param [String] request_id
|
3179
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3180
|
+
# that if you must retry your request, the server will know to ignore the
|
3181
|
+
# request if it has already been completed. For example, consider a situation
|
3182
|
+
# where you make an initial request and the request times out. If you make the
|
3183
|
+
# request again with the same request ID, the server can check if original
|
3184
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3185
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3186
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3187
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3188
|
+
# @param [String] update_mask
|
3189
|
+
# update_mask indicates fields to be updated as part of this request.
|
3190
|
+
# @param [String] fields
|
3191
|
+
# Selector specifying which fields to include in a partial response.
|
3192
|
+
# @param [String] quota_user
|
3193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3195
|
+
# @param [String] user_ip
|
3196
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3197
|
+
# @param [Google::Apis::RequestOptions] options
|
3198
|
+
# Request-specific options
|
3199
|
+
#
|
3200
|
+
# @yield [result, err] Result & error if block supplied
|
3201
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3202
|
+
# @yieldparam err [StandardError] error object if request failed
|
3203
|
+
#
|
3204
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3205
|
+
#
|
3206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3209
|
+
def patch_disk_setting(project, zone, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3210
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3211
|
+
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
3212
|
+
command.request_object = disk_settings_object
|
3213
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3214
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3215
|
+
command.params['project'] = project unless project.nil?
|
3216
|
+
command.params['zone'] = zone unless zone.nil?
|
3217
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3218
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3219
|
+
command.query['fields'] = fields unless fields.nil?
|
3220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3221
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3222
|
+
execute_or_queue_command(command, &block)
|
3223
|
+
end
|
3224
|
+
|
3225
|
+
# Retrieves an aggregated list of disk types. To prevent failure, Google
|
3226
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
3227
|
+
# @param [String] project
|
3228
|
+
# Project ID for this request.
|
3229
|
+
# @param [String] filter
|
3230
|
+
# A filter expression that filters resources listed in the response. Most
|
3231
|
+
# Compute resources support two types of filter expressions: expressions that
|
3232
|
+
# support regular expressions and expressions that follow API improvement
|
3233
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
3234
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
3235
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
3236
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
3237
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
3238
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
3239
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
3240
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
3241
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
3242
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
3243
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
3244
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
3245
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
3246
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
3247
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
3248
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
3249
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
3250
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
3251
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
3252
|
+
# un-parenthesized expression with or without quotes or against multiple
|
3253
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
3254
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
3255
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
3256
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
3257
|
+
# literal value must match the entire field. For example, to filter for
|
3258
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
3259
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
3260
|
+
# expressions.
|
3261
|
+
# @param [Boolean] include_all_scopes
|
3262
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
3263
|
+
# global) should be included in the response. For new resource types added after
|
3264
|
+
# this field, the flag has no effect as new resource types will always include
|
3265
|
+
# every visible scope for each scope type in response. For resource types which
|
3266
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
3267
|
+
# types where the resource type is expected to be found will be included.
|
3268
|
+
# @param [Fixnum] max_results
|
3269
|
+
# The maximum number of results per page that should be returned. If the number
|
3270
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
3271
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
3272
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
3273
|
+
# @param [String] order_by
|
3274
|
+
# Sorts list results by a certain order. By default, results are returned in
|
3275
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
3276
|
+
# descending order based on the creation timestamp using `orderBy="
|
3277
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
3278
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
3279
|
+
# resources like operations so that the newest operation is returned first.
|
3280
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
3281
|
+
# @param [String] page_token
|
3282
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
3283
|
+
# by a previous list request to get the next page of results.
|
3284
|
+
# @param [Boolean] return_partial_success
|
3285
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
3286
|
+
# failure. The default value is false. For example, when partial success
|
3287
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
3288
|
+
# resources in the zone or no resources, with an error code.
|
3289
|
+
# @param [Fixnum] service_project_number
|
3290
|
+
# The Shared VPC service project id or service project number for which
|
3291
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
3292
|
+
# @param [String] fields
|
3293
|
+
# Selector specifying which fields to include in a partial response.
|
3294
|
+
# @param [String] quota_user
|
3295
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3296
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3297
|
+
# @param [String] user_ip
|
3298
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3299
|
+
# @param [Google::Apis::RequestOptions] options
|
3300
|
+
# Request-specific options
|
3301
|
+
#
|
3302
|
+
# @yield [result, err] Result & error if block supplied
|
3303
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskTypeAggregatedList] parsed result object
|
3304
|
+
# @yieldparam err [StandardError] error object if request failed
|
3305
|
+
#
|
3306
|
+
# @return [Google::Apis::ComputeAlpha::DiskTypeAggregatedList]
|
3307
|
+
#
|
3308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3311
|
+
def aggregated_disk_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3312
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options)
|
3313
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskTypeAggregatedList::Representation
|
3314
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskTypeAggregatedList
|
3315
|
+
command.params['project'] = project unless project.nil?
|
3316
|
+
command.query['filter'] = filter unless filter.nil?
|
3317
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
3318
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
3319
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3320
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3321
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3322
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
3323
|
+
command.query['fields'] = fields unless fields.nil?
|
3324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3326
|
+
execute_or_queue_command(command, &block)
|
3327
|
+
end
|
3328
|
+
|
3329
|
+
# Returns the specified disk type.
|
3330
|
+
# @param [String] project
|
3331
|
+
# Project ID for this request.
|
3332
|
+
# @param [String] zone
|
3333
|
+
# The name of the zone for this request.
|
3334
|
+
# @param [String] disk_type
|
3335
|
+
# Name of the disk type to return.
|
3336
|
+
# @param [String] fields
|
3337
|
+
# Selector specifying which fields to include in a partial response.
|
3338
|
+
# @param [String] quota_user
|
3339
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3340
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3341
|
+
# @param [String] user_ip
|
3342
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3343
|
+
# @param [Google::Apis::RequestOptions] options
|
3344
|
+
# Request-specific options
|
3345
|
+
#
|
3346
|
+
# @yield [result, err] Result & error if block supplied
|
3347
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
3348
|
+
# @yieldparam err [StandardError] error object if request failed
|
3349
|
+
#
|
3350
|
+
# @return [Google::Apis::ComputeAlpha::DiskType]
|
3351
|
+
#
|
3352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3355
|
+
def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3356
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options)
|
3357
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
3358
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
3359
|
+
command.params['project'] = project unless project.nil?
|
3360
|
+
command.params['zone'] = zone unless zone.nil?
|
3361
|
+
command.params['diskType'] = disk_type unless disk_type.nil?
|
3362
|
+
command.query['fields'] = fields unless fields.nil?
|
3363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3364
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3365
|
+
execute_or_queue_command(command, &block)
|
3366
|
+
end
|
3367
|
+
|
3368
|
+
# Retrieves a list of disk types available to the specified project.
|
2992
3369
|
# @param [String] project
|
2993
3370
|
# Project ID for this request.
|
2994
3371
|
# @param [String] zone
|
@@ -3441,6 +3818,46 @@ module Google
|
|
3441
3818
|
execute_or_queue_command(command, &block)
|
3442
3819
|
end
|
3443
3820
|
|
3821
|
+
# Gets the status of current async replication for a given device.
|
3822
|
+
# @param [String] project
|
3823
|
+
# Project ID for this request.
|
3824
|
+
# @param [String] zone
|
3825
|
+
# The name of the zone for this request.
|
3826
|
+
# @param [String] disk
|
3827
|
+
# Name of the Disk resource whose Async replication details are requested. Name
|
3828
|
+
# should conform to RFC1035 or be an unsigned long integer.
|
3829
|
+
# @param [String] fields
|
3830
|
+
# Selector specifying which fields to include in a partial response.
|
3831
|
+
# @param [String] quota_user
|
3832
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3833
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3834
|
+
# @param [String] user_ip
|
3835
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3836
|
+
# @param [Google::Apis::RequestOptions] options
|
3837
|
+
# Request-specific options
|
3838
|
+
#
|
3839
|
+
# @yield [result, err] Result & error if block supplied
|
3840
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse] parsed result object
|
3841
|
+
# @yieldparam err [StandardError] error object if request failed
|
3842
|
+
#
|
3843
|
+
# @return [Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse]
|
3844
|
+
#
|
3845
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3846
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3847
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3848
|
+
def get_disk_async_replication_status(project, zone, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3849
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus', options)
|
3850
|
+
command.response_representation = Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse::Representation
|
3851
|
+
command.response_class = Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse
|
3852
|
+
command.params['project'] = project unless project.nil?
|
3853
|
+
command.params['zone'] = zone unless zone.nil?
|
3854
|
+
command.params['disk'] = disk unless disk.nil?
|
3855
|
+
command.query['fields'] = fields unless fields.nil?
|
3856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3857
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3858
|
+
execute_or_queue_command(command, &block)
|
3859
|
+
end
|
3860
|
+
|
3444
3861
|
# Gets the access control policy for a resource. May be empty if no such policy
|
3445
3862
|
# or resource exists.
|
3446
3863
|
# @param [String] project
|
@@ -4097,6 +4514,60 @@ module Google
|
|
4097
4514
|
execute_or_queue_command(command, &block)
|
4098
4515
|
end
|
4099
4516
|
|
4517
|
+
# Wait for replication to catch up on the secondary disk.
|
4518
|
+
# @param [String] project
|
4519
|
+
# Project ID for this request.
|
4520
|
+
# @param [String] zone
|
4521
|
+
# The name of the zone for this request.
|
4522
|
+
# @param [String] disk
|
4523
|
+
# The name of the persistent disk. Name should conform to RFC1035 or be an
|
4524
|
+
# unsigned long integer.
|
4525
|
+
# @param [Google::Apis::ComputeAlpha::WaitForReplicationCatchUpRequest] wait_for_replication_catch_up_request_object
|
4526
|
+
# @param [String] request_id
|
4527
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4528
|
+
# that if you must retry your request, the server will know to ignore the
|
4529
|
+
# request if it has already been completed. For example, consider a situation
|
4530
|
+
# where you make an initial request and the request times out. If you make the
|
4531
|
+
# request again with the same request ID, the server can check if original
|
4532
|
+
# operation with the same request ID was received, and if so, will ignore the
|
4533
|
+
# second request. This prevents clients from accidentally creating duplicate
|
4534
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
4535
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
4536
|
+
# @param [String] fields
|
4537
|
+
# Selector specifying which fields to include in a partial response.
|
4538
|
+
# @param [String] quota_user
|
4539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4541
|
+
# @param [String] user_ip
|
4542
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
4543
|
+
# @param [Google::Apis::RequestOptions] options
|
4544
|
+
# Request-specific options
|
4545
|
+
#
|
4546
|
+
# @yield [result, err] Result & error if block supplied
|
4547
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4548
|
+
# @yieldparam err [StandardError] error object if request failed
|
4549
|
+
#
|
4550
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4551
|
+
#
|
4552
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4553
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4554
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4555
|
+
def wait_disk_for_replication_catch_up(project, zone, disk, wait_for_replication_catch_up_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4556
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp', options)
|
4557
|
+
command.request_representation = Google::Apis::ComputeAlpha::WaitForReplicationCatchUpRequest::Representation
|
4558
|
+
command.request_object = wait_for_replication_catch_up_request_object
|
4559
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4560
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4561
|
+
command.params['project'] = project unless project.nil?
|
4562
|
+
command.params['zone'] = zone unless zone.nil?
|
4563
|
+
command.params['disk'] = disk unless disk.nil?
|
4564
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4565
|
+
command.query['fields'] = fields unless fields.nil?
|
4566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4567
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4568
|
+
execute_or_queue_command(command, &block)
|
4569
|
+
end
|
4570
|
+
|
4100
4571
|
# Deletes the specified externalVpnGateway.
|
4101
4572
|
# @param [String] project
|
4102
4573
|
# Project ID for this request.
|
@@ -8079,7 +8550,7 @@ module Google
|
|
8079
8550
|
# @param [String] project
|
8080
8551
|
# Project ID for this request.
|
8081
8552
|
# @param [String] operation
|
8082
|
-
# Name of the Operations resource to delete.
|
8553
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
8083
8554
|
# @param [String] fields
|
8084
8555
|
# Selector specifying which fields to include in a partial response.
|
8085
8556
|
# @param [String] quota_user
|
@@ -8113,7 +8584,7 @@ module Google
|
|
8113
8584
|
# @param [String] project
|
8114
8585
|
# Project ID for this request.
|
8115
8586
|
# @param [String] operation
|
8116
|
-
# Name of the Operations resource to return.
|
8587
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8117
8588
|
# @param [String] fields
|
8118
8589
|
# Selector specifying which fields to include in a partial response.
|
8119
8590
|
# @param [String] quota_user
|
@@ -8249,7 +8720,7 @@ module Google
|
|
8249
8720
|
# @param [String] project
|
8250
8721
|
# Project ID for this request.
|
8251
8722
|
# @param [String] operation
|
8252
|
-
# Name of the Operations resource to return.
|
8723
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8253
8724
|
# @param [String] fields
|
8254
8725
|
# Selector specifying which fields to include in a partial response.
|
8255
8726
|
# @param [String] quota_user
|
@@ -8283,7 +8754,7 @@ module Google
|
|
8283
8754
|
|
8284
8755
|
# Deletes the specified Operations resource.
|
8285
8756
|
# @param [String] operation
|
8286
|
-
# Name of the Operations resource to delete.
|
8757
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
8287
8758
|
# @param [String] parent_id
|
8288
8759
|
# Parent ID for this request.
|
8289
8760
|
# @param [String] fields
|
@@ -8318,7 +8789,7 @@ module Google
|
|
8318
8789
|
# Retrieves the specified Operations resource. Gets a list of operations by
|
8319
8790
|
# making a `list()` request.
|
8320
8791
|
# @param [String] operation
|
8321
|
-
# Name of the Operations resource to return.
|
8792
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8322
8793
|
# @param [String] parent_id
|
8323
8794
|
# Parent ID for this request.
|
8324
8795
|
# @param [String] fields
|
@@ -15249,6 +15720,59 @@ module Google
|
|
15249
15720
|
execute_or_queue_command(command, &block)
|
15250
15721
|
end
|
15251
15722
|
|
15723
|
+
# Mark the host as faulty and try to restart the instance on a new host.
|
15724
|
+
# @param [String] project
|
15725
|
+
# Project ID for this request.
|
15726
|
+
# @param [String] zone
|
15727
|
+
# The name of the zone for this request.
|
15728
|
+
# @param [String] instance
|
15729
|
+
# Name of the instance scoping this request.
|
15730
|
+
# @param [Google::Apis::ComputeAlpha::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
|
15731
|
+
# @param [String] request_id
|
15732
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
15733
|
+
# that if you must retry your request, the server will know to ignore the
|
15734
|
+
# request if it has already been completed. For example, consider a situation
|
15735
|
+
# where you make an initial request and the request times out. If you make the
|
15736
|
+
# request again with the same request ID, the server can check if original
|
15737
|
+
# operation with the same request ID was received, and if so, will ignore the
|
15738
|
+
# second request. This prevents clients from accidentally creating duplicate
|
15739
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
15740
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15741
|
+
# @param [String] fields
|
15742
|
+
# Selector specifying which fields to include in a partial response.
|
15743
|
+
# @param [String] quota_user
|
15744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15746
|
+
# @param [String] user_ip
|
15747
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15748
|
+
# @param [Google::Apis::RequestOptions] options
|
15749
|
+
# Request-specific options
|
15750
|
+
#
|
15751
|
+
# @yield [result, err] Result & error if block supplied
|
15752
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
15753
|
+
# @yieldparam err [StandardError] error object if request failed
|
15754
|
+
#
|
15755
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
15756
|
+
#
|
15757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15760
|
+
def report_instance_host_as_faulty(project, zone, instance, instances_report_host_as_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15761
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
|
15762
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstancesReportHostAsFaultyRequest::Representation
|
15763
|
+
command.request_object = instances_report_host_as_faulty_request_object
|
15764
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
15765
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
15766
|
+
command.params['project'] = project unless project.nil?
|
15767
|
+
command.params['zone'] = zone unless zone.nil?
|
15768
|
+
command.params['instance'] = instance unless instance.nil?
|
15769
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15770
|
+
command.query['fields'] = fields unless fields.nil?
|
15771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15772
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15773
|
+
execute_or_queue_command(command, &block)
|
15774
|
+
end
|
15775
|
+
|
15252
15776
|
# Performs a reset on the instance. This is a hard reset. The VM does not do a
|
15253
15777
|
# graceful shutdown. For more information, see Resetting an instance.
|
15254
15778
|
# @param [String] project
|
@@ -16930,7 +17454,7 @@ module Google
|
|
16930
17454
|
# @param [String] zone
|
16931
17455
|
# The name of the zone for this request.
|
16932
17456
|
# @param [String] instant_snapshot_group
|
16933
|
-
# Name of the
|
17457
|
+
# Name of the InstantSnapshotGroup resource to return.
|
16934
17458
|
# @param [String] fields
|
16935
17459
|
# Selector specifying which fields to include in a partial response.
|
16936
17460
|
# @param [String] quota_user
|
@@ -16963,6 +17487,49 @@ module Google
|
|
16963
17487
|
execute_or_queue_command(command, &block)
|
16964
17488
|
end
|
16965
17489
|
|
17490
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
17491
|
+
# or resource exists.
|
17492
|
+
# @param [String] project
|
17493
|
+
# Project ID for this request.
|
17494
|
+
# @param [String] zone
|
17495
|
+
# The name of the zone for this request.
|
17496
|
+
# @param [String] resource
|
17497
|
+
# Name or id of the resource for this request.
|
17498
|
+
# @param [Fixnum] options_requested_policy_version
|
17499
|
+
# Requested IAM Policy version.
|
17500
|
+
# @param [String] fields
|
17501
|
+
# Selector specifying which fields to include in a partial response.
|
17502
|
+
# @param [String] quota_user
|
17503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17505
|
+
# @param [String] user_ip
|
17506
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17507
|
+
# @param [Google::Apis::RequestOptions] options
|
17508
|
+
# Request-specific options
|
17509
|
+
#
|
17510
|
+
# @yield [result, err] Result & error if block supplied
|
17511
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
17512
|
+
# @yieldparam err [StandardError] error object if request failed
|
17513
|
+
#
|
17514
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
17515
|
+
#
|
17516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17519
|
+
def get_instant_snapshot_group_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17520
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy', options)
|
17521
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
17522
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
17523
|
+
command.params['project'] = project unless project.nil?
|
17524
|
+
command.params['zone'] = zone unless zone.nil?
|
17525
|
+
command.params['resource'] = resource unless resource.nil?
|
17526
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
17527
|
+
command.query['fields'] = fields unless fields.nil?
|
17528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17529
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17530
|
+
execute_or_queue_command(command, &block)
|
17531
|
+
end
|
17532
|
+
|
16966
17533
|
# inserts a Zonal InstantSnapshotGroup resource
|
16967
17534
|
# @param [String] project
|
16968
17535
|
# Project ID for this request.
|
@@ -17111,6 +17678,91 @@ module Google
|
|
17111
17678
|
execute_or_queue_command(command, &block)
|
17112
17679
|
end
|
17113
17680
|
|
17681
|
+
# Sets the access control policy on the specified resource. Replaces any
|
17682
|
+
# existing policy.
|
17683
|
+
# @param [String] project
|
17684
|
+
# Project ID for this request.
|
17685
|
+
# @param [String] zone
|
17686
|
+
# The name of the zone for this request.
|
17687
|
+
# @param [String] resource
|
17688
|
+
# Name or id of the resource for this request.
|
17689
|
+
# @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
|
17690
|
+
# @param [String] fields
|
17691
|
+
# Selector specifying which fields to include in a partial response.
|
17692
|
+
# @param [String] quota_user
|
17693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17695
|
+
# @param [String] user_ip
|
17696
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17697
|
+
# @param [Google::Apis::RequestOptions] options
|
17698
|
+
# Request-specific options
|
17699
|
+
#
|
17700
|
+
# @yield [result, err] Result & error if block supplied
|
17701
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
17702
|
+
# @yieldparam err [StandardError] error object if request failed
|
17703
|
+
#
|
17704
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
17705
|
+
#
|
17706
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17707
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17708
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17709
|
+
def set_instant_snapshot_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17710
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy', options)
|
17711
|
+
command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
|
17712
|
+
command.request_object = zone_set_policy_request_object
|
17713
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
17714
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
17715
|
+
command.params['project'] = project unless project.nil?
|
17716
|
+
command.params['zone'] = zone unless zone.nil?
|
17717
|
+
command.params['resource'] = resource unless resource.nil?
|
17718
|
+
command.query['fields'] = fields unless fields.nil?
|
17719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17720
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17721
|
+
execute_or_queue_command(command, &block)
|
17722
|
+
end
|
17723
|
+
|
17724
|
+
# Returns permissions that a caller has on the specified resource.
|
17725
|
+
# @param [String] project
|
17726
|
+
# Project ID for this request.
|
17727
|
+
# @param [String] zone
|
17728
|
+
# The name of the zone for this request.
|
17729
|
+
# @param [String] resource
|
17730
|
+
# Name or id of the resource for this request.
|
17731
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
17732
|
+
# @param [String] fields
|
17733
|
+
# Selector specifying which fields to include in a partial response.
|
17734
|
+
# @param [String] quota_user
|
17735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17737
|
+
# @param [String] user_ip
|
17738
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17739
|
+
# @param [Google::Apis::RequestOptions] options
|
17740
|
+
# Request-specific options
|
17741
|
+
#
|
17742
|
+
# @yield [result, err] Result & error if block supplied
|
17743
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
17744
|
+
# @yieldparam err [StandardError] error object if request failed
|
17745
|
+
#
|
17746
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
17747
|
+
#
|
17748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17751
|
+
def test_instant_snapshot_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17752
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions', options)
|
17753
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
17754
|
+
command.request_object = test_permissions_request_object
|
17755
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
17756
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
17757
|
+
command.params['project'] = project unless project.nil?
|
17758
|
+
command.params['zone'] = zone unless zone.nil?
|
17759
|
+
command.params['resource'] = resource unless resource.nil?
|
17760
|
+
command.query['fields'] = fields unless fields.nil?
|
17761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17762
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17763
|
+
execute_or_queue_command(command, &block)
|
17764
|
+
end
|
17765
|
+
|
17114
17766
|
# Retrieves an aggregated list of instantSnapshots. To prevent failure, Google
|
17115
17767
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
17116
17768
|
# @param [String] project
|
@@ -17636,8 +18288,407 @@ module Google
|
|
17636
18288
|
execute_or_queue_command(command, &block)
|
17637
18289
|
end
|
17638
18290
|
|
17639
|
-
#
|
17640
|
-
#
|
18291
|
+
# Deletes the specified InterconnectAttachmentGroup in the given scope
|
18292
|
+
# @param [String] project
|
18293
|
+
# Project ID for this request.
|
18294
|
+
# @param [String] interconnect_attachment_group
|
18295
|
+
# Name of the InterconnectAttachmentGroup resource to delete.
|
18296
|
+
# @param [String] request_id
|
18297
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
18298
|
+
# that if you must retry your request, the server will know to ignore the
|
18299
|
+
# request if it has already been completed. For example, consider a situation
|
18300
|
+
# where you make an initial request and the request times out. If you make the
|
18301
|
+
# request again with the same request ID, the server can check if original
|
18302
|
+
# operation with the same request ID was received, and if so, will ignore the
|
18303
|
+
# second request. This prevents clients from accidentally creating duplicate
|
18304
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
18305
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
18306
|
+
# MixerMutationRequestBuilder
|
18307
|
+
# @param [String] fields
|
18308
|
+
# Selector specifying which fields to include in a partial response.
|
18309
|
+
# @param [String] quota_user
|
18310
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18311
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18312
|
+
# @param [String] user_ip
|
18313
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18314
|
+
# @param [Google::Apis::RequestOptions] options
|
18315
|
+
# Request-specific options
|
18316
|
+
#
|
18317
|
+
# @yield [result, err] Result & error if block supplied
|
18318
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18319
|
+
# @yieldparam err [StandardError] error object if request failed
|
18320
|
+
#
|
18321
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18322
|
+
#
|
18323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18326
|
+
def delete_interconnect_attachment_group(project, interconnect_attachment_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18327
|
+
command = make_simple_command(:delete, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
|
18328
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18329
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18330
|
+
command.params['project'] = project unless project.nil?
|
18331
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18332
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18333
|
+
command.query['fields'] = fields unless fields.nil?
|
18334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18335
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18336
|
+
execute_or_queue_command(command, &block)
|
18337
|
+
end
|
18338
|
+
|
18339
|
+
# Returns the specified InterconnectAttachmentGroup resource in the given scope.
|
18340
|
+
# @param [String] project
|
18341
|
+
# Project ID for this request.
|
18342
|
+
# @param [String] interconnect_attachment_group
|
18343
|
+
# Name of the InterconnectAttachmentGroup resource to return.
|
18344
|
+
# @param [String] fields
|
18345
|
+
# Selector specifying which fields to include in a partial response.
|
18346
|
+
# @param [String] quota_user
|
18347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18349
|
+
# @param [String] user_ip
|
18350
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18351
|
+
# @param [Google::Apis::RequestOptions] options
|
18352
|
+
# Request-specific options
|
18353
|
+
#
|
18354
|
+
# @yield [result, err] Result & error if block supplied
|
18355
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectAttachmentGroup] parsed result object
|
18356
|
+
# @yieldparam err [StandardError] error object if request failed
|
18357
|
+
#
|
18358
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectAttachmentGroup]
|
18359
|
+
#
|
18360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18363
|
+
def get_interconnect_attachment_group(project, interconnect_attachment_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18364
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
|
18365
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroup::Representation
|
18366
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentGroup
|
18367
|
+
command.params['project'] = project unless project.nil?
|
18368
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18369
|
+
command.query['fields'] = fields unless fields.nil?
|
18370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18371
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18372
|
+
execute_or_queue_command(command, &block)
|
18373
|
+
end
|
18374
|
+
|
18375
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
18376
|
+
# or resource exists.
|
18377
|
+
# @param [String] project
|
18378
|
+
# Project ID for this request.
|
18379
|
+
# @param [String] resource
|
18380
|
+
# Name or id of the resource for this request.
|
18381
|
+
# @param [Fixnum] options_requested_policy_version
|
18382
|
+
# Requested IAM Policy version.
|
18383
|
+
# @param [String] fields
|
18384
|
+
# Selector specifying which fields to include in a partial response.
|
18385
|
+
# @param [String] quota_user
|
18386
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18387
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18388
|
+
# @param [String] user_ip
|
18389
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18390
|
+
# @param [Google::Apis::RequestOptions] options
|
18391
|
+
# Request-specific options
|
18392
|
+
#
|
18393
|
+
# @yield [result, err] Result & error if block supplied
|
18394
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
18395
|
+
# @yieldparam err [StandardError] error object if request failed
|
18396
|
+
#
|
18397
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
18398
|
+
#
|
18399
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18400
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18401
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18402
|
+
def get_interconnect_attachment_group_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18403
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy', options)
|
18404
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
18405
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
18406
|
+
command.params['project'] = project unless project.nil?
|
18407
|
+
command.params['resource'] = resource unless resource.nil?
|
18408
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
18409
|
+
command.query['fields'] = fields unless fields.nil?
|
18410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18411
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18412
|
+
execute_or_queue_command(command, &block)
|
18413
|
+
end
|
18414
|
+
|
18415
|
+
# Creates a InterconnectAttachmentGroup in the specified project in the given
|
18416
|
+
# scope using the parameters that are included in the request.
|
18417
|
+
# @param [String] project
|
18418
|
+
# Project ID for this request.
|
18419
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectAttachmentGroup] interconnect_attachment_group_object
|
18420
|
+
# @param [String] request_id
|
18421
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
18422
|
+
# that if you must retry your request, the server will know to ignore the
|
18423
|
+
# request if it has already been completed. For example, consider a situation
|
18424
|
+
# where you make an initial request and the request times out. If you make the
|
18425
|
+
# request again with the same request ID, the server can check if original
|
18426
|
+
# operation with the same request ID was received, and if so, will ignore the
|
18427
|
+
# second request. This prevents clients from accidentally creating duplicate
|
18428
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
18429
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
18430
|
+
# MixerMutationRequestBuilder
|
18431
|
+
# @param [String] fields
|
18432
|
+
# Selector specifying which fields to include in a partial response.
|
18433
|
+
# @param [String] quota_user
|
18434
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18435
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18436
|
+
# @param [String] user_ip
|
18437
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18438
|
+
# @param [Google::Apis::RequestOptions] options
|
18439
|
+
# Request-specific options
|
18440
|
+
#
|
18441
|
+
# @yield [result, err] Result & error if block supplied
|
18442
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18443
|
+
# @yieldparam err [StandardError] error object if request failed
|
18444
|
+
#
|
18445
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18446
|
+
#
|
18447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18450
|
+
def insert_interconnect_attachment_group(project, interconnect_attachment_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18451
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups', options)
|
18452
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroup::Representation
|
18453
|
+
command.request_object = interconnect_attachment_group_object
|
18454
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18455
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18456
|
+
command.params['project'] = project unless project.nil?
|
18457
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18458
|
+
command.query['fields'] = fields unless fields.nil?
|
18459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18460
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18461
|
+
execute_or_queue_command(command, &block)
|
18462
|
+
end
|
18463
|
+
|
18464
|
+
# Lists the InterconnectAttachmentGroups for a project in the given scope.
|
18465
|
+
# @param [String] project
|
18466
|
+
# Project ID for this request.
|
18467
|
+
# @param [String] filter
|
18468
|
+
# A filter expression that filters resources listed in the response. Most
|
18469
|
+
# Compute resources support two types of filter expressions: expressions that
|
18470
|
+
# support regular expressions and expressions that follow API improvement
|
18471
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
18472
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
18473
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
18474
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
18475
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
18476
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
18477
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
18478
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
18479
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
18480
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
18481
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
18482
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
18483
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
18484
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
18485
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
18486
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
18487
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
18488
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
18489
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
18490
|
+
# un-parenthesized expression with or without quotes or against multiple
|
18491
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
18492
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
18493
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
18494
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
18495
|
+
# literal value must match the entire field. For example, to filter for
|
18496
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
18497
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
18498
|
+
# expressions.
|
18499
|
+
# @param [Fixnum] max_results
|
18500
|
+
# The maximum number of results per page that should be returned. If the number
|
18501
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
18502
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
18503
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
18504
|
+
# @param [String] order_by
|
18505
|
+
# Sorts list results by a certain order. By default, results are returned in
|
18506
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
18507
|
+
# descending order based on the creation timestamp using `orderBy="
|
18508
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
18509
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
18510
|
+
# resources like operations so that the newest operation is returned first.
|
18511
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
18512
|
+
# @param [String] page_token
|
18513
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
18514
|
+
# by a previous list request to get the next page of results.
|
18515
|
+
# @param [Boolean] return_partial_success
|
18516
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
18517
|
+
# failure. The default value is false. For example, when partial success
|
18518
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
18519
|
+
# resources in the zone or no resources, with an error code.
|
18520
|
+
# @param [String] fields
|
18521
|
+
# Selector specifying which fields to include in a partial response.
|
18522
|
+
# @param [String] quota_user
|
18523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18525
|
+
# @param [String] user_ip
|
18526
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18527
|
+
# @param [Google::Apis::RequestOptions] options
|
18528
|
+
# Request-specific options
|
18529
|
+
#
|
18530
|
+
# @yield [result, err] Result & error if block supplied
|
18531
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsListResponse] parsed result object
|
18532
|
+
# @yieldparam err [StandardError] error object if request failed
|
18533
|
+
#
|
18534
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsListResponse]
|
18535
|
+
#
|
18536
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18537
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18538
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18539
|
+
def list_interconnect_attachment_groups(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)
|
18540
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups', options)
|
18541
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsListResponse::Representation
|
18542
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsListResponse
|
18543
|
+
command.params['project'] = project unless project.nil?
|
18544
|
+
command.query['filter'] = filter unless filter.nil?
|
18545
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
18546
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
18547
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
18548
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
18549
|
+
command.query['fields'] = fields unless fields.nil?
|
18550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18551
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18552
|
+
execute_or_queue_command(command, &block)
|
18553
|
+
end
|
18554
|
+
|
18555
|
+
# Patches the specified InterconnectAttachmentGroup resource with the data
|
18556
|
+
# included in the request. This method supports PATCH semantics and uses JSON
|
18557
|
+
# merge patch format and processing rules.
|
18558
|
+
# @param [String] project
|
18559
|
+
# Project ID for this request.
|
18560
|
+
# @param [String] interconnect_attachment_group
|
18561
|
+
# Name of the InterconnectAttachmentGroup resource to patch.
|
18562
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectAttachmentGroup] interconnect_attachment_group_object
|
18563
|
+
# @param [String] request_id
|
18564
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
18565
|
+
# that if you must retry your request, the server will know to ignore the
|
18566
|
+
# request if it has already been completed. For example, consider a situation
|
18567
|
+
# where you make an initial request and the request times out. If you make the
|
18568
|
+
# request again with the same request ID, the server can check if original
|
18569
|
+
# operation with the same request ID was received, and if so, will ignore the
|
18570
|
+
# second request. This prevents clients from accidentally creating duplicate
|
18571
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
18572
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
18573
|
+
# MixerMutationRequestBuilder
|
18574
|
+
# @param [String] update_mask
|
18575
|
+
# The list of fields to update.
|
18576
|
+
# @param [String] fields
|
18577
|
+
# Selector specifying which fields to include in a partial response.
|
18578
|
+
# @param [String] quota_user
|
18579
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18580
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18581
|
+
# @param [String] user_ip
|
18582
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18583
|
+
# @param [Google::Apis::RequestOptions] options
|
18584
|
+
# Request-specific options
|
18585
|
+
#
|
18586
|
+
# @yield [result, err] Result & error if block supplied
|
18587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18588
|
+
# @yieldparam err [StandardError] error object if request failed
|
18589
|
+
#
|
18590
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18591
|
+
#
|
18592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18595
|
+
def patch_interconnect_attachment_group(project, interconnect_attachment_group, interconnect_attachment_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18596
|
+
command = make_simple_command(:patch, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
|
18597
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroup::Representation
|
18598
|
+
command.request_object = interconnect_attachment_group_object
|
18599
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18600
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18601
|
+
command.params['project'] = project unless project.nil?
|
18602
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18603
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18604
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
18605
|
+
command.query['fields'] = fields unless fields.nil?
|
18606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18607
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18608
|
+
execute_or_queue_command(command, &block)
|
18609
|
+
end
|
18610
|
+
|
18611
|
+
# Sets the access control policy on the specified resource. Replaces any
|
18612
|
+
# existing policy.
|
18613
|
+
# @param [String] project
|
18614
|
+
# Project ID for this request.
|
18615
|
+
# @param [String] resource
|
18616
|
+
# Name or id of the resource for this request.
|
18617
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
18618
|
+
# @param [String] fields
|
18619
|
+
# Selector specifying which fields to include in a partial response.
|
18620
|
+
# @param [String] quota_user
|
18621
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18622
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18623
|
+
# @param [String] user_ip
|
18624
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18625
|
+
# @param [Google::Apis::RequestOptions] options
|
18626
|
+
# Request-specific options
|
18627
|
+
#
|
18628
|
+
# @yield [result, err] Result & error if block supplied
|
18629
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
18630
|
+
# @yieldparam err [StandardError] error object if request failed
|
18631
|
+
#
|
18632
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
18633
|
+
#
|
18634
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18635
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18636
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18637
|
+
def set_interconnect_attachment_group_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18638
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy', options)
|
18639
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
18640
|
+
command.request_object = global_set_policy_request_object
|
18641
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
18642
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
18643
|
+
command.params['project'] = project unless project.nil?
|
18644
|
+
command.params['resource'] = resource unless resource.nil?
|
18645
|
+
command.query['fields'] = fields unless fields.nil?
|
18646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18647
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18648
|
+
execute_or_queue_command(command, &block)
|
18649
|
+
end
|
18650
|
+
|
18651
|
+
# Returns permissions that a caller has on the specified resource.
|
18652
|
+
# @param [String] project
|
18653
|
+
# Project ID for this request.
|
18654
|
+
# @param [String] resource
|
18655
|
+
# Name or id of the resource for this request.
|
18656
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
18657
|
+
# @param [String] fields
|
18658
|
+
# Selector specifying which fields to include in a partial response.
|
18659
|
+
# @param [String] quota_user
|
18660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18662
|
+
# @param [String] user_ip
|
18663
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18664
|
+
# @param [Google::Apis::RequestOptions] options
|
18665
|
+
# Request-specific options
|
18666
|
+
#
|
18667
|
+
# @yield [result, err] Result & error if block supplied
|
18668
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
18669
|
+
# @yieldparam err [StandardError] error object if request failed
|
18670
|
+
#
|
18671
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
18672
|
+
#
|
18673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18676
|
+
def test_interconnect_attachment_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18677
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions', options)
|
18678
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
18679
|
+
command.request_object = test_permissions_request_object
|
18680
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
18681
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
18682
|
+
command.params['project'] = project unless project.nil?
|
18683
|
+
command.params['resource'] = resource unless resource.nil?
|
18684
|
+
command.query['fields'] = fields unless fields.nil?
|
18685
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18686
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18687
|
+
execute_or_queue_command(command, &block)
|
18688
|
+
end
|
18689
|
+
|
18690
|
+
# Retrieves an aggregated list of interconnect attachments. To prevent failure,
|
18691
|
+
# Google recommends that you set the `returnPartialSuccess` parameter to `true`.
|
17641
18692
|
# @param [String] project
|
17642
18693
|
# Project ID for this request.
|
17643
18694
|
# @param [String] filter
|
@@ -18215,12 +19266,22 @@ module Google
|
|
18215
19266
|
execute_or_queue_command(command, &block)
|
18216
19267
|
end
|
18217
19268
|
|
18218
|
-
#
|
18219
|
-
# available interconnect locations by making a list() request.
|
19269
|
+
# Deletes the specified InterconnectGroup in the given scope
|
18220
19270
|
# @param [String] project
|
18221
19271
|
# Project ID for this request.
|
18222
|
-
# @param [String]
|
18223
|
-
# Name of the
|
19272
|
+
# @param [String] interconnect_group
|
19273
|
+
# Name of the InterconnectGroup resource to delete.
|
19274
|
+
# @param [String] request_id
|
19275
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
19276
|
+
# that if you must retry your request, the server will know to ignore the
|
19277
|
+
# request if it has already been completed. For example, consider a situation
|
19278
|
+
# where you make an initial request and the request times out. If you make the
|
19279
|
+
# request again with the same request ID, the server can check if original
|
19280
|
+
# operation with the same request ID was received, and if so, will ignore the
|
19281
|
+
# second request. This prevents clients from accidentally creating duplicate
|
19282
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
19283
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
19284
|
+
# MixerMutationRequestBuilder
|
18224
19285
|
# @param [String] fields
|
18225
19286
|
# Selector specifying which fields to include in a partial response.
|
18226
19287
|
# @param [String] quota_user
|
@@ -18232,83 +19293,32 @@ module Google
|
|
18232
19293
|
# Request-specific options
|
18233
19294
|
#
|
18234
19295
|
# @yield [result, err] Result & error if block supplied
|
18235
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
19296
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18236
19297
|
# @yieldparam err [StandardError] error object if request failed
|
18237
19298
|
#
|
18238
|
-
# @return [Google::Apis::ComputeAlpha::
|
19299
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18239
19300
|
#
|
18240
19301
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18241
19302
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18242
19303
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18243
|
-
def
|
18244
|
-
command = make_simple_command(:
|
18245
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
18246
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
19304
|
+
def delete_interconnect_group(project, interconnect_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19305
|
+
command = make_simple_command(:delete, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
|
19306
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19307
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18247
19308
|
command.params['project'] = project unless project.nil?
|
18248
|
-
command.params['
|
19309
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19310
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18249
19311
|
command.query['fields'] = fields unless fields.nil?
|
18250
19312
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18251
19313
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
18252
19314
|
execute_or_queue_command(command, &block)
|
18253
19315
|
end
|
18254
19316
|
|
18255
|
-
#
|
18256
|
-
# project.
|
19317
|
+
# Returns the specified InterconnectGroup resource in the given scope.
|
18257
19318
|
# @param [String] project
|
18258
19319
|
# Project ID for this request.
|
18259
|
-
# @param [String]
|
18260
|
-
#
|
18261
|
-
# Compute resources support two types of filter expressions: expressions that
|
18262
|
-
# support regular expressions and expressions that follow API improvement
|
18263
|
-
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
18264
|
-
# request. If you want to use AIP-160, your expression must specify the field
|
18265
|
-
# name, an operator, and the value that you want to use for filtering. The value
|
18266
|
-
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
18267
|
-
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
18268
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
18269
|
-
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
18270
|
-
# whether a key has been defined. For example, to find all objects with `owner`
|
18271
|
-
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
18272
|
-
# example, you could specify `scheduling.automaticRestart = false` to include
|
18273
|
-
# instances only if they are not scheduled for automatic restarts. You can use
|
18274
|
-
# filtering on nested fields to filter based on resource labels. To filter on
|
18275
|
-
# multiple expressions, provide each separate expression within parentheses. For
|
18276
|
-
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
18277
|
-
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
18278
|
-
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
18279
|
-
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
18280
|
-
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
18281
|
-
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
18282
|
-
# un-parenthesized expression with or without quotes or against multiple
|
18283
|
-
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
18284
|
-
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
18285
|
-
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
18286
|
-
# interpreted as a regular expression using Google RE2 library syntax. The
|
18287
|
-
# literal value must match the entire field. For example, to filter for
|
18288
|
-
# instances that do not end with name "instance", you would use `name ne .*
|
18289
|
-
# instance`. You cannot combine constraints on multiple fields using regular
|
18290
|
-
# expressions.
|
18291
|
-
# @param [Fixnum] max_results
|
18292
|
-
# The maximum number of results per page that should be returned. If the number
|
18293
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
18294
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
18295
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
18296
|
-
# @param [String] order_by
|
18297
|
-
# Sorts list results by a certain order. By default, results are returned in
|
18298
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
18299
|
-
# descending order based on the creation timestamp using `orderBy="
|
18300
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
18301
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
18302
|
-
# resources like operations so that the newest operation is returned first.
|
18303
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
18304
|
-
# @param [String] page_token
|
18305
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
18306
|
-
# by a previous list request to get the next page of results.
|
18307
|
-
# @param [Boolean] return_partial_success
|
18308
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
18309
|
-
# failure. The default value is false. For example, when partial success
|
18310
|
-
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
18311
|
-
# resources in the zone or no resources, with an error code.
|
19320
|
+
# @param [String] interconnect_group
|
19321
|
+
# Name of the InterconnectGroup resource to return.
|
18312
19322
|
# @param [String] fields
|
18313
19323
|
# Selector specifying which fields to include in a partial response.
|
18314
19324
|
# @param [String] quota_user
|
@@ -18320,36 +19330,34 @@ module Google
|
|
18320
19330
|
# Request-specific options
|
18321
19331
|
#
|
18322
19332
|
# @yield [result, err] Result & error if block supplied
|
18323
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
19333
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectGroup] parsed result object
|
18324
19334
|
# @yieldparam err [StandardError] error object if request failed
|
18325
19335
|
#
|
18326
|
-
# @return [Google::Apis::ComputeAlpha::
|
19336
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectGroup]
|
18327
19337
|
#
|
18328
19338
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18329
19339
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18330
19340
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18331
|
-
def
|
18332
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
18333
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
18334
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
19341
|
+
def get_interconnect_group(project, interconnect_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19342
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
|
19343
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectGroup::Representation
|
19344
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectGroup
|
18335
19345
|
command.params['project'] = project unless project.nil?
|
18336
|
-
command.
|
18337
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
18338
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
18339
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
18340
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
19346
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
18341
19347
|
command.query['fields'] = fields unless fields.nil?
|
18342
19348
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18343
19349
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
18344
19350
|
execute_or_queue_command(command, &block)
|
18345
19351
|
end
|
18346
19352
|
|
18347
|
-
#
|
19353
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
19354
|
+
# or resource exists.
|
18348
19355
|
# @param [String] project
|
18349
19356
|
# Project ID for this request.
|
18350
19357
|
# @param [String] resource
|
18351
19358
|
# Name or id of the resource for this request.
|
18352
|
-
# @param [
|
19359
|
+
# @param [Fixnum] options_requested_policy_version
|
19360
|
+
# Requested IAM Policy version.
|
18353
19361
|
# @param [String] fields
|
18354
19362
|
# Selector specifying which fields to include in a partial response.
|
18355
19363
|
# @param [String] quota_user
|
@@ -18361,34 +19369,43 @@ module Google
|
|
18361
19369
|
# Request-specific options
|
18362
19370
|
#
|
18363
19371
|
# @yield [result, err] Result & error if block supplied
|
18364
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
19372
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
18365
19373
|
# @yieldparam err [StandardError] error object if request failed
|
18366
19374
|
#
|
18367
|
-
# @return [Google::Apis::ComputeAlpha::
|
19375
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
18368
19376
|
#
|
18369
19377
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18370
19378
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18371
19379
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18372
|
-
def
|
18373
|
-
command = make_simple_command(:
|
18374
|
-
command.
|
18375
|
-
command.
|
18376
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
18377
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
19380
|
+
def get_interconnect_group_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19381
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{resource}/getIamPolicy', options)
|
19382
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
19383
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
18378
19384
|
command.params['project'] = project unless project.nil?
|
18379
19385
|
command.params['resource'] = resource unless resource.nil?
|
19386
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
18380
19387
|
command.query['fields'] = fields unless fields.nil?
|
18381
19388
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18382
19389
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
18383
19390
|
execute_or_queue_command(command, &block)
|
18384
19391
|
end
|
18385
19392
|
|
18386
|
-
#
|
18387
|
-
#
|
19393
|
+
# Creates a InterconnectGroup in the specified project in the given scope using
|
19394
|
+
# the parameters that are included in the request.
|
18388
19395
|
# @param [String] project
|
18389
19396
|
# Project ID for this request.
|
18390
|
-
# @param [
|
18391
|
-
#
|
19397
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectGroup] interconnect_group_object
|
19398
|
+
# @param [String] request_id
|
19399
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
19400
|
+
# that if you must retry your request, the server will know to ignore the
|
19401
|
+
# request if it has already been completed. For example, consider a situation
|
19402
|
+
# where you make an initial request and the request times out. If you make the
|
19403
|
+
# request again with the same request ID, the server can check if original
|
19404
|
+
# operation with the same request ID was received, and if so, will ignore the
|
19405
|
+
# second request. This prevents clients from accidentally creating duplicate
|
19406
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
19407
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
19408
|
+
# MixerMutationRequestBuilder
|
18392
19409
|
# @param [String] fields
|
18393
19410
|
# Selector specifying which fields to include in a partial response.
|
18394
19411
|
# @param [String] quota_user
|
@@ -18400,28 +19417,461 @@ module Google
|
|
18400
19417
|
# Request-specific options
|
18401
19418
|
#
|
18402
19419
|
# @yield [result, err] Result & error if block supplied
|
18403
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
19420
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18404
19421
|
# @yieldparam err [StandardError] error object if request failed
|
18405
19422
|
#
|
18406
|
-
# @return [Google::Apis::ComputeAlpha::
|
19423
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18407
19424
|
#
|
18408
19425
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18409
19426
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18410
19427
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18411
|
-
def
|
18412
|
-
command = make_simple_command(:
|
18413
|
-
command.
|
18414
|
-
command.
|
19428
|
+
def insert_interconnect_group(project, interconnect_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19429
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups', options)
|
19430
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectGroup::Representation
|
19431
|
+
command.request_object = interconnect_group_object
|
19432
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19433
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18415
19434
|
command.params['project'] = project unless project.nil?
|
18416
|
-
command.
|
19435
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18417
19436
|
command.query['fields'] = fields unless fields.nil?
|
18418
19437
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18419
19438
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
18420
19439
|
execute_or_queue_command(command, &block)
|
18421
19440
|
end
|
18422
19441
|
|
18423
|
-
#
|
18424
|
-
# project
|
19442
|
+
# Lists the InterconnectGroups for a project in the given scope.
|
19443
|
+
# @param [String] project
|
19444
|
+
# Project ID for this request.
|
19445
|
+
# @param [String] filter
|
19446
|
+
# A filter expression that filters resources listed in the response. Most
|
19447
|
+
# Compute resources support two types of filter expressions: expressions that
|
19448
|
+
# support regular expressions and expressions that follow API improvement
|
19449
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
19450
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
19451
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
19452
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
19453
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
19454
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
19455
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
19456
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
19457
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
19458
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
19459
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
19460
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
19461
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
19462
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
19463
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
19464
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
19465
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
19466
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
19467
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
19468
|
+
# un-parenthesized expression with or without quotes or against multiple
|
19469
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
19470
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
19471
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
19472
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
19473
|
+
# literal value must match the entire field. For example, to filter for
|
19474
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
19475
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
19476
|
+
# expressions.
|
19477
|
+
# @param [Fixnum] max_results
|
19478
|
+
# The maximum number of results per page that should be returned. If the number
|
19479
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
19480
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
19481
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
19482
|
+
# @param [String] order_by
|
19483
|
+
# Sorts list results by a certain order. By default, results are returned in
|
19484
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
19485
|
+
# descending order based on the creation timestamp using `orderBy="
|
19486
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
19487
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
19488
|
+
# resources like operations so that the newest operation is returned first.
|
19489
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
19490
|
+
# @param [String] page_token
|
19491
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
19492
|
+
# by a previous list request to get the next page of results.
|
19493
|
+
# @param [Boolean] return_partial_success
|
19494
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
19495
|
+
# failure. The default value is false. For example, when partial success
|
19496
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
19497
|
+
# resources in the zone or no resources, with an error code.
|
19498
|
+
# @param [String] fields
|
19499
|
+
# Selector specifying which fields to include in a partial response.
|
19500
|
+
# @param [String] quota_user
|
19501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19503
|
+
# @param [String] user_ip
|
19504
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19505
|
+
# @param [Google::Apis::RequestOptions] options
|
19506
|
+
# Request-specific options
|
19507
|
+
#
|
19508
|
+
# @yield [result, err] Result & error if block supplied
|
19509
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectGroupsListResponse] parsed result object
|
19510
|
+
# @yieldparam err [StandardError] error object if request failed
|
19511
|
+
#
|
19512
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectGroupsListResponse]
|
19513
|
+
#
|
19514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19517
|
+
def list_interconnect_groups(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)
|
19518
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups', options)
|
19519
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectGroupsListResponse::Representation
|
19520
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectGroupsListResponse
|
19521
|
+
command.params['project'] = project unless project.nil?
|
19522
|
+
command.query['filter'] = filter unless filter.nil?
|
19523
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
19524
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
19525
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
19526
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
19527
|
+
command.query['fields'] = fields unless fields.nil?
|
19528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19529
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19530
|
+
execute_or_queue_command(command, &block)
|
19531
|
+
end
|
19532
|
+
|
19533
|
+
# Patches the specified InterconnectGroup resource with the data included in the
|
19534
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
19535
|
+
# and processing rules.
|
19536
|
+
# @param [String] project
|
19537
|
+
# Project ID for this request.
|
19538
|
+
# @param [String] interconnect_group
|
19539
|
+
# Name of the InterconnectGroup resource to patch.
|
19540
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectGroup] interconnect_group_object
|
19541
|
+
# @param [String] request_id
|
19542
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
19543
|
+
# that if you must retry your request, the server will know to ignore the
|
19544
|
+
# request if it has already been completed. For example, consider a situation
|
19545
|
+
# where you make an initial request and the request times out. If you make the
|
19546
|
+
# request again with the same request ID, the server can check if original
|
19547
|
+
# operation with the same request ID was received, and if so, will ignore the
|
19548
|
+
# second request. This prevents clients from accidentally creating duplicate
|
19549
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
19550
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
19551
|
+
# MixerMutationRequestBuilder
|
19552
|
+
# @param [String] update_mask
|
19553
|
+
# The list of fields to update.
|
19554
|
+
# @param [String] fields
|
19555
|
+
# Selector specifying which fields to include in a partial response.
|
19556
|
+
# @param [String] quota_user
|
19557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19559
|
+
# @param [String] user_ip
|
19560
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19561
|
+
# @param [Google::Apis::RequestOptions] options
|
19562
|
+
# Request-specific options
|
19563
|
+
#
|
19564
|
+
# @yield [result, err] Result & error if block supplied
|
19565
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
19566
|
+
# @yieldparam err [StandardError] error object if request failed
|
19567
|
+
#
|
19568
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
19569
|
+
#
|
19570
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19571
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19572
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19573
|
+
def patch_interconnect_group(project, interconnect_group, interconnect_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19574
|
+
command = make_simple_command(:patch, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
|
19575
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectGroup::Representation
|
19576
|
+
command.request_object = interconnect_group_object
|
19577
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19578
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
19579
|
+
command.params['project'] = project unless project.nil?
|
19580
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19581
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
19582
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
19583
|
+
command.query['fields'] = fields unless fields.nil?
|
19584
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19585
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19586
|
+
execute_or_queue_command(command, &block)
|
19587
|
+
end
|
19588
|
+
|
19589
|
+
# Sets the access control policy on the specified resource. Replaces any
|
19590
|
+
# existing policy.
|
19591
|
+
# @param [String] project
|
19592
|
+
# Project ID for this request.
|
19593
|
+
# @param [String] resource
|
19594
|
+
# Name or id of the resource for this request.
|
19595
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
19596
|
+
# @param [String] fields
|
19597
|
+
# Selector specifying which fields to include in a partial response.
|
19598
|
+
# @param [String] quota_user
|
19599
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19600
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19601
|
+
# @param [String] user_ip
|
19602
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19603
|
+
# @param [Google::Apis::RequestOptions] options
|
19604
|
+
# Request-specific options
|
19605
|
+
#
|
19606
|
+
# @yield [result, err] Result & error if block supplied
|
19607
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
19608
|
+
# @yieldparam err [StandardError] error object if request failed
|
19609
|
+
#
|
19610
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
19611
|
+
#
|
19612
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19613
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19614
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19615
|
+
def set_interconnect_group_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19616
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{resource}/setIamPolicy', options)
|
19617
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
19618
|
+
command.request_object = global_set_policy_request_object
|
19619
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
19620
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
19621
|
+
command.params['project'] = project unless project.nil?
|
19622
|
+
command.params['resource'] = resource unless resource.nil?
|
19623
|
+
command.query['fields'] = fields unless fields.nil?
|
19624
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19625
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19626
|
+
execute_or_queue_command(command, &block)
|
19627
|
+
end
|
19628
|
+
|
19629
|
+
# Returns permissions that a caller has on the specified resource.
|
19630
|
+
# @param [String] project
|
19631
|
+
# Project ID for this request.
|
19632
|
+
# @param [String] resource
|
19633
|
+
# Name or id of the resource for this request.
|
19634
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
19635
|
+
# @param [String] fields
|
19636
|
+
# Selector specifying which fields to include in a partial response.
|
19637
|
+
# @param [String] quota_user
|
19638
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19639
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19640
|
+
# @param [String] user_ip
|
19641
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19642
|
+
# @param [Google::Apis::RequestOptions] options
|
19643
|
+
# Request-specific options
|
19644
|
+
#
|
19645
|
+
# @yield [result, err] Result & error if block supplied
|
19646
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
19647
|
+
# @yieldparam err [StandardError] error object if request failed
|
19648
|
+
#
|
19649
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
19650
|
+
#
|
19651
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19652
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19653
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19654
|
+
def test_interconnect_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19655
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{resource}/testIamPermissions', options)
|
19656
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
19657
|
+
command.request_object = test_permissions_request_object
|
19658
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
19659
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
19660
|
+
command.params['project'] = project unless project.nil?
|
19661
|
+
command.params['resource'] = resource unless resource.nil?
|
19662
|
+
command.query['fields'] = fields unless fields.nil?
|
19663
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19664
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19665
|
+
execute_or_queue_command(command, &block)
|
19666
|
+
end
|
19667
|
+
|
19668
|
+
# Returns the details for the specified interconnect location. Gets a list of
|
19669
|
+
# available interconnect locations by making a list() request.
|
19670
|
+
# @param [String] project
|
19671
|
+
# Project ID for this request.
|
19672
|
+
# @param [String] interconnect_location
|
19673
|
+
# Name of the interconnect location to return.
|
19674
|
+
# @param [String] fields
|
19675
|
+
# Selector specifying which fields to include in a partial response.
|
19676
|
+
# @param [String] quota_user
|
19677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19679
|
+
# @param [String] user_ip
|
19680
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19681
|
+
# @param [Google::Apis::RequestOptions] options
|
19682
|
+
# Request-specific options
|
19683
|
+
#
|
19684
|
+
# @yield [result, err] Result & error if block supplied
|
19685
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectLocation] parsed result object
|
19686
|
+
# @yieldparam err [StandardError] error object if request failed
|
19687
|
+
#
|
19688
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectLocation]
|
19689
|
+
#
|
19690
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19691
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19692
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19693
|
+
def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19694
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations/{interconnectLocation}', options)
|
19695
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectLocation::Representation
|
19696
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectLocation
|
19697
|
+
command.params['project'] = project unless project.nil?
|
19698
|
+
command.params['interconnectLocation'] = interconnect_location unless interconnect_location.nil?
|
19699
|
+
command.query['fields'] = fields unless fields.nil?
|
19700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19701
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19702
|
+
execute_or_queue_command(command, &block)
|
19703
|
+
end
|
19704
|
+
|
19705
|
+
# Retrieves the list of interconnect locations available to the specified
|
19706
|
+
# project.
|
19707
|
+
# @param [String] project
|
19708
|
+
# Project ID for this request.
|
19709
|
+
# @param [String] filter
|
19710
|
+
# A filter expression that filters resources listed in the response. Most
|
19711
|
+
# Compute resources support two types of filter expressions: expressions that
|
19712
|
+
# support regular expressions and expressions that follow API improvement
|
19713
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
19714
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
19715
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
19716
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
19717
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
19718
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
19719
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
19720
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
19721
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
19722
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
19723
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
19724
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
19725
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
19726
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
19727
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
19728
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
19729
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
19730
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
19731
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
19732
|
+
# un-parenthesized expression with or without quotes or against multiple
|
19733
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
19734
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
19735
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
19736
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
19737
|
+
# literal value must match the entire field. For example, to filter for
|
19738
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
19739
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
19740
|
+
# expressions.
|
19741
|
+
# @param [Fixnum] max_results
|
19742
|
+
# The maximum number of results per page that should be returned. If the number
|
19743
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
19744
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
19745
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
19746
|
+
# @param [String] order_by
|
19747
|
+
# Sorts list results by a certain order. By default, results are returned in
|
19748
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
19749
|
+
# descending order based on the creation timestamp using `orderBy="
|
19750
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
19751
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
19752
|
+
# resources like operations so that the newest operation is returned first.
|
19753
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
19754
|
+
# @param [String] page_token
|
19755
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
19756
|
+
# by a previous list request to get the next page of results.
|
19757
|
+
# @param [Boolean] return_partial_success
|
19758
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
19759
|
+
# failure. The default value is false. For example, when partial success
|
19760
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
19761
|
+
# resources in the zone or no resources, with an error code.
|
19762
|
+
# @param [String] fields
|
19763
|
+
# Selector specifying which fields to include in a partial response.
|
19764
|
+
# @param [String] quota_user
|
19765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19767
|
+
# @param [String] user_ip
|
19768
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19769
|
+
# @param [Google::Apis::RequestOptions] options
|
19770
|
+
# Request-specific options
|
19771
|
+
#
|
19772
|
+
# @yield [result, err] Result & error if block supplied
|
19773
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectLocationList] parsed result object
|
19774
|
+
# @yieldparam err [StandardError] error object if request failed
|
19775
|
+
#
|
19776
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectLocationList]
|
19777
|
+
#
|
19778
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19779
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19780
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19781
|
+
def list_interconnect_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)
|
19782
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations', options)
|
19783
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectLocationList::Representation
|
19784
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectLocationList
|
19785
|
+
command.params['project'] = project unless project.nil?
|
19786
|
+
command.query['filter'] = filter unless filter.nil?
|
19787
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
19788
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
19789
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
19790
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
19791
|
+
command.query['fields'] = fields unless fields.nil?
|
19792
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19793
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19794
|
+
execute_or_queue_command(command, &block)
|
19795
|
+
end
|
19796
|
+
|
19797
|
+
# Returns permissions that a caller has on the specified resource.
|
19798
|
+
# @param [String] project
|
19799
|
+
# Project ID for this request.
|
19800
|
+
# @param [String] resource
|
19801
|
+
# Name or id of the resource for this request.
|
19802
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
19803
|
+
# @param [String] fields
|
19804
|
+
# Selector specifying which fields to include in a partial response.
|
19805
|
+
# @param [String] quota_user
|
19806
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19807
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19808
|
+
# @param [String] user_ip
|
19809
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19810
|
+
# @param [Google::Apis::RequestOptions] options
|
19811
|
+
# Request-specific options
|
19812
|
+
#
|
19813
|
+
# @yield [result, err] Result & error if block supplied
|
19814
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
19815
|
+
# @yieldparam err [StandardError] error object if request failed
|
19816
|
+
#
|
19817
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
19818
|
+
#
|
19819
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19820
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19821
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19822
|
+
def test_interconnect_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19823
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectLocations/{resource}/testIamPermissions', options)
|
19824
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
19825
|
+
command.request_object = test_permissions_request_object
|
19826
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
19827
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
19828
|
+
command.params['project'] = project unless project.nil?
|
19829
|
+
command.params['resource'] = resource unless resource.nil?
|
19830
|
+
command.query['fields'] = fields unless fields.nil?
|
19831
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19832
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19833
|
+
execute_or_queue_command(command, &block)
|
19834
|
+
end
|
19835
|
+
|
19836
|
+
# Returns the details for the specified interconnect remote location. Gets a
|
19837
|
+
# list of available interconnect remote locations by making a list() request.
|
19838
|
+
# @param [String] project
|
19839
|
+
# Project ID for this request.
|
19840
|
+
# @param [String] interconnect_remote_location
|
19841
|
+
# Name of the interconnect remote location to return.
|
19842
|
+
# @param [String] fields
|
19843
|
+
# Selector specifying which fields to include in a partial response.
|
19844
|
+
# @param [String] quota_user
|
19845
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19846
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19847
|
+
# @param [String] user_ip
|
19848
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19849
|
+
# @param [Google::Apis::RequestOptions] options
|
19850
|
+
# Request-specific options
|
19851
|
+
#
|
19852
|
+
# @yield [result, err] Result & error if block supplied
|
19853
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectRemoteLocation] parsed result object
|
19854
|
+
# @yieldparam err [StandardError] error object if request failed
|
19855
|
+
#
|
19856
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectRemoteLocation]
|
19857
|
+
#
|
19858
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19859
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19860
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19861
|
+
def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19862
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
|
19863
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectRemoteLocation::Representation
|
19864
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectRemoteLocation
|
19865
|
+
command.params['project'] = project unless project.nil?
|
19866
|
+
command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
|
19867
|
+
command.query['fields'] = fields unless fields.nil?
|
19868
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19869
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19870
|
+
execute_or_queue_command(command, &block)
|
19871
|
+
end
|
19872
|
+
|
19873
|
+
# Retrieves the list of interconnect remote locations available to the specified
|
19874
|
+
# project.
|
18425
19875
|
# @param [String] project
|
18426
19876
|
# Project ID for this request.
|
18427
19877
|
# @param [String] filter
|
@@ -22636,133 +24086,6 @@ module Google
|
|
22636
24086
|
execute_or_queue_command(command, &block)
|
22637
24087
|
end
|
22638
24088
|
|
22639
|
-
# Returns the specified network placement.
|
22640
|
-
# @param [String] project
|
22641
|
-
# Project ID for this request.
|
22642
|
-
# @param [String] network_placement
|
22643
|
-
# Name of the network placement to return.
|
22644
|
-
# @param [String] fields
|
22645
|
-
# Selector specifying which fields to include in a partial response.
|
22646
|
-
# @param [String] quota_user
|
22647
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22648
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22649
|
-
# @param [String] user_ip
|
22650
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
22651
|
-
# @param [Google::Apis::RequestOptions] options
|
22652
|
-
# Request-specific options
|
22653
|
-
#
|
22654
|
-
# @yield [result, err] Result & error if block supplied
|
22655
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPlacement] parsed result object
|
22656
|
-
# @yieldparam err [StandardError] error object if request failed
|
22657
|
-
#
|
22658
|
-
# @return [Google::Apis::ComputeAlpha::NetworkPlacement]
|
22659
|
-
#
|
22660
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22661
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22662
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22663
|
-
def get_network_placement(project, network_placement, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22664
|
-
command = make_simple_command(:get, 'projects/{project}/global/networkPlacements/{networkPlacement}', options)
|
22665
|
-
command.response_representation = Google::Apis::ComputeAlpha::NetworkPlacement::Representation
|
22666
|
-
command.response_class = Google::Apis::ComputeAlpha::NetworkPlacement
|
22667
|
-
command.params['project'] = project unless project.nil?
|
22668
|
-
command.params['networkPlacement'] = network_placement unless network_placement.nil?
|
22669
|
-
command.query['fields'] = fields unless fields.nil?
|
22670
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22671
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
22672
|
-
execute_or_queue_command(command, &block)
|
22673
|
-
end
|
22674
|
-
|
22675
|
-
# Retrieves a list of network placements available to the specified project.
|
22676
|
-
# @param [String] project
|
22677
|
-
# Project ID for this request.
|
22678
|
-
# @param [String] filter
|
22679
|
-
# A filter expression that filters resources listed in the response. Most
|
22680
|
-
# Compute resources support two types of filter expressions: expressions that
|
22681
|
-
# support regular expressions and expressions that follow API improvement
|
22682
|
-
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
22683
|
-
# request. If you want to use AIP-160, your expression must specify the field
|
22684
|
-
# name, an operator, and the value that you want to use for filtering. The value
|
22685
|
-
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
22686
|
-
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
22687
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
22688
|
-
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
22689
|
-
# whether a key has been defined. For example, to find all objects with `owner`
|
22690
|
-
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
22691
|
-
# example, you could specify `scheduling.automaticRestart = false` to include
|
22692
|
-
# instances only if they are not scheduled for automatic restarts. You can use
|
22693
|
-
# filtering on nested fields to filter based on resource labels. To filter on
|
22694
|
-
# multiple expressions, provide each separate expression within parentheses. For
|
22695
|
-
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
22696
|
-
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
22697
|
-
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
22698
|
-
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
22699
|
-
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
22700
|
-
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
22701
|
-
# un-parenthesized expression with or without quotes or against multiple
|
22702
|
-
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
22703
|
-
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
22704
|
-
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
22705
|
-
# interpreted as a regular expression using Google RE2 library syntax. The
|
22706
|
-
# literal value must match the entire field. For example, to filter for
|
22707
|
-
# instances that do not end with name "instance", you would use `name ne .*
|
22708
|
-
# instance`. You cannot combine constraints on multiple fields using regular
|
22709
|
-
# expressions.
|
22710
|
-
# @param [Fixnum] max_results
|
22711
|
-
# The maximum number of results per page that should be returned. If the number
|
22712
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
22713
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
22714
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
22715
|
-
# @param [String] order_by
|
22716
|
-
# Sorts list results by a certain order. By default, results are returned in
|
22717
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
22718
|
-
# descending order based on the creation timestamp using `orderBy="
|
22719
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
22720
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
22721
|
-
# resources like operations so that the newest operation is returned first.
|
22722
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
22723
|
-
# @param [String] page_token
|
22724
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
22725
|
-
# by a previous list request to get the next page of results.
|
22726
|
-
# @param [Boolean] return_partial_success
|
22727
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
22728
|
-
# failure. The default value is false. For example, when partial success
|
22729
|
-
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
22730
|
-
# resources in the zone or no resources, with an error code.
|
22731
|
-
# @param [String] fields
|
22732
|
-
# Selector specifying which fields to include in a partial response.
|
22733
|
-
# @param [String] quota_user
|
22734
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22735
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22736
|
-
# @param [String] user_ip
|
22737
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
22738
|
-
# @param [Google::Apis::RequestOptions] options
|
22739
|
-
# Request-specific options
|
22740
|
-
#
|
22741
|
-
# @yield [result, err] Result & error if block supplied
|
22742
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPlacementsListResponse] parsed result object
|
22743
|
-
# @yieldparam err [StandardError] error object if request failed
|
22744
|
-
#
|
22745
|
-
# @return [Google::Apis::ComputeAlpha::NetworkPlacementsListResponse]
|
22746
|
-
#
|
22747
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22748
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22749
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22750
|
-
def list_network_placements(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)
|
22751
|
-
command = make_simple_command(:get, 'projects/{project}/global/networkPlacements', options)
|
22752
|
-
command.response_representation = Google::Apis::ComputeAlpha::NetworkPlacementsListResponse::Representation
|
22753
|
-
command.response_class = Google::Apis::ComputeAlpha::NetworkPlacementsListResponse
|
22754
|
-
command.params['project'] = project unless project.nil?
|
22755
|
-
command.query['filter'] = filter unless filter.nil?
|
22756
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
22757
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
22758
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
22759
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
22760
|
-
command.query['fields'] = fields unless fields.nil?
|
22761
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22762
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
22763
|
-
execute_or_queue_command(command, &block)
|
22764
|
-
end
|
22765
|
-
|
22766
24089
|
# Returns the specified network profile.
|
22767
24090
|
# @param [String] project
|
22768
24091
|
# Project ID for this request.
|
@@ -25809,21 +27132,63 @@ module Google
|
|
25809
27132
|
execute_or_queue_command(command, &block)
|
25810
27133
|
end
|
25811
27134
|
|
25812
|
-
#
|
25813
|
-
#
|
25814
|
-
#
|
27135
|
+
# Gets the current list of preconfigured Web Application Firewall (WAF)
|
27136
|
+
# expressions.
|
27137
|
+
# @param [String] filter
|
27138
|
+
# A filter expression that filters resources listed in the response. Most
|
27139
|
+
# Compute resources support two types of filter expressions: expressions that
|
27140
|
+
# support regular expressions and expressions that follow API improvement
|
27141
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
27142
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
27143
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
27144
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
27145
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
27146
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
27147
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
27148
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
27149
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
27150
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
27151
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
27152
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
27153
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
27154
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
27155
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
27156
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
27157
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
27158
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
27159
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
27160
|
+
# un-parenthesized expression with or without quotes or against multiple
|
27161
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
27162
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
27163
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
27164
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
27165
|
+
# literal value must match the entire field. For example, to filter for
|
27166
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
27167
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
27168
|
+
# expressions.
|
27169
|
+
# @param [Fixnum] max_results
|
27170
|
+
# The maximum number of results per page that should be returned. If the number
|
27171
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
27172
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
27173
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
27174
|
+
# @param [String] order_by
|
27175
|
+
# Sorts list results by a certain order. By default, results are returned in
|
27176
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
27177
|
+
# descending order based on the creation timestamp using `orderBy="
|
27178
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
27179
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
27180
|
+
# resources like operations so that the newest operation is returned first.
|
27181
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
27182
|
+
# @param [String] page_token
|
27183
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
27184
|
+
# by a previous list request to get the next page of results.
|
25815
27185
|
# @param [String] parent_id
|
25816
|
-
#
|
25817
|
-
# @param [
|
25818
|
-
#
|
25819
|
-
#
|
25820
|
-
#
|
25821
|
-
#
|
25822
|
-
# request again with the same request ID, the server can check if original
|
25823
|
-
# operation with the same request ID was received, and if so, will ignore the
|
25824
|
-
# second request. This prevents clients from accidentally creating duplicate
|
25825
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
25826
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27186
|
+
# Parent ID for this request.
|
27187
|
+
# @param [Boolean] return_partial_success
|
27188
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
27189
|
+
# failure. The default value is false. For example, when partial success
|
27190
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
27191
|
+
# resources in the zone or no resources, with an error code.
|
25827
27192
|
# @param [String] fields
|
25828
27193
|
# Selector specifying which fields to include in a partial response.
|
25829
27194
|
# @param [String] quota_user
|
@@ -25835,80 +27200,35 @@ module Google
|
|
25835
27200
|
# Request-specific options
|
25836
27201
|
#
|
25837
27202
|
# @yield [result, err] Result & error if block supplied
|
25838
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
27203
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
|
25839
27204
|
# @yieldparam err [StandardError] error object if request failed
|
25840
27205
|
#
|
25841
|
-
# @return [Google::Apis::ComputeAlpha::
|
27206
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
|
25842
27207
|
#
|
25843
27208
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25844
27209
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25845
27210
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25846
|
-
def
|
25847
|
-
command = make_simple_command(:
|
25848
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
25849
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
25850
|
-
command.
|
27211
|
+
def list_organization_security_policy_preconfigured_expression_sets(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27212
|
+
command = make_simple_command(:get, 'locations/global/securityPolicies/listPreconfiguredExpressionSets', options)
|
27213
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation
|
27214
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse
|
27215
|
+
command.query['filter'] = filter unless filter.nil?
|
27216
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
27217
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
27218
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
25851
27219
|
command.query['parentId'] = parent_id unless parent_id.nil?
|
25852
|
-
command.query['
|
25853
|
-
command.query['fields'] = fields unless fields.nil?
|
25854
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25855
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
25856
|
-
execute_or_queue_command(command, &block)
|
25857
|
-
end
|
25858
|
-
|
25859
|
-
# Patches the specified policy with the data included in the request.
|
25860
|
-
# @param [String] security_policy
|
25861
|
-
# Name of the security policy to update.
|
25862
|
-
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
25863
|
-
# @param [String] request_id
|
25864
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
25865
|
-
# that if you must retry your request, the server will know to ignore the
|
25866
|
-
# request if it has already been completed. For example, consider a situation
|
25867
|
-
# where you make an initial request and the request times out. If you make the
|
25868
|
-
# request again with the same request ID, the server can check if original
|
25869
|
-
# operation with the same request ID was received, and if so, will ignore the
|
25870
|
-
# second request. This prevents clients from accidentally creating duplicate
|
25871
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
25872
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25873
|
-
# @param [String] fields
|
25874
|
-
# Selector specifying which fields to include in a partial response.
|
25875
|
-
# @param [String] quota_user
|
25876
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
25877
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25878
|
-
# @param [String] user_ip
|
25879
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25880
|
-
# @param [Google::Apis::RequestOptions] options
|
25881
|
-
# Request-specific options
|
25882
|
-
#
|
25883
|
-
# @yield [result, err] Result & error if block supplied
|
25884
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
25885
|
-
# @yieldparam err [StandardError] error object if request failed
|
25886
|
-
#
|
25887
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
25888
|
-
#
|
25889
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25890
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25891
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25892
|
-
def patch_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25893
|
-
command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
|
25894
|
-
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
25895
|
-
command.request_object = security_policy_object
|
25896
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25897
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25898
|
-
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25899
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
27220
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
25900
27221
|
command.query['fields'] = fields unless fields.nil?
|
25901
27222
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25902
27223
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
25903
27224
|
execute_or_queue_command(command, &block)
|
25904
27225
|
end
|
25905
27226
|
|
25906
|
-
#
|
27227
|
+
# Moves the specified security policy.
|
25907
27228
|
# @param [String] security_policy
|
25908
27229
|
# Name of the security policy to update.
|
25909
|
-
# @param [
|
25910
|
-
#
|
25911
|
-
# The priority of the rule to patch.
|
27230
|
+
# @param [String] parent_id
|
27231
|
+
# The new parent of the security policy.
|
25912
27232
|
# @param [String] request_id
|
25913
27233
|
# An optional request ID to identify requests. Specify a unique request ID so
|
25914
27234
|
# that if you must retry your request, the server will know to ignore the
|
@@ -25938,14 +27258,12 @@ module Google
|
|
25938
27258
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25939
27259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25940
27260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25941
|
-
def
|
25942
|
-
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/
|
25943
|
-
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
25944
|
-
command.request_object = security_policy_rule_object
|
27261
|
+
def move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27262
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
|
25945
27263
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25946
27264
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25947
27265
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25948
|
-
command.query['
|
27266
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
25949
27267
|
command.query['requestId'] = request_id unless request_id.nil?
|
25950
27268
|
command.query['fields'] = fields unless fields.nil?
|
25951
27269
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -25953,11 +27271,10 @@ module Google
|
|
25953
27271
|
execute_or_queue_command(command, &block)
|
25954
27272
|
end
|
25955
27273
|
|
25956
|
-
#
|
27274
|
+
# Patches the specified policy with the data included in the request.
|
25957
27275
|
# @param [String] security_policy
|
25958
27276
|
# Name of the security policy to update.
|
25959
|
-
# @param [
|
25960
|
-
# Name for the attachment that will be removed.
|
27277
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
25961
27278
|
# @param [String] request_id
|
25962
27279
|
# An optional request ID to identify requests. Specify a unique request ID so
|
25963
27280
|
# that if you must retry your request, the server will know to ignore the
|
@@ -25987,12 +27304,13 @@ module Google
|
|
25987
27304
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25988
27305
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25989
27306
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25990
|
-
def
|
25991
|
-
command = make_simple_command(:
|
27307
|
+
def patch_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27308
|
+
command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
|
27309
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
27310
|
+
command.request_object = security_policy_object
|
25992
27311
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25993
27312
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25994
27313
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
25995
|
-
command.query['name'] = name unless name.nil?
|
25996
27314
|
command.query['requestId'] = request_id unless request_id.nil?
|
25997
27315
|
command.query['fields'] = fields unless fields.nil?
|
25998
27316
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -26000,11 +27318,108 @@ module Google
|
|
26000
27318
|
execute_or_queue_command(command, &block)
|
26001
27319
|
end
|
26002
27320
|
|
26003
|
-
#
|
27321
|
+
# Patches a rule at the specified priority.
|
26004
27322
|
# @param [String] security_policy
|
26005
27323
|
# Name of the security policy to update.
|
27324
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
26006
27325
|
# @param [Fixnum] priority
|
26007
|
-
# The priority of the rule to
|
27326
|
+
# The priority of the rule to patch.
|
27327
|
+
# @param [String] request_id
|
27328
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27329
|
+
# that if you must retry your request, the server will know to ignore the
|
27330
|
+
# request if it has already been completed. For example, consider a situation
|
27331
|
+
# where you make an initial request and the request times out. If you make the
|
27332
|
+
# request again with the same request ID, the server can check if original
|
27333
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27334
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27335
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27336
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27337
|
+
# @param [String] fields
|
27338
|
+
# Selector specifying which fields to include in a partial response.
|
27339
|
+
# @param [String] quota_user
|
27340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27342
|
+
# @param [String] user_ip
|
27343
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27344
|
+
# @param [Google::Apis::RequestOptions] options
|
27345
|
+
# Request-specific options
|
27346
|
+
#
|
27347
|
+
# @yield [result, err] Result & error if block supplied
|
27348
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27349
|
+
# @yieldparam err [StandardError] error object if request failed
|
27350
|
+
#
|
27351
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27352
|
+
#
|
27353
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27354
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27355
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27356
|
+
def patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27357
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
|
27358
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
27359
|
+
command.request_object = security_policy_rule_object
|
27360
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27361
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27362
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
27363
|
+
command.query['priority'] = priority unless priority.nil?
|
27364
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27365
|
+
command.query['fields'] = fields unless fields.nil?
|
27366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27367
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27368
|
+
execute_or_queue_command(command, &block)
|
27369
|
+
end
|
27370
|
+
|
27371
|
+
# Removes an association for the specified security policy.
|
27372
|
+
# @param [String] security_policy
|
27373
|
+
# Name of the security policy to update.
|
27374
|
+
# @param [String] name
|
27375
|
+
# Name for the attachment that will be removed.
|
27376
|
+
# @param [String] request_id
|
27377
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27378
|
+
# that if you must retry your request, the server will know to ignore the
|
27379
|
+
# request if it has already been completed. For example, consider a situation
|
27380
|
+
# where you make an initial request and the request times out. If you make the
|
27381
|
+
# request again with the same request ID, the server can check if original
|
27382
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27383
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27384
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27385
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27386
|
+
# @param [String] fields
|
27387
|
+
# Selector specifying which fields to include in a partial response.
|
27388
|
+
# @param [String] quota_user
|
27389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27391
|
+
# @param [String] user_ip
|
27392
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27393
|
+
# @param [Google::Apis::RequestOptions] options
|
27394
|
+
# Request-specific options
|
27395
|
+
#
|
27396
|
+
# @yield [result, err] Result & error if block supplied
|
27397
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27398
|
+
# @yieldparam err [StandardError] error object if request failed
|
27399
|
+
#
|
27400
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27401
|
+
#
|
27402
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27403
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27404
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27405
|
+
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27406
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
27407
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27408
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27409
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
27410
|
+
command.query['name'] = name unless name.nil?
|
27411
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27412
|
+
command.query['fields'] = fields unless fields.nil?
|
27413
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27414
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27415
|
+
execute_or_queue_command(command, &block)
|
27416
|
+
end
|
27417
|
+
|
27418
|
+
# Deletes a rule at the specified priority.
|
27419
|
+
# @param [String] security_policy
|
27420
|
+
# Name of the security policy to update.
|
27421
|
+
# @param [Fixnum] priority
|
27422
|
+
# The priority of the rule to remove from the security policy.
|
26008
27423
|
# @param [String] request_id
|
26009
27424
|
# An optional request ID to identify requests. Specify a unique request ID so
|
26010
27425
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28889,8 +30304,8 @@ module Google
|
|
28889
30304
|
execute_or_queue_command(command, &block)
|
28890
30305
|
end
|
28891
30306
|
|
28892
|
-
# Retrieves
|
28893
|
-
#
|
30307
|
+
# Retrieves a list of all usable backend services in the specified project in
|
30308
|
+
# the given region.
|
28894
30309
|
# @param [String] project
|
28895
30310
|
# Project ID for this request.
|
28896
30311
|
# @param [String] region
|
@@ -30256,6 +31671,46 @@ module Google
|
|
30256
31671
|
execute_or_queue_command(command, &block)
|
30257
31672
|
end
|
30258
31673
|
|
31674
|
+
# Gets the status of current async replication for a given device.
|
31675
|
+
# @param [String] project
|
31676
|
+
# Project ID for this request.
|
31677
|
+
# @param [String] region
|
31678
|
+
# The name of the zone for this request.
|
31679
|
+
# @param [String] disk
|
31680
|
+
# Name of the Disk resource whose Async replication details are requested. Name
|
31681
|
+
# should conform to RFC1035 or be an unsigned long integer.
|
31682
|
+
# @param [String] fields
|
31683
|
+
# Selector specifying which fields to include in a partial response.
|
31684
|
+
# @param [String] quota_user
|
31685
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31686
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31687
|
+
# @param [String] user_ip
|
31688
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31689
|
+
# @param [Google::Apis::RequestOptions] options
|
31690
|
+
# Request-specific options
|
31691
|
+
#
|
31692
|
+
# @yield [result, err] Result & error if block supplied
|
31693
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse] parsed result object
|
31694
|
+
# @yieldparam err [StandardError] error object if request failed
|
31695
|
+
#
|
31696
|
+
# @return [Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse]
|
31697
|
+
#
|
31698
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31699
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31700
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31701
|
+
def get_region_disk_async_replication_status(project, region, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31702
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks/{disk}/getAsyncReplicationStatus', options)
|
31703
|
+
command.response_representation = Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse::Representation
|
31704
|
+
command.response_class = Google::Apis::ComputeAlpha::GetAsyncReplicationStatusResponse
|
31705
|
+
command.params['project'] = project unless project.nil?
|
31706
|
+
command.params['region'] = region unless region.nil?
|
31707
|
+
command.params['disk'] = disk unless disk.nil?
|
31708
|
+
command.query['fields'] = fields unless fields.nil?
|
31709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31710
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31711
|
+
execute_or_queue_command(command, &block)
|
31712
|
+
end
|
31713
|
+
|
30259
31714
|
# Gets the access control policy for a resource. May be empty if no such policy
|
30260
31715
|
# or resource exists.
|
30261
31716
|
# @param [String] project
|
@@ -30907,6 +32362,60 @@ module Google
|
|
30907
32362
|
execute_or_queue_command(command, &block)
|
30908
32363
|
end
|
30909
32364
|
|
32365
|
+
# Wait for replication to catch up on the secondary disk.
|
32366
|
+
# @param [String] project
|
32367
|
+
# Project ID for this request.
|
32368
|
+
# @param [String] region
|
32369
|
+
# Name of the region for this request.
|
32370
|
+
# @param [String] disk
|
32371
|
+
# The name of the persistent disk. Name should conform to RFC1035 or be an
|
32372
|
+
# unsigned long integer.
|
32373
|
+
# @param [Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest] region_wait_for_replication_catch_up_request_object
|
32374
|
+
# @param [String] request_id
|
32375
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32376
|
+
# that if you must retry your request, the server will know to ignore the
|
32377
|
+
# request if it has already been completed. For example, consider a situation
|
32378
|
+
# where you make an initial request and the request times out. If you make the
|
32379
|
+
# request again with the same request ID, the server can check if original
|
32380
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32381
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32382
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32383
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32384
|
+
# @param [String] fields
|
32385
|
+
# Selector specifying which fields to include in a partial response.
|
32386
|
+
# @param [String] quota_user
|
32387
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32388
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32389
|
+
# @param [String] user_ip
|
32390
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32391
|
+
# @param [Google::Apis::RequestOptions] options
|
32392
|
+
# Request-specific options
|
32393
|
+
#
|
32394
|
+
# @yield [result, err] Result & error if block supplied
|
32395
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32396
|
+
# @yieldparam err [StandardError] error object if request failed
|
32397
|
+
#
|
32398
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32399
|
+
#
|
32400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32403
|
+
def wait_region_disk_for_replication_catch_up(project, region, disk, region_wait_for_replication_catch_up_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32404
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
|
32405
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
32406
|
+
command.request_object = region_wait_for_replication_catch_up_request_object
|
32407
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32408
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32409
|
+
command.params['project'] = project unless project.nil?
|
32410
|
+
command.params['region'] = region unless region.nil?
|
32411
|
+
command.params['disk'] = disk unless disk.nil?
|
32412
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32413
|
+
command.query['fields'] = fields unless fields.nil?
|
32414
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32415
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32416
|
+
execute_or_queue_command(command, &block)
|
32417
|
+
end
|
32418
|
+
|
30910
32419
|
# Retrieves the list of all HealthCheckService resources, regional and global,
|
30911
32420
|
# available to the specified project. To prevent failure, Google recommends that
|
30912
32421
|
# you set the `returnPartialSuccess` parameter to `true`.
|
@@ -31556,20 +33065,482 @@ module Google
|
|
31556
33065
|
# Request-specific options
|
31557
33066
|
#
|
31558
33067
|
# @yield [result, err] Result & error if block supplied
|
31559
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckList] parsed result object
|
33068
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckList] parsed result object
|
33069
|
+
# @yieldparam err [StandardError] error object if request failed
|
33070
|
+
#
|
33071
|
+
# @return [Google::Apis::ComputeAlpha::HealthCheckList]
|
33072
|
+
#
|
33073
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33074
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33075
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33076
|
+
def list_region_health_checks(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)
|
33077
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks', options)
|
33078
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation
|
33079
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthCheckList
|
33080
|
+
command.params['project'] = project unless project.nil?
|
33081
|
+
command.params['region'] = region unless region.nil?
|
33082
|
+
command.query['filter'] = filter unless filter.nil?
|
33083
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33084
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33085
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33086
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33087
|
+
command.query['fields'] = fields unless fields.nil?
|
33088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33089
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33090
|
+
execute_or_queue_command(command, &block)
|
33091
|
+
end
|
33092
|
+
|
33093
|
+
# Updates a HealthCheck resource in the specified project using the data
|
33094
|
+
# included in the request. This method supports PATCH semantics and uses the
|
33095
|
+
# JSON merge patch format and processing rules.
|
33096
|
+
# @param [String] project
|
33097
|
+
# Project ID for this request.
|
33098
|
+
# @param [String] region
|
33099
|
+
# Name of the region scoping this request.
|
33100
|
+
# @param [String] health_check
|
33101
|
+
# Name of the HealthCheck resource to patch.
|
33102
|
+
# @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
|
33103
|
+
# @param [String] request_id
|
33104
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33105
|
+
# that if you must retry your request, the server will know to ignore the
|
33106
|
+
# request if it has already been completed. For example, consider a situation
|
33107
|
+
# where you make an initial request and the request times out. If you make the
|
33108
|
+
# request again with the same request ID, the server can check if original
|
33109
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33110
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33111
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33112
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33113
|
+
# @param [String] fields
|
33114
|
+
# Selector specifying which fields to include in a partial response.
|
33115
|
+
# @param [String] quota_user
|
33116
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33117
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33118
|
+
# @param [String] user_ip
|
33119
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33120
|
+
# @param [Google::Apis::RequestOptions] options
|
33121
|
+
# Request-specific options
|
33122
|
+
#
|
33123
|
+
# @yield [result, err] Result & error if block supplied
|
33124
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33125
|
+
# @yieldparam err [StandardError] error object if request failed
|
33126
|
+
#
|
33127
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33128
|
+
#
|
33129
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33130
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33131
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33132
|
+
def patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33133
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
33134
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
33135
|
+
command.request_object = health_check_object
|
33136
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33137
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33138
|
+
command.params['project'] = project unless project.nil?
|
33139
|
+
command.params['region'] = region unless region.nil?
|
33140
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
33141
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33142
|
+
command.query['fields'] = fields unless fields.nil?
|
33143
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33144
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33145
|
+
execute_or_queue_command(command, &block)
|
33146
|
+
end
|
33147
|
+
|
33148
|
+
# Returns permissions that a caller has on the specified resource.
|
33149
|
+
# @param [String] project
|
33150
|
+
# Project ID for this request.
|
33151
|
+
# @param [String] region
|
33152
|
+
# The name of the region for this request.
|
33153
|
+
# @param [String] resource
|
33154
|
+
# Name or id of the resource for this request.
|
33155
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
33156
|
+
# @param [String] fields
|
33157
|
+
# Selector specifying which fields to include in a partial response.
|
33158
|
+
# @param [String] quota_user
|
33159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33161
|
+
# @param [String] user_ip
|
33162
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33163
|
+
# @param [Google::Apis::RequestOptions] options
|
33164
|
+
# Request-specific options
|
33165
|
+
#
|
33166
|
+
# @yield [result, err] Result & error if block supplied
|
33167
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
33168
|
+
# @yieldparam err [StandardError] error object if request failed
|
33169
|
+
#
|
33170
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
33171
|
+
#
|
33172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33175
|
+
def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33176
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
|
33177
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
33178
|
+
command.request_object = test_permissions_request_object
|
33179
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
33180
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
33181
|
+
command.params['project'] = project unless project.nil?
|
33182
|
+
command.params['region'] = region unless region.nil?
|
33183
|
+
command.params['resource'] = resource unless resource.nil?
|
33184
|
+
command.query['fields'] = fields unless fields.nil?
|
33185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33186
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33187
|
+
execute_or_queue_command(command, &block)
|
33188
|
+
end
|
33189
|
+
|
33190
|
+
# Updates a HealthCheck resource in the specified project using the data
|
33191
|
+
# included in the request.
|
33192
|
+
# @param [String] project
|
33193
|
+
# Project ID for this request.
|
33194
|
+
# @param [String] region
|
33195
|
+
# Name of the region scoping this request.
|
33196
|
+
# @param [String] health_check
|
33197
|
+
# Name of the HealthCheck resource to update.
|
33198
|
+
# @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
|
33199
|
+
# @param [String] request_id
|
33200
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33201
|
+
# that if you must retry your request, the server will know to ignore the
|
33202
|
+
# request if it has already been completed. For example, consider a situation
|
33203
|
+
# where you make an initial request and the request times out. If you make the
|
33204
|
+
# request again with the same request ID, the server can check if original
|
33205
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33206
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33207
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33208
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33209
|
+
# @param [String] fields
|
33210
|
+
# Selector specifying which fields to include in a partial response.
|
33211
|
+
# @param [String] quota_user
|
33212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33214
|
+
# @param [String] user_ip
|
33215
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33216
|
+
# @param [Google::Apis::RequestOptions] options
|
33217
|
+
# Request-specific options
|
33218
|
+
#
|
33219
|
+
# @yield [result, err] Result & error if block supplied
|
33220
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33221
|
+
# @yieldparam err [StandardError] error object if request failed
|
33222
|
+
#
|
33223
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33224
|
+
#
|
33225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33228
|
+
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33229
|
+
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
33230
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
33231
|
+
command.request_object = health_check_object
|
33232
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33233
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33234
|
+
command.params['project'] = project unless project.nil?
|
33235
|
+
command.params['region'] = region unless region.nil?
|
33236
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
33237
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33238
|
+
command.query['fields'] = fields unless fields.nil?
|
33239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33240
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33241
|
+
execute_or_queue_command(command, &block)
|
33242
|
+
end
|
33243
|
+
|
33244
|
+
# Cancels the specified resize request. Cancelled resize request no longer waits
|
33245
|
+
# for the resources to be provisioned. Cancel is only possible for requests that
|
33246
|
+
# are in accepted state.
|
33247
|
+
# @param [String] project
|
33248
|
+
# Project ID for this request.
|
33249
|
+
# @param [String] region
|
33250
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
33251
|
+
# @param [String] instance_group_manager
|
33252
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
33253
|
+
# resource ID.
|
33254
|
+
# @param [String] resize_request
|
33255
|
+
# The name of the resize request to cancel. Name should conform to RFC1035 or be
|
33256
|
+
# a resource ID.
|
33257
|
+
# @param [String] request_id
|
33258
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33259
|
+
# that if you must retry your request, the server will know to ignore the
|
33260
|
+
# request if it has already been completed. For example, consider a situation
|
33261
|
+
# where you make an initial request and the request times out. If you make the
|
33262
|
+
# request again with the same request ID, the server can check if original
|
33263
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33264
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33265
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33266
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33267
|
+
# @param [String] fields
|
33268
|
+
# Selector specifying which fields to include in a partial response.
|
33269
|
+
# @param [String] quota_user
|
33270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33272
|
+
# @param [String] user_ip
|
33273
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33274
|
+
# @param [Google::Apis::RequestOptions] options
|
33275
|
+
# Request-specific options
|
33276
|
+
#
|
33277
|
+
# @yield [result, err] Result & error if block supplied
|
33278
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33279
|
+
# @yieldparam err [StandardError] error object if request failed
|
33280
|
+
#
|
33281
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33282
|
+
#
|
33283
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33284
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33285
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33286
|
+
def cancel_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33287
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
|
33288
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33289
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33290
|
+
command.params['project'] = project unless project.nil?
|
33291
|
+
command.params['region'] = region unless region.nil?
|
33292
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
33293
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
33294
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33295
|
+
command.query['fields'] = fields unless fields.nil?
|
33296
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33297
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33298
|
+
execute_or_queue_command(command, &block)
|
33299
|
+
end
|
33300
|
+
|
33301
|
+
# Deletes the specified, inactive resize request. Requests that are still active
|
33302
|
+
# cannot be deleted. Deleting request does not delete instances that were
|
33303
|
+
# provisioned previously.
|
33304
|
+
# @param [String] project
|
33305
|
+
# Project ID for this request.
|
33306
|
+
# @param [String] region
|
33307
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
33308
|
+
# @param [String] instance_group_manager
|
33309
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
33310
|
+
# resource ID.
|
33311
|
+
# @param [String] resize_request
|
33312
|
+
# The name of the resize request to delete. Name should conform to RFC1035 or be
|
33313
|
+
# a resource ID.
|
33314
|
+
# @param [String] request_id
|
33315
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33316
|
+
# that if you must retry your request, the server will know to ignore the
|
33317
|
+
# request if it has already been completed. For example, consider a situation
|
33318
|
+
# where you make an initial request and the request times out. If you make the
|
33319
|
+
# request again with the same request ID, the server can check if original
|
33320
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33321
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33322
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33323
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33324
|
+
# @param [String] fields
|
33325
|
+
# Selector specifying which fields to include in a partial response.
|
33326
|
+
# @param [String] quota_user
|
33327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33329
|
+
# @param [String] user_ip
|
33330
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33331
|
+
# @param [Google::Apis::RequestOptions] options
|
33332
|
+
# Request-specific options
|
33333
|
+
#
|
33334
|
+
# @yield [result, err] Result & error if block supplied
|
33335
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33336
|
+
# @yieldparam err [StandardError] error object if request failed
|
33337
|
+
#
|
33338
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33339
|
+
#
|
33340
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33341
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33342
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33343
|
+
def delete_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33344
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
33345
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33346
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33347
|
+
command.params['project'] = project unless project.nil?
|
33348
|
+
command.params['region'] = region unless region.nil?
|
33349
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
33350
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
33351
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33352
|
+
command.query['fields'] = fields unless fields.nil?
|
33353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33354
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33355
|
+
execute_or_queue_command(command, &block)
|
33356
|
+
end
|
33357
|
+
|
33358
|
+
# Returns all of the details about the specified resize request.
|
33359
|
+
# @param [String] project
|
33360
|
+
# Project ID for this request.
|
33361
|
+
# @param [String] region
|
33362
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
33363
|
+
# @param [String] instance_group_manager
|
33364
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
33365
|
+
# resource ID.
|
33366
|
+
# @param [String] resize_request
|
33367
|
+
# The name of the resize request. Name should conform to RFC1035 or be a
|
33368
|
+
# resource ID.
|
33369
|
+
# @param [String] fields
|
33370
|
+
# Selector specifying which fields to include in a partial response.
|
33371
|
+
# @param [String] quota_user
|
33372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33374
|
+
# @param [String] user_ip
|
33375
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33376
|
+
# @param [Google::Apis::RequestOptions] options
|
33377
|
+
# Request-specific options
|
33378
|
+
#
|
33379
|
+
# @yield [result, err] Result & error if block supplied
|
33380
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] parsed result object
|
33381
|
+
# @yieldparam err [StandardError] error object if request failed
|
33382
|
+
#
|
33383
|
+
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest]
|
33384
|
+
#
|
33385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33388
|
+
def get_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33389
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
33390
|
+
command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
|
33391
|
+
command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest
|
33392
|
+
command.params['project'] = project unless project.nil?
|
33393
|
+
command.params['region'] = region unless region.nil?
|
33394
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
33395
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
33396
|
+
command.query['fields'] = fields unless fields.nil?
|
33397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33398
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33399
|
+
execute_or_queue_command(command, &block)
|
33400
|
+
end
|
33401
|
+
|
33402
|
+
# Creates a new Resize Request that starts provisioning VMs immediately or
|
33403
|
+
# queues VM creation.
|
33404
|
+
# @param [String] project
|
33405
|
+
# Project ID for this request.
|
33406
|
+
# @param [String] region
|
33407
|
+
# Name of the region scoping this request. Name should conform to RFC1035.
|
33408
|
+
# @param [String] instance_group_manager
|
33409
|
+
# Name of the managed instance group to which the resize request is scoped. Name
|
33410
|
+
# should conform to RFC1035 or be a resource ID.
|
33411
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
|
33412
|
+
# @param [String] request_id
|
33413
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33414
|
+
# that if you must retry your request, the server will know to ignore the
|
33415
|
+
# request if it has already been completed. For example, consider a situation
|
33416
|
+
# where you make an initial request and the request times out. If you make the
|
33417
|
+
# request again with the same request ID, the server can check if original
|
33418
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33419
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33420
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33421
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33422
|
+
# @param [String] fields
|
33423
|
+
# Selector specifying which fields to include in a partial response.
|
33424
|
+
# @param [String] quota_user
|
33425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33427
|
+
# @param [String] user_ip
|
33428
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33429
|
+
# @param [Google::Apis::RequestOptions] options
|
33430
|
+
# Request-specific options
|
33431
|
+
#
|
33432
|
+
# @yield [result, err] Result & error if block supplied
|
33433
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33434
|
+
# @yieldparam err [StandardError] error object if request failed
|
33435
|
+
#
|
33436
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33437
|
+
#
|
33438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33441
|
+
def insert_region_instance_group_manager_resize_request(project, region, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33442
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
33443
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
|
33444
|
+
command.request_object = instance_group_manager_resize_request_object
|
33445
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33446
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33447
|
+
command.params['project'] = project unless project.nil?
|
33448
|
+
command.params['region'] = region unless region.nil?
|
33449
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
33450
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33451
|
+
command.query['fields'] = fields unless fields.nil?
|
33452
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33453
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33454
|
+
execute_or_queue_command(command, &block)
|
33455
|
+
end
|
33456
|
+
|
33457
|
+
# Retrieves a list of Resize Requests that are contained in the managed instance
|
33458
|
+
# group.
|
33459
|
+
# @param [String] project
|
33460
|
+
# Project ID for this request.
|
33461
|
+
# @param [String] region
|
33462
|
+
# Name of the region scoping this request. Name should conform to RFC1035.
|
33463
|
+
# @param [String] instance_group_manager
|
33464
|
+
# The name of the managed instance group. The name should conform to RFC1035.
|
33465
|
+
# @param [String] filter
|
33466
|
+
# A filter expression that filters resources listed in the response. Most
|
33467
|
+
# Compute resources support two types of filter expressions: expressions that
|
33468
|
+
# support regular expressions and expressions that follow API improvement
|
33469
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
33470
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
33471
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
33472
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
33473
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
33474
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
33475
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
33476
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
33477
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
33478
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
33479
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
33480
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
33481
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
33482
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
33483
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
33484
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
33485
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
33486
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
33487
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
33488
|
+
# un-parenthesized expression with or without quotes or against multiple
|
33489
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
33490
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
33491
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
33492
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
33493
|
+
# literal value must match the entire field. For example, to filter for
|
33494
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
33495
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
33496
|
+
# expressions.
|
33497
|
+
# @param [Fixnum] max_results
|
33498
|
+
# The maximum number of results per page that should be returned. If the number
|
33499
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33500
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33501
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33502
|
+
# @param [String] order_by
|
33503
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33504
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
33505
|
+
# descending order based on the creation timestamp using `orderBy="
|
33506
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33507
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
33508
|
+
# resources like operations so that the newest operation is returned first.
|
33509
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33510
|
+
# @param [String] page_token
|
33511
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33512
|
+
# by a previous list request to get the next page of results.
|
33513
|
+
# @param [Boolean] return_partial_success
|
33514
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33515
|
+
# failure. The default value is false. For example, when partial success
|
33516
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
33517
|
+
# resources in the zone or no resources, with an error code.
|
33518
|
+
# @param [String] fields
|
33519
|
+
# Selector specifying which fields to include in a partial response.
|
33520
|
+
# @param [String] quota_user
|
33521
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33522
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33523
|
+
# @param [String] user_ip
|
33524
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33525
|
+
# @param [Google::Apis::RequestOptions] options
|
33526
|
+
# Request-specific options
|
33527
|
+
#
|
33528
|
+
# @yield [result, err] Result & error if block supplied
|
33529
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerResizeRequestsListResponse] parsed result object
|
31560
33530
|
# @yieldparam err [StandardError] error object if request failed
|
31561
33531
|
#
|
31562
|
-
# @return [Google::Apis::ComputeAlpha::
|
33532
|
+
# @return [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerResizeRequestsListResponse]
|
31563
33533
|
#
|
31564
33534
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31565
33535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31566
33536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31567
|
-
def
|
31568
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
31569
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
31570
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
33537
|
+
def list_region_instance_group_manager_resize_requests(project, region, instance_group_manager, 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)
|
33538
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
33539
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerResizeRequestsListResponse::Representation
|
33540
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerResizeRequestsListResponse
|
31571
33541
|
command.params['project'] = project unless project.nil?
|
31572
33542
|
command.params['region'] = region unless region.nil?
|
33543
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
31573
33544
|
command.query['filter'] = filter unless filter.nil?
|
31574
33545
|
command.query['maxResults'] = max_results unless max_results.nil?
|
31575
33546
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -31581,256 +33552,6 @@ module Google
|
|
31581
33552
|
execute_or_queue_command(command, &block)
|
31582
33553
|
end
|
31583
33554
|
|
31584
|
-
# Updates a HealthCheck resource in the specified project using the data
|
31585
|
-
# included in the request. This method supports PATCH semantics and uses the
|
31586
|
-
# JSON merge patch format and processing rules.
|
31587
|
-
# @param [String] project
|
31588
|
-
# Project ID for this request.
|
31589
|
-
# @param [String] region
|
31590
|
-
# Name of the region scoping this request.
|
31591
|
-
# @param [String] health_check
|
31592
|
-
# Name of the HealthCheck resource to patch.
|
31593
|
-
# @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
|
31594
|
-
# @param [String] request_id
|
31595
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31596
|
-
# that if you must retry your request, the server will know to ignore the
|
31597
|
-
# request if it has already been completed. For example, consider a situation
|
31598
|
-
# where you make an initial request and the request times out. If you make the
|
31599
|
-
# request again with the same request ID, the server can check if original
|
31600
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31601
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31602
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31603
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31604
|
-
# @param [String] fields
|
31605
|
-
# Selector specifying which fields to include in a partial response.
|
31606
|
-
# @param [String] quota_user
|
31607
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31608
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31609
|
-
# @param [String] user_ip
|
31610
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31611
|
-
# @param [Google::Apis::RequestOptions] options
|
31612
|
-
# Request-specific options
|
31613
|
-
#
|
31614
|
-
# @yield [result, err] Result & error if block supplied
|
31615
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31616
|
-
# @yieldparam err [StandardError] error object if request failed
|
31617
|
-
#
|
31618
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31619
|
-
#
|
31620
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31621
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31622
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31623
|
-
def patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31624
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
31625
|
-
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
31626
|
-
command.request_object = health_check_object
|
31627
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31628
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31629
|
-
command.params['project'] = project unless project.nil?
|
31630
|
-
command.params['region'] = region unless region.nil?
|
31631
|
-
command.params['healthCheck'] = health_check unless health_check.nil?
|
31632
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31633
|
-
command.query['fields'] = fields unless fields.nil?
|
31634
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31635
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31636
|
-
execute_or_queue_command(command, &block)
|
31637
|
-
end
|
31638
|
-
|
31639
|
-
# Returns permissions that a caller has on the specified resource.
|
31640
|
-
# @param [String] project
|
31641
|
-
# Project ID for this request.
|
31642
|
-
# @param [String] region
|
31643
|
-
# The name of the region for this request.
|
31644
|
-
# @param [String] resource
|
31645
|
-
# Name or id of the resource for this request.
|
31646
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
31647
|
-
# @param [String] fields
|
31648
|
-
# Selector specifying which fields to include in a partial response.
|
31649
|
-
# @param [String] quota_user
|
31650
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31651
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31652
|
-
# @param [String] user_ip
|
31653
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31654
|
-
# @param [Google::Apis::RequestOptions] options
|
31655
|
-
# Request-specific options
|
31656
|
-
#
|
31657
|
-
# @yield [result, err] Result & error if block supplied
|
31658
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
31659
|
-
# @yieldparam err [StandardError] error object if request failed
|
31660
|
-
#
|
31661
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
31662
|
-
#
|
31663
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31664
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31665
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31666
|
-
def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31667
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
|
31668
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
31669
|
-
command.request_object = test_permissions_request_object
|
31670
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
31671
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
31672
|
-
command.params['project'] = project unless project.nil?
|
31673
|
-
command.params['region'] = region unless region.nil?
|
31674
|
-
command.params['resource'] = resource unless resource.nil?
|
31675
|
-
command.query['fields'] = fields unless fields.nil?
|
31676
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31677
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31678
|
-
execute_or_queue_command(command, &block)
|
31679
|
-
end
|
31680
|
-
|
31681
|
-
# Updates a HealthCheck resource in the specified project using the data
|
31682
|
-
# included in the request.
|
31683
|
-
# @param [String] project
|
31684
|
-
# Project ID for this request.
|
31685
|
-
# @param [String] region
|
31686
|
-
# Name of the region scoping this request.
|
31687
|
-
# @param [String] health_check
|
31688
|
-
# Name of the HealthCheck resource to update.
|
31689
|
-
# @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
|
31690
|
-
# @param [String] request_id
|
31691
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31692
|
-
# that if you must retry your request, the server will know to ignore the
|
31693
|
-
# request if it has already been completed. For example, consider a situation
|
31694
|
-
# where you make an initial request and the request times out. If you make the
|
31695
|
-
# request again with the same request ID, the server can check if original
|
31696
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31697
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31698
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31699
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31700
|
-
# @param [String] fields
|
31701
|
-
# Selector specifying which fields to include in a partial response.
|
31702
|
-
# @param [String] quota_user
|
31703
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31704
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31705
|
-
# @param [String] user_ip
|
31706
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31707
|
-
# @param [Google::Apis::RequestOptions] options
|
31708
|
-
# Request-specific options
|
31709
|
-
#
|
31710
|
-
# @yield [result, err] Result & error if block supplied
|
31711
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31712
|
-
# @yieldparam err [StandardError] error object if request failed
|
31713
|
-
#
|
31714
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31715
|
-
#
|
31716
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31717
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31718
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31719
|
-
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31720
|
-
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
31721
|
-
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
31722
|
-
command.request_object = health_check_object
|
31723
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31724
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31725
|
-
command.params['project'] = project unless project.nil?
|
31726
|
-
command.params['region'] = region unless region.nil?
|
31727
|
-
command.params['healthCheck'] = health_check unless health_check.nil?
|
31728
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31729
|
-
command.query['fields'] = fields unless fields.nil?
|
31730
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31731
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31732
|
-
execute_or_queue_command(command, &block)
|
31733
|
-
end
|
31734
|
-
|
31735
|
-
# Returns all of the details about the specified resize request.
|
31736
|
-
# @param [String] project
|
31737
|
-
# Project ID for this request.
|
31738
|
-
# @param [String] region
|
31739
|
-
# The name of the region scoping this request. Name should conform to RFC1035.
|
31740
|
-
# @param [String] instance_group_manager
|
31741
|
-
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
31742
|
-
# resource ID.
|
31743
|
-
# @param [String] resize_request
|
31744
|
-
# The name of the resize request. Name should conform to RFC1035 or be a
|
31745
|
-
# resource ID.
|
31746
|
-
# @param [String] fields
|
31747
|
-
# Selector specifying which fields to include in a partial response.
|
31748
|
-
# @param [String] quota_user
|
31749
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31750
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31751
|
-
# @param [String] user_ip
|
31752
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31753
|
-
# @param [Google::Apis::RequestOptions] options
|
31754
|
-
# Request-specific options
|
31755
|
-
#
|
31756
|
-
# @yield [result, err] Result & error if block supplied
|
31757
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] parsed result object
|
31758
|
-
# @yieldparam err [StandardError] error object if request failed
|
31759
|
-
#
|
31760
|
-
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest]
|
31761
|
-
#
|
31762
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31763
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31764
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31765
|
-
def get_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31766
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
31767
|
-
command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
|
31768
|
-
command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest
|
31769
|
-
command.params['project'] = project unless project.nil?
|
31770
|
-
command.params['region'] = region unless region.nil?
|
31771
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
31772
|
-
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
31773
|
-
command.query['fields'] = fields unless fields.nil?
|
31774
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31775
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31776
|
-
execute_or_queue_command(command, &block)
|
31777
|
-
end
|
31778
|
-
|
31779
|
-
# Creates a new Resize Request that starts provisioning VMs immediately or
|
31780
|
-
# queues VM creation.
|
31781
|
-
# @param [String] project
|
31782
|
-
# Project ID for this request.
|
31783
|
-
# @param [String] region
|
31784
|
-
# Name of the region scoping this request. Name should conform to RFC1035.
|
31785
|
-
# @param [String] instance_group_manager
|
31786
|
-
# Name of the managed instance group to which the resize request is scoped. Name
|
31787
|
-
# should conform to RFC1035 or be a resource ID.
|
31788
|
-
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
|
31789
|
-
# @param [String] request_id
|
31790
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31791
|
-
# that if you must retry your request, the server will know to ignore the
|
31792
|
-
# request if it has already been completed. For example, consider a situation
|
31793
|
-
# where you make an initial request and the request times out. If you make the
|
31794
|
-
# request again with the same request ID, the server can check if original
|
31795
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31796
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31797
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31798
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31799
|
-
# @param [String] fields
|
31800
|
-
# Selector specifying which fields to include in a partial response.
|
31801
|
-
# @param [String] quota_user
|
31802
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31803
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31804
|
-
# @param [String] user_ip
|
31805
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31806
|
-
# @param [Google::Apis::RequestOptions] options
|
31807
|
-
# Request-specific options
|
31808
|
-
#
|
31809
|
-
# @yield [result, err] Result & error if block supplied
|
31810
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31811
|
-
# @yieldparam err [StandardError] error object if request failed
|
31812
|
-
#
|
31813
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31814
|
-
#
|
31815
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31816
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31817
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31818
|
-
def insert_region_instance_group_manager_resize_request(project, region, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31819
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
31820
|
-
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
|
31821
|
-
command.request_object = instance_group_manager_resize_request_object
|
31822
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31823
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31824
|
-
command.params['project'] = project unless project.nil?
|
31825
|
-
command.params['region'] = region unless region.nil?
|
31826
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
31827
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31828
|
-
command.query['fields'] = fields unless fields.nil?
|
31829
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31830
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31831
|
-
execute_or_queue_command(command, &block)
|
31832
|
-
end
|
31833
|
-
|
31834
33555
|
# Flags the specified instances to be immediately removed from the managed
|
31835
33556
|
# instance group. Abandoning an instance does not delete the instance, but it
|
31836
33557
|
# does remove the instance from any target pools that are applied by the managed
|
@@ -34214,7 +35935,7 @@ module Google
|
|
34214
35935
|
# Project ID for this request.
|
34215
35936
|
# @param [String] region
|
34216
35937
|
# The name of the region for this request.
|
34217
|
-
# @param [String]
|
35938
|
+
# @param [String] instant_snapshot_group
|
34218
35939
|
# Name of the InstantSnapshotGroup resource to return.
|
34219
35940
|
# @param [String] fields
|
34220
35941
|
# Selector specifying which fields to include in a partial response.
|
@@ -34235,13 +35956,56 @@ module Google
|
|
34235
35956
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34236
35957
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34237
35958
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34238
|
-
def get_region_instant_snapshot_group(project, region,
|
34239
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshotGroups/{
|
35959
|
+
def get_region_instant_snapshot_group(project, region, instant_snapshot_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35960
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}', options)
|
34240
35961
|
command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotGroup::Representation
|
34241
35962
|
command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotGroup
|
34242
35963
|
command.params['project'] = project unless project.nil?
|
34243
35964
|
command.params['region'] = region unless region.nil?
|
34244
|
-
command.params['
|
35965
|
+
command.params['instantSnapshotGroup'] = instant_snapshot_group unless instant_snapshot_group.nil?
|
35966
|
+
command.query['fields'] = fields unless fields.nil?
|
35967
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35968
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35969
|
+
execute_or_queue_command(command, &block)
|
35970
|
+
end
|
35971
|
+
|
35972
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
35973
|
+
# or resource exists.
|
35974
|
+
# @param [String] project
|
35975
|
+
# Project ID for this request.
|
35976
|
+
# @param [String] region
|
35977
|
+
# The name of the region for this request.
|
35978
|
+
# @param [String] resource
|
35979
|
+
# Name or id of the resource for this request.
|
35980
|
+
# @param [Fixnum] options_requested_policy_version
|
35981
|
+
# Requested IAM Policy version.
|
35982
|
+
# @param [String] fields
|
35983
|
+
# Selector specifying which fields to include in a partial response.
|
35984
|
+
# @param [String] quota_user
|
35985
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35986
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35987
|
+
# @param [String] user_ip
|
35988
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35989
|
+
# @param [Google::Apis::RequestOptions] options
|
35990
|
+
# Request-specific options
|
35991
|
+
#
|
35992
|
+
# @yield [result, err] Result & error if block supplied
|
35993
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
35994
|
+
# @yieldparam err [StandardError] error object if request failed
|
35995
|
+
#
|
35996
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
35997
|
+
#
|
35998
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35999
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36000
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36001
|
+
def get_region_instant_snapshot_group_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36002
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy', options)
|
36003
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
36004
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
36005
|
+
command.params['project'] = project unless project.nil?
|
36006
|
+
command.params['region'] = region unless region.nil?
|
36007
|
+
command.params['resource'] = resource unless resource.nil?
|
36008
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
34245
36009
|
command.query['fields'] = fields unless fields.nil?
|
34246
36010
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34247
36011
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -34396,6 +36160,91 @@ module Google
|
|
34396
36160
|
execute_or_queue_command(command, &block)
|
34397
36161
|
end
|
34398
36162
|
|
36163
|
+
# Sets the access control policy on the specified resource. Replaces any
|
36164
|
+
# existing policy.
|
36165
|
+
# @param [String] project
|
36166
|
+
# Project ID for this request.
|
36167
|
+
# @param [String] region
|
36168
|
+
# The name of the region for this request.
|
36169
|
+
# @param [String] resource
|
36170
|
+
# Name or id of the resource for this request.
|
36171
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
36172
|
+
# @param [String] fields
|
36173
|
+
# Selector specifying which fields to include in a partial response.
|
36174
|
+
# @param [String] quota_user
|
36175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36177
|
+
# @param [String] user_ip
|
36178
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36179
|
+
# @param [Google::Apis::RequestOptions] options
|
36180
|
+
# Request-specific options
|
36181
|
+
#
|
36182
|
+
# @yield [result, err] Result & error if block supplied
|
36183
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
36184
|
+
# @yieldparam err [StandardError] error object if request failed
|
36185
|
+
#
|
36186
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
36187
|
+
#
|
36188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36191
|
+
def set_region_instant_snapshot_group_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36192
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy', options)
|
36193
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
36194
|
+
command.request_object = region_set_policy_request_object
|
36195
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
36196
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
36197
|
+
command.params['project'] = project unless project.nil?
|
36198
|
+
command.params['region'] = region unless region.nil?
|
36199
|
+
command.params['resource'] = resource unless resource.nil?
|
36200
|
+
command.query['fields'] = fields unless fields.nil?
|
36201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36202
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36203
|
+
execute_or_queue_command(command, &block)
|
36204
|
+
end
|
36205
|
+
|
36206
|
+
# Returns permissions that a caller has on the specified resource.
|
36207
|
+
# @param [String] project
|
36208
|
+
# Project ID for this request.
|
36209
|
+
# @param [String] region
|
36210
|
+
# The name of the region for this request.
|
36211
|
+
# @param [String] resource
|
36212
|
+
# Name or id of the resource for this request.
|
36213
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
36214
|
+
# @param [String] fields
|
36215
|
+
# Selector specifying which fields to include in a partial response.
|
36216
|
+
# @param [String] quota_user
|
36217
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36218
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36219
|
+
# @param [String] user_ip
|
36220
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36221
|
+
# @param [Google::Apis::RequestOptions] options
|
36222
|
+
# Request-specific options
|
36223
|
+
#
|
36224
|
+
# @yield [result, err] Result & error if block supplied
|
36225
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
36226
|
+
# @yieldparam err [StandardError] error object if request failed
|
36227
|
+
#
|
36228
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
36229
|
+
#
|
36230
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36231
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36232
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36233
|
+
def test_region_instant_snapshot_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36234
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions', options)
|
36235
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
36236
|
+
command.request_object = test_permissions_request_object
|
36237
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
36238
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
36239
|
+
command.params['project'] = project unless project.nil?
|
36240
|
+
command.params['region'] = region unless region.nil?
|
36241
|
+
command.params['resource'] = resource unless resource.nil?
|
36242
|
+
command.query['fields'] = fields unless fields.nil?
|
36243
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36244
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36245
|
+
execute_or_queue_command(command, &block)
|
36246
|
+
end
|
36247
|
+
|
34399
36248
|
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
|
34400
36249
|
# single instantSnapshot might not necessarily delete all the data on that
|
34401
36250
|
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
@@ -34817,13 +36666,13 @@ module Google
|
|
34817
36666
|
execute_or_queue_command(command, &block)
|
34818
36667
|
end
|
34819
36668
|
|
34820
|
-
# Deletes a
|
36669
|
+
# Deletes a multi-MIG in the specified project.
|
34821
36670
|
# @param [String] project
|
34822
36671
|
# Project ID for this request.
|
34823
36672
|
# @param [String] region
|
34824
36673
|
# Name of the region for this request.
|
34825
36674
|
# @param [String] multi_mig
|
34826
|
-
# Name of the
|
36675
|
+
# Name of the multi-MIG to delete.
|
34827
36676
|
# @param [String] request_id
|
34828
36677
|
# An optional request ID to identify requests. Specify a unique request ID so
|
34829
36678
|
# that if you must retry your request, the server will know to ignore the
|
@@ -34867,13 +36716,13 @@ module Google
|
|
34867
36716
|
execute_or_queue_command(command, &block)
|
34868
36717
|
end
|
34869
36718
|
|
34870
|
-
# Returns the
|
36719
|
+
# Returns all the details of a specific multi-MIG.
|
34871
36720
|
# @param [String] project
|
34872
36721
|
# Project ID for this request.
|
34873
36722
|
# @param [String] region
|
34874
36723
|
# Name of the region for this request.
|
34875
36724
|
# @param [String] multi_mig
|
34876
|
-
# Name of the
|
36725
|
+
# Name of the multi-MIG resource to return.
|
34877
36726
|
# @param [String] fields
|
34878
36727
|
# Selector specifying which fields to include in a partial response.
|
34879
36728
|
# @param [String] quota_user
|
@@ -34906,7 +36755,7 @@ module Google
|
|
34906
36755
|
execute_or_queue_command(command, &block)
|
34907
36756
|
end
|
34908
36757
|
|
34909
|
-
# Creates a
|
36758
|
+
# Creates a multi-MIG in the specified project.
|
34910
36759
|
# @param [String] project
|
34911
36760
|
# Project ID for this request.
|
34912
36761
|
# @param [String] region
|
@@ -34919,7 +36768,7 @@ module Google
|
|
34919
36768
|
# where you make an initial request and the request times out. If you make the
|
34920
36769
|
# request again with the same request ID, the server can check if original
|
34921
36770
|
# operation with the same request ID was received, and if so, will ignore the
|
34922
|
-
# second request. This prevents
|
36771
|
+
# second request. This prevents you from accidentally creating duplicate
|
34923
36772
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
34924
36773
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34925
36774
|
# @param [String] fields
|
@@ -34956,7 +36805,7 @@ module Google
|
|
34956
36805
|
execute_or_queue_command(command, &block)
|
34957
36806
|
end
|
34958
36807
|
|
34959
|
-
# Retrieves a list of
|
36808
|
+
# Retrieves a list of multi-MIGs in a project and region.
|
34960
36809
|
# @param [String] project
|
34961
36810
|
# Project ID for this request.
|
34962
36811
|
# @param [String] region
|
@@ -36817,7 +38666,7 @@ module Google
|
|
36817
38666
|
# @param [String] region
|
36818
38667
|
# Name of the region for this request.
|
36819
38668
|
# @param [String] operation
|
36820
|
-
# Name of the Operations resource to delete.
|
38669
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
36821
38670
|
# @param [String] fields
|
36822
38671
|
# Selector specifying which fields to include in a partial response.
|
36823
38672
|
# @param [String] quota_user
|
@@ -36854,7 +38703,7 @@ module Google
|
|
36854
38703
|
# @param [String] region
|
36855
38704
|
# Name of the region for this request.
|
36856
38705
|
# @param [String] operation
|
36857
|
-
# Name of the Operations resource to return.
|
38706
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
36858
38707
|
# @param [String] fields
|
36859
38708
|
# Selector specifying which fields to include in a partial response.
|
36860
38709
|
# @param [String] quota_user
|
@@ -36996,7 +38845,7 @@ module Google
|
|
36996
38845
|
# @param [String] region
|
36997
38846
|
# Name of the region for this request.
|
36998
38847
|
# @param [String] operation
|
36999
|
-
# Name of the Operations resource to return.
|
38848
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
37000
38849
|
# @param [String] fields
|
37001
38850
|
# Selector specifying which fields to include in a partial response.
|
37002
38851
|
# @param [String] quota_user
|
@@ -40283,20 +42132,172 @@ module Google
|
|
40283
42132
|
# Request-specific options
|
40284
42133
|
#
|
40285
42134
|
# @yield [result, err] Result & error if block supplied
|
40286
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::ZoneList] parsed result object
|
42135
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ZoneList] parsed result object
|
42136
|
+
# @yieldparam err [StandardError] error object if request failed
|
42137
|
+
#
|
42138
|
+
# @return [Google::Apis::ComputeAlpha::ZoneList]
|
42139
|
+
#
|
42140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42143
|
+
def list_region_zones(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)
|
42144
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/zones', options)
|
42145
|
+
command.response_representation = Google::Apis::ComputeAlpha::ZoneList::Representation
|
42146
|
+
command.response_class = Google::Apis::ComputeAlpha::ZoneList
|
42147
|
+
command.params['project'] = project unless project.nil?
|
42148
|
+
command.params['region'] = region unless region.nil?
|
42149
|
+
command.query['filter'] = filter unless filter.nil?
|
42150
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
42151
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
42152
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
42153
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
42154
|
+
command.query['fields'] = fields unless fields.nil?
|
42155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42156
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42157
|
+
execute_or_queue_command(command, &block)
|
42158
|
+
end
|
42159
|
+
|
42160
|
+
# Returns the specified Region resource. To decrease latency for this method,
|
42161
|
+
# you can optionally omit any unneeded information from the response by using a
|
42162
|
+
# field mask. This practice is especially recommended for unused quota
|
42163
|
+
# information (the `quotas` field). To exclude one or more fields, set your
|
42164
|
+
# request's `fields` query parameter to only include the fields you need. For
|
42165
|
+
# example, to only include the `id` and `selfLink` fields, add the query
|
42166
|
+
# parameter `?fields=id,selfLink` to your request. This method fails if the
|
42167
|
+
# quota information is unavailable for the region and if the organization policy
|
42168
|
+
# constraint compute.requireBasicQuotaInResponse is enforced. This constraint,
|
42169
|
+
# when enforced, disables the fail-open behaviour when quota information (the `
|
42170
|
+
# items.quotas` field) is unavailable for the region. It is recommended to use
|
42171
|
+
# the default setting for the constraint unless your application requires the
|
42172
|
+
# fail-closed behaviour for this method.
|
42173
|
+
# @param [String] project
|
42174
|
+
# Project ID for this request.
|
42175
|
+
# @param [String] region
|
42176
|
+
# Name of the region resource to return.
|
42177
|
+
# @param [String] fields
|
42178
|
+
# Selector specifying which fields to include in a partial response.
|
42179
|
+
# @param [String] quota_user
|
42180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42182
|
+
# @param [String] user_ip
|
42183
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42184
|
+
# @param [Google::Apis::RequestOptions] options
|
42185
|
+
# Request-specific options
|
42186
|
+
#
|
42187
|
+
# @yield [result, err] Result & error if block supplied
|
42188
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Region] parsed result object
|
42189
|
+
# @yieldparam err [StandardError] error object if request failed
|
42190
|
+
#
|
42191
|
+
# @return [Google::Apis::ComputeAlpha::Region]
|
42192
|
+
#
|
42193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42196
|
+
def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42197
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}', options)
|
42198
|
+
command.response_representation = Google::Apis::ComputeAlpha::Region::Representation
|
42199
|
+
command.response_class = Google::Apis::ComputeAlpha::Region
|
42200
|
+
command.params['project'] = project unless project.nil?
|
42201
|
+
command.params['region'] = region unless region.nil?
|
42202
|
+
command.query['fields'] = fields unless fields.nil?
|
42203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42204
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42205
|
+
execute_or_queue_command(command, &block)
|
42206
|
+
end
|
42207
|
+
|
42208
|
+
# Retrieves the list of region resources available to the specified project. To
|
42209
|
+
# decrease latency for this method, you can optionally omit any unneeded
|
42210
|
+
# information from the response by using a field mask. This practice is
|
42211
|
+
# especially recommended for unused quota information (the `items.quotas` field).
|
42212
|
+
# To exclude one or more fields, set your request's `fields` query parameter to
|
42213
|
+
# only include the fields you need. For example, to only include the `id` and `
|
42214
|
+
# selfLink` fields, add the query parameter `?fields=id,selfLink` to your
|
42215
|
+
# request. This method fails if the quota information is unavailable for the
|
42216
|
+
# region and if the organization policy constraint compute.
|
42217
|
+
# requireBasicQuotaInResponse is enforced. This constraint, when enforced,
|
42218
|
+
# disables the fail-open behaviour when quota information (the `items.quotas`
|
42219
|
+
# field) is unavailable for the region. It is recommended to use the default
|
42220
|
+
# setting for the constraint unless your application requires the fail-closed
|
42221
|
+
# behaviour for this method.
|
42222
|
+
# @param [String] project
|
42223
|
+
# Project ID for this request.
|
42224
|
+
# @param [String] filter
|
42225
|
+
# A filter expression that filters resources listed in the response. Most
|
42226
|
+
# Compute resources support two types of filter expressions: expressions that
|
42227
|
+
# support regular expressions and expressions that follow API improvement
|
42228
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
42229
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
42230
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
42231
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
42232
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
42233
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
42234
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
42235
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
42236
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
42237
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
42238
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
42239
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
42240
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
42241
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
42242
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
42243
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
42244
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
42245
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
42246
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
42247
|
+
# un-parenthesized expression with or without quotes or against multiple
|
42248
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
42249
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
42250
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
42251
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
42252
|
+
# literal value must match the entire field. For example, to filter for
|
42253
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
42254
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
42255
|
+
# expressions.
|
42256
|
+
# @param [Fixnum] max_results
|
42257
|
+
# The maximum number of results per page that should be returned. If the number
|
42258
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
42259
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
42260
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
42261
|
+
# @param [String] order_by
|
42262
|
+
# Sorts list results by a certain order. By default, results are returned in
|
42263
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
42264
|
+
# descending order based on the creation timestamp using `orderBy="
|
42265
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
42266
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
42267
|
+
# resources like operations so that the newest operation is returned first.
|
42268
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
42269
|
+
# @param [String] page_token
|
42270
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
42271
|
+
# by a previous list request to get the next page of results.
|
42272
|
+
# @param [Boolean] return_partial_success
|
42273
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
42274
|
+
# failure. The default value is false. For example, when partial success
|
42275
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
42276
|
+
# resources in the zone or no resources, with an error code.
|
42277
|
+
# @param [String] fields
|
42278
|
+
# Selector specifying which fields to include in a partial response.
|
42279
|
+
# @param [String] quota_user
|
42280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42282
|
+
# @param [String] user_ip
|
42283
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42284
|
+
# @param [Google::Apis::RequestOptions] options
|
42285
|
+
# Request-specific options
|
42286
|
+
#
|
42287
|
+
# @yield [result, err] Result & error if block supplied
|
42288
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionList] parsed result object
|
40287
42289
|
# @yieldparam err [StandardError] error object if request failed
|
40288
42290
|
#
|
40289
|
-
# @return [Google::Apis::ComputeAlpha::
|
42291
|
+
# @return [Google::Apis::ComputeAlpha::RegionList]
|
40290
42292
|
#
|
40291
42293
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40292
42294
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40293
42295
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40294
|
-
def
|
40295
|
-
command = make_simple_command(:get, 'projects/{project}/regions
|
40296
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
40297
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
42296
|
+
def list_regions(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)
|
42297
|
+
command = make_simple_command(:get, 'projects/{project}/regions', options)
|
42298
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionList::Representation
|
42299
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionList
|
40298
42300
|
command.params['project'] = project unless project.nil?
|
40299
|
-
command.params['region'] = region unless region.nil?
|
40300
42301
|
command.query['filter'] = filter unless filter.nil?
|
40301
42302
|
command.query['maxResults'] = max_results unless max_results.nil?
|
40302
42303
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -40308,23 +42309,17 @@ module Google
|
|
40308
42309
|
execute_or_queue_command(command, &block)
|
40309
42310
|
end
|
40310
42311
|
|
40311
|
-
#
|
40312
|
-
# you can optionally omit any unneeded information from the response by using a
|
40313
|
-
# field mask. This practice is especially recommended for unused quota
|
40314
|
-
# information (the `quotas` field). To exclude one or more fields, set your
|
40315
|
-
# request's `fields` query parameter to only include the fields you need. For
|
40316
|
-
# example, to only include the `id` and `selfLink` fields, add the query
|
40317
|
-
# parameter `?fields=id,selfLink` to your request. This method fails if the
|
40318
|
-
# quota information is unavailable for the region and if the organization policy
|
40319
|
-
# constraint compute.requireBasicQuotaInResponse is enforced. This constraint,
|
40320
|
-
# when enforced, disables the fail-open behaviour when quota information (the `
|
40321
|
-
# items.quotas` field) is unavailable for the region. It is recommended to use
|
40322
|
-
# the default setting for the constraint unless your application requires the
|
40323
|
-
# fail-closed behaviour for this method.
|
42312
|
+
# Retrieves information about the specified reservation block.
|
40324
42313
|
# @param [String] project
|
40325
42314
|
# Project ID for this request.
|
40326
|
-
# @param [String]
|
40327
|
-
# Name of the
|
42315
|
+
# @param [String] zone
|
42316
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
42317
|
+
# @param [String] reservation
|
42318
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
42319
|
+
# ID.
|
42320
|
+
# @param [String] reservation_block
|
42321
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
42322
|
+
# resource ID.
|
40328
42323
|
# @param [String] fields
|
40329
42324
|
# Selector specifying which fields to include in a partial response.
|
40330
42325
|
# @param [String] quota_user
|
@@ -40336,42 +42331,36 @@ module Google
|
|
40336
42331
|
# Request-specific options
|
40337
42332
|
#
|
40338
42333
|
# @yield [result, err] Result & error if block supplied
|
40339
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
42334
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationBlocksGetResponse] parsed result object
|
40340
42335
|
# @yieldparam err [StandardError] error object if request failed
|
40341
42336
|
#
|
40342
|
-
# @return [Google::Apis::ComputeAlpha::
|
42337
|
+
# @return [Google::Apis::ComputeAlpha::ReservationBlocksGetResponse]
|
40343
42338
|
#
|
40344
42339
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40345
42340
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40346
42341
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40347
|
-
def
|
40348
|
-
command = make_simple_command(:get, 'projects/{project}/
|
40349
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
40350
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
42342
|
+
def get_reservation_block(project, zone, reservation, reservation_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42343
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
|
42344
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationBlocksGetResponse::Representation
|
42345
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationBlocksGetResponse
|
40351
42346
|
command.params['project'] = project unless project.nil?
|
40352
|
-
command.params['
|
42347
|
+
command.params['zone'] = zone unless zone.nil?
|
42348
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
42349
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
40353
42350
|
command.query['fields'] = fields unless fields.nil?
|
40354
42351
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
40355
42352
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
40356
42353
|
execute_or_queue_command(command, &block)
|
40357
42354
|
end
|
40358
42355
|
|
40359
|
-
# Retrieves
|
40360
|
-
# decrease latency for this method, you can optionally omit any unneeded
|
40361
|
-
# information from the response by using a field mask. This practice is
|
40362
|
-
# especially recommended for unused quota information (the `items.quotas` field).
|
40363
|
-
# To exclude one or more fields, set your request's `fields` query parameter to
|
40364
|
-
# only include the fields you need. For example, to only include the `id` and `
|
40365
|
-
# selfLink` fields, add the query parameter `?fields=id,selfLink` to your
|
40366
|
-
# request. This method fails if the quota information is unavailable for the
|
40367
|
-
# region and if the organization policy constraint compute.
|
40368
|
-
# requireBasicQuotaInResponse is enforced. This constraint, when enforced,
|
40369
|
-
# disables the fail-open behaviour when quota information (the `items.quotas`
|
40370
|
-
# field) is unavailable for the region. It is recommended to use the default
|
40371
|
-
# setting for the constraint unless your application requires the fail-closed
|
40372
|
-
# behaviour for this method.
|
42356
|
+
# Retrieves a list of reservation blocks under a single reservation.
|
40373
42357
|
# @param [String] project
|
40374
42358
|
# Project ID for this request.
|
42359
|
+
# @param [String] zone
|
42360
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
42361
|
+
# @param [String] reservation
|
42362
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
42363
|
+
# ID.
|
40375
42364
|
# @param [String] filter
|
40376
42365
|
# A filter expression that filters resources listed in the response. Most
|
40377
42366
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -40436,19 +42425,21 @@ module Google
|
|
40436
42425
|
# Request-specific options
|
40437
42426
|
#
|
40438
42427
|
# @yield [result, err] Result & error if block supplied
|
40439
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
42428
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationBlocksListResponse] parsed result object
|
40440
42429
|
# @yieldparam err [StandardError] error object if request failed
|
40441
42430
|
#
|
40442
|
-
# @return [Google::Apis::ComputeAlpha::
|
42431
|
+
# @return [Google::Apis::ComputeAlpha::ReservationBlocksListResponse]
|
40443
42432
|
#
|
40444
42433
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40445
42434
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40446
42435
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40447
|
-
def
|
40448
|
-
command = make_simple_command(:get, 'projects/{project}/
|
40449
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
40450
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
42436
|
+
def list_reservation_blocks(project, zone, reservation, 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)
|
42437
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks', options)
|
42438
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationBlocksListResponse::Representation
|
42439
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationBlocksListResponse
|
40451
42440
|
command.params['project'] = project unless project.nil?
|
42441
|
+
command.params['zone'] = zone unless zone.nil?
|
42442
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
40452
42443
|
command.query['filter'] = filter unless filter.nil?
|
40453
42444
|
command.query['maxResults'] = max_results unless max_results.nil?
|
40454
42445
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -53139,13 +55130,313 @@ module Google
|
|
53139
55130
|
execute_or_queue_command(command, &block)
|
53140
55131
|
end
|
53141
55132
|
|
55133
|
+
# Deletes the specified wire group in the given scope.
|
55134
|
+
# @param [String] project
|
55135
|
+
# Project ID for this request.
|
55136
|
+
# @param [String] cross_site_network
|
55137
|
+
# @param [String] wire_group
|
55138
|
+
# Name of the wire group resource to delete.
|
55139
|
+
# @param [String] request_id
|
55140
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
55141
|
+
# that if you must retry your request, the server will know to ignore the
|
55142
|
+
# request if it has already been completed. For example, consider a situation
|
55143
|
+
# where you make an initial request and the request times out. If you make the
|
55144
|
+
# request again with the same request ID, the server can check if original
|
55145
|
+
# operation with the same request ID was received, and if so, will ignore the
|
55146
|
+
# second request. This prevents clients from accidentally creating duplicate
|
55147
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
55148
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
55149
|
+
# MixerMutationRequestBuilder
|
55150
|
+
# @param [String] fields
|
55151
|
+
# Selector specifying which fields to include in a partial response.
|
55152
|
+
# @param [String] quota_user
|
55153
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
55154
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55155
|
+
# @param [String] user_ip
|
55156
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
55157
|
+
# @param [Google::Apis::RequestOptions] options
|
55158
|
+
# Request-specific options
|
55159
|
+
#
|
55160
|
+
# @yield [result, err] Result & error if block supplied
|
55161
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
55162
|
+
# @yieldparam err [StandardError] error object if request failed
|
55163
|
+
#
|
55164
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
55165
|
+
#
|
55166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
55167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
55168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
55169
|
+
def delete_wire_group(project, cross_site_network, wire_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
55170
|
+
command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
55171
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
55172
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
55173
|
+
command.params['project'] = project unless project.nil?
|
55174
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
55175
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
55176
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
55177
|
+
command.query['fields'] = fields unless fields.nil?
|
55178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
55179
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
55180
|
+
execute_or_queue_command(command, &block)
|
55181
|
+
end
|
55182
|
+
|
55183
|
+
# Gets the specified wire group resource in the given scope.
|
55184
|
+
# @param [String] project
|
55185
|
+
# Project ID for this request.
|
55186
|
+
# @param [String] cross_site_network
|
55187
|
+
# @param [String] wire_group
|
55188
|
+
# Name of the wire group resource to return.
|
55189
|
+
# @param [String] fields
|
55190
|
+
# Selector specifying which fields to include in a partial response.
|
55191
|
+
# @param [String] quota_user
|
55192
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
55193
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55194
|
+
# @param [String] user_ip
|
55195
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
55196
|
+
# @param [Google::Apis::RequestOptions] options
|
55197
|
+
# Request-specific options
|
55198
|
+
#
|
55199
|
+
# @yield [result, err] Result & error if block supplied
|
55200
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::WireGroup] parsed result object
|
55201
|
+
# @yieldparam err [StandardError] error object if request failed
|
55202
|
+
#
|
55203
|
+
# @return [Google::Apis::ComputeAlpha::WireGroup]
|
55204
|
+
#
|
55205
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
55206
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
55207
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
55208
|
+
def get_wire_group(project, cross_site_network, wire_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
55209
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
55210
|
+
command.response_representation = Google::Apis::ComputeAlpha::WireGroup::Representation
|
55211
|
+
command.response_class = Google::Apis::ComputeAlpha::WireGroup
|
55212
|
+
command.params['project'] = project unless project.nil?
|
55213
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
55214
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
55215
|
+
command.query['fields'] = fields unless fields.nil?
|
55216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
55217
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
55218
|
+
execute_or_queue_command(command, &block)
|
55219
|
+
end
|
55220
|
+
|
55221
|
+
# Creates a wire group in the specified project in the given scope using the
|
55222
|
+
# parameters that are included in the request.
|
55223
|
+
# @param [String] project
|
55224
|
+
# Project ID for this request.
|
55225
|
+
# @param [String] cross_site_network
|
55226
|
+
# @param [Google::Apis::ComputeAlpha::WireGroup] wire_group_object
|
55227
|
+
# @param [String] request_id
|
55228
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
55229
|
+
# that if you must retry your request, the server will know to ignore the
|
55230
|
+
# request if it has already been completed. For example, consider a situation
|
55231
|
+
# where you make an initial request and the request times out. If you make the
|
55232
|
+
# request again with the same request ID, the server can check if original
|
55233
|
+
# operation with the same request ID was received, and if so, will ignore the
|
55234
|
+
# second request. This prevents clients from accidentally creating duplicate
|
55235
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
55236
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
55237
|
+
# MixerMutationRequestBuilder
|
55238
|
+
# @param [Boolean] validate_only
|
55239
|
+
# [Input Only] Validate the new configuration, but don't create it. If
|
55240
|
+
# applicable, any configuration notices are returned in the `
|
55241
|
+
# configurationNotices` field.
|
55242
|
+
# @param [String] fields
|
55243
|
+
# Selector specifying which fields to include in a partial response.
|
55244
|
+
# @param [String] quota_user
|
55245
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
55246
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55247
|
+
# @param [String] user_ip
|
55248
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
55249
|
+
# @param [Google::Apis::RequestOptions] options
|
55250
|
+
# Request-specific options
|
55251
|
+
#
|
55252
|
+
# @yield [result, err] Result & error if block supplied
|
55253
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
55254
|
+
# @yieldparam err [StandardError] error object if request failed
|
55255
|
+
#
|
55256
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
55257
|
+
#
|
55258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
55259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
55260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
55261
|
+
def insert_wire_group(project, cross_site_network, wire_group_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
55262
|
+
command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
|
55263
|
+
command.request_representation = Google::Apis::ComputeAlpha::WireGroup::Representation
|
55264
|
+
command.request_object = wire_group_object
|
55265
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
55266
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
55267
|
+
command.params['project'] = project unless project.nil?
|
55268
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
55269
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
55270
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
55271
|
+
command.query['fields'] = fields unless fields.nil?
|
55272
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
55273
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
55274
|
+
execute_or_queue_command(command, &block)
|
55275
|
+
end
|
55276
|
+
|
55277
|
+
# Lists the wire groups for a project in the given scope.
|
55278
|
+
# @param [String] project
|
55279
|
+
# Project ID for this request.
|
55280
|
+
# @param [String] cross_site_network
|
55281
|
+
# @param [String] filter
|
55282
|
+
# A filter expression that filters resources listed in the response. Most
|
55283
|
+
# Compute resources support two types of filter expressions: expressions that
|
55284
|
+
# support regular expressions and expressions that follow API improvement
|
55285
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
55286
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
55287
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
55288
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
55289
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
55290
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
55291
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
55292
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
55293
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
55294
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
55295
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
55296
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
55297
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
55298
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
55299
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
55300
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
55301
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
55302
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
55303
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
55304
|
+
# un-parenthesized expression with or without quotes or against multiple
|
55305
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
55306
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
55307
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
55308
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
55309
|
+
# literal value must match the entire field. For example, to filter for
|
55310
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
55311
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
55312
|
+
# expressions.
|
55313
|
+
# @param [Fixnum] max_results
|
55314
|
+
# The maximum number of results per page that should be returned. If the number
|
55315
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
55316
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
55317
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
55318
|
+
# @param [String] order_by
|
55319
|
+
# Sorts list results by a certain order. By default, results are returned in
|
55320
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
55321
|
+
# descending order based on the creation timestamp using `orderBy="
|
55322
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
55323
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
55324
|
+
# resources like operations so that the newest operation is returned first.
|
55325
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
55326
|
+
# @param [String] page_token
|
55327
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
55328
|
+
# by a previous list request to get the next page of results.
|
55329
|
+
# @param [Boolean] return_partial_success
|
55330
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
55331
|
+
# failure. The default value is false. For example, when partial success
|
55332
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
55333
|
+
# resources in the zone or no resources, with an error code.
|
55334
|
+
# @param [String] fields
|
55335
|
+
# Selector specifying which fields to include in a partial response.
|
55336
|
+
# @param [String] quota_user
|
55337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
55338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55339
|
+
# @param [String] user_ip
|
55340
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
55341
|
+
# @param [Google::Apis::RequestOptions] options
|
55342
|
+
# Request-specific options
|
55343
|
+
#
|
55344
|
+
# @yield [result, err] Result & error if block supplied
|
55345
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::WireGroupList] parsed result object
|
55346
|
+
# @yieldparam err [StandardError] error object if request failed
|
55347
|
+
#
|
55348
|
+
# @return [Google::Apis::ComputeAlpha::WireGroupList]
|
55349
|
+
#
|
55350
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
55351
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
55352
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
55353
|
+
def list_wire_groups(project, cross_site_network, 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)
|
55354
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
|
55355
|
+
command.response_representation = Google::Apis::ComputeAlpha::WireGroupList::Representation
|
55356
|
+
command.response_class = Google::Apis::ComputeAlpha::WireGroupList
|
55357
|
+
command.params['project'] = project unless project.nil?
|
55358
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
55359
|
+
command.query['filter'] = filter unless filter.nil?
|
55360
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
55361
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
55362
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
55363
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
55364
|
+
command.query['fields'] = fields unless fields.nil?
|
55365
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
55366
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
55367
|
+
execute_or_queue_command(command, &block)
|
55368
|
+
end
|
55369
|
+
|
55370
|
+
# Updates the specified wire group resource with the data included in the
|
55371
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
55372
|
+
# and processing rules.
|
55373
|
+
# @param [String] project
|
55374
|
+
# Project ID for this request.
|
55375
|
+
# @param [String] cross_site_network
|
55376
|
+
# @param [String] wire_group
|
55377
|
+
# Name of the WireGroups resource to patch.
|
55378
|
+
# @param [Google::Apis::ComputeAlpha::WireGroup] wire_group_object
|
55379
|
+
# @param [String] request_id
|
55380
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
55381
|
+
# that if you must retry your request, the server will know to ignore the
|
55382
|
+
# request if it has already been completed. For example, consider a situation
|
55383
|
+
# where you make an initial request and the request times out. If you make the
|
55384
|
+
# request again with the same request ID, the server can check if original
|
55385
|
+
# operation with the same request ID was received, and if so, will ignore the
|
55386
|
+
# second request. This prevents clients from accidentally creating duplicate
|
55387
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
55388
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
55389
|
+
# MixerMutationRequestBuilder
|
55390
|
+
# @param [String] update_mask
|
55391
|
+
# update_mask indicates fields to be updated as part of this request.
|
55392
|
+
# @param [Boolean] validate_only
|
55393
|
+
# [Input Only] Validate the new configuration, but don't update it. If
|
55394
|
+
# applicable, any configuration notices are returned in the `
|
55395
|
+
# configurationNotices` field.
|
55396
|
+
# @param [String] fields
|
55397
|
+
# Selector specifying which fields to include in a partial response.
|
55398
|
+
# @param [String] quota_user
|
55399
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
55400
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55401
|
+
# @param [String] user_ip
|
55402
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
55403
|
+
# @param [Google::Apis::RequestOptions] options
|
55404
|
+
# Request-specific options
|
55405
|
+
#
|
55406
|
+
# @yield [result, err] Result & error if block supplied
|
55407
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
55408
|
+
# @yieldparam err [StandardError] error object if request failed
|
55409
|
+
#
|
55410
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
55411
|
+
#
|
55412
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
55413
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
55414
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
55415
|
+
def patch_wire_group(project, cross_site_network, wire_group, wire_group_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
55416
|
+
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
55417
|
+
command.request_representation = Google::Apis::ComputeAlpha::WireGroup::Representation
|
55418
|
+
command.request_object = wire_group_object
|
55419
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
55420
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
55421
|
+
command.params['project'] = project unless project.nil?
|
55422
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
55423
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
55424
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
55425
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
55426
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
55427
|
+
command.query['fields'] = fields unless fields.nil?
|
55428
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
55429
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
55430
|
+
execute_or_queue_command(command, &block)
|
55431
|
+
end
|
55432
|
+
|
53142
55433
|
# Deletes the specified zone-specific Operations resource.
|
53143
55434
|
# @param [String] project
|
53144
55435
|
# Project ID for this request.
|
53145
55436
|
# @param [String] zone
|
53146
55437
|
# Name of the zone for this request.
|
53147
55438
|
# @param [String] operation
|
53148
|
-
# Name of the Operations resource to delete.
|
55439
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
53149
55440
|
# @param [String] fields
|
53150
55441
|
# Selector specifying which fields to include in a partial response.
|
53151
55442
|
# @param [String] quota_user
|
@@ -53182,7 +55473,7 @@ module Google
|
|
53182
55473
|
# @param [String] zone
|
53183
55474
|
# Name of the zone for this request.
|
53184
55475
|
# @param [String] operation
|
53185
|
-
# Name of the Operations resource to return.
|
55476
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
53186
55477
|
# @param [String] fields
|
53187
55478
|
# Selector specifying which fields to include in a partial response.
|
53188
55479
|
# @param [String] quota_user
|
@@ -53324,7 +55615,7 @@ module Google
|
|
53324
55615
|
# @param [String] zone
|
53325
55616
|
# Name of the zone for this request.
|
53326
55617
|
# @param [String] operation
|
53327
|
-
# Name of the Operations resource to return.
|
55618
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
53328
55619
|
# @param [String] fields
|
53329
55620
|
# Selector specifying which fields to include in a partial response.
|
53330
55621
|
# @param [String] quota_user
|