google-apis-compute_beta 0.109.0 → 0.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -780,6 +780,47 @@ module Google
780
780
  execute_or_queue_command(command, &block)
781
781
  end
782
782
 
783
+ # Advise how, where and when to create the requested amount of instances with
784
+ # specified accelerators, within the specified time and location limits. The
785
+ # method recommends creating future reservations for the requested resources.
786
+ # @param [String] project
787
+ # Project ID for this request.
788
+ # @param [String] region
789
+ # Name of the region for this request.
790
+ # @param [Google::Apis::ComputeBeta::CalendarModeAdviceRequest] calendar_mode_advice_request_object
791
+ # @param [String] fields
792
+ # Selector specifying which fields to include in a partial response.
793
+ # @param [String] quota_user
794
+ # Available to use for quota purposes for server-side applications. Can be any
795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
796
+ # @param [String] user_ip
797
+ # Legacy name for parameter that has been superseded by `quotaUser`.
798
+ # @param [Google::Apis::RequestOptions] options
799
+ # Request-specific options
800
+ #
801
+ # @yield [result, err] Result & error if block supplied
802
+ # @yieldparam result [Google::Apis::ComputeBeta::CalendarModeAdviceResponse] parsed result object
803
+ # @yieldparam err [StandardError] error object if request failed
804
+ #
805
+ # @return [Google::Apis::ComputeBeta::CalendarModeAdviceResponse]
806
+ #
807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
810
+ def calendar_mode_advice(project, region, calendar_mode_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
811
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarMode', options)
812
+ command.request_representation = Google::Apis::ComputeBeta::CalendarModeAdviceRequest::Representation
813
+ command.request_object = calendar_mode_advice_request_object
814
+ command.response_representation = Google::Apis::ComputeBeta::CalendarModeAdviceResponse::Representation
815
+ command.response_class = Google::Apis::ComputeBeta::CalendarModeAdviceResponse
816
+ command.params['project'] = project unless project.nil?
817
+ command.params['region'] = region unless region.nil?
818
+ command.query['fields'] = fields unless fields.nil?
819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
820
+ command.query['userIp'] = user_ip unless user_ip.nil?
821
+ execute_or_queue_command(command, &block)
822
+ end
823
+
783
824
  # Retrieves an aggregated list of autoscalers. To prevent failure, Google
784
825
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
785
826
  # @param [String] project
@@ -2791,117 +2832,22 @@ module Google
2791
2832
  execute_or_queue_command(command, &block)
2792
2833
  end
2793
2834
 
2794
- # Retrieves an aggregated list of disk types. To prevent failure, Google
2795
- # recommends that you set the `returnPartialSuccess` parameter to `true`.
2796
- # @param [String] project
2797
- # Project ID for this request.
2798
- # @param [String] filter
2799
- # A filter expression that filters resources listed in the response. Most
2800
- # Compute resources support two types of filter expressions: expressions that
2801
- # support regular expressions and expressions that follow API improvement
2802
- # proposal AIP-160. These two types of filter expressions cannot be mixed in one
2803
- # request. If you want to use AIP-160, your expression must specify the field
2804
- # name, an operator, and the value that you want to use for filtering. The value
2805
- # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
2806
- # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
2807
- # Engine instances, you can exclude instances named `example-instance` by
2808
- # specifying `name != example-instance`. The `:*` comparison can be used to test
2809
- # whether a key has been defined. For example, to find all objects with `owner`
2810
- # label use: ``` labels.owner:* ``` You can also filter nested fields. For
2811
- # example, you could specify `scheduling.automaticRestart = false` to include
2812
- # instances only if they are not scheduled for automatic restarts. You can use
2813
- # filtering on nested fields to filter based on resource labels. To filter on
2814
- # multiple expressions, provide each separate expression within parentheses. For
2815
- # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
2816
- # Skylake") ``` By default, each expression is an `AND` expression. However, you
2817
- # can include `AND` and `OR` expressions explicitly. For example: ``` (
2818
- # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
2819
- # scheduling.automaticRestart = true) ``` If you want to use a regular
2820
- # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
2821
- # un-parenthesized expression with or without quotes or against multiple
2822
- # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
2823
- # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
2824
- # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
2825
- # interpreted as a regular expression using Google RE2 library syntax. The
2826
- # literal value must match the entire field. For example, to filter for
2827
- # instances that do not end with name "instance", you would use `name ne .*
2828
- # instance`. You cannot combine constraints on multiple fields using regular
2829
- # expressions.
2830
- # @param [Boolean] include_all_scopes
2831
- # Indicates whether every visible scope for each scope type (zone, region,
2832
- # global) should be included in the response. For new resource types added after
2833
- # this field, the flag has no effect as new resource types will always include
2834
- # every visible scope for each scope type in response. For resource types which
2835
- # predate this field, if this flag is omitted or false, only scopes of the scope
2836
- # types where the resource type is expected to be found will be included.
2837
- # @param [Fixnum] max_results
2838
- # The maximum number of results per page that should be returned. If the number
2839
- # of available results is larger than `maxResults`, Compute Engine returns a `
2840
- # nextPageToken` that can be used to get the next page of results in subsequent
2841
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2842
- # @param [String] order_by
2843
- # Sorts list results by a certain order. By default, results are returned in
2844
- # alphanumerical order based on the resource name. You can also sort results in
2845
- # descending order based on the creation timestamp using `orderBy="
2846
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
2847
- # field in reverse chronological order (newest result first). Use this to sort
2848
- # resources like operations so that the newest operation is returned first.
2849
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2850
- # @param [String] page_token
2851
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
2852
- # by a previous list request to get the next page of results.
2853
- # @param [Boolean] return_partial_success
2854
- # Opt-in for partial success behavior which provides partial results in case of
2855
- # failure. The default value is false. For example, when partial success
2856
- # behavior is enabled, aggregatedList for a single zone scope either returns all
2857
- # resources in the zone or no resources, with an error code.
2858
- # @param [Fixnum] service_project_number
2859
- # The Shared VPC service project id or service project number for which
2860
- # aggregated list request is invoked for subnetworks list-usable api.
2861
- # @param [String] fields
2862
- # Selector specifying which fields to include in a partial response.
2863
- # @param [String] quota_user
2864
- # Available to use for quota purposes for server-side applications. Can be any
2865
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2866
- # @param [String] user_ip
2867
- # Legacy name for parameter that has been superseded by `quotaUser`.
2868
- # @param [Google::Apis::RequestOptions] options
2869
- # Request-specific options
2870
- #
2871
- # @yield [result, err] Result & error if block supplied
2872
- # @yieldparam result [Google::Apis::ComputeBeta::DiskTypeAggregatedList] parsed result object
2873
- # @yieldparam err [StandardError] error object if request failed
2874
- #
2875
- # @return [Google::Apis::ComputeBeta::DiskTypeAggregatedList]
2876
- #
2877
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2878
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2879
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2880
- def list_aggregated_disk_types(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)
2881
- command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options)
2882
- command.response_representation = Google::Apis::ComputeBeta::DiskTypeAggregatedList::Representation
2883
- command.response_class = Google::Apis::ComputeBeta::DiskTypeAggregatedList
2884
- command.params['project'] = project unless project.nil?
2885
- command.query['filter'] = filter unless filter.nil?
2886
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
2887
- command.query['maxResults'] = max_results unless max_results.nil?
2888
- command.query['orderBy'] = order_by unless order_by.nil?
2889
- command.query['pageToken'] = page_token unless page_token.nil?
2890
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
2891
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
2892
- command.query['fields'] = fields unless fields.nil?
2893
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2894
- command.query['userIp'] = user_ip unless user_ip.nil?
2895
- execute_or_queue_command(command, &block)
2896
- end
2897
-
2898
- # Returns the specified disk type.
2835
+ # Deletes the specified cross-site network in the given scope.
2899
2836
  # @param [String] project
2900
2837
  # Project ID for this request.
2901
- # @param [String] zone
2902
- # The name of the zone for this request.
2903
- # @param [String] disk_type
2904
- # Name of the disk type to return.
2838
+ # @param [String] cross_site_network
2839
+ # Name of the cross-site network to delete.
2840
+ # @param [String] request_id
2841
+ # An optional request ID to identify requests. Specify a unique request ID so
2842
+ # that if you must retry your request, the server will know to ignore the
2843
+ # request if it has already been completed. For example, consider a situation
2844
+ # where you make an initial request and the request times out. If you make the
2845
+ # request again with the same request ID, the server can check if original
2846
+ # operation with the same request ID was received, and if so, will ignore the
2847
+ # second request. This prevents clients from accidentally creating duplicate
2848
+ # commitments. The request ID must be a valid UUID with the exception that zero
2849
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
2850
+ # MixerMutationRequestBuilder
2905
2851
  # @param [String] fields
2906
2852
  # Selector specifying which fields to include in a partial response.
2907
2853
  # @param [String] quota_user
@@ -2913,85 +2859,32 @@ module Google
2913
2859
  # Request-specific options
2914
2860
  #
2915
2861
  # @yield [result, err] Result & error if block supplied
2916
- # @yieldparam result [Google::Apis::ComputeBeta::DiskType] parsed result object
2862
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
2917
2863
  # @yieldparam err [StandardError] error object if request failed
2918
2864
  #
2919
- # @return [Google::Apis::ComputeBeta::DiskType]
2865
+ # @return [Google::Apis::ComputeBeta::Operation]
2920
2866
  #
