google-apis-compute_v1 0.90.0 → 0.91.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/compute_v1/classes.rb +1263 -5
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +458 -0
- data/lib/google/apis/compute_v1/service.rb +861 -0
- metadata +3 -3
@@ -37598,6 +37598,867 @@ module Google
|
|
37598
37598
|
execute_or_queue_command(command, &block)
|
37599
37599
|
end
|
37600
37600
|
|
37601
|
+
# Retrieves an aggregated list of storage pool types. To prevent failure, Google
|
37602
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37603
|
+
# @param [String] project
|
37604
|
+
# Project ID for this request.
|
37605
|
+
# @param [String] filter
|
37606
|
+
# A filter expression that filters resources listed in the response. Most
|
37607
|
+
# Compute resources support two types of filter expressions: expressions that
|
37608
|
+
# support regular expressions and expressions that follow API improvement
|
37609
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37610
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37611
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37612
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37613
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37614
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37615
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37616
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37617
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37618
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37619
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37620
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37621
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37622
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37623
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37624
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37625
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37626
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37627
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37628
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37629
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37630
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37631
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37632
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37633
|
+
# literal value must match the entire field. For example, to filter for
|
37634
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37635
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37636
|
+
# expressions.
|
37637
|
+
# @param [Boolean] include_all_scopes
|
37638
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
37639
|
+
# global) should be included in the response. For new resource types added after
|
37640
|
+
# this field, the flag has no effect as new resource types will always include
|
37641
|
+
# every visible scope for each scope type in response. For resource types which
|
37642
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
37643
|
+
# types where the resource type is expected to be found will be included.
|
37644
|
+
# @param [Fixnum] max_results
|
37645
|
+
# The maximum number of results per page that should be returned. If the number
|
37646
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37647
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37648
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37649
|
+
# @param [String] order_by
|
37650
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37651
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37652
|
+
# descending order based on the creation timestamp using `orderBy="
|
37653
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37654
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37655
|
+
# resources like operations so that the newest operation is returned first.
|
37656
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37657
|
+
# @param [String] page_token
|
37658
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37659
|
+
# by a previous list request to get the next page of results.
|
37660
|
+
# @param [Boolean] return_partial_success
|
37661
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37662
|
+
# failure. The default value is false. For example, when partial success
|
37663
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37664
|
+
# resources in the zone or no resources, with an error code.
|
37665
|
+
# @param [Fixnum] service_project_number
|
37666
|
+
# The Shared VPC service project id or service project number for which
|
37667
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
37668
|
+
# @param [String] fields
|
37669
|
+
# Selector specifying which fields to include in a partial response.
|
37670
|
+
# @param [String] quota_user
|
37671
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37672
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37673
|
+
# @param [String] user_ip
|
37674
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37675
|
+
# @param [Google::Apis::RequestOptions] options
|
37676
|
+
# Request-specific options
|
37677
|
+
#
|
37678
|
+
# @yield [result, err] Result & error if block supplied
|
37679
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolTypeAggregatedList] parsed result object
|
37680
|
+
# @yieldparam err [StandardError] error object if request failed
|
37681
|
+
#
|
37682
|
+
# @return [Google::Apis::ComputeV1::StoragePoolTypeAggregatedList]
|
37683
|
+
#
|
37684
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37685
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37686
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37687
|
+
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)
|
37688
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/storagePoolTypes', options)
|
37689
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolTypeAggregatedList::Representation
|
37690
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolTypeAggregatedList
|
37691
|
+
command.params['project'] = project unless project.nil?
|
37692
|
+
command.query['filter'] = filter unless filter.nil?
|
37693
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
37694
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
37695
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
37696
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
37697
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
37698
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
37699
|
+
command.query['fields'] = fields unless fields.nil?
|
37700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37701
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37702
|
+
execute_or_queue_command(command, &block)
|
37703
|
+
end
|
37704
|
+
|
37705
|
+
# Returns the specified storage pool type.
|
37706
|
+
# @param [String] project
|
37707
|
+
# Project ID for this request.
|
37708
|
+
# @param [String] zone
|
37709
|
+
# The name of the zone for this request.
|
37710
|
+
# @param [String] storage_pool_type
|
37711
|
+
# Name of the storage pool type to return.
|
37712
|
+
# @param [String] fields
|
37713
|
+
# Selector specifying which fields to include in a partial response.
|
37714
|
+
# @param [String] quota_user
|
37715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37717
|
+
# @param [String] user_ip
|
37718
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37719
|
+
# @param [Google::Apis::RequestOptions] options
|
37720
|
+
# Request-specific options
|
37721
|
+
#
|
37722
|
+
# @yield [result, err] Result & error if block supplied
|
37723
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolType] parsed result object
|
37724
|
+
# @yieldparam err [StandardError] error object if request failed
|
37725
|
+
#
|
37726
|
+
# @return [Google::Apis::ComputeV1::StoragePoolType]
|
37727
|
+
#
|
37728
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37729
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37730
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37731
|
+
def get_storage_pool_type(project, zone, storage_pool_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37732
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}', options)
|
37733
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolType::Representation
|
37734
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolType
|
37735
|
+
command.params['project'] = project unless project.nil?
|
37736
|
+
command.params['zone'] = zone unless zone.nil?
|
37737
|
+
command.params['storagePoolType'] = storage_pool_type unless storage_pool_type.nil?
|
37738
|
+
command.query['fields'] = fields unless fields.nil?
|
37739
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37740
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37741
|
+
execute_or_queue_command(command, &block)
|
37742
|
+
end
|
37743
|
+
|
37744
|
+
# Retrieves a list of storage pool types available to the specified project.
|
37745
|
+
# @param [String] project
|
37746
|
+
# Project ID for this request.
|
37747
|
+
# @param [String] zone
|
37748
|
+
# The name of the zone for this request.
|
37749
|
+
# @param [String] filter
|
37750
|
+
# A filter expression that filters resources listed in the response. Most
|
37751
|
+
# Compute resources support two types of filter expressions: expressions that
|
37752
|
+
# support regular expressions and expressions that follow API improvement
|
37753
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37754
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37755
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37756
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37757
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37758
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37759
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37760
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37761
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37762
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37763
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37764
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37765
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37766
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37767
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37768
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37769
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37770
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37771
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37772
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37773
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37774
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37775
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37776
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37777
|
+
# literal value must match the entire field. For example, to filter for
|
37778
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37779
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37780
|
+
# expressions.
|
37781
|
+
# @param [Fixnum] max_results
|
37782
|
+
# The maximum number of results per page that should be returned. If the number
|
37783
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37784
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37785
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37786
|
+
# @param [String] order_by
|
37787
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37788
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37789
|
+
# descending order based on the creation timestamp using `orderBy="
|
37790
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37791
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37792
|
+
# resources like operations so that the newest operation is returned first.
|
37793
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37794
|
+
# @param [String] page_token
|
37795
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37796
|
+
# by a previous list request to get the next page of results.
|
37797
|
+
# @param [Boolean] return_partial_success
|
37798
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37799
|
+
# failure. The default value is false. For example, when partial success
|
37800
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37801
|
+
# resources in the zone or no resources, with an error code.
|
37802
|
+
# @param [String] fields
|
37803
|
+
# Selector specifying which fields to include in a partial response.
|
37804
|
+
# @param [String] quota_user
|
37805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37807
|
+
# @param [String] user_ip
|
37808
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37809
|
+
# @param [Google::Apis::RequestOptions] options
|
37810
|
+
# Request-specific options
|
37811
|
+
#
|
37812
|
+
# @yield [result, err] Result & error if block supplied
|
37813
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolTypeList] parsed result object
|
37814
|
+
# @yieldparam err [StandardError] error object if request failed
|
37815
|
+
#
|
37816
|
+
# @return [Google::Apis::ComputeV1::StoragePoolTypeList]
|
37817
|
+
#
|
37818
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37819
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37820
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37821
|
+
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)
|
37822
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes', options)
|
37823
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolTypeList::Representation
|
37824
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolTypeList
|
37825
|
+
command.params['project'] = project unless project.nil?
|
37826
|
+
command.params['zone'] = zone unless zone.nil?
|
37827
|
+
command.query['filter'] = filter unless filter.nil?
|
37828
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
37829
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
37830
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
37831
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
37832
|
+
command.query['fields'] = fields unless fields.nil?
|
37833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37834
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37835
|
+
execute_or_queue_command(command, &block)
|
37836
|
+
end
|
37837
|
+
|
37838
|
+
# Retrieves an aggregated list of storage pools. To prevent failure, Google
|
37839
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37840
|
+
# @param [String] project
|
37841
|
+
# Project ID for this request.
|
37842
|
+
# @param [String] filter
|
37843
|
+
# A filter expression that filters resources listed in the response. Most
|
37844
|
+
# Compute resources support two types of filter expressions: expressions that
|
37845
|
+
# support regular expressions and expressions that follow API improvement
|
37846
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37847
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37848
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37849
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37850
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37851
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37852
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37853
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37854
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37855
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37856
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37857
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37858
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37859
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37860
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37861
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37862
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37863
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37864
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37865
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37866
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37867
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37868
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37869
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37870
|
+
# literal value must match the entire field. For example, to filter for
|
37871
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37872
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37873
|
+
# expressions.
|
37874
|
+
# @param [Boolean] include_all_scopes
|
37875
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
37876
|
+
# global) should be included in the response. For new resource types added after
|
37877
|
+
# this field, the flag has no effect as new resource types will always include
|
37878
|
+
# every visible scope for each scope type in response. For resource types which
|
37879
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
37880
|
+
# types where the resource type is expected to be found will be included.
|
37881
|
+
# @param [Fixnum] max_results
|
37882
|
+
# The maximum number of results per page that should be returned. If the number
|
37883
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37884
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37885
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37886
|
+
# @param [String] order_by
|
37887
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37888
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37889
|
+
# descending order based on the creation timestamp using `orderBy="
|
37890
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37891
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37892
|
+
# resources like operations so that the newest operation is returned first.
|
37893
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37894
|
+
# @param [String] page_token
|
37895
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37896
|
+
# by a previous list request to get the next page of results.
|
37897
|
+
# @param [Boolean] return_partial_success
|
37898
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37899
|
+
# failure. The default value is false. For example, when partial success
|
37900
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37901
|
+
# resources in the zone or no resources, with an error code.
|
37902
|
+
# @param [Fixnum] service_project_number
|
37903
|
+
# The Shared VPC service project id or service project number for which
|
37904
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
37905
|
+
# @param [String] fields
|
37906
|
+
# Selector specifying which fields to include in a partial response.
|
37907
|
+
# @param [String] quota_user
|
37908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37910
|
+
# @param [String] user_ip
|
37911
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37912
|
+
# @param [Google::Apis::RequestOptions] options
|
37913
|
+
# Request-specific options
|
37914
|
+
#
|
37915
|
+
# @yield [result, err] Result & error if block supplied
|
37916
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolAggregatedList] parsed result object
|
37917
|
+
# @yieldparam err [StandardError] error object if request failed
|
37918
|
+
#
|
37919
|
+
# @return [Google::Apis::ComputeV1::StoragePoolAggregatedList]
|
37920
|
+
#
|
37921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37924
|
+
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)
|
37925
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/storagePools', options)
|
37926
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolAggregatedList::Representation
|
37927
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolAggregatedList
|
37928
|
+
command.params['project'] = project unless project.nil?
|
37929
|
+
command.query['filter'] = filter unless filter.nil?
|
37930
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
37931
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
37932
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
37933
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
37934
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
37935
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
37936
|
+
command.query['fields'] = fields unless fields.nil?
|
37937
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37938
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37939
|
+
execute_or_queue_command(command, &block)
|
37940
|
+
end
|
37941
|
+
|
37942
|
+
# Deletes the specified storage pool. Deleting a storagePool removes its data
|
37943
|
+
# permanently and is irreversible. However, deleting a storagePool does not
|
37944
|
+
# delete any snapshots previously made from the storagePool. You must separately
|
37945
|
+
# delete snapshots.
|
37946
|
+
# @param [String] project
|
37947
|
+
# Project ID for this request.
|
37948
|
+
# @param [String] zone
|
37949
|
+
# The name of the zone for this request.
|
37950
|
+
# @param [String] storage_pool
|
37951
|
+
# Name of the storage pool to delete.
|
37952
|
+
# @param [String] request_id
|
37953
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37954
|
+
# that if you must retry your request, the server will know to ignore the
|
37955
|
+
# request if it has already been completed. For example, consider a situation
|
37956
|
+
# where you make an initial request and the request times out. If you make the
|
37957
|
+
# request again with the same request ID, the server can check if original
|
37958
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37959
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37960
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37961
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37962
|
+
# @param [String] fields
|
37963
|
+
# Selector specifying which fields to include in a partial response.
|
37964
|
+
# @param [String] quota_user
|
37965
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37966
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37967
|
+
# @param [String] user_ip
|
37968
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37969
|
+
# @param [Google::Apis::RequestOptions] options
|
37970
|
+
# Request-specific options
|
37971
|
+
#
|
37972
|
+
# @yield [result, err] Result & error if block supplied
|
37973
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
37974
|
+
# @yieldparam err [StandardError] error object if request failed
|
37975
|
+
#
|
37976
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
37977
|
+
#
|
37978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37981
|
+
def delete_storage_pool(project, zone, storage_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37982
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
37983
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
37984
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
37985
|
+
command.params['project'] = project unless project.nil?
|
37986
|
+
command.params['zone'] = zone unless zone.nil?
|
37987
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
37988
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37989
|
+
command.query['fields'] = fields unless fields.nil?
|
37990
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37991
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37992
|
+
execute_or_queue_command(command, &block)
|
37993
|
+
end
|
37994
|
+
|
37995
|
+
# Returns a specified storage pool. Gets a list of available storage pools by
|
37996
|
+
# making a list() request.
|
37997
|
+
# @param [String] project
|
37998
|
+
# Project ID for this request.
|
37999
|
+
# @param [String] zone
|
38000
|
+
# The name of the zone for this request.
|
38001
|
+
# @param [String] storage_pool
|
38002
|
+
# Name of the storage pool to return.
|
38003
|
+
# @param [String] fields
|
38004
|
+
# Selector specifying which fields to include in a partial response.
|
38005
|
+
# @param [String] quota_user
|
38006
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38007
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38008
|
+
# @param [String] user_ip
|
38009
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38010
|
+
# @param [Google::Apis::RequestOptions] options
|
38011
|
+
# Request-specific options
|
38012
|
+
#
|
38013
|
+
# @yield [result, err] Result & error if block supplied
|
38014
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePool] parsed result object
|
38015
|
+
# @yieldparam err [StandardError] error object if request failed
|
38016
|
+
#
|
38017
|
+
# @return [Google::Apis::ComputeV1::StoragePool]
|
38018
|
+
#
|
38019
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38020
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38021
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38022
|
+
def get_storage_pool(project, zone, storage_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38023
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
38024
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38025
|
+
command.response_class = Google::Apis::ComputeV1::StoragePool
|
38026
|
+
command.params['project'] = project unless project.nil?
|
38027
|
+
command.params['zone'] = zone unless zone.nil?
|
38028
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38029
|
+
command.query['fields'] = fields unless fields.nil?
|
38030
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38031
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38032
|
+
execute_or_queue_command(command, &block)
|
38033
|
+
end
|
38034
|
+
|
38035
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
38036
|
+
# or resource exists.
|
38037
|
+
# @param [String] project
|
38038
|
+
# Project ID for this request.
|
38039
|
+
# @param [String] zone
|
38040
|
+
# The name of the zone for this request.
|
38041
|
+
# @param [String] resource
|
38042
|
+
# Name or id of the resource for this request.
|
38043
|
+
# @param [Fixnum] options_requested_policy_version
|
38044
|
+
# Requested IAM Policy version.
|
38045
|
+
# @param [String] fields
|
38046
|
+
# Selector specifying which fields to include in a partial response.
|
38047
|
+
# @param [String] quota_user
|
38048
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38049
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38050
|
+
# @param [String] user_ip
|
38051
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38052
|
+
# @param [Google::Apis::RequestOptions] options
|
38053
|
+
# Request-specific options
|
38054
|
+
#
|
38055
|
+
# @yield [result, err] Result & error if block supplied
|
38056
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
38057
|
+
# @yieldparam err [StandardError] error object if request failed
|
38058
|
+
#
|
38059
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
38060
|
+
#
|
38061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38064
|
+
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)
|
38065
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy', options)
|
38066
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
38067
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
38068
|
+
command.params['project'] = project unless project.nil?
|
38069
|
+
command.params['zone'] = zone unless zone.nil?
|
38070
|
+
command.params['resource'] = resource unless resource.nil?
|
38071
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
38072
|
+
command.query['fields'] = fields unless fields.nil?
|
38073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38074
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38075
|
+
execute_or_queue_command(command, &block)
|
38076
|
+
end
|
38077
|
+
|
38078
|
+
# Creates a storage pool in the specified project using the data in the request.
|
38079
|
+
# @param [String] project
|
38080
|
+
# Project ID for this request.
|
38081
|
+
# @param [String] zone
|
38082
|
+
# The name of the zone for this request.
|
38083
|
+
# @param [Google::Apis::ComputeV1::StoragePool] storage_pool_object
|
38084
|
+
# @param [String] request_id
|
38085
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38086
|
+
# that if you must retry your request, the server will know to ignore the
|
38087
|
+
# request if it has already been completed. For example, consider a situation
|
38088
|
+
# where you make an initial request and the request times out. If you make the
|
38089
|
+
# request again with the same request ID, the server can check if original
|
38090
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38091
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38092
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38093
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38094
|
+
# @param [String] fields
|
38095
|
+
# Selector specifying which fields to include in a partial response.
|
38096
|
+
# @param [String] quota_user
|
38097
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38098
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38099
|
+
# @param [String] user_ip
|
38100
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38101
|
+
# @param [Google::Apis::RequestOptions] options
|
38102
|
+
# Request-specific options
|
38103
|
+
#
|
38104
|
+
# @yield [result, err] Result & error if block supplied
|
38105
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38106
|
+
# @yieldparam err [StandardError] error object if request failed
|
38107
|
+
#
|
38108
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38109
|
+
#
|
38110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38113
|
+
def insert_storage_pool(project, zone, storage_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38114
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools', options)
|
38115
|
+
command.request_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38116
|
+
command.request_object = storage_pool_object
|
38117
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38118
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38119
|
+
command.params['project'] = project unless project.nil?
|
38120
|
+
command.params['zone'] = zone unless zone.nil?
|
38121
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38122
|
+
command.query['fields'] = fields unless fields.nil?
|
38123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38124
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38125
|
+
execute_or_queue_command(command, &block)
|
38126
|
+
end
|
38127
|
+
|
38128
|
+
# Retrieves a list of storage pools contained within the specified zone.
|
38129
|
+
# @param [String] project
|
38130
|
+
# Project ID for this request.
|
38131
|
+
# @param [String] zone
|
38132
|
+
# The name of the zone for this request.
|
38133
|
+
# @param [String] filter
|
38134
|
+
# A filter expression that filters resources listed in the response. Most
|
38135
|
+
# Compute resources support two types of filter expressions: expressions that
|
38136
|
+
# support regular expressions and expressions that follow API improvement
|
38137
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38138
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38139
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38140
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38141
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38142
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38143
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38144
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38145
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38146
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38147
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38148
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38149
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38150
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38151
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38152
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38153
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38154
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38155
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38156
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38157
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38158
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38159
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38160
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38161
|
+
# literal value must match the entire field. For example, to filter for
|
38162
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38163
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38164
|
+
# expressions.
|
38165
|
+
# @param [Fixnum] max_results
|
38166
|
+
# The maximum number of results per page that should be returned. If the number
|
38167
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38168
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38169
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38170
|
+
# @param [String] order_by
|
38171
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38172
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38173
|
+
# descending order based on the creation timestamp using `orderBy="
|
38174
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38175
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38176
|
+
# resources like operations so that the newest operation is returned first.
|
38177
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38178
|
+
# @param [String] page_token
|
38179
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38180
|
+
# by a previous list request to get the next page of results.
|
38181
|
+
# @param [Boolean] return_partial_success
|
38182
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38183
|
+
# failure. The default value is false. For example, when partial success
|
38184
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38185
|
+
# resources in the zone or no resources, with an error code.
|
38186
|
+
# @param [String] fields
|
38187
|
+
# Selector specifying which fields to include in a partial response.
|
38188
|
+
# @param [String] quota_user
|
38189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38191
|
+
# @param [String] user_ip
|
38192
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38193
|
+
# @param [Google::Apis::RequestOptions] options
|
38194
|
+
# Request-specific options
|
38195
|
+
#
|
38196
|
+
# @yield [result, err] Result & error if block supplied
|
38197
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolList] parsed result object
|
38198
|
+
# @yieldparam err [StandardError] error object if request failed
|
38199
|
+
#
|
38200
|
+
# @return [Google::Apis::ComputeV1::StoragePoolList]
|
38201
|
+
#
|
38202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38205
|
+
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)
|
38206
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools', options)
|
38207
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolList::Representation
|
38208
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolList
|
38209
|
+
command.params['project'] = project unless project.nil?
|
38210
|
+
command.params['zone'] = zone unless zone.nil?
|
38211
|
+
command.query['filter'] = filter unless filter.nil?
|
38212
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38213
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38214
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38215
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38216
|
+
command.query['fields'] = fields unless fields.nil?
|
38217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38218
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38219
|
+
execute_or_queue_command(command, &block)
|
38220
|
+
end
|
38221
|
+
|
38222
|
+
# Lists the disks in a specified storage pool.
|
38223
|
+
# @param [String] project
|
38224
|
+
# Project ID for this request.
|
38225
|
+
# @param [String] zone
|
38226
|
+
# The name of the zone for this request.
|
38227
|
+
# @param [String] storage_pool
|
38228
|
+
# Name of the storage pool to list disks of.
|
38229
|
+
# @param [String] filter
|
38230
|
+
# A filter expression that filters resources listed in the response. Most
|
38231
|
+
# Compute resources support two types of filter expressions: expressions that
|
38232
|
+
# support regular expressions and expressions that follow API improvement
|
38233
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38234
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38235
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38236
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38237
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38238
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38239
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38240
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38241
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38242
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38243
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38244
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38245
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38246
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38247
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38248
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38249
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38250
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38251
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38252
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38253
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38254
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38255
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38256
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38257
|
+
# literal value must match the entire field. For example, to filter for
|
38258
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38259
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38260
|
+
# expressions.
|
38261
|
+
# @param [Fixnum] max_results
|
38262
|
+
# The maximum number of results per page that should be returned. If the number
|
38263
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38264
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38265
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38266
|
+
# @param [String] order_by
|
38267
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38268
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38269
|
+
# descending order based on the creation timestamp using `orderBy="
|
38270
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38271
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38272
|
+
# resources like operations so that the newest operation is returned first.
|
38273
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38274
|
+
# @param [String] page_token
|
38275
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38276
|
+
# by a previous list request to get the next page of results.
|
38277
|
+
# @param [Boolean] return_partial_success
|
38278
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38279
|
+
# failure. The default value is false. For example, when partial success
|
38280
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38281
|
+
# resources in the zone or no resources, with an error code.
|
38282
|
+
# @param [String] fields
|
38283
|
+
# Selector specifying which fields to include in a partial response.
|
38284
|
+
# @param [String] quota_user
|
38285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38287
|
+
# @param [String] user_ip
|
38288
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38289
|
+
# @param [Google::Apis::RequestOptions] options
|
38290
|
+
# Request-specific options
|
38291
|
+
#
|
38292
|
+
# @yield [result, err] Result & error if block supplied
|
38293
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolListDisks] parsed result object
|
38294
|
+
# @yieldparam err [StandardError] error object if request failed
|
38295
|
+
#
|
38296
|
+
# @return [Google::Apis::ComputeV1::StoragePoolListDisks]
|
38297
|
+
#
|
38298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38301
|
+
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)
|
38302
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks', options)
|
38303
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolListDisks::Representation
|
38304
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolListDisks
|
38305
|
+
command.params['project'] = project unless project.nil?
|
38306
|
+
command.params['zone'] = zone unless zone.nil?
|
38307
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38308
|
+
command.query['filter'] = filter unless filter.nil?
|
38309
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38310
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38311
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38312
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38313
|
+
command.query['fields'] = fields unless fields.nil?
|
38314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38315
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38316
|
+
execute_or_queue_command(command, &block)
|
38317
|
+
end
|
38318
|
+
|
38319
|
+
# Sets the access control policy on the specified resource. Replaces any
|
38320
|
+
# existing policy.
|
38321
|
+
# @param [String] project
|
38322
|
+
# Project ID for this request.
|
38323
|
+
# @param [String] zone
|
38324
|
+
# The name of the zone for this request.
|
38325
|
+
# @param [String] resource
|
38326
|
+
# Name or id of the resource for this request.
|
38327
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
38328
|
+
# @param [String] fields
|
38329
|
+
# Selector specifying which fields to include in a partial response.
|
38330
|
+
# @param [String] quota_user
|
38331
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38332
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38333
|
+
# @param [String] user_ip
|
38334
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38335
|
+
# @param [Google::Apis::RequestOptions] options
|
38336
|
+
# Request-specific options
|
38337
|
+
#
|
38338
|
+
# @yield [result, err] Result & error if block supplied
|
38339
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
38340
|
+
# @yieldparam err [StandardError] error object if request failed
|
38341
|
+
#
|
38342
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
38343
|
+
#
|
38344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38347
|
+
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)
|
38348
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy', options)
|
38349
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
38350
|
+
command.request_object = zone_set_policy_request_object
|
38351
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
38352
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
38353
|
+
command.params['project'] = project unless project.nil?
|
38354
|
+
command.params['zone'] = zone unless zone.nil?
|
38355
|
+
command.params['resource'] = resource unless resource.nil?
|
38356
|
+
command.query['fields'] = fields unless fields.nil?
|
38357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38358
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38359
|
+
execute_or_queue_command(command, &block)
|
38360
|
+
end
|
38361
|
+
|
38362
|
+
# Returns permissions that a caller has on the specified resource.
|
38363
|
+
# @param [String] project
|
38364
|
+
# Project ID for this request.
|
38365
|
+
# @param [String] zone
|
38366
|
+
# The name of the zone for this request.
|
38367
|
+
# @param [String] resource
|
38368
|
+
# Name or id of the resource for this request.
|
38369
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
38370
|
+
# @param [String] fields
|
38371
|
+
# Selector specifying which fields to include in a partial response.
|
38372
|
+
# @param [String] quota_user
|
38373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38375
|
+
# @param [String] user_ip
|
38376
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38377
|
+
# @param [Google::Apis::RequestOptions] options
|
38378
|
+
# Request-specific options
|
38379
|
+
#
|
38380
|
+
# @yield [result, err] Result & error if block supplied
|
38381
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
38382
|
+
# @yieldparam err [StandardError] error object if request failed
|
38383
|
+
#
|
38384
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
38385
|
+
#
|
38386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38389
|
+
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)
|
38390
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions', options)
|
38391
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
38392
|
+
command.request_object = test_permissions_request_object
|
38393
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
38394
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
38395
|
+
command.params['project'] = project unless project.nil?
|
38396
|
+
command.params['zone'] = zone unless zone.nil?
|
38397
|
+
command.params['resource'] = resource unless resource.nil?
|
38398
|
+
command.query['fields'] = fields unless fields.nil?
|
38399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38400
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38401
|
+
execute_or_queue_command(command, &block)
|
38402
|
+
end
|
38403
|
+
|
38404
|
+
# Updates the specified storagePool with the data included in the request. The
|
38405
|
+
# update is performed only on selected fields included as part of update-mask.
|
38406
|
+
# Only the following fields can be modified: size_tb and provisioned_iops.
|
38407
|
+
# @param [String] project
|
38408
|
+
# Project ID for this request.
|
38409
|
+
# @param [String] zone
|
38410
|
+
# The name of the zone for this request.
|
38411
|
+
# @param [String] storage_pool
|
38412
|
+
# The storagePool name for this request.
|
38413
|
+
# @param [Google::Apis::ComputeV1::StoragePool] storage_pool_object
|
38414
|
+
# @param [String] request_id
|
38415
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38416
|
+
# that if you must retry your request, the server will know to ignore the
|
38417
|
+
# request if it has already been completed. For example, consider a situation
|
38418
|
+
# where you make an initial request and the request times out. If you make the
|
38419
|
+
# request again with the same request ID, the server can check if original
|
38420
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38421
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38422
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38423
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38424
|
+
# @param [String] update_mask
|
38425
|
+
# update_mask indicates fields to be updated as part of this request.
|
38426
|
+
# @param [String] fields
|
38427
|
+
# Selector specifying which fields to include in a partial response.
|
38428
|
+
# @param [String] quota_user
|
38429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38431
|
+
# @param [String] user_ip
|
38432
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38433
|
+
# @param [Google::Apis::RequestOptions] options
|
38434
|
+
# Request-specific options
|
38435
|
+
#
|
38436
|
+
# @yield [result, err] Result & error if block supplied
|
38437
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38438
|
+
# @yieldparam err [StandardError] error object if request failed
|
38439
|
+
#
|
38440
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38441
|
+
#
|
38442
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38443
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38444
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38445
|
+
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)
|
38446
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
38447
|
+
command.request_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38448
|
+
command.request_object = storage_pool_object
|
38449
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38450
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38451
|
+
command.params['project'] = project unless project.nil?
|
38452
|
+
command.params['zone'] = zone unless zone.nil?
|
38453
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38454
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38455
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
38456
|
+
command.query['fields'] = fields unless fields.nil?
|
38457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38458
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38459
|
+
execute_or_queue_command(command, &block)
|
38460
|
+
end
|
38461
|
+
|
37601
38462
|
# Retrieves an aggregated list of subnetworks. To prevent failure, Google
|
37602
38463
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37603
38464
|
# @param [String] project
|