google-apis-compute_beta 0.92.0 → 0.94.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.
@@ -9977,6 +9977,8 @@ module Google
9977
9977
  # failure. The default value is false. For example, when partial success
9978
9978
  # behavior is enabled, aggregatedList for a single zone scope either returns all
9979
9979
  # resources in the zone or no resources, with an error code.
9980
+ # @param [String] zone
9981
+ # The zone query parameter.
9980
9982
  # @param [String] fields
9981
9983
  # Selector specifying which fields to include in a partial response.
9982
9984
  # @param [String] quota_user
@@ -9996,7 +9998,7 @@ module Google
9996
9998
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9997
9999
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9998
10000
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9999
- def list_images(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)
10001
+ def list_images(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10000
10002
  command = make_simple_command(:get, 'projects/{project}/global/images', options)
10001
10003
  command.response_representation = Google::Apis::ComputeBeta::ImageList::Representation
10002
10004
  command.response_class = Google::Apis::ComputeBeta::ImageList
@@ -10006,6 +10008,7 @@ module Google
10006
10008
  command.query['orderBy'] = order_by unless order_by.nil?
10007
10009
  command.query['pageToken'] = page_token unless page_token.nil?
10008
10010
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10011
+ command.query['zone'] = zone unless zone.nil?
10009
10012
  command.query['fields'] = fields unless fields.nil?
10010
10013
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10011
10014
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -41716,6 +41719,867 @@ module Google
41716
41719
  execute_or_queue_command(command, &block)
41717
41720
  end
41718
41721
 
41722
+ # Retrieves an aggregated list of storage pool types. To prevent failure, Google
41723
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
41724
+ # @param [String] project
41725
+ # Project ID for this request.
41726
+ # @param [String] filter
41727
+ # A filter expression that filters resources listed in the response. Most
41728
+ # Compute resources support two types of filter expressions: expressions that
41729
+ # support regular expressions and expressions that follow API improvement
41730
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41731
+ # request. If you want to use AIP-160, your expression must specify the field
41732
+ # name, an operator, and the value that you want to use for filtering. The value
41733
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41734
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41735
+ # Engine instances, you can exclude instances named `example-instance` by
41736
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41737
+ # whether a key has been defined. For example, to find all objects with `owner`
41738
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41739
+ # example, you could specify `scheduling.automaticRestart = false` to include
41740
+ # instances only if they are not scheduled for automatic restarts. You can use
41741
+ # filtering on nested fields to filter based on resource labels. To filter on
41742
+ # multiple expressions, provide each separate expression within parentheses. For
41743
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41744
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41745
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41746
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41747
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41748
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41749
+ # un-parenthesized expression with or without quotes or against multiple
41750
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41751
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41752
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41753
+ # interpreted as a regular expression using Google RE2 library syntax. The
41754
+ # literal value must match the entire field. For example, to filter for
41755
+ # instances that do not end with name "instance", you would use `name ne .*
41756
+ # instance`. You cannot combine constraints on multiple fields using regular
41757
+ # expressions.
41758
+ # @param [Boolean] include_all_scopes
41759
+ # Indicates whether every visible scope for each scope type (zone, region,
41760
+ # global) should be included in the response. For new resource types added after
41761
+ # this field, the flag has no effect as new resource types will always include
41762
+ # every visible scope for each scope type in response. For resource types which
41763
+ # predate this field, if this flag is omitted or false, only scopes of the scope
41764
+ # types where the resource type is expected to be found will be included.
41765
+ # @param [Fixnum] max_results
41766
+ # The maximum number of results per page that should be returned. If the number
41767
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41768
+ # nextPageToken` that can be used to get the next page of results in subsequent
41769
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41770
+ # @param [String] order_by
41771
+ # Sorts list results by a certain order. By default, results are returned in
41772
+ # alphanumerical order based on the resource name. You can also sort results in
41773
+ # descending order based on the creation timestamp using `orderBy="
41774
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41775
+ # field in reverse chronological order (newest result first). Use this to sort
41776
+ # resources like operations so that the newest operation is returned first.
41777
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41778
+ # @param [String] page_token
41779
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41780
+ # by a previous list request to get the next page of results.
41781
+ # @param [Boolean] return_partial_success
41782
+ # Opt-in for partial success behavior which provides partial results in case of
41783
+ # failure. The default value is false. For example, when partial success
41784
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41785
+ # resources in the zone or no resources, with an error code.
41786
+ # @param [Fixnum] service_project_number
41787
+ # The Shared VPC service project id or service project number for which
41788
+ # aggregated list request is invoked for subnetworks list-usable api.
41789
+ # @param [String] fields
41790
+ # Selector specifying which fields to include in a partial response.
41791
+ # @param [String] quota_user
41792
+ # Available to use for quota purposes for server-side applications. Can be any
41793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41794
+ # @param [String] user_ip
41795
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41796
+ # @param [Google::Apis::RequestOptions] options
41797
+ # Request-specific options
41798
+ #
41799
+ # @yield [result, err] Result & error if block supplied
41800
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList] parsed result object
41801
+ # @yieldparam err [StandardError] error object if request failed
41802
+ #
41803
+ # @return [Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList]
41804
+ #
41805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41808
+ def aggregated_storage_pool_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41809
+ command = make_simple_command(:get, 'projects/{project}/aggregated/storagePoolTypes', options)
41810
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList::Representation
41811
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList
41812
+ command.params['project'] = project unless project.nil?
41813
+ command.query['filter'] = filter unless filter.nil?
41814
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
41815
+ command.query['maxResults'] = max_results unless max_results.nil?
41816
+ command.query['orderBy'] = order_by unless order_by.nil?
41817
+ command.query['pageToken'] = page_token unless page_token.nil?
41818
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41819
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
41820
+ command.query['fields'] = fields unless fields.nil?
41821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41822
+ command.query['userIp'] = user_ip unless user_ip.nil?
41823
+ execute_or_queue_command(command, &block)
41824
+ end
41825
+
41826
+ # Returns the specified storage pool type.
41827
+ # @param [String] project
41828
+ # Project ID for this request.
41829
+ # @param [String] zone
41830
+ # The name of the zone for this request.
41831
+ # @param [String] storage_pool_type
41832
+ # Name of the storage pool type to return.
41833
+ # @param [String] fields
41834
+ # Selector specifying which fields to include in a partial response.
41835
+ # @param [String] quota_user
41836
+ # Available to use for quota purposes for server-side applications. Can be any
41837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41838
+ # @param [String] user_ip
41839
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41840
+ # @param [Google::Apis::RequestOptions] options
41841
+ # Request-specific options
41842
+ #
41843
+ # @yield [result, err] Result & error if block supplied
41844
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolType] parsed result object
41845
+ # @yieldparam err [StandardError] error object if request failed
41846
+ #
41847
+ # @return [Google::Apis::ComputeBeta::StoragePoolType]
41848
+ #
41849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41852
+ def get_storage_pool_type(project, zone, storage_pool_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41853
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}', options)
41854
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolType::Representation
41855
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolType
41856
+ command.params['project'] = project unless project.nil?
41857
+ command.params['zone'] = zone unless zone.nil?
41858
+ command.params['storagePoolType'] = storage_pool_type unless storage_pool_type.nil?
41859
+ command.query['fields'] = fields unless fields.nil?
41860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41861
+ command.query['userIp'] = user_ip unless user_ip.nil?
41862
+ execute_or_queue_command(command, &block)
41863
+ end
41864
+
41865
+ # Retrieves a list of storage pool types available to the specified project.
41866
+ # @param [String] project
41867
+ # Project ID for this request.
41868
+ # @param [String] zone
41869
+ # The name of the zone for this request.
41870
+ # @param [String] filter
41871
+ # A filter expression that filters resources listed in the response. Most
41872
+ # Compute resources support two types of filter expressions: expressions that
41873
+ # support regular expressions and expressions that follow API improvement
41874
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41875
+ # request. If you want to use AIP-160, your expression must specify the field
41876
+ # name, an operator, and the value that you want to use for filtering. The value
41877
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41878
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41879
+ # Engine instances, you can exclude instances named `example-instance` by
41880
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41881
+ # whether a key has been defined. For example, to find all objects with `owner`
41882
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41883
+ # example, you could specify `scheduling.automaticRestart = false` to include
41884
+ # instances only if they are not scheduled for automatic restarts. You can use
41885
+ # filtering on nested fields to filter based on resource labels. To filter on
41886
+ # multiple expressions, provide each separate expression within parentheses. For
41887
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41888
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41889
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41890
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41891
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41892
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41893
+ # un-parenthesized expression with or without quotes or against multiple
41894
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41895
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41896
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41897
+ # interpreted as a regular expression using Google RE2 library syntax. The
41898
+ # literal value must match the entire field. For example, to filter for
41899
+ # instances that do not end with name "instance", you would use `name ne .*
41900
+ # instance`. You cannot combine constraints on multiple fields using regular
41901
+ # expressions.
41902
+ # @param [Fixnum] max_results
41903
+ # The maximum number of results per page that should be returned. If the number
41904
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41905
+ # nextPageToken` that can be used to get the next page of results in subsequent
41906
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41907
+ # @param [String] order_by
41908
+ # Sorts list results by a certain order. By default, results are returned in
41909
+ # alphanumerical order based on the resource name. You can also sort results in
41910
+ # descending order based on the creation timestamp using `orderBy="
41911
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41912
+ # field in reverse chronological order (newest result first). Use this to sort
41913
+ # resources like operations so that the newest operation is returned first.
41914
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41915
+ # @param [String] page_token
41916
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41917
+ # by a previous list request to get the next page of results.
41918
+ # @param [Boolean] return_partial_success
41919
+ # Opt-in for partial success behavior which provides partial results in case of
41920
+ # failure. The default value is false. For example, when partial success
41921
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41922
+ # resources in the zone or no resources, with an error code.
41923
+ # @param [String] fields
41924
+ # Selector specifying which fields to include in a partial response.
41925
+ # @param [String] quota_user
41926
+ # Available to use for quota purposes for server-side applications. Can be any
41927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41928
+ # @param [String] user_ip
41929
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41930
+ # @param [Google::Apis::RequestOptions] options
41931
+ # Request-specific options
41932
+ #
41933
+ # @yield [result, err] Result & error if block supplied
41934
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolTypeList] parsed result object
41935
+ # @yieldparam err [StandardError] error object if request failed
41936
+ #
41937
+ # @return [Google::Apis::ComputeBeta::StoragePoolTypeList]
41938
+ #
41939
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41940
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41941
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41942
+ def list_storage_pool_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)
41943
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes', options)
41944
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolTypeList::Representation
41945
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolTypeList
41946
+ command.params['project'] = project unless project.nil?
41947
+ command.params['zone'] = zone unless zone.nil?
41948
+ command.query['filter'] = filter unless filter.nil?
41949
+ command.query['maxResults'] = max_results unless max_results.nil?
41950
+ command.query['orderBy'] = order_by unless order_by.nil?
41951
+ command.query['pageToken'] = page_token unless page_token.nil?
41952
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41953
+ command.query['fields'] = fields unless fields.nil?
41954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41955
+ command.query['userIp'] = user_ip unless user_ip.nil?
41956
+ execute_or_queue_command(command, &block)
41957
+ end
41958
+
41959
+ # Retrieves an aggregated list of storage pools. To prevent failure, Google
41960
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
41961
+ # @param [String] project
41962
+ # Project ID for this request.
41963
+ # @param [String] filter
41964
+ # A filter expression that filters resources listed in the response. Most
41965
+ # Compute resources support two types of filter expressions: expressions that
41966
+ # support regular expressions and expressions that follow API improvement
41967
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41968
+ # request. If you want to use AIP-160, your expression must specify the field
41969
+ # name, an operator, and the value that you want to use for filtering. The value
41970
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41971
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41972
+ # Engine instances, you can exclude instances named `example-instance` by
41973
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41974
+ # whether a key has been defined. For example, to find all objects with `owner`
41975
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41976
+ # example, you could specify `scheduling.automaticRestart = false` to include
41977
+ # instances only if they are not scheduled for automatic restarts. You can use
41978
+ # filtering on nested fields to filter based on resource labels. To filter on
41979
+ # multiple expressions, provide each separate expression within parentheses. For
41980
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41981
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41982
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41983
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41984
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41985
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41986
+ # un-parenthesized expression with or without quotes or against multiple
41987
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41988
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41989
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41990
+ # interpreted as a regular expression using Google RE2 library syntax. The
41991
+ # literal value must match the entire field. For example, to filter for
41992
+ # instances that do not end with name "instance", you would use `name ne .*
41993
+ # instance`. You cannot combine constraints on multiple fields using regular
41994
+ # expressions.
41995
+ # @param [Boolean] include_all_scopes
41996
+ # Indicates whether every visible scope for each scope type (zone, region,
41997
+ # global) should be included in the response. For new resource types added after
41998
+ # this field, the flag has no effect as new resource types will always include
41999
+ # every visible scope for each scope type in response. For resource types which
42000
+ # predate this field, if this flag is omitted or false, only scopes of the scope
42001
+ # types where the resource type is expected to be found will be included.
42002
+ # @param [Fixnum] max_results
42003
+ # The maximum number of results per page that should be returned. If the number
42004
+ # of available results is larger than `maxResults`, Compute Engine returns a `
42005
+ # nextPageToken` that can be used to get the next page of results in subsequent
42006
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
42007
+ # @param [String] order_by
42008
+ # Sorts list results by a certain order. By default, results are returned in
42009
+ # alphanumerical order based on the resource name. You can also sort results in
42010
+ # descending order based on the creation timestamp using `orderBy="
42011
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
42012
+ # field in reverse chronological order (newest result first). Use this to sort
42013
+ # resources like operations so that the newest operation is returned first.
42014
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
42015
+ # @param [String] page_token
42016
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
42017
+ # by a previous list request to get the next page of results.
42018
+ # @param [Boolean] return_partial_success
42019
+ # Opt-in for partial success behavior which provides partial results in case of
42020
+ # failure. The default value is false. For example, when partial success
42021
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
42022
+ # resources in the zone or no resources, with an error code.
42023
+ # @param [Fixnum] service_project_number
42024
+ # The Shared VPC service project id or service project number for which
42025
+ # aggregated list request is invoked for subnetworks list-usable api.
42026
+ # @param [String] fields
42027
+ # Selector specifying which fields to include in a partial response.
42028
+ # @param [String] quota_user
42029
+ # Available to use for quota purposes for server-side applications. Can be any
42030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42031
+ # @param [String] user_ip
42032
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42033
+ # @param [Google::Apis::RequestOptions] options
42034
+ # Request-specific options
42035
+ #
42036
+ # @yield [result, err] Result & error if block supplied
42037
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolAggregatedList] parsed result object
42038
+ # @yieldparam err [StandardError] error object if request failed
42039
+ #
42040
+ # @return [Google::Apis::ComputeBeta::StoragePoolAggregatedList]
42041
+ #
42042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42045
+ def aggregated_storage_pool_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42046
+ command = make_simple_command(:get, 'projects/{project}/aggregated/storagePools', options)
42047
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolAggregatedList::Representation
42048
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolAggregatedList
42049
+ command.params['project'] = project unless project.nil?
42050
+ command.query['filter'] = filter unless filter.nil?
42051
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
42052
+ command.query['maxResults'] = max_results unless max_results.nil?
42053
+ command.query['orderBy'] = order_by unless order_by.nil?
42054
+ command.query['pageToken'] = page_token unless page_token.nil?
42055
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42056
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
42057
+ command.query['fields'] = fields unless fields.nil?
42058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42059
+ command.query['userIp'] = user_ip unless user_ip.nil?
42060
+ execute_or_queue_command(command, &block)
42061
+ end
42062
+
42063
+ # Deletes the specified storage pool. Deleting a storagePool removes its data
42064
+ # permanently and is irreversible. However, deleting a storagePool does not
42065
+ # delete any snapshots previously made from the storagePool. You must separately
42066
+ # delete snapshots.
42067
+ # @param [String] project
42068
+ # Project ID for this request.
42069
+ # @param [String] zone
42070
+ # The name of the zone for this request.
42071
+ # @param [String] storage_pool
42072
+ # Name of the storage pool to delete.
42073
+ # @param [String] request_id
42074
+ # An optional request ID to identify requests. Specify a unique request ID so
42075
+ # that if you must retry your request, the server will know to ignore the
42076
+ # request if it has already been completed. For example, consider a situation
42077
+ # where you make an initial request and the request times out. If you make the
42078
+ # request again with the same request ID, the server can check if original
42079
+ # operation with the same request ID was received, and if so, will ignore the
42080
+ # second request. This prevents clients from accidentally creating duplicate
42081
+ # commitments. The request ID must be a valid UUID with the exception that zero
42082
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42083
+ # @param [String] fields
42084
+ # Selector specifying which fields to include in a partial response.
42085
+ # @param [String] quota_user
42086
+ # Available to use for quota purposes for server-side applications. Can be any
42087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42088
+ # @param [String] user_ip
42089
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42090
+ # @param [Google::Apis::RequestOptions] options
42091
+ # Request-specific options
42092
+ #
42093
+ # @yield [result, err] Result & error if block supplied
42094
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
42095
+ # @yieldparam err [StandardError] error object if request failed
42096
+ #
42097
+ # @return [Google::Apis::ComputeBeta::Operation]
42098
+ #
42099
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42102
+ def delete_storage_pool(project, zone, storage_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42103
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42104
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
42105
+ command.response_class = Google::Apis::ComputeBeta::Operation
42106
+ command.params['project'] = project unless project.nil?
42107
+ command.params['zone'] = zone unless zone.nil?
42108
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42109
+ command.query['requestId'] = request_id unless request_id.nil?
42110
+ command.query['fields'] = fields unless fields.nil?
42111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42112
+ command.query['userIp'] = user_ip unless user_ip.nil?
42113
+ execute_or_queue_command(command, &block)
42114
+ end
42115
+
42116
+ # Returns a specified storage pool. Gets a list of available storage pools by
42117
+ # making a list() request.
42118
+ # @param [String] project
42119
+ # Project ID for this request.
42120
+ # @param [String] zone
42121
+ # The name of the zone for this request.
42122
+ # @param [String] storage_pool
42123
+ # Name of the storage pool to return.
42124
+ # @param [String] fields
42125
+ # Selector specifying which fields to include in a partial response.
42126
+ # @param [String] quota_user
42127
+ # Available to use for quota purposes for server-side applications. Can be any
42128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42129
+ # @param [String] user_ip
42130
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42131
+ # @param [Google::Apis::RequestOptions] options
42132
+ # Request-specific options
42133
+ #
42134
+ # @yield [result, err] Result & error if block supplied
42135
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePool] parsed result object
42136
+ # @yieldparam err [StandardError] error object if request failed
42137
+ #
42138
+ # @return [Google::Apis::ComputeBeta::StoragePool]
42139
+ #
42140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42143
+ def get_storage_pool(project, zone, storage_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42144
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42145
+ command.response_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42146
+ command.response_class = Google::Apis::ComputeBeta::StoragePool
42147
+ command.params['project'] = project unless project.nil?
42148
+ command.params['zone'] = zone unless zone.nil?
42149
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42150
+ command.query['fields'] = fields unless fields.nil?
42151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42152
+ command.query['userIp'] = user_ip unless user_ip.nil?
42153
+ execute_or_queue_command(command, &block)
42154
+ end
42155
+
42156
+ # Gets the access control policy for a resource. May be empty if no such policy
42157
+ # or resource exists.
42158
+ # @param [String] project
42159
+ # Project ID for this request.
42160
+ # @param [String] zone
42161
+ # The name of the zone for this request.
42162
+ # @param [String] resource
42163
+ # Name or id of the resource for this request.
42164
+ # @param [Fixnum] options_requested_policy_version
42165
+ # Requested IAM Policy version.
42166
+ # @param [String] fields
42167
+ # Selector specifying which fields to include in a partial response.
42168
+ # @param [String] quota_user
42169
+ # Available to use for quota purposes for server-side applications. Can be any
42170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42171
+ # @param [String] user_ip
42172
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42173
+ # @param [Google::Apis::RequestOptions] options
42174
+ # Request-specific options
42175
+ #
42176
+ # @yield [result, err] Result & error if block supplied
42177
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
42178
+ # @yieldparam err [StandardError] error object if request failed
42179
+ #
42180
+ # @return [Google::Apis::ComputeBeta::Policy]
42181
+ #
42182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42185
+ def get_storage_pool_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42186
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy', options)
42187
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
42188
+ command.response_class = Google::Apis::ComputeBeta::Policy
42189
+ command.params['project'] = project unless project.nil?
42190
+ command.params['zone'] = zone unless zone.nil?
42191
+ command.params['resource'] = resource unless resource.nil?
42192
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
42193
+ command.query['fields'] = fields unless fields.nil?
42194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42195
+ command.query['userIp'] = user_ip unless user_ip.nil?
42196
+ execute_or_queue_command(command, &block)
42197
+ end
42198
+
42199
+ # Creates a storage pool in the specified project using the data in the request.
42200
+ # @param [String] project
42201
+ # Project ID for this request.
42202
+ # @param [String] zone
42203
+ # The name of the zone for this request.
42204
+ # @param [Google::Apis::ComputeBeta::StoragePool] storage_pool_object
42205
+ # @param [String] request_id
42206
+ # An optional request ID to identify requests. Specify a unique request ID so
42207
+ # that if you must retry your request, the server will know to ignore the
42208
+ # request if it has already been completed. For example, consider a situation
42209
+ # where you make an initial request and the request times out. If you make the
42210
+ # request again with the same request ID, the server can check if original
42211
+ # operation with the same request ID was received, and if so, will ignore the
42212
+ # second request. This prevents clients from accidentally creating duplicate
42213
+ # commitments. The request ID must be a valid UUID with the exception that zero
42214
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42215
+ # @param [String] fields
42216
+ # Selector specifying which fields to include in a partial response.
42217
+ # @param [String] quota_user
42218
+ # Available to use for quota purposes for server-side applications. Can be any
42219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42220
+ # @param [String] user_ip
42221
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42222
+ # @param [Google::Apis::RequestOptions] options
42223
+ # Request-specific options
42224
+ #
42225
+ # @yield [result, err] Result & error if block supplied
42226
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
42227
+ # @yieldparam err [StandardError] error object if request failed
42228
+ #
42229
+ # @return [Google::Apis::ComputeBeta::Operation]
42230
+ #
42231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42234
+ def insert_storage_pool(project, zone, storage_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42235
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools', options)
42236
+ command.request_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42237
+ command.request_object = storage_pool_object
42238
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
42239
+ command.response_class = Google::Apis::ComputeBeta::Operation
42240
+ command.params['project'] = project unless project.nil?
42241
+ command.params['zone'] = zone unless zone.nil?
42242
+ command.query['requestId'] = request_id unless request_id.nil?
42243
+ command.query['fields'] = fields unless fields.nil?
42244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42245
+ command.query['userIp'] = user_ip unless user_ip.nil?
42246
+ execute_or_queue_command(command, &block)
42247
+ end
42248
+
42249
+ # Retrieves a list of storage pools contained within the specified zone.
42250
+ # @param [String] project
42251
+ # Project ID for this request.
42252
+ # @param [String] zone
42253
+ # The name of the zone for this request.
42254
+ # @param [String] filter
42255
+ # A filter expression that filters resources listed in the response. Most
42256
+ # Compute resources support two types of filter expressions: expressions that
42257
+ # support regular expressions and expressions that follow API improvement
42258
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
42259
+ # request. If you want to use AIP-160, your expression must specify the field
42260
+ # name, an operator, and the value that you want to use for filtering. The value
42261
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
42262
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
42263
+ # Engine instances, you can exclude instances named `example-instance` by
42264
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
42265
+ # whether a key has been defined. For example, to find all objects with `owner`
42266
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
42267
+ # example, you could specify `scheduling.automaticRestart = false` to include
42268
+ # instances only if they are not scheduled for automatic restarts. You can use
42269
+ # filtering on nested fields to filter based on resource labels. To filter on
42270
+ # multiple expressions, provide each separate expression within parentheses. For
42271
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
42272
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
42273
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
42274
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
42275
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
42276
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
42277
+ # un-parenthesized expression with or without quotes or against multiple
42278
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
42279
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
42280
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
42281
+ # interpreted as a regular expression using Google RE2 library syntax. The
42282
+ # literal value must match the entire field. For example, to filter for
42283
+ # instances that do not end with name "instance", you would use `name ne .*
42284
+ # instance`. You cannot combine constraints on multiple fields using regular
42285
+ # expressions.
42286
+ # @param [Fixnum] max_results
42287
+ # The maximum number of results per page that should be returned. If the number
42288
+ # of available results is larger than `maxResults`, Compute Engine returns a `
42289
+ # nextPageToken` that can be used to get the next page of results in subsequent
42290
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
42291
+ # @param [String] order_by
42292
+ # Sorts list results by a certain order. By default, results are returned in
42293
+ # alphanumerical order based on the resource name. You can also sort results in
42294
+ # descending order based on the creation timestamp using `orderBy="
42295
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
42296
+ # field in reverse chronological order (newest result first). Use this to sort
42297
+ # resources like operations so that the newest operation is returned first.
42298
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
42299
+ # @param [String] page_token
42300
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
42301
+ # by a previous list request to get the next page of results.
42302
+ # @param [Boolean] return_partial_success
42303
+ # Opt-in for partial success behavior which provides partial results in case of
42304
+ # failure. The default value is false. For example, when partial success
42305
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
42306
+ # resources in the zone or no resources, with an error code.
42307
+ # @param [String] fields
42308
+ # Selector specifying which fields to include in a partial response.
42309
+ # @param [String] quota_user
42310
+ # Available to use for quota purposes for server-side applications. Can be any
42311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42312
+ # @param [String] user_ip
42313
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42314
+ # @param [Google::Apis::RequestOptions] options
42315
+ # Request-specific options
42316
+ #
42317
+ # @yield [result, err] Result & error if block supplied
42318
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolList] parsed result object
42319
+ # @yieldparam err [StandardError] error object if request failed
42320
+ #
42321
+ # @return [Google::Apis::ComputeBeta::StoragePoolList]
42322
+ #
42323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42326
+ def list_storage_pools(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)
42327
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools', options)
42328
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolList::Representation
42329
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolList
42330
+ command.params['project'] = project unless project.nil?
42331
+ command.params['zone'] = zone unless zone.nil?
42332
+ command.query['filter'] = filter unless filter.nil?
42333
+ command.query['maxResults'] = max_results unless max_results.nil?
42334
+ command.query['orderBy'] = order_by unless order_by.nil?
42335
+ command.query['pageToken'] = page_token unless page_token.nil?
42336
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42337
+ command.query['fields'] = fields unless fields.nil?
42338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42339
+ command.query['userIp'] = user_ip unless user_ip.nil?
42340
+ execute_or_queue_command(command, &block)
42341
+ end
42342
+
42343
+ # Lists the disks in a specified storage pool.
42344
+ # @param [String] project
42345
+ # Project ID for this request.
42346
+ # @param [String] zone
42347
+ # The name of the zone for this request.
42348
+ # @param [String] storage_pool
42349
+ # Name of the storage pool to list disks of.
42350
+ # @param [String] filter
42351
+ # A filter expression that filters resources listed in the response. Most
42352
+ # Compute resources support two types of filter expressions: expressions that
42353
+ # support regular expressions and expressions that follow API improvement
42354
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
42355
+ # request. If you want to use AIP-160, your expression must specify the field
42356
+ # name, an operator, and the value that you want to use for filtering. The value
42357
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
42358
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
42359
+ # Engine instances, you can exclude instances named `example-instance` by
42360
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
42361
+ # whether a key has been defined. For example, to find all objects with `owner`
42362
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
42363
+ # example, you could specify `scheduling.automaticRestart = false` to include
42364
+ # instances only if they are not scheduled for automatic restarts. You can use
42365
+ # filtering on nested fields to filter based on resource labels. To filter on
42366
+ # multiple expressions, provide each separate expression within parentheses. For
42367
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
42368
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
42369
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
42370
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
42371
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
42372
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
42373
+ # un-parenthesized expression with or without quotes or against multiple
42374
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
42375
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
42376
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
42377
+ # interpreted as a regular expression using Google RE2 library syntax. The
42378
+ # literal value must match the entire field. For example, to filter for
42379
+ # instances that do not end with name "instance", you would use `name ne .*
42380
+ # instance`. You cannot combine constraints on multiple fields using regular
42381
+ # expressions.
42382
+ # @param [Fixnum] max_results
42383
+ # The maximum number of results per page that should be returned. If the number
42384
+ # of available results is larger than `maxResults`, Compute Engine returns a `
42385
+ # nextPageToken` that can be used to get the next page of results in subsequent
42386
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
42387
+ # @param [String] order_by
42388
+ # Sorts list results by a certain order. By default, results are returned in
42389
+ # alphanumerical order based on the resource name. You can also sort results in
42390
+ # descending order based on the creation timestamp using `orderBy="
42391
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
42392
+ # field in reverse chronological order (newest result first). Use this to sort
42393
+ # resources like operations so that the newest operation is returned first.
42394
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
42395
+ # @param [String] page_token
42396
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
42397
+ # by a previous list request to get the next page of results.
42398
+ # @param [Boolean] return_partial_success
42399
+ # Opt-in for partial success behavior which provides partial results in case of
42400
+ # failure. The default value is false. For example, when partial success
42401
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
42402
+ # resources in the zone or no resources, with an error code.
42403
+ # @param [String] fields
42404
+ # Selector specifying which fields to include in a partial response.
42405
+ # @param [String] quota_user
42406
+ # Available to use for quota purposes for server-side applications. Can be any
42407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42408
+ # @param [String] user_ip
42409
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42410
+ # @param [Google::Apis::RequestOptions] options
42411
+ # Request-specific options
42412
+ #
42413
+ # @yield [result, err] Result & error if block supplied
42414
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolListDisks] parsed result object
42415
+ # @yieldparam err [StandardError] error object if request failed
42416
+ #
42417
+ # @return [Google::Apis::ComputeBeta::StoragePoolListDisks]
42418
+ #
42419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42422
+ def list_storage_pool_disks(project, zone, storage_pool, 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)
42423
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks', options)
42424
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolListDisks::Representation
42425
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolListDisks
42426
+ command.params['project'] = project unless project.nil?
42427
+ command.params['zone'] = zone unless zone.nil?
42428
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42429
+ command.query['filter'] = filter unless filter.nil?
42430
+ command.query['maxResults'] = max_results unless max_results.nil?
42431
+ command.query['orderBy'] = order_by unless order_by.nil?
42432
+ command.query['pageToken'] = page_token unless page_token.nil?
42433
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42434
+ command.query['fields'] = fields unless fields.nil?
42435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42436
+ command.query['userIp'] = user_ip unless user_ip.nil?
42437
+ execute_or_queue_command(command, &block)
42438
+ end
42439
+
42440
+ # Sets the access control policy on the specified resource. Replaces any
42441
+ # existing policy.
42442
+ # @param [String] project
42443
+ # Project ID for this request.
42444
+ # @param [String] zone
42445
+ # The name of the zone for this request.
42446
+ # @param [String] resource
42447
+ # Name or id of the resource for this request.
42448
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
42449
+ # @param [String] fields
42450
+ # Selector specifying which fields to include in a partial response.
42451
+ # @param [String] quota_user
42452
+ # Available to use for quota purposes for server-side applications. Can be any
42453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42454
+ # @param [String] user_ip
42455
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42456
+ # @param [Google::Apis::RequestOptions] options
42457
+ # Request-specific options
42458
+ #
42459
+ # @yield [result, err] Result & error if block supplied
42460
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
42461
+ # @yieldparam err [StandardError] error object if request failed
42462
+ #
42463
+ # @return [Google::Apis::ComputeBeta::Policy]
42464
+ #
42465
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42466
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42467
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42468
+ def set_storage_pool_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42469
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy', options)
42470
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
42471
+ command.request_object = zone_set_policy_request_object
42472
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
42473
+ command.response_class = Google::Apis::ComputeBeta::Policy
42474
+ command.params['project'] = project unless project.nil?
42475
+ command.params['zone'] = zone unless zone.nil?
42476
+ command.params['resource'] = resource unless resource.nil?
42477
+ command.query['fields'] = fields unless fields.nil?
42478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42479
+ command.query['userIp'] = user_ip unless user_ip.nil?
42480
+ execute_or_queue_command(command, &block)
42481
+ end
42482
+
42483
+ # Returns permissions that a caller has on the specified resource.
42484
+ # @param [String] project
42485
+ # Project ID for this request.
42486
+ # @param [String] zone
42487
+ # The name of the zone for this request.
42488
+ # @param [String] resource
42489
+ # Name or id of the resource for this request.
42490
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
42491
+ # @param [String] fields
42492
+ # Selector specifying which fields to include in a partial response.
42493
+ # @param [String] quota_user
42494
+ # Available to use for quota purposes for server-side applications. Can be any
42495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42496
+ # @param [String] user_ip
42497
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42498
+ # @param [Google::Apis::RequestOptions] options
42499
+ # Request-specific options
42500
+ #
42501
+ # @yield [result, err] Result & error if block supplied
42502
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
42503
+ # @yieldparam err [StandardError] error object if request failed
42504
+ #
42505
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
42506
+ #
42507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42510
+ def test_storage_pool_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42511
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions', options)
42512
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
42513
+ command.request_object = test_permissions_request_object
42514
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
42515
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
42516
+ command.params['project'] = project unless project.nil?
42517
+ command.params['zone'] = zone unless zone.nil?
42518
+ command.params['resource'] = resource unless resource.nil?
42519
+ command.query['fields'] = fields unless fields.nil?
42520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42521
+ command.query['userIp'] = user_ip unless user_ip.nil?
42522
+ execute_or_queue_command(command, &block)
42523
+ end
42524
+
42525
+ # Updates the specified storagePool with the data included in the request. The
42526
+ # update is performed only on selected fields included as part of update-mask.
42527
+ # Only the following fields can be modified: size_tb and provisioned_iops.
42528
+ # @param [String] project
42529
+ # Project ID for this request.
42530
+ # @param [String] zone
42531
+ # The name of the zone for this request.
42532
+ # @param [String] storage_pool
42533
+ # The storagePool name for this request.
42534
+ # @param [Google::Apis::ComputeBeta::StoragePool] storage_pool_object
42535
+ # @param [String] request_id
42536
+ # An optional request ID to identify requests. Specify a unique request ID so
42537
+ # that if you must retry your request, the server will know to ignore the
42538
+ # request if it has already been completed. For example, consider a situation
42539
+ # where you make an initial request and the request times out. If you make the
42540
+ # request again with the same request ID, the server can check if original
42541
+ # operation with the same request ID was received, and if so, will ignore the
42542
+ # second request. This prevents clients from accidentally creating duplicate
42543
+ # commitments. The request ID must be a valid UUID with the exception that zero
42544
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42545
+ # @param [String] update_mask
42546
+ # update_mask indicates fields to be updated as part of this request.
42547
+ # @param [String] fields
42548
+ # Selector specifying which fields to include in a partial response.
42549
+ # @param [String] quota_user
42550
+ # Available to use for quota purposes for server-side applications. Can be any
42551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42552
+ # @param [String] user_ip
42553
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42554
+ # @param [Google::Apis::RequestOptions] options
42555
+ # Request-specific options
42556
+ #
42557
+ # @yield [result, err] Result & error if block supplied
42558
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
42559
+ # @yieldparam err [StandardError] error object if request failed
42560
+ #
42561
+ # @return [Google::Apis::ComputeBeta::Operation]
42562
+ #
42563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42566
+ def update_storage_pool(project, zone, storage_pool, storage_pool_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42567
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42568
+ command.request_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42569
+ command.request_object = storage_pool_object
42570
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
42571
+ command.response_class = Google::Apis::ComputeBeta::Operation
42572
+ command.params['project'] = project unless project.nil?
42573
+ command.params['zone'] = zone unless zone.nil?
42574
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42575
+ command.query['requestId'] = request_id unless request_id.nil?
42576
+ command.query['updateMask'] = update_mask unless update_mask.nil?
42577
+ command.query['fields'] = fields unless fields.nil?
42578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42579
+ command.query['userIp'] = user_ip unless user_ip.nil?
42580
+ execute_or_queue_command(command, &block)
42581
+ end
42582
+
41719
42583
  # Retrieves an aggregated list of subnetworks. To prevent failure, Google
41720
42584
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
41721
42585
  # @param [String] project