2921
2867
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2922
2868
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2923
2869
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2924
- def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2925
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options)
2926
- command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation
2927
- command.response_class = Google::Apis::ComputeBeta::DiskType
2870
+ def delete_cross_site_network(project, cross_site_network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2871
+ command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
2872
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
2873
+ command.response_class = Google::Apis::ComputeBeta::Operation
2928
2874
  command.params['project'] = project unless project.nil?
2929
- command.params['zone'] = zone unless zone.nil?
2930
- command.params['diskType'] = disk_type unless disk_type.nil?
2875
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
2876
+ command.query['requestId'] = request_id unless request_id.nil?
2931
2877
  command.query['fields'] = fields unless fields.nil?
2932
2878
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2933
2879
  command.query['userIp'] = user_ip unless user_ip.nil?
2934
2880
  execute_or_queue_command(command, &block)
2935
2881
  end
2936
2882
 
2937
- # Retrieves a list of disk types available to the specified project.
2883
+ # Returns the specified cross-site network in the given scope.
2938
2884
  # @param [String] project
2939
2885
  # Project ID for this request.
2940
- # @param [String] zone
2941
- # The name of the zone for this request.
2942
- # @param [String] filter
2943
- # A filter expression that filters resources listed in the response. Most
2944
- # Compute resources support two types of filter expressions: expressions that
2945
- # support regular expressions and expressions that follow API improvement
2946
- # proposal AIP-160. These two types of filter expressions cannot be mixed in one
2947
- # request. If you want to use AIP-160, your expression must specify the field
2948
- # name, an operator, and the value that you want to use for filtering. The value
2949
- # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
2950
- # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
2951
- # Engine instances, you can exclude instances named `example-instance` by
2952
- # specifying `name != example-instance`. The `:*` comparison can be used to test
2953
- # whether a key has been defined. For example, to find all objects with `owner`
2954
- # label use: ``` labels.owner:* ``` You can also filter nested fields. For
2955
- # example, you could specify `scheduling.automaticRestart = false` to include
2956
- # instances only if they are not scheduled for automatic restarts. You can use
2957
- # filtering on nested fields to filter based on resource labels. To filter on
2958
- # multiple expressions, provide each separate expression within parentheses. For
2959
- # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
2960
- # Skylake") ``` By default, each expression is an `AND` expression. However, you
2961
- # can include `AND` and `OR` expressions explicitly. For example: ``` (
2962
- # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
2963
- # scheduling.automaticRestart = true) ``` If you want to use a regular
2964
- # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
2965
- # un-parenthesized expression with or without quotes or against multiple
2966
- # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
2967
- # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
2968
- # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
2969
- # interpreted as a regular expression using Google RE2 library syntax. The
2970
- # literal value must match the entire field. For example, to filter for
2971
- # instances that do not end with name "instance", you would use `name ne .*
2972
- # instance`. You cannot combine constraints on multiple fields using regular
2973
- # expressions.
2974
- # @param [Fixnum] max_results
2975
- # The maximum number of results per page that should be returned. If the number
2976
- # of available results is larger than `maxResults`, Compute Engine returns a `
2977
- # nextPageToken` that can be used to get the next page of results in subsequent
2978
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2979
- # @param [String] order_by
2980
- # Sorts list results by a certain order. By default, results are returned in
2981
- # alphanumerical order based on the resource name. You can also sort results in
2982
- # descending order based on the creation timestamp using `orderBy="
2983
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
2984
- # field in reverse chronological order (newest result first). Use this to sort
2985
- # resources like operations so that the newest operation is returned first.
2986
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2987
- # @param [String] page_token
2988
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
2989
- # by a previous list request to get the next page of results.
2990
- # @param [Boolean] return_partial_success
2991
- # Opt-in for partial success behavior which provides partial results in case of
2992
- # failure. The default value is false. For example, when partial success
2993
- # behavior is enabled, aggregatedList for a single zone scope either returns all
2994
- # resources in the zone or no resources, with an error code.
2886
+ # @param [String] cross_site_network
2887
+ # Name of the cross-site network to return.
2995
2888
  # @param [String] fields
2996
2889
  # Selector specifying which fields to include in a partial response.
2997
2890
  # @param [String] quota_user
@@ -3003,40 +2896,31 @@ module Google
3003
2896
  # Request-specific options
3004
2897
  #
3005
2898
  # @yield [result, err] Result & error if block supplied
3006
- # @yieldparam result [Google::Apis::ComputeBeta::DiskTypeList] parsed result object
2899
+ # @yieldparam result [Google::Apis::ComputeBeta::CrossSiteNetwork] parsed result object
3007
2900
  # @yieldparam err [StandardError] error object if request failed
3008
2901
  #
3009
- # @return [Google::Apis::ComputeBeta::DiskTypeList]
2902
+ # @return [Google::Apis::ComputeBeta::CrossSiteNetwork]
3010
2903
  #
3011
2904
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3012
2905
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3013
2906
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3014
- def list_disk_types(project, zone, 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)
3015
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes', options)
3016
- command.response_representation = Google::Apis::ComputeBeta::DiskTypeList::Representation
3017
- command.response_class = Google::Apis::ComputeBeta::DiskTypeList
2907
+ def get_cross_site_network(project, cross_site_network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2908
+ command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
2909
+ command.response_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
2910
+ command.response_class = Google::Apis::ComputeBeta::CrossSiteNetwork
3018
2911
  command.params['project'] = project unless project.nil?
3019
- command.params['zone'] = zone unless zone.nil?
3020
- command.query['filter'] = filter unless filter.nil?
3021
- command.query['maxResults'] = max_results unless max_results.nil?
3022
- command.query['orderBy'] = order_by unless order_by.nil?
3023
- command.query['pageToken'] = page_token unless page_token.nil?
3024
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
2912
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
3025
2913
  command.query['fields'] = fields unless fields.nil?
3026
2914
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3027
2915
  command.query['userIp'] = user_ip unless user_ip.nil?
3028
2916
  execute_or_queue_command(command, &block)
3029
2917
  end
3030
2918
 
3031
- # Adds existing resource policies to a disk. You can only add one policy which
3032
- # will be applied to this disk for scheduling snapshot creation.
2919
+ # Creates a cross-site network in the specified project in the given scope using
2920
+ # the parameters that are included in the request.
3033
2921
  # @param [String] project
3034
2922
  # Project ID for this request.
3035
- # @param [String] zone
3036
- # The name of the zone for this request.
3037
- # @param [String] disk
3038
- # The disk name for this request.
3039
- # @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
2923
+ # @param [Google::Apis::ComputeBeta::CrossSiteNetwork] cross_site_network_object
3040
2924
  # @param [String] request_id
3041
2925
  # An optional request ID to identify requests. Specify a unique request ID so
3042
2926
  # that if you must retry your request, the server will know to ignore the
@@ -3046,7 +2930,10 @@ module Google
3046
2930
  # operation with the same request ID was received, and if so, will ignore the
3047
2931
  # second request. This prevents clients from accidentally creating duplicate
3048
2932
  # commitments. The request ID must be a valid UUID with the exception that zero
3049
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2933
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
2934
+ # MixerMutationRequestBuilder
2935
+ # @param [Boolean] validate_only
2936
+ # [Input Only] Validate the new configuration, but don't create it.
3050
2937
  # @param [String] fields
3051
2938
  # Selector specifying which fields to include in a partial response.
3052
2939
  # @param [String] quota_user
@@ -3066,24 +2953,22 @@ module Google
3066
2953
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3067
2954
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3068
2955
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3069
- def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3070
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options)
3071
- command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation
3072
- command.request_object = disks_add_resource_policies_request_object
2956
+ 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)
2957
+ command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks', options)
2958
+ command.request_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
2959
+ command.request_object = cross_site_network_object
3073
2960
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3074
2961
  command.response_class = Google::Apis::ComputeBeta::Operation
3075
2962
  command.params['project'] = project unless project.nil?
3076
- command.params['zone'] = zone unless zone.nil?
3077
- command.params['disk'] = disk unless disk.nil?
3078
2963
  command.query['requestId'] = request_id unless request_id.nil?
2964
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
3079
2965
  command.query['fields'] = fields unless fields.nil?
3080
2966
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3081
2967
  command.query['userIp'] = user_ip unless user_ip.nil?
3082
2968
  execute_or_queue_command(command, &block)
3083
2969
  end
3084
2970
 
3085
- # Retrieves an aggregated list of persistent disks. To prevent failure, Google
3086
- # recommends that you set the `returnPartialSuccess` parameter to `true`.
2971
+ # Lists the cross-site networks for a project in the given scope.
3087
2972
  # @param [String] project
3088
2973
  # Project ID for this request.
3089
2974
  # @param [String] filter
@@ -3118,13 +3003,455 @@ module Google
3118
3003
  # instances that do not end with name "instance", you would use `name ne .*
3119
3004
  # instance`. You cannot combine constraints on multiple fields using regular
3120
3005
  # expressions.
3121
- # @param [Boolean] include_all_scopes
3122
- # Indicates whether every visible scope for each scope type (zone, region,
3123
- # global) should be included in the response. For new resource types added after
3124
- # this field, the flag has no effect as new resource types will always include
3125
- # every visible scope for each scope type in response. For resource types which
3126
- # predate this field, if this flag is omitted or false, only scopes of the scope
3127
- # types where the resource type is expected to be found will be included.
3006
+ # @param [Fixnum] max_results
3007
+ # The maximum number of results per page that should be returned. If the number
3008
+ # of available results is larger than `maxResults`, Compute Engine returns a `
3009
+ # nextPageToken` that can be used to get the next page of results in subsequent
3010
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
3011
+ # @param [String] order_by
3012
+ # Sorts list results by a certain order. By default, results are returned in
3013
+ # alphanumerical order based on the resource name. You can also sort results in
3014
+ # descending order based on the creation timestamp using `orderBy="
3015
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
3016
+ # field in reverse chronological order (newest result first). Use this to sort
3017
+ # resources like operations so that the newest operation is returned first.
3018
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
3019
+ # @param [String] page_token
3020
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
3021
+ # by a previous list request to get the next page of results.
3022
+ # @param [Boolean] return_partial_success
3023
+ # Opt-in for partial success behavior which provides partial results in case of
3024
+ # failure. The default value is false. For example, when partial success
3025
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
3026
+ # resources in the zone or no resources, with an error code.
3027
+ # @param [String] fields
3028
+ # Selector specifying which fields to include in a partial response.
3029
+ # @param [String] quota_user
3030
+ # Available to use for quota purposes for server-side applications. Can be any
3031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3032
+ # @param [String] user_ip
3033
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3034
+ # @param [Google::Apis::RequestOptions] options
3035
+ # Request-specific options
3036
+ #
3037
+ # @yield [result, err] Result & error if block supplied
3038
+ # @yieldparam result [Google::Apis::ComputeBeta::CrossSiteNetworkList] parsed result object
3039
+ # @yieldparam err [StandardError] error object if request failed
3040
+ #
3041
+ # @return [Google::Apis::ComputeBeta::CrossSiteNetworkList]
3042
+ #
3043
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3044
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3045
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3046
+ 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)
3047
+ command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks', options)
3048
+ command.response_representation = Google::Apis::ComputeBeta::CrossSiteNetworkList::Representation
3049
+ command.response_class = Google::Apis::ComputeBeta::CrossSiteNetworkList
3050
+ command.params['project'] = project unless project.nil?
3051
+ command.query['filter'] = filter unless filter.nil?
3052
+ command.query['maxResults'] = max_results unless max_results.nil?
3053
+ command.query['orderBy'] = order_by unless order_by.nil?
3054
+ command.query['pageToken'] = page_token unless page_token.nil?
3055
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
3056
+ command.query['fields'] = fields unless fields.nil?
3057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3058
+ command.query['userIp'] = user_ip unless user_ip.nil?
3059
+ execute_or_queue_command(command, &block)
3060
+ end
3061
+
3062
+ # Updates the specified cross-site network with the data included in the request.
3063
+ # This method supports PATCH semantics and uses the JSON merge patch format and
3064
+ # processing rules.
3065
+ # @param [String] project
3066
+ # Project ID for this request.
3067
+ # @param [String] cross_site_network
3068
+ # Name of the cross-site network to update.
3069
+ # @param [Google::Apis::ComputeBeta::CrossSiteNetwork] cross_site_network_object
3070
+ # @param [String] request_id
3071
+ # An optional request ID to identify requests. Specify a unique request ID so
3072
+ # that if you must retry your request, the server will know to ignore the
3073
+ # request if it has already been completed. For example, consider a situation
3074
+ # where you make an initial request and the request times out. If you make the
3075
+ # request again with the same request ID, the server can check if original
3076
+ # operation with the same request ID was received, and if so, will ignore the
3077
+ # second request. This prevents clients from accidentally creating duplicate
3078
+ # commitments. The request ID must be a valid UUID with the exception that zero
3079
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
3080
+ # MixerMutationRequestBuilder
3081
+ # @param [String] update_mask
3082
+ # update_mask indicates fields to be updated as part of this request.
3083
+ # @param [Boolean] validate_only
3084
+ # [Input Only] Validate the new configuration, but don't update it.
3085
+ # @param [String] fields
3086
+ # Selector specifying which fields to include in a partial response.
3087
+ # @param [String] quota_user
3088
+ # Available to use for quota purposes for server-side applications. Can be any
3089
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3090
+ # @param [String] user_ip
3091
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3092
+ # @param [Google::Apis::RequestOptions] options
3093
+ # Request-specific options
3094
+ #
3095
+ # @yield [result, err] Result & error if block supplied
3096
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3097
+ # @yieldparam err [StandardError] error object if request failed
3098
+ #
3099
+ # @return [Google::Apis::ComputeBeta::Operation]
3100
+ #
3101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3104
+ def patch_cross_site_network(project, cross_site_network, cross_site_network_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3105
+ command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
3106
+ command.request_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
3107
+ command.request_object = cross_site_network_object
3108
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3109
+ command.response_class = Google::Apis::ComputeBeta::Operation
3110
+ command.params['project'] = project unless project.nil?
3111
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
3112
+ command.query['requestId'] = request_id unless request_id.nil?
3113
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3114
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
3115
+ command.query['fields'] = fields unless fields.nil?
3116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3117
+ command.query['userIp'] = user_ip unless user_ip.nil?
3118
+ execute_or_queue_command(command, &block)
3119
+ end
3120
+
3121
+ # Retrieves an aggregated list of disk types. To prevent failure, Google
3122
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
3123
+ # @param [String] project
3124
+ # Project ID for this request.
3125
+ # @param [String] filter
3126
+ # A filter expression that filters resources listed in the response. Most
3127
+ # Compute resources support two types of filter expressions: expressions that
3128
+ # support regular expressions and expressions that follow API improvement
3129
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
3130
+ # request. If you want to use AIP-160, your expression must specify the field
3131
+ # name, an operator, and the value that you want to use for filtering. The value
3132
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
3133
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
3134
+ # Engine instances, you can exclude instances named `example-instance` by
3135
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
3136
+ # whether a key has been defined. For example, to find all objects with `owner`
3137
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
3138
+ # example, you could specify `scheduling.automaticRestart = false` to include
3139
+ # instances only if they are not scheduled for automatic restarts. You can use
3140
+ # filtering on nested fields to filter based on resource labels. To filter on
3141
+ # multiple expressions, provide each separate expression within parentheses. For
3142
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
3143
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
3144
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
3145
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
3146
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
3147
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
3148
+ # un-parenthesized expression with or without quotes or against multiple
3149
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
3150
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
3151
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
3152
+ # interpreted as a regular expression using Google RE2 library syntax. The
3153
+ # literal value must match the entire field. For example, to filter for
3154
+ # instances that do not end with name "instance", you would use `name ne .*
3155
+ # instance`. You cannot combine constraints on multiple fields using regular
3156
+ # expressions.
3157
+ # @param [Boolean] include_all_scopes
3158
+ # Indicates whether every visible scope for each scope type (zone, region,
3159
+ # global) should be included in the response. For new resource types added after
3160
+ # this field, the flag has no effect as new resource types will always include
3161
+ # every visible scope for each scope type in response. For resource types which
3162
+ # predate this field, if this flag is omitted or false, only scopes of the scope
3163
+ # types where the resource type is expected to be found will be included.
3164
+ # @param [Fixnum] max_results
3165
+ # The maximum number of results per page that should be returned. If the number
3166
+ # of available results is larger than `maxResults`, Compute Engine returns a `
3167
+ # nextPageToken` that can be used to get the next page of results in subsequent
3168
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
3169
+ # @param [String] order_by
3170
+ # Sorts list results by a certain order. By default, results are returned in
3171
+ # alphanumerical order based on the resource name. You can also sort results in
3172
+ # descending order based on the creation timestamp using `orderBy="
3173
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
3174
+ # field in reverse chronological order (newest result first). Use this to sort
3175
+ # resources like operations so that the newest operation is returned first.
3176
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
3177
+ # @param [String] page_token
3178
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
3179
+ # by a previous list request to get the next page of results.
3180
+ # @param [Boolean] return_partial_success
3181
+ # Opt-in for partial success behavior which provides partial results in case of
3182
+ # failure. The default value is false. For example, when partial success
3183
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
3184
+ # resources in the zone or no resources, with an error code.
3185
+ # @param [Fixnum] service_project_number
3186
+ # The Shared VPC service project id or service project number for which
3187
+ # aggregated list request is invoked for subnetworks list-usable api.
3188
+ # @param [String] fields
3189
+ # Selector specifying which fields to include in a partial response.
3190
+ # @param [String] quota_user
3191
+ # Available to use for quota purposes for server-side applications. Can be any
3192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3193
+ # @param [String] user_ip
3194
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3195
+ # @param [Google::Apis::RequestOptions] options
3196
+ # Request-specific options
3197
+ #
3198
+ # @yield [result, err] Result & error if block supplied
3199
+ # @yieldparam result [Google::Apis::ComputeBeta::DiskTypeAggregatedList] parsed result object
3200
+ # @yieldparam err [StandardError] error object if request failed
3201
+ #
3202
+ # @return [Google::Apis::ComputeBeta::DiskTypeAggregatedList]
3203
+ #
3204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3207
+ def list_aggregated_disk_types(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)
3208
+ command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options)
3209
+ command.response_representation = Google::Apis::ComputeBeta::DiskTypeAggregatedList::Representation
3210
+ command.response_class = Google::Apis::ComputeBeta::DiskTypeAggregatedList
3211
+ command.params['project'] = project unless project.nil?
3212
+ command.query['filter'] = filter unless filter.nil?
3213
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
3214
+ command.query['maxResults'] = max_results unless max_results.nil?
3215
+ command.query['orderBy'] = order_by unless order_by.nil?
3216
+ command.query['pageToken'] = page_token unless page_token.nil?
3217
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
3218
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.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
+ # Returns the specified disk type.
3226
+ # @param [String] project
3227
+ # Project ID for this request.
3228
+ # @param [String] zone
3229
+ # The name of the zone for this request.
3230
+ # @param [String] disk_type
3231
+ # Name of the disk type to return.
3232
+ # @param [String] fields
3233
+ # Selector specifying which fields to include in a partial response.
3234
+ # @param [String] quota_user
3235
+ # Available to use for quota purposes for server-side applications. Can be any
3236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3237
+ # @param [String] user_ip
3238
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3239
+ # @param [Google::Apis::RequestOptions] options
3240
+ # Request-specific options
3241
+ #
3242
+ # @yield [result, err] Result & error if block supplied
3243
+ # @yieldparam result [Google::Apis::ComputeBeta::DiskType] parsed result object
3244
+ # @yieldparam err [StandardError] error object if request failed
3245
+ #
3246
+ # @return [Google::Apis::ComputeBeta::DiskType]
3247
+ #
3248
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3249
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3250
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3251
+ def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3252
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options)
3253
+ command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation
3254
+ command.response_class = Google::Apis::ComputeBeta::DiskType
3255
+ command.params['project'] = project unless project.nil?
3256
+ command.params['zone'] = zone unless zone.nil?
3257
+ command.params['diskType'] = disk_type unless disk_type.nil?
3258
+ command.query['fields'] = fields unless fields.nil?
3259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3260
+ command.query['userIp'] = user_ip unless user_ip.nil?
3261
+ execute_or_queue_command(command, &block)
3262
+ end
3263
+
3264
+ # Retrieves a list of disk types available to the specified project.
3265
+ # @param [String] project
3266
+ # Project ID for this request.
3267
+ # @param [String] zone
3268
+ # The name of the zone for this request.
3269
+ # @param [String] filter
3270
+ # A filter expression that filters resources listed in the response. Most
3271
+ # Compute resources support two types of filter expressions: expressions that
3272
+ # support regular expressions and expressions that follow API improvement
3273
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
3274
+ # request. If you want to use AIP-160, your expression must specify the field
3275
+ # name, an operator, and the value that you want to use for filtering. The value
3276
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
3277
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
3278
+ # Engine instances, you can exclude instances named `example-instance` by
3279
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
3280
+ # whether a key has been defined. For example, to find all objects with `owner`
3281
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
3282
+ # example, you could specify `scheduling.automaticRestart = false` to include
3283
+ # instances only if they are not scheduled for automatic restarts. You can use
3284
+ # filtering on nested fields to filter based on resource labels. To filter on
3285
+ # multiple expressions, provide each separate expression within parentheses. For
3286
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
3287
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
3288
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
3289
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
3290
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
3291
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
3292
+ # un-parenthesized expression with or without quotes or against multiple
3293
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
3294
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
3295
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
3296
+ # interpreted as a regular expression using Google RE2 library syntax. The
3297
+ # literal value must match the entire field. For example, to filter for
3298
+ # instances that do not end with name "instance", you would use `name ne .*
3299
+ # instance`. You cannot combine constraints on multiple fields using regular
3300
+ # expressions.
3301
+ # @param [Fixnum] max_results
3302
+ # The maximum number of results per page that should be returned. If the number
3303
+ # of available results is larger than `maxResults`, Compute Engine returns a `
3304
+ # nextPageToken` that can be used to get the next page of results in subsequent
3305
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
3306
+ # @param [String] order_by
3307
+ # Sorts list results by a certain order. By default, results are returned in
3308
+ # alphanumerical order based on the resource name. You can also sort results in
3309
+ # descending order based on the creation timestamp using `orderBy="
3310
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
3311
+ # field in reverse chronological order (newest result first). Use this to sort
3312
+ # resources like operations so that the newest operation is returned first.
3313
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
3314
+ # @param [String] page_token
3315
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
3316
+ # by a previous list request to get the next page of results.
3317
+ # @param [Boolean] return_partial_success
3318
+ # Opt-in for partial success behavior which provides partial results in case of
3319
+ # failure. The default value is false. For example, when partial success
3320
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
3321
+ # resources in the zone or no resources, with an error code.
3322
+ # @param [String] fields
3323
+ # Selector specifying which fields to include in a partial response.
3324
+ # @param [String] quota_user
3325
+ # Available to use for quota purposes for server-side applications. Can be any
3326
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3327
+ # @param [String] user_ip
3328
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3329
+ # @param [Google::Apis::RequestOptions] options
3330
+ # Request-specific options
3331
+ #
3332
+ # @yield [result, err] Result & error if block supplied
3333
+ # @yieldparam result [Google::Apis::ComputeBeta::DiskTypeList] parsed result object
3334
+ # @yieldparam err [StandardError] error object if request failed
3335
+ #
3336
+ # @return [Google::Apis::ComputeBeta::DiskTypeList]
3337
+ #
3338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3341
+ def list_disk_types(project, zone, 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)
3342
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes', options)
3343
+ command.response_representation = Google::Apis::ComputeBeta::DiskTypeList::Representation
3344
+ command.response_class = Google::Apis::ComputeBeta::DiskTypeList
3345
+ command.params['project'] = project unless project.nil?
3346
+ command.params['zone'] = zone unless zone.nil?
3347
+ command.query['filter'] = filter unless filter.nil?
3348
+ command.query['maxResults'] = max_results unless max_results.nil?
3349
+ command.query['orderBy'] = order_by unless order_by.nil?
3350
+ command.query['pageToken'] = page_token unless page_token.nil?
3351
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
3352
+ command.query['fields'] = fields unless fields.nil?
3353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3354
+ command.query['userIp'] = user_ip unless user_ip.nil?
3355
+ execute_or_queue_command(command, &block)
3356
+ end
3357
+
3358
+ # Adds existing resource policies to a disk. You can only add one policy which
3359
+ # will be applied to this disk for scheduling snapshot creation.
3360
+ # @param [String] project
3361
+ # Project ID for this request.
3362
+ # @param [String] zone
3363
+ # The name of the zone for this request.
3364
+ # @param [String] disk
3365
+ # The disk name for this request.
3366
+ # @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
3367
+ # @param [String] request_id
3368
+ # An optional request ID to identify requests. Specify a unique request ID so
3369
+ # that if you must retry your request, the server will know to ignore the
3370
+ # request if it has already been completed. For example, consider a situation
3371
+ # where you make an initial request and the request times out. If you make the
3372
+ # request again with the same request ID, the server can check if original
3373
+ # operation with the same request ID was received, and if so, will ignore the
3374
+ # second request. This prevents clients from accidentally creating duplicate
3375
+ # commitments. The request ID must be a valid UUID with the exception that zero
3376
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3377
+ # @param [String] fields
3378
+ # Selector specifying which fields to include in a partial response.
3379
+ # @param [String] quota_user
3380
+ # Available to use for quota purposes for server-side applications. Can be any
3381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3382
+ # @param [String] user_ip
3383
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3384
+ # @param [Google::Apis::RequestOptions] options
3385
+ # Request-specific options
3386
+ #
3387
+ # @yield [result, err] Result & error if block supplied
3388
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3389
+ # @yieldparam err [StandardError] error object if request failed
3390
+ #
3391
+ # @return [Google::Apis::ComputeBeta::Operation]
3392
+ #
3393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3396
+ def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3397
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options)
3398
+ command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation
3399
+ command.request_object = disks_add_resource_policies_request_object
3400
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3401
+ command.response_class = Google::Apis::ComputeBeta::Operation
3402
+ command.params['project'] = project unless project.nil?
3403
+ command.params['zone'] = zone unless zone.nil?
3404
+ command.params['disk'] = disk unless disk.nil?
3405
+ command.query['requestId'] = request_id unless request_id.nil?
3406
+ command.query['fields'] = fields unless fields.nil?
3407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3408
+ command.query['userIp'] = user_ip unless user_ip.nil?
3409
+ execute_or_queue_command(command, &block)
3410
+ end
3411
+
3412
+ # Retrieves an aggregated list of persistent disks. To prevent failure, Google
3413
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
3414
+ # @param [String] project
3415
+ # Project ID for this request.
3416
+ # @param [String] filter
3417
+ # A filter expression that filters resources listed in the response. Most
3418
+ # Compute resources support two types of filter expressions: expressions that
3419
+ # support regular expressions and expressions that follow API improvement
3420
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
3421
+ # request. If you want to use AIP-160, your expression must specify the field
3422
+ # name, an operator, and the value that you want to use for filtering. The value
3423
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
3424
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
3425
+ # Engine instances, you can exclude instances named `example-instance` by
3426
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
3427
+ # whether a key has been defined. For example, to find all objects with `owner`
3428
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
3429
+ # example, you could specify `scheduling.automaticRestart = false` to include
3430
+ # instances only if they are not scheduled for automatic restarts. You can use
3431
+ # filtering on nested fields to filter based on resource labels. To filter on
3432
+ # multiple expressions, provide each separate expression within parentheses. For
3433
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
3434
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
3435
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
3436
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
3437
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
3438
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
3439
+ # un-parenthesized expression with or without quotes or against multiple
3440
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
3441
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
3442
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
3443
+ # interpreted as a regular expression using Google RE2 library syntax. The
3444
+ # literal value must match the entire field. For example, to filter for
3445
+ # instances that do not end with name "instance", you would use `name ne .*
3446
+ # instance`. You cannot combine constraints on multiple fields using regular
3447
+ # expressions.
3448
+ # @param [Boolean] include_all_scopes
3449
+ # Indicates whether every visible scope for each scope type (zone, region,
3450
+ # global) should be included in the response. For new resource types added after
3451
+ # this field, the flag has no effect as new resource types will always include
3452
+ # every visible scope for each scope type in response. For resource types which
3453
+ # predate this field, if this flag is omitted or false, only scopes of the scope
3454
+ # types where the resource type is expected to be found will be included.
3128
3455
  # @param [Fixnum] max_results
3129
3456
  # The maximum number of results per page that should be returned. If the number
3130
3457
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -13801,6 +14128,60 @@ module Google
13801
14128
  execute_or_queue_command(command, &block)
13802
14129
  end
13803
14130
 
14131
+ # Adds one dynamic network interface to an active instance.
14132
+ # @param [String] project
14133
+ # Project ID for this request.
14134
+ # @param [String] zone
14135
+ # The name of the zone for this request.
14136
+ # @param [String] instance
14137
+ # The instance name for this request stored as resource_id. Name should conform
14138
+ # to RFC1035 or be an unsigned long integer.
14139
+ # @param [Google::Apis::ComputeBeta::NetworkInterface] network_interface_object
14140
+ # @param [String] request_id
14141
+ # An optional request ID to identify requests. Specify a unique request ID so
14142
+ # that if you must retry your request, the server will know to ignore the
14143
+ # request if it has already been completed. For example, consider a situation
14144
+ # where you make an initial request and the request times out. If you make the
14145
+ # request again with the same request ID, the server can check if original
14146
+ # operation with the same request ID was received, and if so, will ignore the
14147
+ # second request. This prevents clients from accidentally creating duplicate
14148
+ # commitments. The request ID must be a valid UUID with the exception that zero
14149
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
14150
+ # @param [String] fields
14151
+ # Selector specifying which fields to include in a partial response.
14152
+ # @param [String] quota_user
14153
+ # Available to use for quota purposes for server-side applications. Can be any
14154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14155
+ # @param [String] user_ip
14156
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14157
+ # @param [Google::Apis::RequestOptions] options
14158
+ # Request-specific options
14159
+ #
14160
+ # @yield [result, err] Result & error if block supplied
14161
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
14162
+ # @yieldparam err [StandardError] error object if request failed
14163
+ #
14164
+ # @return [Google::Apis::ComputeBeta::Operation]
14165
+ #
14166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14169
+ def add_instance_network_interface(project, zone, instance, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14170
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface', options)
14171
+ command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation
14172
+ command.request_object = network_interface_object
14173
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14174
+ command.response_class = Google::Apis::ComputeBeta::Operation
14175
+ command.params['project'] = project unless project.nil?
14176
+ command.params['zone'] = zone unless zone.nil?
14177
+ command.params['instance'] = instance unless instance.nil?
14178
+ command.query['requestId'] = request_id unless request_id.nil?
14179
+ command.query['fields'] = fields unless fields.nil?
14180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14181
+ command.query['userIp'] = user_ip unless user_ip.nil?
14182
+ execute_or_queue_command(command, &block)
14183
+ end
14184
+
13804
14185
  # Adds existing resource policies to an instance. You can only add one policy
13805
14186
  # right now which will be applied to this instance for scheduling live
13806
14187
  # migrations.
@@ -13840,15 +14221,183 @@ module Google
13840
14221
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13841
14222
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13842
14223
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13843
- def add_instance_resource_policies(project, zone, instance, instances_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13844
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies', options)
13845
- command.request_representation = Google::Apis::ComputeBeta::InstancesAddResourcePoliciesRequest::Representation
13846
- command.request_object = instances_add_resource_policies_request_object
14224
+ def add_instance_resource_policies(project, zone, instance, instances_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14225
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies', options)
14226
+ command.request_representation = Google::Apis::ComputeBeta::InstancesAddResourcePoliciesRequest::Representation
14227
+ command.request_object = instances_add_resource_policies_request_object
14228
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14229
+ command.response_class = Google::Apis::ComputeBeta::Operation
14230
+ command.params['project'] = project unless project.nil?
14231
+ command.params['zone'] = zone unless zone.nil?
14232
+ command.params['instance'] = instance unless instance.nil?
14233
+ command.query['requestId'] = request_id unless request_id.nil?
14234
+ command.query['fields'] = fields unless fields.nil?
14235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14236
+ command.query['userIp'] = user_ip unless user_ip.nil?
14237
+ execute_or_queue_command(command, &block)
14238
+ end
14239
+
14240
+ # Retrieves an aggregated list of all of the instances in your project across
14241
+ # all regions and zones. The performance of this method degrades when a filter
14242
+ # is specified on a project that has a very large number of instances. To
14243
+ # prevent failure, Google recommends that you set the `returnPartialSuccess`
14244
+ # parameter to `true`.
14245
+ # @param [String] project
14246
+ # Project ID for this request.
14247
+ # @param [String] filter
14248
+ # A filter expression that filters resources listed in the response. Most
14249
+ # Compute resources support two types of filter expressions: expressions that
14250
+ # support regular expressions and expressions that follow API improvement
14251
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
14252
+ # request. If you want to use AIP-160, your expression must specify the field
14253
+ # name, an operator, and the value that you want to use for filtering. The value
14254
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
14255
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
14256
+ # Engine instances, you can exclude instances named `example-instance` by
14257
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
14258
+ # whether a key has been defined. For example, to find all objects with `owner`
14259
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
14260
+ # example, you could specify `scheduling.automaticRestart = false` to include
14261
+ # instances only if they are not scheduled for automatic restarts. You can use
14262
+ # filtering on nested fields to filter based on resource labels. To filter on
14263
+ # multiple expressions, provide each separate expression within parentheses. For
14264
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
14265
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
14266
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
14267
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
14268
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
14269
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
14270
+ # un-parenthesized expression with or without quotes or against multiple
14271
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
14272
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
14273
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
14274
+ # interpreted as a regular expression using Google RE2 library syntax. The
14275
+ # literal value must match the entire field. For example, to filter for
14276
+ # instances that do not end with name "instance", you would use `name ne .*
14277
+ # instance`. You cannot combine constraints on multiple fields using regular
14278
+ # expressions.
14279
+ # @param [Boolean] include_all_scopes
14280
+ # Indicates whether every visible scope for each scope type (zone, region,
14281
+ # global) should be included in the response. For new resource types added after
14282
+ # this field, the flag has no effect as new resource types will always include
14283
+ # every visible scope for each scope type in response. For resource types which
14284
+ # predate this field, if this flag is omitted or false, only scopes of the scope
14285
+ # types where the resource type is expected to be found will be included.
14286
+ # @param [Fixnum] max_results
14287
+ # The maximum number of results per page that should be returned. If the number
14288
+ # of available results is larger than `maxResults`, Compute Engine returns a `
14289
+ # nextPageToken` that can be used to get the next page of results in subsequent
14290
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
14291
+ # @param [String] order_by
14292
+ # Sorts list results by a certain order. By default, results are returned in
14293
+ # alphanumerical order based on the resource name. You can also sort results in
14294
+ # descending order based on the creation timestamp using `orderBy="
14295
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
14296
+ # field in reverse chronological order (newest result first). Use this to sort
14297
+ # resources like operations so that the newest operation is returned first.
14298
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
14299
+ # @param [String] page_token
14300
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
14301
+ # by a previous list request to get the next page of results.
14302
+ # @param [Boolean] return_partial_success
14303
+ # Opt-in for partial success behavior which provides partial results in case of
14304
+ # failure. The default value is false. For example, when partial success
14305
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
14306
+ # resources in the zone or no resources, with an error code.
14307
+ # @param [Fixnum] service_project_number
14308
+ # The Shared VPC service project id or service project number for which
14309
+ # aggregated list request is invoked for subnetworks list-usable api.
14310
+ # @param [String] fields
14311
+ # Selector specifying which fields to include in a partial response.
14312
+ # @param [String] quota_user
14313
+ # Available to use for quota purposes for server-side applications. Can be any
14314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14315
+ # @param [String] user_ip
14316
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14317
+ # @param [Google::Apis::RequestOptions] options
14318
+ # Request-specific options
14319
+ #
14320
+ # @yield [result, err] Result & error if block supplied
14321
+ # @yieldparam result [Google::Apis::ComputeBeta::InstanceAggregatedList] parsed result object
14322
+ # @yieldparam err [StandardError] error object if request failed
14323
+ #
14324
+ # @return [Google::Apis::ComputeBeta::InstanceAggregatedList]
14325
+ #
14326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14329
+ def list_aggregated_instances(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)
14330
+ command = make_simple_command(:get, 'projects/{project}/aggregated/instances', options)
14331
+ command.response_representation = Google::Apis::ComputeBeta::InstanceAggregatedList::Representation
14332
+ command.response_class = Google::Apis::ComputeBeta::InstanceAggregatedList
14333
+ command.params['project'] = project unless project.nil?
14334
+ command.query['filter'] = filter unless filter.nil?
14335
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
14336
+ command.query['maxResults'] = max_results unless max_results.nil?
14337
+ command.query['orderBy'] = order_by unless order_by.nil?
14338
+ command.query['pageToken'] = page_token unless page_token.nil?
14339
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
14340
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
14341
+ command.query['fields'] = fields unless fields.nil?
14342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14343
+ command.query['userIp'] = user_ip unless user_ip.nil?
14344
+ execute_or_queue_command(command, &block)
14345
+ end
14346
+
14347
+ # Attaches an existing Disk resource to an instance. You must first create the
14348
+ # disk before you can attach it. It is not possible to create and attach a disk
14349
+ # at the same time. For more information, read Adding a persistent disk to your
14350
+ # instance.
14351
+ # @param [String] project
14352
+ # Project ID for this request.
14353
+ # @param [String] zone
14354
+ # The name of the zone for this request.
14355
+ # @param [String] instance
14356
+ # The instance name for this request.
14357
+ # @param [Google::Apis::ComputeBeta::AttachedDisk] attached_disk_object
14358
+ # @param [Boolean] force_attach
14359
+ # Whether to force attach the regional disk even if it's currently attached to
14360
+ # another instance. If you try to force attach a zonal disk to an instance, you
14361
+ # will receive an error.
14362
+ # @param [String] request_id
14363
+ # An optional request ID to identify requests. Specify a unique request ID so
14364
+ # that if you must retry your request, the server will know to ignore the
14365
+ # request if it has already been completed. For example, consider a situation
14366
+ # where you make an initial request and the request times out. If you make the
14367
+ # request again with the same request ID, the server can check if original
14368
+ # operation with the same request ID was received, and if so, will ignore the
14369
+ # second request. This prevents clients from accidentally creating duplicate
14370
+ # commitments. The request ID must be a valid UUID with the exception that zero
14371
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
14372
+ # @param [String] fields
14373
+ # Selector specifying which fields to include in a partial response.
14374
+ # @param [String] quota_user
14375
+ # Available to use for quota purposes for server-side applications. Can be any
14376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14377
+ # @param [String] user_ip
14378
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14379
+ # @param [Google::Apis::RequestOptions] options
14380
+ # Request-specific options
14381
+ #
14382
+ # @yield [result, err] Result & error if block supplied
14383
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
14384
+ # @yieldparam err [StandardError] error object if request failed
14385
+ #
14386
+ # @return [Google::Apis::ComputeBeta::Operation]
14387
+ #
14388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14391
+ def attach_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14392
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/attachDisk', options)
14393
+ command.request_representation = Google::Apis::ComputeBeta::AttachedDisk::Representation
14394
+ command.request_object = attached_disk_object
13847
14395
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
13848
14396
  command.response_class = Google::Apis::ComputeBeta::Operation
13849
14397
  command.params['project'] = project unless project.nil?
13850
14398
  command.params['zone'] = zone unless zone.nil?
13851
14399
  command.params['instance'] = instance unless instance.nil?
14400
+ command.query['forceAttach'] = force_attach unless force_attach.nil?
13852
14401
  command.query['requestId'] = request_id unless request_id.nil?
13853
14402
  command.query['fields'] = fields unless fields.nil?
13854
14403
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -13856,128 +14405,13 @@ module Google
13856
14405
  execute_or_queue_command(command, &block)
13857
14406
  end
13858
14407
 
13859
- # Retrieves an aggregated list of all of the instances in your project across
13860
- # all regions and zones. The performance of this method degrades when a filter
13861
- # is specified on a project that has a very large number of instances. To
13862
- # prevent failure, Google recommends that you set the `returnPartialSuccess`
13863
- # parameter to `true`.
13864
- # @param [String] project
13865
- # Project ID for this request.
13866
- # @param [String] filter
13867
- # A filter expression that filters resources listed in the response. Most
13868
- # Compute resources support two types of filter expressions: expressions that
13869
- # support regular expressions and expressions that follow API improvement
13870
- # proposal AIP-160. These two types of filter expressions cannot be mixed in one
13871
- # request. If you want to use AIP-160, your expression must specify the field
13872
- # name, an operator, and the value that you want to use for filtering. The value
13873
- # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
13874
- # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
13875
- # Engine instances, you can exclude instances named `example-instance` by
13876
- # specifying `name != example-instance`. The `:*` comparison can be used to test
13877
- # whether a key has been defined. For example, to find all objects with `owner`
13878
- # label use: ``` labels.owner:* ``` You can also filter nested fields. For
13879
- # example, you could specify `scheduling.automaticRestart = false` to include
13880
- # instances only if they are not scheduled for automatic restarts. You can use
13881
- # filtering on nested fields to filter based on resource labels. To filter on
13882
- # multiple expressions, provide each separate expression within parentheses. For
13883
- # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
13884
- # Skylake") ``` By default, each expression is an `AND` expression. However, you
13885
- # can include `AND` and `OR` expressions explicitly. For example: ``` (
13886
- # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
13887
- # scheduling.automaticRestart = true) ``` If you want to use a regular
13888
- # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
13889
- # un-parenthesized expression with or without quotes or against multiple
13890
- # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
13891
- # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
13892
- # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
13893
- # interpreted as a regular expression using Google RE2 library syntax. The
13894
- # literal value must match the entire field. For example, to filter for
13895
- # instances that do not end with name "instance", you would use `name ne .*
13896
- # instance`. You cannot combine constraints on multiple fields using regular
13897
- # expressions.
13898
- # @param [Boolean] include_all_scopes
13899
- # Indicates whether every visible scope for each scope type (zone, region,
13900
- # global) should be included in the response. For new resource types added after
13901
- # this field, the flag has no effect as new resource types will always include
13902
- # every visible scope for each scope type in response. For resource types which
13903
- # predate this field, if this flag is omitted or false, only scopes of the scope
13904
- # types where the resource type is expected to be found will be included.
13905
- # @param [Fixnum] max_results
13906
- # The maximum number of results per page that should be returned. If the number
13907
- # of available results is larger than `maxResults`, Compute Engine returns a `
13908
- # nextPageToken` that can be used to get the next page of results in subsequent
13909
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
13910
- # @param [String] order_by
13911
- # Sorts list results by a certain order. By default, results are returned in
13912
- # alphanumerical order based on the resource name. You can also sort results in
13913
- # descending order based on the creation timestamp using `orderBy="
13914
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
13915
- # field in reverse chronological order (newest result first). Use this to sort
13916
- # resources like operations so that the newest operation is returned first.
13917
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
13918
- # @param [String] page_token
13919
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
13920
- # by a previous list request to get the next page of results.
13921
- # @param [Boolean] return_partial_success
13922
- # Opt-in for partial success behavior which provides partial results in case of
13923
- # failure. The default value is false. For example, when partial success
13924
- # behavior is enabled, aggregatedList for a single zone scope either returns all
13925
- # resources in the zone or no resources, with an error code.
13926
- # @param [Fixnum] service_project_number
13927
- # The Shared VPC service project id or service project number for which
13928
- # aggregated list request is invoked for subnetworks list-usable api.
13929
- # @param [String] fields
13930
- # Selector specifying which fields to include in a partial response.
13931
- # @param [String] quota_user
13932
- # Available to use for quota purposes for server-side applications. Can be any
13933
- # arbitrary string assigned to a user, but should not exceed 40 characters.
13934
- # @param [String] user_ip
13935
- # Legacy name for parameter that has been superseded by `quotaUser`.
13936
- # @param [Google::Apis::RequestOptions] options
13937
- # Request-specific options
13938
- #
13939
- # @yield [result, err] Result & error if block supplied
13940
- # @yieldparam result [Google::Apis::ComputeBeta::InstanceAggregatedList] parsed result object
13941
- # @yieldparam err [StandardError] error object if request failed
13942
- #
13943
- # @return [Google::Apis::ComputeBeta::InstanceAggregatedList]
13944
- #
13945
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13946
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13947
- # @raise [Google::Apis::AuthorizationError] Authorization is required
13948
- def list_aggregated_instances(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)
13949
- command = make_simple_command(:get, 'projects/{project}/aggregated/instances', options)
13950
- command.response_representation = Google::Apis::ComputeBeta::InstanceAggregatedList::Representation
13951
- command.response_class = Google::Apis::ComputeBeta::InstanceAggregatedList
13952
- command.params['project'] = project unless project.nil?
13953
- command.query['filter'] = filter unless filter.nil?
13954
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
13955
- command.query['maxResults'] = max_results unless max_results.nil?
13956
- command.query['orderBy'] = order_by unless order_by.nil?
13957
- command.query['pageToken'] = page_token unless page_token.nil?
13958
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
13959
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
13960
- command.query['fields'] = fields unless fields.nil?
13961
- command.query['quotaUser'] = quota_user unless quota_user.nil?
13962
- command.query['userIp'] = user_ip unless user_ip.nil?
13963
- execute_or_queue_command(command, &block)
13964
- end
13965
-
13966
- # Attaches an existing Disk resource to an instance. You must first create the
13967
- # disk before you can attach it. It is not possible to create and attach a disk
13968
- # at the same time. For more information, read Adding a persistent disk to your
13969
- # instance.
14408
+ # Creates multiple instances. Count specifies the number of instances to create.
14409
+ # For more information, see About bulk creation of VMs.
13970
14410
  # @param [String] project
13971
14411
  # Project ID for this request.
13972
14412
  # @param [String] zone
13973
14413
  # The name of the zone for this request.
13974
- # @param [String] instance
13975
- # The instance name for this request.
13976
- # @param [Google::Apis::ComputeBeta::AttachedDisk] attached_disk_object
13977
- # @param [Boolean] force_attach
13978
- # Whether to force attach the regional disk even if it's currently attached to
13979
- # another instance. If you try to force attach a zonal disk to an instance, you
13980
- # will receive an error.
14414
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
13981
14415
  # @param [String] request_id
13982
14416
  # An optional request ID to identify requests. Specify a unique request ID so
13983
14417
  # that if you must retry your request, the server will know to ignore the
@@ -14007,16 +14441,14 @@ module Google
14007
14441
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14008
14442
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14009
14443
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14010
- def attach_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14011
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/attachDisk', options)
14012
- command.request_representation = Google::Apis::ComputeBeta::AttachedDisk::Representation
14013
- command.request_object = attached_disk_object
14444
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14445
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
14446
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
14447
+ command.request_object = bulk_insert_instance_resource_object
14014
14448
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14015
14449
  command.response_class = Google::Apis::ComputeBeta::Operation
14016
14450
  command.params['project'] = project unless project.nil?
14017
14451
  command.params['zone'] = zone unless zone.nil?
14018
- command.params['instance'] = instance unless instance.nil?
14019
- command.query['forceAttach'] = force_attach unless force_attach.nil?
14020
14452
  command.query['requestId'] = request_id unless request_id.nil?
14021
14453
  command.query['fields'] = fields unless fields.nil?
14022
14454
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14024,13 +14456,16 @@ module Google
14024
14456
  execute_or_queue_command(command, &block)
14025
14457
  end
14026
14458
 
14027
- # Creates multiple instances. Count specifies the number of instances to create.
14028
- # For more information, see About bulk creation of VMs.
14459
+ # Deletes the specified Instance resource. For more information, see Deleting an
14460
+ # instance.
14029
14461
  # @param [String] project
14030
14462
  # Project ID for this request.
14031
14463
  # @param [String] zone
14032
14464
  # The name of the zone for this request.
14033
- # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
14465
+ # @param [String] instance
14466
+ # Name of the instance resource to delete.
14467
+ # @param [Boolean] no_graceful_shutdown
14468
+ # If set to true, Graceful Shutdown is skipped.
14034
14469
  # @param [String] request_id
14035
14470
  # An optional request ID to identify requests. Specify a unique request ID so
14036
14471
  # that if you must retry your request, the server will know to ignore the
@@ -14060,14 +14495,14 @@ module Google
14060
14495
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14061
14496
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14062
14497
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14063
- def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14064
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
14065
- command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
14066
- command.request_object = bulk_insert_instance_resource_object
14498
+ def delete_instance(project, zone, instance, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14499
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14067
14500
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14068
14501
  command.response_class = Google::Apis::ComputeBeta::Operation
14069
14502
  command.params['project'] = project unless project.nil?
14070
14503
  command.params['zone'] = zone unless zone.nil?
14504
+ command.params['instance'] = instance unless instance.nil?
14505
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
14071
14506
  command.query['requestId'] = request_id unless request_id.nil?
14072
14507
  command.query['fields'] = fields unless fields.nil?
14073
14508
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14075,16 +14510,17 @@ module Google
14075
14510
  execute_or_queue_command(command, &block)
14076
14511
  end
14077
14512
 
14078
- # Deletes the specified Instance resource. For more information, see Deleting an
14079
- # instance.
14513
+ # Deletes an access config from an instance's network interface.
14080
14514
  # @param [String] project
14081
14515
  # Project ID for this request.
14082
14516
  # @param [String] zone
14083
14517
  # The name of the zone for this request.
14084
14518
  # @param [String] instance
14085
- # Name of the instance resource to delete.
14086
- # @param [Boolean] no_graceful_shutdown
14087
- # If set to true, Graceful Shutdown is skipped.
14519
+ # The instance name for this request.
14520
+ # @param [String] access_config
14521
+ # The name of the access config to delete.
14522
+ # @param [String] network_interface
14523
+ # The name of the network interface.
14088
14524
  # @param [String] request_id
14089
14525
  # An optional request ID to identify requests. Specify a unique request ID so
14090
14526
  # that if you must retry your request, the server will know to ignore the
@@ -14114,14 +14550,15 @@ module Google
14114
14550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14115
14551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14116
14552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14117
- def delete_instance(project, zone, instance, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14118
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14553
+ def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14554
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options)
14119
14555
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14120
14556
  command.response_class = Google::Apis::ComputeBeta::Operation
14121
14557
  command.params['project'] = project unless project.nil?
14122
14558
  command.params['zone'] = zone unless zone.nil?
14123
14559
  command.params['instance'] = instance unless instance.nil?
14124
- command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
14560
+ command.query['accessConfig'] = access_config unless access_config.nil?
14561
+ command.query['networkInterface'] = network_interface unless network_interface.nil?
14125
14562
  command.query['requestId'] = request_id unless request_id.nil?
14126
14563
  command.query['fields'] = fields unless fields.nil?
14127
14564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14129,17 +14566,19 @@ module Google
14129
14566
  execute_or_queue_command(command, &block)
14130
14567
  end
14131
14568
 
14132
- # Deletes an access config from an instance's network interface.
14569
+ # Deletes one dynamic network interface from an active instance.
14570
+ # InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to
14571
+ # delete, using project+zone+resource_id fields; - dynamic network interface to
14572
+ # be deleted, using network_interface_name field;
14133
14573
  # @param [String] project
14134
14574
  # Project ID for this request.
14135
14575
  # @param [String] zone
14136
14576
  # The name of the zone for this request.
14137
14577
  # @param [String] instance
14138
- # The instance name for this request.
14139
- # @param [String] access_config
14140
- # The name of the access config to delete.
14141
- # @param [String] network_interface
14142
- # The name of the network interface.
14578
+ # The instance name for this request stored as resource_id. Name should conform
14579
+ # to RFC1035 or be an unsigned long integer.
14580
+ # @param [String] network_interface_name
14581
+ # The name of the dynamic network interface to be deleted from the instance.
14143
14582
  # @param [String] request_id
14144
14583
  # An optional request ID to identify requests. Specify a unique request ID so
14145
14584
  # that if you must retry your request, the server will know to ignore the
@@ -14169,15 +14608,14 @@ module Google
14169
14608
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14170
14609
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14171
14610
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14172
- def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14173
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options)
14611
+ def delete_instance_network_interface(project, zone, instance, network_interface_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14612
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface', options)
14174
14613
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14175
14614
  command.response_class = Google::Apis::ComputeBeta::Operation
14176
14615
  command.params['project'] = project unless project.nil?
14177
14616
  command.params['zone'] = zone unless zone.nil?
14178
14617
  command.params['instance'] = instance unless instance.nil?
14179
- command.query['accessConfig'] = access_config unless access_config.nil?
14180
- command.query['networkInterface'] = network_interface unless network_interface.nil?
14618
+ command.query['networkInterfaceName'] = network_interface_name unless network_interface_name.nil?
14181
14619
  command.query['requestId'] = request_id unless request_id.nil?
14182
14620
  command.query['fields'] = fields unless fields.nil?
14183
14621
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15046,6 +15484,59 @@ module Google
15046
15484
  execute_or_queue_command(command, &block)
15047
15485
  end
15048
15486
 
15487
+ # Mark the host as faulty and try to restart the instance on a new host.
15488
+ # @param [String] project
15489
+ # Project ID for this request.
15490
+ # @param [String] zone
15491
+ # The name of the zone for this request.
15492
+ # @param [String] instance
15493
+ # Name of the instance scoping this request.
15494
+ # @param [Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
15495
+ # @param [String] request_id
15496
+ # An optional request ID to identify requests. Specify a unique request ID so
15497
+ # that if you must retry your request, the server will know to ignore the
15498
+ # request if it has already been completed. For example, consider a situation
15499
+ # where you make an initial request and the request times out. If you make the
15500
+ # request again with the same request ID, the server can check if original
15501
+ # operation with the same request ID was received, and if so, will ignore the
15502
+ # second request. This prevents clients from accidentally creating duplicate
15503
+ # commitments. The request ID must be a valid UUID with the exception that zero
15504
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
15505
+ # @param [String] fields
15506
+ # Selector specifying which fields to include in a partial response.
15507
+ # @param [String] quota_user
15508
+ # Available to use for quota purposes for server-side applications. Can be any
15509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15510
+ # @param [String] user_ip
15511
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15512
+ # @param [Google::Apis::RequestOptions] options
15513
+ # Request-specific options
15514
+ #
15515
+ # @yield [result, err] Result & error if block supplied
15516
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15517
+ # @yieldparam err [StandardError] error object if request failed
15518
+ #
15519
+ # @return [Google::Apis::ComputeBeta::Operation]
15520
+ #
15521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15524
+ 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)
15525
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
15526
+ command.request_representation = Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest::Representation
15527
+ command.request_object = instances_report_host_as_faulty_request_object
15528
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15529
+ command.response_class = Google::Apis::ComputeBeta::Operation
15530
+ command.params['project'] = project unless project.nil?
15531
+ command.params['zone'] = zone unless zone.nil?
15532
+ command.params['instance'] = instance unless instance.nil?
15533
+ command.query['requestId'] = request_id unless request_id.nil?
15534
+ command.query['fields'] = fields unless fields.nil?
15535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15536
+ command.query['userIp'] = user_ip unless user_ip.nil?
15537
+ execute_or_queue_command(command, &block)
15538
+ end
15539
+
15049
15540
  # Performs a reset on the instance. This is a hard reset. The VM does not do a
15050
15541
  # graceful shutdown. For more information, see Resetting an instance.
15051
15542
  # @param [String] project
@@ -24287,7 +24778,9 @@ module Google
24287
24778
  execute_or_queue_command(command, &block)
24288
24779
  end
24289
24780
 
24290
- # Inserts an association for the specified security policy.
24781
+ # Inserts an association for the specified security policy. Use of this API to
24782
+ # modify firewall policies is deprecated. Use firewallPolicies.addAssociation
24783
+ # instead if possible.
24291
24784
  # @param [String] security_policy
24292
24785
  # Name of the security policy to update.
24293
24786
  # @param [Google::Apis::ComputeBeta::SecurityPolicyAssociation] security_policy_association_object
@@ -24386,7 +24879,8 @@ module Google
24386
24879
  execute_or_queue_command(command, &block)
24387
24880
  end
24388
24881
 
24389
- # Copies rules to the specified security policy.
24882
+ # Copies rules to the specified security policy. Use of this API to modify
24883
+ # firewall policies is deprecated. Use firewallPolicies.copyRules instead.
24390
24884
  # @param [String] security_policy
24391
24885
  # Name of the security policy to update.
24392
24886
  # @param [String] request_id
@@ -24433,7 +24927,8 @@ module Google
24433
24927
  execute_or_queue_command(command, &block)
24434
24928
  end
24435
24929
 
24436
- # Deletes the specified policy.
24930
+ # Deletes the specified policy. Use of this API to remove firewall policies is
24931
+ # deprecated. Use firewallPolicies.delete instead.
24437
24932
  # @param [String] security_policy
24438
24933
  # Name of the security policy to delete.
24439
24934
  # @param [String] request_id
@@ -24477,7 +24972,9 @@ module Google
24477
24972
  execute_or_queue_command(command, &block)
24478
24973
  end
24479
24974
 
24480
- # List all of the ordered rules present in a single specified policy.
24975
+ # List all of the ordered rules present in a single specified policy. Use of
24976
+ # this API to read firewall policies is deprecated. Use firewallPolicies.get
24977
+ # instead.
24481
24978
  # @param [String] security_policy
24482
24979
  # Name of the security policy to get.
24483
24980
  # @param [String] fields
@@ -24510,7 +25007,9 @@ module Google
24510
25007
  execute_or_queue_command(command, &block)
24511
25008
  end
24512
25009
 
24513
- # Gets an association with the specified name.
25010
+ # Gets an association with the specified name. Use of this API to read firewall
25011
+ # policies is deprecated. Use firewallPolicies.getAssociation instead if
25012
+ # possible.
24514
25013
  # @param [String] security_policy
24515
25014
  # Name of the security policy to which the queried rule belongs.
24516
25015
  # @param [String] name
@@ -24546,7 +25045,8 @@ module Google
24546
25045
  execute_or_queue_command(command, &block)
24547
25046
  end
24548
25047
 
24549
- # Gets a rule at the specified priority.
25048
+ # Gets a rule at the specified priority. Use of this API to read firewall
25049
+ # policies is deprecated. Use firewallPolicies.getRule instead.
24550
25050
  # @param [String] security_policy
24551
25051
  # Name of the security policy to which the queried rule belongs.
24552
25052
  # @param [Fixnum] priority
@@ -24583,7 +25083,8 @@ module Google
24583
25083
  end
24584
25084
 
24585
25085
  # Creates a new policy in the specified project using the data included in the
24586
- # request.
25086
+ # request. Use of this API to insert firewall policies is deprecated. Use
25087
+ # firewallPolicies.insert instead.
24587
25088
  # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
24588
25089
  # @param [String] parent_id
24589
25090
  # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
@@ -24632,7 +25133,9 @@ module Google
24632
25133
  execute_or_queue_command(command, &block)
24633
25134
  end
24634
25135
 
24635
- # List all the policies that have been configured for the specified project.
25136
+ # List all the policies that have been configured for the specified project. Use
25137
+ # of this API to read firewall policies is deprecated. Use firewallPolicies.list
25138
+ # instead.
24636
25139
  # @param [String] filter
24637
25140
  # A filter expression that filters resources listed in the response. Most
24638
25141
  # Compute resources support two types of filter expressions: expressions that
@@ -24723,7 +25226,9 @@ module Google
24723
25226
  execute_or_queue_command(command, &block)
24724
25227
  end
24725
25228
 
24726
- # Lists associations of a specified target, i.e., organization or folder.
25229
+ # Lists associations of a specified target, i.e., organization or folder. Use of
25230
+ # this API to read firewall policies is deprecated. Use firewallPolicies.
25231
+ # listAssociations instead if possible.
24727
25232
  # @param [String] target_resource
24728
25233
  # The target resource to list associations. It is an organization, or a folder.
24729
25234
  # @param [String] fields
@@ -24848,7 +25353,8 @@ module Google
24848
25353
  execute_or_queue_command(command, &block)
24849
25354
  end
24850
25355
 
24851
- # Moves the specified security policy.
25356
+ # Moves the specified security policy. Use of this API to modify firewall
25357
+ # policies is deprecated. Use firewallPolicies.move instead.
24852
25358
  # @param [String] security_policy
24853
25359
  # Name of the security policy to update.
24854
25360
  # @param [String] parent_id
@@ -24895,7 +25401,9 @@ module Google
24895
25401
  execute_or_queue_command(command, &block)
24896
25402
  end
24897
25403
 
24898
- # Patches the specified policy with the data included in the request.
25404
+ # Patches the specified policy with the data included in the request. Use of
25405
+ # this API to modify firewall policies is deprecated. Use firewallPolicies.patch
25406
+ # instead.
24899
25407
  # @param [String] security_policy
24900
25408
  # Name of the security policy to update.
24901
25409
  # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
@@ -24942,7 +25450,8 @@ module Google
24942
25450
  execute_or_queue_command(command, &block)
24943
25451
  end
24944
25452
 
24945
- # Patches a rule at the specified priority.
25453
+ # Patches a rule at the specified priority. Use of this API to modify firewall
25454
+ # policies is deprecated. Use firewallPolicies.patchRule instead.
24946
25455
  # @param [String] security_policy
24947
25456
  # Name of the security policy to update.
24948
25457
  # @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
@@ -24992,7 +25501,9 @@ module Google
24992
25501
  execute_or_queue_command(command, &block)
24993
25502
  end
24994
25503
 
24995
- # Removes an association for the specified security policy.
25504
+ # Removes an association for the specified security policy. Use of this API to
25505
+ # modify firewall policies is deprecated. Use firewallPolicies.removeAssociation
25506
+ # instead if possible.
24996
25507
  # @param [String] security_policy
24997
25508
  # Name of the security policy to update.
24998
25509
  # @param [String] name
@@ -28557,13 +29068,13 @@ module Google
28557
29068
 
28558
29069
  # Updates the specified commitment with the data included in the request. Update
28559
29070
  # is performed only on selected fields included as part of update-mask. Only the
28560
- # following fields can be modified: auto_renew.
29071
+ # following fields can be updated: auto_renew and plan.
28561
29072
  # @param [String] project
28562
29073
  # Project ID for this request.
28563
29074
  # @param [String] region
28564
29075
  # Name of the region for this request.
28565
29076
  # @param [String] commitment
28566
- # Name of the commitment for which auto renew is being updated.
29077
+ # Name of the commitment that you want to update.
28567
29078
  # @param [Google::Apis::ComputeBeta::Commitment] commitment_object
28568
29079
  # @param [Array<String>, String] paths
28569
29080
  # @param [String] request_id
@@ -28615,13 +29126,14 @@ module Google
28615
29126
  execute_or_queue_command(command, &block)
28616
29127
  end
28617
29128
 
28618
- # Transfers GPUs or local SSDs between reservations within commitments.
29129
+ # Transfers GPUs or Local SSD disks between reservations that are attached to
29130
+ # the same commitment.
28619
29131
  # @param [String] project
28620
29132
  # Project ID for this request.
28621
29133
  # @param [String] region
28622
29134
  # Name of the region for this request.
28623
29135
  # @param [String] commitment
28624
- # Name of the commitment for which the reservation is being updated.
29136
+ # Name of the commitment for which the reservations are being updated.
28625
29137
  # @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object
28626
29138
  # @param [String] request_id
28627
29139
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -38650,6 +39162,64 @@ module Google
38650
39162
  execute_or_queue_command(command, &block)
38651
39163
  end
38652
39164
 
39165
+ # Allows customers to perform maintenance on a reservation block
39166
+ # @param [String] project
39167
+ # Project ID for this request.
39168
+ # @param [String] zone
39169
+ # Name of the zone for this request. Zone name should conform to RFC1035.
39170
+ # @param [String] reservation
39171
+ # The name of the reservation. Name should conform to RFC1035 or be a resource
39172
+ # ID.
39173
+ # @param [String] reservation_block
39174
+ # The name of the reservation block. Name should conform to RFC1035 or be a
39175
+ # resource ID.
39176
+ # @param [Google::Apis::ComputeBeta::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
39177
+ # @param [String] request_id
39178
+ # An optional request ID to identify requests. Specify a unique request ID so
39179
+ # that if you must retry your request, the server will know to ignore the
39180
+ # request if it has already been completed. For example, consider a situation
39181
+ # where you make an initial request and the request times out. If you make the
39182
+ # request again with the same request ID, the server can check if original
39183
+ # operation with the same request ID was received, and if so, will ignore the
39184
+ # second request. This prevents clients from accidentally creating duplicate
39185
+ # commitments. The request ID must be a valid UUID with the exception that zero
39186
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
39187
+ # @param [String] fields
39188
+ # Selector specifying which fields to include in a partial response.
39189
+ # @param [String] quota_user
39190
+ # Available to use for quota purposes for server-side applications. Can be any
39191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39192
+ # @param [String] user_ip
39193
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39194
+ # @param [Google::Apis::RequestOptions] options
39195
+ # Request-specific options
39196
+ #
39197
+ # @yield [result, err] Result & error if block supplied
39198
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
39199
+ # @yieldparam err [StandardError] error object if request failed
39200
+ #
39201
+ # @return [Google::Apis::ComputeBeta::Operation]
39202
+ #
39203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39206
+ def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
39207
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
39208
+ command.request_representation = Google::Apis::ComputeBeta::ReservationsBlocksPerformMaintenanceRequest::Representation
39209
+ command.request_object = reservations_blocks_perform_maintenance_request_object
39210
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
39211
+ command.response_class = Google::Apis::ComputeBeta::Operation
39212
+ command.params['project'] = project unless project.nil?
39213
+ command.params['zone'] = zone unless zone.nil?
39214
+ command.params['reservation'] = reservation unless reservation.nil?
39215
+ command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
39216
+ command.query['requestId'] = request_id unless request_id.nil?
39217
+ command.query['fields'] = fields unless fields.nil?
39218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39219
+ command.query['userIp'] = user_ip unless user_ip.nil?
39220
+ execute_or_queue_command(command, &block)
39221
+ end
39222
+
38653
39223
  # Retrieves an aggregated list of reservations. To prevent failure, Google
38654
39224
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
38655
39225
  # @param [String] project
@@ -39032,6 +39602,60 @@ module Google
39032
39602
  execute_or_queue_command(command, &block)
39033
39603
  end
39034
39604
 
39605
+ # Perform maintenance on an extended reservation
39606
+ # @param [String] project
39607
+ # Project ID for this request.
39608
+ # @param [String] zone
39609
+ # Name of the zone for this request. Zone name should conform to RFC1035.
39610
+ # @param [String] reservation
39611
+ # The name of the reservation. Name should conform to RFC1035 or be a resource
39612
+ # ID.
39613
+ # @param [Google::Apis::ComputeBeta::ReservationsPerformMaintenanceRequest] reservations_perform_maintenance_request_object
39614
+ # @param [String] request_id
39615
+ # An optional request ID to identify requests. Specify a unique request ID so
39616
+ # that if you must retry your request, the server will know to ignore the
39617
+ # request if it has already been completed. For example, consider a situation
39618
+ # where you make an initial request and the request times out. If you make the
39619
+ # request again with the same request ID, the server can check if original
39620
+ # operation with the same request ID was received, and if so, will ignore the
39621
+ # second request. This prevents clients from accidentally creating duplicate
39622
+ # commitments. The request ID must be a valid UUID with the exception that zero
39623
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
39624
+ # @param [String] fields
39625
+ # Selector specifying which fields to include in a partial response.
39626
+ # @param [String] quota_user
39627
+ # Available to use for quota purposes for server-side applications. Can be any
39628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39629
+ # @param [String] user_ip
39630
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39631
+ # @param [Google::Apis::RequestOptions] options
39632
+ # Request-specific options
39633
+ #
39634
+ # @yield [result, err] Result & error if block supplied
39635
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
39636
+ # @yieldparam err [StandardError] error object if request failed
39637
+ #
39638
+ # @return [Google::Apis::ComputeBeta::Operation]
39639
+ #
39640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39643
+ def perform_reservation_maintenance(project, zone, reservation, reservations_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
39644
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance', options)
39645
+ command.request_representation = Google::Apis::ComputeBeta::ReservationsPerformMaintenanceRequest::Representation
39646
+ command.request_object = reservations_perform_maintenance_request_object
39647
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
39648
+ command.response_class = Google::Apis::ComputeBeta::Operation
39649
+ command.params['project'] = project unless project.nil?
39650
+ command.params['zone'] = zone unless zone.nil?
39651
+ command.params['reservation'] = reservation unless reservation.nil?
39652
+ command.query['requestId'] = request_id unless request_id.nil?
39653
+ command.query['fields'] = fields unless fields.nil?
39654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39655
+ command.query['userIp'] = user_ip unless user_ip.nil?
39656
+ execute_or_queue_command(command, &block)
39657
+ end
39658
+
39035
39659
  # Resizes the reservation (applicable to standalone reservations only). For more
39036
39660
  # information, read Modifying reservations.
39037
39661
  # @param [String] project
@@ -50866,6 +51490,302 @@ module Google
50866
51490
  execute_or_queue_command(command, &block)
50867
51491
  end
50868
51492
 
51493
+ # Deletes the specified wire group in the given scope.
51494
+ # @param [String] project
51495
+ # Project ID for this request.
51496
+ # @param [String] cross_site_network
51497
+ # @param [String] wire_group
51498
+ # Name of the wire group resource to delete.
51499
+ # @param [String] request_id
51500
+ # An optional request ID to identify requests. Specify a unique request ID so
51501
+ # that if you must retry your request, the server will know to ignore the
51502
+ # request if it has already been completed. For example, consider a situation
51503
+ # where you make an initial request and the request times out. If you make the
51504
+ # request again with the same request ID, the server can check if original
51505
+ # operation with the same request ID was received, and if so, will ignore the
51506
+ # second request. This prevents clients from accidentally creating duplicate
51507
+ # commitments. The request ID must be a valid UUID with the exception that zero
51508
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
51509
+ # MixerMutationRequestBuilder
51510
+ # @param [String] fields
51511
+ # Selector specifying which fields to include in a partial response.
51512
+ # @param [String] quota_user
51513
+ # Available to use for quota purposes for server-side applications. Can be any
51514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
51515
+ # @param [String] user_ip
51516
+ # Legacy name for parameter that has been superseded by `quotaUser`.
51517
+ # @param [Google::Apis::RequestOptions] options
51518
+ # Request-specific options
51519
+ #
51520
+ # @yield [result, err] Result & error if block supplied
51521
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
51522
+ # @yieldparam err [StandardError] error object if request failed
51523
+ #
51524
+ # @return [Google::Apis::ComputeBeta::Operation]
51525
+ #
51526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
51527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
51528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
51529
+ def delete_wire_group(project, cross_site_network, wire_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
51530
+ command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
51531
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
51532
+ command.response_class = Google::Apis::ComputeBeta::Operation
51533
+ command.params['project'] = project unless project.nil?
51534
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
51535
+ command.params['wireGroup'] = wire_group unless wire_group.nil?
51536
+ command.query['requestId'] = request_id unless request_id.nil?
51537
+ command.query['fields'] = fields unless fields.nil?
51538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
51539
+ command.query['userIp'] = user_ip unless user_ip.nil?
51540
+ execute_or_queue_command(command, &block)
51541
+ end
51542
+
51543
+ # Gets the specified wire group resource in the given scope.
51544
+ # @param [String] project
51545
+ # Project ID for this request.
51546
+ # @param [String] cross_site_network
51547
+ # @param [String] wire_group
51548
+ # Name of the wire group resource to return.
51549
+ # @param [String] fields
51550
+ # Selector specifying which fields to include in a partial response.
51551
+ # @param [String] quota_user
51552
+ # Available to use for quota purposes for server-side applications. Can be any
51553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
51554
+ # @param [String] user_ip
51555
+ # Legacy name for parameter that has been superseded by `quotaUser`.
51556
+ # @param [Google::Apis::RequestOptions] options
51557
+ # Request-specific options
51558
+ #
51559
+ # @yield [result, err] Result & error if block supplied
51560
+ # @yieldparam result [Google::Apis::ComputeBeta::WireGroup] parsed result object
51561
+ # @yieldparam err [StandardError] error object if request failed
51562
+ #
51563
+ # @return [Google::Apis::ComputeBeta::WireGroup]
51564
+ #
51565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
51566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
51567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
51568
+ def get_wire_group(project, cross_site_network, wire_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
51569
+ command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
51570
+ command.response_representation = Google::Apis::ComputeBeta::WireGroup::Representation
51571
+ command.response_class = Google::Apis::ComputeBeta::WireGroup
51572
+ command.params['project'] = project unless project.nil?
51573
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
51574
+ command.params['wireGroup'] = wire_group unless wire_group.nil?
51575
+ command.query['fields'] = fields unless fields.nil?
51576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
51577
+ command.query['userIp'] = user_ip unless user_ip.nil?
51578
+ execute_or_queue_command(command, &block)
51579
+ end
51580
+
51581
+ # Creates a wire group in the specified project in the given scope using the
51582
+ # parameters that are included in the request.
51583
+ # @param [String] project
51584
+ # Project ID for this request.
51585
+ # @param [String] cross_site_network
51586
+ # @param [Google::Apis::ComputeBeta::WireGroup] wire_group_object
51587
+ # @param [String] request_id
51588
+ # An optional request ID to identify requests. Specify a unique request ID so
51589
+ # that if you must retry your request, the server will know to ignore the
51590
+ # request if it has already been completed. For example, consider a situation
51591
+ # where you make an initial request and the request times out. If you make the
51592
+ # request again with the same request ID, the server can check if original
51593
+ # operation with the same request ID was received, and if so, will ignore the
51594
+ # second request. This prevents clients from accidentally creating duplicate
51595
+ # commitments. The request ID must be a valid UUID with the exception that zero
51596
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
51597
+ # MixerMutationRequestBuilder
51598
+ # @param [Boolean] validate_only
51599
+ # [Input Only] Validate the new configuration, but don't create it.
51600
+ # @param [String] fields
51601
+ # Selector specifying which fields to include in a partial response.
51602
+ # @param [String] quota_user
51603
+ # Available to use for quota purposes for server-side applications. Can be any
51604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
51605
+ # @param [String] user_ip
51606
+ # Legacy name for parameter that has been superseded by `quotaUser`.
51607
+ # @param [Google::Apis::RequestOptions] options
51608
+ # Request-specific options
51609
+ #
51610
+ # @yield [result, err] Result & error if block supplied
51611
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
51612
+ # @yieldparam err [StandardError] error object if request failed
51613
+ #
51614
+ # @return [Google::Apis::ComputeBeta::Operation]
51615
+ #
51616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
51617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
51618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
51619
+ 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)
51620
+ command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
51621
+ command.request_representation = Google::Apis::ComputeBeta::WireGroup::Representation
51622
+ command.request_object = wire_group_object
51623
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
51624
+ command.response_class = Google::Apis::ComputeBeta::Operation
51625
+ command.params['project'] = project unless project.nil?
51626
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
51627
+ command.query['requestId'] = request_id unless request_id.nil?
51628
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
51629
+ command.query['fields'] = fields unless fields.nil?
51630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
51631
+ command.query['userIp'] = user_ip unless user_ip.nil?
51632
+ execute_or_queue_command(command, &block)
51633
+ end
51634
+
51635
+ # Lists the wire groups for a project in the given scope.
51636
+ # @param [String] project
51637
+ # Project ID for this request.
51638
+ # @param [String] cross_site_network
51639
+ # @param [String] filter
51640
+ # A filter expression that filters resources listed in the response. Most
51641
+ # Compute resources support two types of filter expressions: expressions that
51642
+ # support regular expressions and expressions that follow API improvement
51643
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
51644
+ # request. If you want to use AIP-160, your expression must specify the field
51645
+ # name, an operator, and the value that you want to use for filtering. The value
51646
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
51647
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
51648
+ # Engine instances, you can exclude instances named `example-instance` by
51649
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
51650
+ # whether a key has been defined. For example, to find all objects with `owner`
51651
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
51652
+ # example, you could specify `scheduling.automaticRestart = false` to include
51653
+ # instances only if they are not scheduled for automatic restarts. You can use
51654
+ # filtering on nested fields to filter based on resource labels. To filter on
51655
+ # multiple expressions, provide each separate expression within parentheses. For
51656
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
51657
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
51658
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
51659
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
51660
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
51661
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
51662
+ # un-parenthesized expression with or without quotes or against multiple
51663
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
51664
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
51665
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
51666
+ # interpreted as a regular expression using Google RE2 library syntax. The
51667
+ # literal value must match the entire field. For example, to filter for
51668
+ # instances that do not end with name "instance", you would use `name ne .*
51669
+ # instance`. You cannot combine constraints on multiple fields using regular
51670
+ # expressions.
51671
+ # @param [Fixnum] max_results
51672
+ # The maximum number of results per page that should be returned. If the number
51673
+ # of available results is larger than `maxResults`, Compute Engine returns a `
51674
+ # nextPageToken` that can be used to get the next page of results in subsequent
51675
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
51676
+ # @param [String] order_by
51677
+ # Sorts list results by a certain order. By default, results are returned in
51678
+ # alphanumerical order based on the resource name. You can also sort results in
51679
+ # descending order based on the creation timestamp using `orderBy="
51680
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
51681
+ # field in reverse chronological order (newest result first). Use this to sort
51682
+ # resources like operations so that the newest operation is returned first.
51683
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
51684
+ # @param [String] page_token
51685
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
51686
+ # by a previous list request to get the next page of results.
51687
+ # @param [Boolean] return_partial_success
51688
+ # Opt-in for partial success behavior which provides partial results in case of
51689
+ # failure. The default value is false. For example, when partial success
51690
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
51691
+ # resources in the zone or no resources, with an error code.
51692
+ # @param [String] fields
51693
+ # Selector specifying which fields to include in a partial response.
51694
+ # @param [String] quota_user
51695
+ # Available to use for quota purposes for server-side applications. Can be any
51696
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
51697
+ # @param [String] user_ip
51698
+ # Legacy name for parameter that has been superseded by `quotaUser`.
51699
+ # @param [Google::Apis::RequestOptions] options
51700
+ # Request-specific options
51701
+ #
51702
+ # @yield [result, err] Result & error if block supplied
51703
+ # @yieldparam result [Google::Apis::ComputeBeta::WireGroupList] parsed result object
51704
+ # @yieldparam err [StandardError] error object if request failed
51705
+ #
51706
+ # @return [Google::Apis::ComputeBeta::WireGroupList]
51707
+ #
51708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
51709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
51710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
51711
+ 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)
51712
+ command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
51713
+ command.response_representation = Google::Apis::ComputeBeta::WireGroupList::Representation
51714
+ command.response_class = Google::Apis::ComputeBeta::WireGroupList
51715
+ command.params['project'] = project unless project.nil?
51716
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
51717
+ command.query['filter'] = filter unless filter.nil?
51718
+ command.query['maxResults'] = max_results unless max_results.nil?
51719
+ command.query['orderBy'] = order_by unless order_by.nil?
51720
+ command.query['pageToken'] = page_token unless page_token.nil?
51721
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
51722
+ command.query['fields'] = fields unless fields.nil?
51723
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
51724
+ command.query['userIp'] = user_ip unless user_ip.nil?
51725
+ execute_or_queue_command(command, &block)
51726
+ end
51727
+
51728
+ # Updates the specified wire group resource with the data included in the
51729
+ # request. This method supports PATCH semantics and uses JSON merge patch format
51730
+ # and processing rules.
51731
+ # @param [String] project
51732
+ # Project ID for this request.
51733
+ # @param [String] cross_site_network
51734
+ # @param [String] wire_group
51735
+ # Name of the WireGroups resource to patch.
51736
+ # @param [Google::Apis::ComputeBeta::WireGroup] wire_group_object
51737
+ # @param [String] request_id
51738
+ # An optional request ID to identify requests. Specify a unique request ID so
51739
+ # that if you must retry your request, the server will know to ignore the
51740
+ # request if it has already been completed. For example, consider a situation
51741
+ # where you make an initial request and the request times out. If you make the
51742
+ # request again with the same request ID, the server can check if original
51743
+ # operation with the same request ID was received, and if so, will ignore the
51744
+ # second request. This prevents clients from accidentally creating duplicate
51745
+ # commitments. The request ID must be a valid UUID with the exception that zero
51746
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
51747
+ # MixerMutationRequestBuilder
51748
+ # @param [String] update_mask
51749
+ # update_mask indicates fields to be updated as part of this request.
51750
+ # @param [Boolean] validate_only
51751
+ # [Input Only] Validate the new configuration, but don't update it.
51752
+ # @param [String] fields
51753
+ # Selector specifying which fields to include in a partial response.
51754
+ # @param [String] quota_user
51755
+ # Available to use for quota purposes for server-side applications. Can be any
51756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
51757
+ # @param [String] user_ip
51758
+ # Legacy name for parameter that has been superseded by `quotaUser`.
51759
+ # @param [Google::Apis::RequestOptions] options
51760
+ # Request-specific options
51761
+ #
51762
+ # @yield [result, err] Result & error if block supplied
51763
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
51764
+ # @yieldparam err [StandardError] error object if request failed
51765
+ #
51766
+ # @return [Google::Apis::ComputeBeta::Operation]
51767
+ #
51768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
51769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
51770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
51771
+ 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)
51772
+ command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
51773
+ command.request_representation = Google::Apis::ComputeBeta::WireGroup::Representation
51774
+ command.request_object = wire_group_object
51775
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
51776
+ command.response_class = Google::Apis::ComputeBeta::Operation
51777
+ command.params['project'] = project unless project.nil?
51778
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
51779
+ command.params['wireGroup'] = wire_group unless wire_group.nil?
51780
+ command.query['requestId'] = request_id unless request_id.nil?
51781
+ command.query['updateMask'] = update_mask unless update_mask.nil?
51782
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
51783
+ command.query['fields'] = fields unless fields.nil?
51784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
51785
+ command.query['userIp'] = user_ip unless user_ip.nil?
51786
+ execute_or_queue_command(command, &block)
51787
+ end
51788
+
50869
51789
  # Deletes the specified zone-specific Operations resource.
50870
51790
  # @param [String] project
50871
51791
  # Project ID for this request.