google-apis-compute_beta 0.93.0 → 0.95.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6437,7 +6437,6 @@ module Google
6437
6437
  # @param [String] future_reservation
6438
6438
  # Name of the reservation to update. Name should conform to RFC1035.
6439
6439
  # @param [Google::Apis::ComputeBeta::FutureReservation] future_reservation_object
6440
- # @param [Array<String>, String] paths
6441
6440
  # @param [String] request_id
6442
6441
  # An optional request ID to identify requests. Specify a unique request ID so
6443
6442
  # that if you must retry your request, the server will know to ignore the
@@ -6469,7 +6468,7 @@ module Google
6469
6468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6470
6469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6471
6470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
6472
- def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6471
+ def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6473
6472
  command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
6474
6473
  command.request_representation = Google::Apis::ComputeBeta::FutureReservation::Representation
6475
6474
  command.request_object = future_reservation_object
@@ -6478,7 +6477,6 @@ module Google
6478
6477
  command.params['project'] = project unless project.nil?
6479
6478
  command.params['zone'] = zone unless zone.nil?
6480
6479
  command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6481
- command.query['paths'] = paths unless paths.nil?
6482
6480
  command.query['requestId'] = request_id unless request_id.nil?
6483
6481
  command.query['updateMask'] = update_mask unless update_mask.nil?
6484
6482
  command.query['fields'] = fields unless fields.nil?
@@ -9977,6 +9975,8 @@ module Google
9977
9975
  # failure. The default value is false. For example, when partial success
9978
9976
  # behavior is enabled, aggregatedList for a single zone scope either returns all
9979
9977
  # resources in the zone or no resources, with an error code.
9978
+ # @param [String] zone
9979
+ # The zone query parameter.
9980
9980
  # @param [String] fields
9981
9981
  # Selector specifying which fields to include in a partial response.
9982
9982
  # @param [String] quota_user
@@ -9996,7 +9996,7 @@ module Google
9996
9996
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9997
9997
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9998
9998
  # @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)
9999
+ 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
10000
  command = make_simple_command(:get, 'projects/{project}/global/images', options)
10001
10001
  command.response_representation = Google::Apis::ComputeBeta::ImageList::Representation
10002
10002
  command.response_class = Google::Apis::ComputeBeta::ImageList
@@ -10006,6 +10006,7 @@ module Google
10006
10006
  command.query['orderBy'] = order_by unless order_by.nil?
10007
10007
  command.query['pageToken'] = page_token unless page_token.nil?
10008
10008
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10009
+ command.query['zone'] = zone unless zone.nil?
10009
10010
  command.query['fields'] = fields unless fields.nil?
10010
10011
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10011
10012
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -40917,18 +40918,895 @@ module Google
40917
40918
  # Request-specific options
40918
40919
  #
40919
40920
  # @yield [result, err] Result & error if block supplied
40920
- # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateAggregatedList] parsed result object
40921
+ # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateAggregatedList] parsed result object
40922
+ # @yieldparam err [StandardError] error object if request failed
40923
+ #
40924
+ # @return [Google::Apis::ComputeBeta::SslCertificateAggregatedList]
40925
+ #
40926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40929
+ def aggregated_ssl_certificate_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)
40930
+ command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options)
40931
+ command.response_representation = Google::Apis::ComputeBeta::SslCertificateAggregatedList::Representation
40932
+ command.response_class = Google::Apis::ComputeBeta::SslCertificateAggregatedList
40933
+ command.params['project'] = project unless project.nil?
40934
+ command.query['filter'] = filter unless filter.nil?
40935
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
40936
+ command.query['maxResults'] = max_results unless max_results.nil?
40937
+ command.query['orderBy'] = order_by unless order_by.nil?
40938
+ command.query['pageToken'] = page_token unless page_token.nil?
40939
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
40940
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
40941
+ command.query['fields'] = fields unless fields.nil?
40942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40943
+ command.query['userIp'] = user_ip unless user_ip.nil?
40944
+ execute_or_queue_command(command, &block)
40945
+ end
40946
+
40947
+ # Deletes the specified SslCertificate resource.
40948
+ # @param [String] project
40949
+ # Project ID for this request.
40950
+ # @param [String] ssl_certificate
40951
+ # Name of the SslCertificate resource to delete.
40952
+ # @param [String] request_id
40953
+ # An optional request ID to identify requests. Specify a unique request ID so
40954
+ # that if you must retry your request, the server will know to ignore the
40955
+ # request if it has already been completed. For example, consider a situation
40956
+ # where you make an initial request and the request times out. If you make the
40957
+ # request again with the same request ID, the server can check if original
40958
+ # operation with the same request ID was received, and if so, will ignore the
40959
+ # second request. This prevents clients from accidentally creating duplicate
40960
+ # commitments. The request ID must be a valid UUID with the exception that zero
40961
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40962
+ # @param [String] fields
40963
+ # Selector specifying which fields to include in a partial response.
40964
+ # @param [String] quota_user
40965
+ # Available to use for quota purposes for server-side applications. Can be any
40966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40967
+ # @param [String] user_ip
40968
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40969
+ # @param [Google::Apis::RequestOptions] options
40970
+ # Request-specific options
40971
+ #
40972
+ # @yield [result, err] Result & error if block supplied
40973
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
40974
+ # @yieldparam err [StandardError] error object if request failed
40975
+ #
40976
+ # @return [Google::Apis::ComputeBeta::Operation]
40977
+ #
40978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40981
+ def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40982
+ command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
40983
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
40984
+ command.response_class = Google::Apis::ComputeBeta::Operation
40985
+ command.params['project'] = project unless project.nil?
40986
+ command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
40987
+ command.query['requestId'] = request_id unless request_id.nil?
40988
+ command.query['fields'] = fields unless fields.nil?
40989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40990
+ command.query['userIp'] = user_ip unless user_ip.nil?
40991
+ execute_or_queue_command(command, &block)
40992
+ end
40993
+
40994
+ # Returns the specified SslCertificate resource.
40995
+ # @param [String] project
40996
+ # Project ID for this request.
40997
+ # @param [String] ssl_certificate
40998
+ # Name of the SslCertificate resource to return.
40999
+ # @param [String] fields
41000
+ # Selector specifying which fields to include in a partial response.
41001
+ # @param [String] quota_user
41002
+ # Available to use for quota purposes for server-side applications. Can be any
41003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41004
+ # @param [String] user_ip
41005
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41006
+ # @param [Google::Apis::RequestOptions] options
41007
+ # Request-specific options
41008
+ #
41009
+ # @yield [result, err] Result & error if block supplied
41010
+ # @yieldparam result [Google::Apis::ComputeBeta::SslCertificate] parsed result object
41011
+ # @yieldparam err [StandardError] error object if request failed
41012
+ #
41013
+ # @return [Google::Apis::ComputeBeta::SslCertificate]
41014
+ #
41015
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41016
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41017
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41018
+ def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41019
+ command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
41020
+ command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
41021
+ command.response_class = Google::Apis::ComputeBeta::SslCertificate
41022
+ command.params['project'] = project unless project.nil?
41023
+ command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
41024
+ command.query['fields'] = fields unless fields.nil?
41025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41026
+ command.query['userIp'] = user_ip unless user_ip.nil?
41027
+ execute_or_queue_command(command, &block)
41028
+ end
41029
+
41030
+ # Creates a SslCertificate resource in the specified project using the data
41031
+ # included in the request.
41032
+ # @param [String] project
41033
+ # Project ID for this request.
41034
+ # @param [Google::Apis::ComputeBeta::SslCertificate] ssl_certificate_object
41035
+ # @param [String] request_id
41036
+ # An optional request ID to identify requests. Specify a unique request ID so
41037
+ # that if you must retry your request, the server will know to ignore the
41038
+ # request if it has already been completed. For example, consider a situation
41039
+ # where you make an initial request and the request times out. If you make the
41040
+ # request again with the same request ID, the server can check if original
41041
+ # operation with the same request ID was received, and if so, will ignore the
41042
+ # second request. This prevents clients from accidentally creating duplicate
41043
+ # commitments. The request ID must be a valid UUID with the exception that zero
41044
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41045
+ # @param [String] fields
41046
+ # Selector specifying which fields to include in a partial response.
41047
+ # @param [String] quota_user
41048
+ # Available to use for quota purposes for server-side applications. Can be any
41049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41050
+ # @param [String] user_ip
41051
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41052
+ # @param [Google::Apis::RequestOptions] options
41053
+ # Request-specific options
41054
+ #
41055
+ # @yield [result, err] Result & error if block supplied
41056
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41057
+ # @yieldparam err [StandardError] error object if request failed
41058
+ #
41059
+ # @return [Google::Apis::ComputeBeta::Operation]
41060
+ #
41061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41064
+ def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41065
+ command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options)
41066
+ command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
41067
+ command.request_object = ssl_certificate_object
41068
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41069
+ command.response_class = Google::Apis::ComputeBeta::Operation
41070
+ command.params['project'] = project unless project.nil?
41071
+ command.query['requestId'] = request_id unless request_id.nil?
41072
+ command.query['fields'] = fields unless fields.nil?
41073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41074
+ command.query['userIp'] = user_ip unless user_ip.nil?
41075
+ execute_or_queue_command(command, &block)
41076
+ end
41077
+
41078
+ # Retrieves the list of SslCertificate resources available to the specified
41079
+ # project.
41080
+ # @param [String] project
41081
+ # Project ID for this request.
41082
+ # @param [String] filter
41083
+ # A filter expression that filters resources listed in the response. Most
41084
+ # Compute resources support two types of filter expressions: expressions that
41085
+ # support regular expressions and expressions that follow API improvement
41086
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41087
+ # request. If you want to use AIP-160, your expression must specify the field
41088
+ # name, an operator, and the value that you want to use for filtering. The value
41089
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41090
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41091
+ # Engine instances, you can exclude instances named `example-instance` by
41092
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41093
+ # whether a key has been defined. For example, to find all objects with `owner`
41094
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41095
+ # example, you could specify `scheduling.automaticRestart = false` to include
41096
+ # instances only if they are not scheduled for automatic restarts. You can use
41097
+ # filtering on nested fields to filter based on resource labels. To filter on
41098
+ # multiple expressions, provide each separate expression within parentheses. For
41099
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41100
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41101
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41102
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41103
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41104
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41105
+ # un-parenthesized expression with or without quotes or against multiple
41106
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41107
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41108
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41109
+ # interpreted as a regular expression using Google RE2 library syntax. The
41110
+ # literal value must match the entire field. For example, to filter for
41111
+ # instances that do not end with name "instance", you would use `name ne .*
41112
+ # instance`. You cannot combine constraints on multiple fields using regular
41113
+ # expressions.
41114
+ # @param [Fixnum] max_results
41115
+ # The maximum number of results per page that should be returned. If the number
41116
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41117
+ # nextPageToken` that can be used to get the next page of results in subsequent
41118
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41119
+ # @param [String] order_by
41120
+ # Sorts list results by a certain order. By default, results are returned in
41121
+ # alphanumerical order based on the resource name. You can also sort results in
41122
+ # descending order based on the creation timestamp using `orderBy="
41123
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41124
+ # field in reverse chronological order (newest result first). Use this to sort
41125
+ # resources like operations so that the newest operation is returned first.
41126
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41127
+ # @param [String] page_token
41128
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41129
+ # by a previous list request to get the next page of results.
41130
+ # @param [Boolean] return_partial_success
41131
+ # Opt-in for partial success behavior which provides partial results in case of
41132
+ # failure. The default value is false. For example, when partial success
41133
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41134
+ # resources in the zone or no resources, with an error code.
41135
+ # @param [String] fields
41136
+ # Selector specifying which fields to include in a partial response.
41137
+ # @param [String] quota_user
41138
+ # Available to use for quota purposes for server-side applications. Can be any
41139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41140
+ # @param [String] user_ip
41141
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41142
+ # @param [Google::Apis::RequestOptions] options
41143
+ # Request-specific options
41144
+ #
41145
+ # @yield [result, err] Result & error if block supplied
41146
+ # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateList] parsed result object
41147
+ # @yieldparam err [StandardError] error object if request failed
41148
+ #
41149
+ # @return [Google::Apis::ComputeBeta::SslCertificateList]
41150
+ #
41151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41154
+ def list_ssl_certificates(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)
41155
+ command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options)
41156
+ command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation
41157
+ command.response_class = Google::Apis::ComputeBeta::SslCertificateList
41158
+ command.params['project'] = project unless project.nil?
41159
+ command.query['filter'] = filter unless filter.nil?
41160
+ command.query['maxResults'] = max_results unless max_results.nil?
41161
+ command.query['orderBy'] = order_by unless order_by.nil?
41162
+ command.query['pageToken'] = page_token unless page_token.nil?
41163
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41164
+ command.query['fields'] = fields unless fields.nil?
41165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41166
+ command.query['userIp'] = user_ip unless user_ip.nil?
41167
+ execute_or_queue_command(command, &block)
41168
+ end
41169
+
41170
+ # Returns permissions that a caller has on the specified resource.
41171
+ # @param [String] project
41172
+ # Project ID for this request.
41173
+ # @param [String] resource
41174
+ # Name or id of the resource for this request.
41175
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
41176
+ # @param [String] fields
41177
+ # Selector specifying which fields to include in a partial response.
41178
+ # @param [String] quota_user
41179
+ # Available to use for quota purposes for server-side applications. Can be any
41180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41181
+ # @param [String] user_ip
41182
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41183
+ # @param [Google::Apis::RequestOptions] options
41184
+ # Request-specific options
41185
+ #
41186
+ # @yield [result, err] Result & error if block supplied
41187
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
41188
+ # @yieldparam err [StandardError] error object if request failed
41189
+ #
41190
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
41191
+ #
41192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41195
+ def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41196
+ command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{resource}/testIamPermissions', options)
41197
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
41198
+ command.request_object = test_permissions_request_object
41199
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
41200
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
41201
+ command.params['project'] = project unless project.nil?
41202
+ command.params['resource'] = resource unless resource.nil?
41203
+ command.query['fields'] = fields unless fields.nil?
41204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41205
+ command.query['userIp'] = user_ip unless user_ip.nil?
41206
+ execute_or_queue_command(command, &block)
41207
+ end
41208
+
41209
+ # Retrieves the list of all SslPolicy resources, regional and global, available
41210
+ # to the specified project. To prevent failure, Google recommends that you set
41211
+ # the `returnPartialSuccess` parameter to `true`.
41212
+ # @param [String] project
41213
+ # Name of the project scoping this request.
41214
+ # @param [String] filter
41215
+ # A filter expression that filters resources listed in the response. Most
41216
+ # Compute resources support two types of filter expressions: expressions that
41217
+ # support regular expressions and expressions that follow API improvement
41218
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41219
+ # request. If you want to use AIP-160, your expression must specify the field
41220
+ # name, an operator, and the value that you want to use for filtering. The value
41221
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41222
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41223
+ # Engine instances, you can exclude instances named `example-instance` by
41224
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41225
+ # whether a key has been defined. For example, to find all objects with `owner`
41226
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41227
+ # example, you could specify `scheduling.automaticRestart = false` to include
41228
+ # instances only if they are not scheduled for automatic restarts. You can use
41229
+ # filtering on nested fields to filter based on resource labels. To filter on
41230
+ # multiple expressions, provide each separate expression within parentheses. For
41231
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41232
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41233
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41234
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41235
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41236
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41237
+ # un-parenthesized expression with or without quotes or against multiple
41238
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41239
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41240
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41241
+ # interpreted as a regular expression using Google RE2 library syntax. The
41242
+ # literal value must match the entire field. For example, to filter for
41243
+ # instances that do not end with name "instance", you would use `name ne .*
41244
+ # instance`. You cannot combine constraints on multiple fields using regular
41245
+ # expressions.
41246
+ # @param [Boolean] include_all_scopes
41247
+ # Indicates whether every visible scope for each scope type (zone, region,
41248
+ # global) should be included in the response. For new resource types added after
41249
+ # this field, the flag has no effect as new resource types will always include
41250
+ # every visible scope for each scope type in response. For resource types which
41251
+ # predate this field, if this flag is omitted or false, only scopes of the scope
41252
+ # types where the resource type is expected to be found will be included.
41253
+ # @param [Fixnum] max_results
41254
+ # The maximum number of results per page that should be returned. If the number
41255
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41256
+ # nextPageToken` that can be used to get the next page of results in subsequent
41257
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41258
+ # @param [String] order_by
41259
+ # Sorts list results by a certain order. By default, results are returned in
41260
+ # alphanumerical order based on the resource name. You can also sort results in
41261
+ # descending order based on the creation timestamp using `orderBy="
41262
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41263
+ # field in reverse chronological order (newest result first). Use this to sort
41264
+ # resources like operations so that the newest operation is returned first.
41265
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41266
+ # @param [String] page_token
41267
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41268
+ # by a previous list request to get the next page of results.
41269
+ # @param [Boolean] return_partial_success
41270
+ # Opt-in for partial success behavior which provides partial results in case of
41271
+ # failure. The default value is false. For example, when partial success
41272
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41273
+ # resources in the zone or no resources, with an error code.
41274
+ # @param [Fixnum] service_project_number
41275
+ # The Shared VPC service project id or service project number for which
41276
+ # aggregated list request is invoked for subnetworks list-usable api.
41277
+ # @param [String] fields
41278
+ # Selector specifying which fields to include in a partial response.
41279
+ # @param [String] quota_user
41280
+ # Available to use for quota purposes for server-side applications. Can be any
41281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41282
+ # @param [String] user_ip
41283
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41284
+ # @param [Google::Apis::RequestOptions] options
41285
+ # Request-specific options
41286
+ #
41287
+ # @yield [result, err] Result & error if block supplied
41288
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesAggregatedList] parsed result object
41289
+ # @yieldparam err [StandardError] error object if request failed
41290
+ #
41291
+ # @return [Google::Apis::ComputeBeta::SslPoliciesAggregatedList]
41292
+ #
41293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41296
+ def aggregated_ssl_policy_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)
41297
+ command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
41298
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Representation
41299
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesAggregatedList
41300
+ command.params['project'] = project unless project.nil?
41301
+ command.query['filter'] = filter unless filter.nil?
41302
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
41303
+ command.query['maxResults'] = max_results unless max_results.nil?
41304
+ command.query['orderBy'] = order_by unless order_by.nil?
41305
+ command.query['pageToken'] = page_token unless page_token.nil?
41306
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41307
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
41308
+ command.query['fields'] = fields unless fields.nil?
41309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41310
+ command.query['userIp'] = user_ip unless user_ip.nil?
41311
+ execute_or_queue_command(command, &block)
41312
+ end
41313
+
41314
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
41315
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
41316
+ # @param [String] project
41317
+ # Project ID for this request.
41318
+ # @param [String] ssl_policy
41319
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
41320
+ # comply with RFC1035.
41321
+ # @param [String] request_id
41322
+ # An optional request ID to identify requests. Specify a unique request ID so
41323
+ # that if you must retry your request, the server will know to ignore the
41324
+ # request if it has already been completed. For example, consider a situation
41325
+ # where you make an initial request and the request times out. If you make the
41326
+ # request again with the same request ID, the server can check if original
41327
+ # operation with the same request ID was received, and if so, will ignore the
41328
+ # second request. This prevents clients from accidentally creating duplicate
41329
+ # commitments. The request ID must be a valid UUID with the exception that zero
41330
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41331
+ # @param [String] fields
41332
+ # Selector specifying which fields to include in a partial response.
41333
+ # @param [String] quota_user
41334
+ # Available to use for quota purposes for server-side applications. Can be any
41335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41336
+ # @param [String] user_ip
41337
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41338
+ # @param [Google::Apis::RequestOptions] options
41339
+ # Request-specific options
41340
+ #
41341
+ # @yield [result, err] Result & error if block supplied
41342
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41343
+ # @yieldparam err [StandardError] error object if request failed
41344
+ #
41345
+ # @return [Google::Apis::ComputeBeta::Operation]
41346
+ #
41347
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41348
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41349
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41350
+ def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41351
+ command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41352
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41353
+ command.response_class = Google::Apis::ComputeBeta::Operation
41354
+ command.params['project'] = project unless project.nil?
41355
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41356
+ command.query['requestId'] = request_id unless request_id.nil?
41357
+ command.query['fields'] = fields unless fields.nil?
41358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41359
+ command.query['userIp'] = user_ip unless user_ip.nil?
41360
+ execute_or_queue_command(command, &block)
41361
+ end
41362
+
41363
+ # Lists all of the ordered rules present in a single specified policy.
41364
+ # @param [String] project
41365
+ # Project ID for this request.
41366
+ # @param [String] ssl_policy
41367
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
41368
+ # comply with RFC1035.
41369
+ # @param [String] fields
41370
+ # Selector specifying which fields to include in a partial response.
41371
+ # @param [String] quota_user
41372
+ # Available to use for quota purposes for server-side applications. Can be any
41373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41374
+ # @param [String] user_ip
41375
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41376
+ # @param [Google::Apis::RequestOptions] options
41377
+ # Request-specific options
41378
+ #
41379
+ # @yield [result, err] Result & error if block supplied
41380
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPolicy] parsed result object
41381
+ # @yieldparam err [StandardError] error object if request failed
41382
+ #
41383
+ # @return [Google::Apis::ComputeBeta::SslPolicy]
41384
+ #
41385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41388
+ def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41389
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41390
+ command.response_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41391
+ command.response_class = Google::Apis::ComputeBeta::SslPolicy
41392
+ command.params['project'] = project unless project.nil?
41393
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41394
+ command.query['fields'] = fields unless fields.nil?
41395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41396
+ command.query['userIp'] = user_ip unless user_ip.nil?
41397
+ execute_or_queue_command(command, &block)
41398
+ end
41399
+
41400
+ # Returns the specified SSL policy resource.
41401
+ # @param [String] project
41402
+ # Project ID for this request.
41403
+ # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
41404
+ # @param [String] request_id
41405
+ # An optional request ID to identify requests. Specify a unique request ID so
41406
+ # that if you must retry your request, the server will know to ignore the
41407
+ # request if it has already been completed. For example, consider a situation
41408
+ # where you make an initial request and the request times out. If you make the
41409
+ # request again with the same request ID, the server can check if original
41410
+ # operation with the same request ID was received, and if so, will ignore the
41411
+ # second request. This prevents clients from accidentally creating duplicate
41412
+ # commitments. The request ID must be a valid UUID with the exception that zero
41413
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41414
+ # @param [String] fields
41415
+ # Selector specifying which fields to include in a partial response.
41416
+ # @param [String] quota_user
41417
+ # Available to use for quota purposes for server-side applications. Can be any
41418
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41419
+ # @param [String] user_ip
41420
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41421
+ # @param [Google::Apis::RequestOptions] options
41422
+ # Request-specific options
41423
+ #
41424
+ # @yield [result, err] Result & error if block supplied
41425
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41426
+ # @yieldparam err [StandardError] error object if request failed
41427
+ #
41428
+ # @return [Google::Apis::ComputeBeta::Operation]
41429
+ #
41430
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41431
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41432
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41433
+ def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41434
+ command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options)
41435
+ command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41436
+ command.request_object = ssl_policy_object
41437
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41438
+ command.response_class = Google::Apis::ComputeBeta::Operation
41439
+ command.params['project'] = project unless project.nil?
41440
+ command.query['requestId'] = request_id unless request_id.nil?
41441
+ command.query['fields'] = fields unless fields.nil?
41442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41443
+ command.query['userIp'] = user_ip unless user_ip.nil?
41444
+ execute_or_queue_command(command, &block)
41445
+ end
41446
+
41447
+ # Lists all the SSL policies that have been configured for the specified project.
41448
+ # @param [String] project
41449
+ # Project ID for this request.
41450
+ # @param [String] filter
41451
+ # A filter expression that filters resources listed in the response. Most
41452
+ # Compute resources support two types of filter expressions: expressions that
41453
+ # support regular expressions and expressions that follow API improvement
41454
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41455
+ # request. If you want to use AIP-160, your expression must specify the field
41456
+ # name, an operator, and the value that you want to use for filtering. The value
41457
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41458
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41459
+ # Engine instances, you can exclude instances named `example-instance` by
41460
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41461
+ # whether a key has been defined. For example, to find all objects with `owner`
41462
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41463
+ # example, you could specify `scheduling.automaticRestart = false` to include
41464
+ # instances only if they are not scheduled for automatic restarts. You can use
41465
+ # filtering on nested fields to filter based on resource labels. To filter on
41466
+ # multiple expressions, provide each separate expression within parentheses. For
41467
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41468
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41469
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41470
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41471
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41472
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41473
+ # un-parenthesized expression with or without quotes or against multiple
41474
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41475
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41476
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41477
+ # interpreted as a regular expression using Google RE2 library syntax. The
41478
+ # literal value must match the entire field. For example, to filter for
41479
+ # instances that do not end with name "instance", you would use `name ne .*
41480
+ # instance`. You cannot combine constraints on multiple fields using regular
41481
+ # expressions.
41482
+ # @param [Fixnum] max_results
41483
+ # The maximum number of results per page that should be returned. If the number
41484
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41485
+ # nextPageToken` that can be used to get the next page of results in subsequent
41486
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41487
+ # @param [String] order_by
41488
+ # Sorts list results by a certain order. By default, results are returned in
41489
+ # alphanumerical order based on the resource name. You can also sort results in
41490
+ # descending order based on the creation timestamp using `orderBy="
41491
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41492
+ # field in reverse chronological order (newest result first). Use this to sort
41493
+ # resources like operations so that the newest operation is returned first.
41494
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41495
+ # @param [String] page_token
41496
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41497
+ # by a previous list request to get the next page of results.
41498
+ # @param [Boolean] return_partial_success
41499
+ # Opt-in for partial success behavior which provides partial results in case of
41500
+ # failure. The default value is false. For example, when partial success
41501
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41502
+ # resources in the zone or no resources, with an error code.
41503
+ # @param [String] fields
41504
+ # Selector specifying which fields to include in a partial response.
41505
+ # @param [String] quota_user
41506
+ # Available to use for quota purposes for server-side applications. Can be any
41507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41508
+ # @param [String] user_ip
41509
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41510
+ # @param [Google::Apis::RequestOptions] options
41511
+ # Request-specific options
41512
+ #
41513
+ # @yield [result, err] Result & error if block supplied
41514
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesList] parsed result object
41515
+ # @yieldparam err [StandardError] error object if request failed
41516
+ #
41517
+ # @return [Google::Apis::ComputeBeta::SslPoliciesList]
41518
+ #
41519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41522
+ def list_ssl_policies(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)
41523
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options)
41524
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesList::Representation
41525
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesList
41526
+ command.params['project'] = project unless project.nil?
41527
+ command.query['filter'] = filter unless filter.nil?
41528
+ command.query['maxResults'] = max_results unless max_results.nil?
41529
+ command.query['orderBy'] = order_by unless order_by.nil?
41530
+ command.query['pageToken'] = page_token unless page_token.nil?
41531
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41532
+ command.query['fields'] = fields unless fields.nil?
41533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41534
+ command.query['userIp'] = user_ip unless user_ip.nil?
41535
+ execute_or_queue_command(command, &block)
41536
+ end
41537
+
41538
+ # Lists all features that can be specified in the SSL policy when using custom
41539
+ # profile.
41540
+ # @param [String] project
41541
+ # Project ID for this request.
41542
+ # @param [String] filter
41543
+ # A filter expression that filters resources listed in the response. Most
41544
+ # Compute resources support two types of filter expressions: expressions that
41545
+ # support regular expressions and expressions that follow API improvement
41546
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41547
+ # request. If you want to use AIP-160, your expression must specify the field
41548
+ # name, an operator, and the value that you want to use for filtering. The value
41549
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41550
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41551
+ # Engine instances, you can exclude instances named `example-instance` by
41552
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41553
+ # whether a key has been defined. For example, to find all objects with `owner`
41554
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41555
+ # example, you could specify `scheduling.automaticRestart = false` to include
41556
+ # instances only if they are not scheduled for automatic restarts. You can use
41557
+ # filtering on nested fields to filter based on resource labels. To filter on
41558
+ # multiple expressions, provide each separate expression within parentheses. For
41559
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41560
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41561
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41562
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41563
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41564
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41565
+ # un-parenthesized expression with or without quotes or against multiple
41566
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41567
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41568
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41569
+ # interpreted as a regular expression using Google RE2 library syntax. The
41570
+ # literal value must match the entire field. For example, to filter for
41571
+ # instances that do not end with name "instance", you would use `name ne .*
41572
+ # instance`. You cannot combine constraints on multiple fields using regular
41573
+ # expressions.
41574
+ # @param [Fixnum] max_results
41575
+ # The maximum number of results per page that should be returned. If the number
41576
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41577
+ # nextPageToken` that can be used to get the next page of results in subsequent
41578
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41579
+ # @param [String] order_by
41580
+ # Sorts list results by a certain order. By default, results are returned in
41581
+ # alphanumerical order based on the resource name. You can also sort results in
41582
+ # descending order based on the creation timestamp using `orderBy="
41583
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41584
+ # field in reverse chronological order (newest result first). Use this to sort
41585
+ # resources like operations so that the newest operation is returned first.
41586
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41587
+ # @param [String] page_token
41588
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41589
+ # by a previous list request to get the next page of results.
41590
+ # @param [Boolean] return_partial_success
41591
+ # Opt-in for partial success behavior which provides partial results in case of
41592
+ # failure. The default value is false. For example, when partial success
41593
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41594
+ # resources in the zone or no resources, with an error code.
41595
+ # @param [String] fields
41596
+ # Selector specifying which fields to include in a partial response.
41597
+ # @param [String] quota_user
41598
+ # Available to use for quota purposes for server-side applications. Can be any
41599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41600
+ # @param [String] user_ip
41601
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41602
+ # @param [Google::Apis::RequestOptions] options
41603
+ # Request-specific options
41604
+ #
41605
+ # @yield [result, err] Result & error if block supplied
41606
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse] parsed result object
41607
+ # @yieldparam err [StandardError] error object if request failed
41608
+ #
41609
+ # @return [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse]
41610
+ #
41611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41614
+ def list_ssl_policy_available_features(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)
41615
+ command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options)
41616
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse::Representation
41617
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse
41618
+ command.params['project'] = project unless project.nil?
41619
+ command.query['filter'] = filter unless filter.nil?
41620
+ command.query['maxResults'] = max_results unless max_results.nil?
41621
+ command.query['orderBy'] = order_by unless order_by.nil?
41622
+ command.query['pageToken'] = page_token unless page_token.nil?
41623
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41624
+ command.query['fields'] = fields unless fields.nil?
41625
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41626
+ command.query['userIp'] = user_ip unless user_ip.nil?
41627
+ execute_or_queue_command(command, &block)
41628
+ end
41629
+
41630
+ # Patches the specified SSL policy with the data included in the request.
41631
+ # @param [String] project
41632
+ # Project ID for this request.
41633
+ # @param [String] ssl_policy
41634
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
41635
+ # comply with RFC1035.
41636
+ # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
41637
+ # @param [String] request_id
41638
+ # An optional request ID to identify requests. Specify a unique request ID so
41639
+ # that if you must retry your request, the server will know to ignore the
41640
+ # request if it has already been completed. For example, consider a situation
41641
+ # where you make an initial request and the request times out. If you make the
41642
+ # request again with the same request ID, the server can check if original
41643
+ # operation with the same request ID was received, and if so, will ignore the
41644
+ # second request. This prevents clients from accidentally creating duplicate
41645
+ # commitments. The request ID must be a valid UUID with the exception that zero
41646
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41647
+ # @param [String] fields
41648
+ # Selector specifying which fields to include in a partial response.
41649
+ # @param [String] quota_user
41650
+ # Available to use for quota purposes for server-side applications. Can be any
41651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41652
+ # @param [String] user_ip
41653
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41654
+ # @param [Google::Apis::RequestOptions] options
41655
+ # Request-specific options
41656
+ #
41657
+ # @yield [result, err] Result & error if block supplied
41658
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41659
+ # @yieldparam err [StandardError] error object if request failed
41660
+ #
41661
+ # @return [Google::Apis::ComputeBeta::Operation]
41662
+ #
41663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41666
+ def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41667
+ command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41668
+ command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41669
+ command.request_object = ssl_policy_object
41670
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41671
+ command.response_class = Google::Apis::ComputeBeta::Operation
41672
+ command.params['project'] = project unless project.nil?
41673
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41674
+ command.query['requestId'] = request_id unless request_id.nil?
41675
+ command.query['fields'] = fields unless fields.nil?
41676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41677
+ command.query['userIp'] = user_ip unless user_ip.nil?
41678
+ execute_or_queue_command(command, &block)
41679
+ end
41680
+
41681
+ # Returns permissions that a caller has on the specified resource.
41682
+ # @param [String] project
41683
+ # Project ID for this request.
41684
+ # @param [String] resource
41685
+ # Name or id of the resource for this request.
41686
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
41687
+ # @param [String] fields
41688
+ # Selector specifying which fields to include in a partial response.
41689
+ # @param [String] quota_user
41690
+ # Available to use for quota purposes for server-side applications. Can be any
41691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41692
+ # @param [String] user_ip
41693
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41694
+ # @param [Google::Apis::RequestOptions] options
41695
+ # Request-specific options
41696
+ #
41697
+ # @yield [result, err] Result & error if block supplied
41698
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
41699
+ # @yieldparam err [StandardError] error object if request failed
41700
+ #
41701
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
41702
+ #
41703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41706
+ def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41707
+ command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/testIamPermissions', options)
41708
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
41709
+ command.request_object = test_permissions_request_object
41710
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
41711
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
41712
+ command.params['project'] = project unless project.nil?
41713
+ command.params['resource'] = resource unless resource.nil?
41714
+ command.query['fields'] = fields unless fields.nil?
41715
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41716
+ command.query['userIp'] = user_ip unless user_ip.nil?
41717
+ execute_or_queue_command(command, &block)
41718
+ end
41719
+
41720
+ # Retrieves an aggregated list of storage pool types. To prevent failure, Google
41721
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
41722
+ # @param [String] project
41723
+ # Project ID for this request.
41724
+ # @param [String] filter
41725
+ # A filter expression that filters resources listed in the response. Most
41726
+ # Compute resources support two types of filter expressions: expressions that
41727
+ # support regular expressions and expressions that follow API improvement
41728
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
41729
+ # request. If you want to use AIP-160, your expression must specify the field
41730
+ # name, an operator, and the value that you want to use for filtering. The value
41731
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
41732
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
41733
+ # Engine instances, you can exclude instances named `example-instance` by
41734
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
41735
+ # whether a key has been defined. For example, to find all objects with `owner`
41736
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
41737
+ # example, you could specify `scheduling.automaticRestart = false` to include
41738
+ # instances only if they are not scheduled for automatic restarts. You can use
41739
+ # filtering on nested fields to filter based on resource labels. To filter on
41740
+ # multiple expressions, provide each separate expression within parentheses. For
41741
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
41742
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
41743
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
41744
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
41745
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
41746
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
41747
+ # un-parenthesized expression with or without quotes or against multiple
41748
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
41749
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
41750
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
41751
+ # interpreted as a regular expression using Google RE2 library syntax. The
41752
+ # literal value must match the entire field. For example, to filter for
41753
+ # instances that do not end with name "instance", you would use `name ne .*
41754
+ # instance`. You cannot combine constraints on multiple fields using regular
41755
+ # expressions.
41756
+ # @param [Boolean] include_all_scopes
41757
+ # Indicates whether every visible scope for each scope type (zone, region,
41758
+ # global) should be included in the response. For new resource types added after
41759
+ # this field, the flag has no effect as new resource types will always include
41760
+ # every visible scope for each scope type in response. For resource types which
41761
+ # predate this field, if this flag is omitted or false, only scopes of the scope
41762
+ # types where the resource type is expected to be found will be included.
41763
+ # @param [Fixnum] max_results
41764
+ # The maximum number of results per page that should be returned. If the number
41765
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41766
+ # nextPageToken` that can be used to get the next page of results in subsequent
41767
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41768
+ # @param [String] order_by
41769
+ # Sorts list results by a certain order. By default, results are returned in
41770
+ # alphanumerical order based on the resource name. You can also sort results in
41771
+ # descending order based on the creation timestamp using `orderBy="
41772
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41773
+ # field in reverse chronological order (newest result first). Use this to sort
41774
+ # resources like operations so that the newest operation is returned first.
41775
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41776
+ # @param [String] page_token
41777
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41778
+ # by a previous list request to get the next page of results.
41779
+ # @param [Boolean] return_partial_success
41780
+ # Opt-in for partial success behavior which provides partial results in case of
41781
+ # failure. The default value is false. For example, when partial success
41782
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
41783
+ # resources in the zone or no resources, with an error code.
41784
+ # @param [Fixnum] service_project_number
41785
+ # The Shared VPC service project id or service project number for which
41786
+ # aggregated list request is invoked for subnetworks list-usable api.
41787
+ # @param [String] fields
41788
+ # Selector specifying which fields to include in a partial response.
41789
+ # @param [String] quota_user
41790
+ # Available to use for quota purposes for server-side applications. Can be any
41791
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41792
+ # @param [String] user_ip
41793
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41794
+ # @param [Google::Apis::RequestOptions] options
41795
+ # Request-specific options
41796
+ #
41797
+ # @yield [result, err] Result & error if block supplied
41798
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList] parsed result object
40921
41799
  # @yieldparam err [StandardError] error object if request failed
40922
41800
  #
40923
- # @return [Google::Apis::ComputeBeta::SslCertificateAggregatedList]
41801
+ # @return [Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList]
40924
41802
  #
40925
41803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40926
41804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40927
41805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
40928
- def aggregated_ssl_certificate_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)
40929
- command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options)
40930
- command.response_representation = Google::Apis::ComputeBeta::SslCertificateAggregatedList::Representation
40931
- command.response_class = Google::Apis::ComputeBeta::SslCertificateAggregatedList
41806
+ 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)
41807
+ command = make_simple_command(:get, 'projects/{project}/aggregated/storagePoolTypes', options)
41808
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList::Representation
41809
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolTypeAggregatedList
40932
41810
  command.params['project'] = project unless project.nil?
40933
41811
  command.query['filter'] = filter unless filter.nil?
40934
41812
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -40943,104 +41821,13 @@ module Google
40943
41821
  execute_or_queue_command(command, &block)
40944
41822
  end
40945
41823
 
40946
- # Deletes the specified SslCertificate resource.
40947
- # @param [String] project
40948
- # Project ID for this request.
40949
- # @param [String] ssl_certificate
40950
- # Name of the SslCertificate resource to delete.
40951
- # @param [String] request_id
40952
- # An optional request ID to identify requests. Specify a unique request ID so
40953
- # that if you must retry your request, the server will know to ignore the
40954
- # request if it has already been completed. For example, consider a situation
40955
- # where you make an initial request and the request times out. If you make the
40956
- # request again with the same request ID, the server can check if original
40957
- # operation with the same request ID was received, and if so, will ignore the
40958
- # second request. This prevents clients from accidentally creating duplicate
40959
- # commitments. The request ID must be a valid UUID with the exception that zero
40960
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40961
- # @param [String] fields
40962
- # Selector specifying which fields to include in a partial response.
40963
- # @param [String] quota_user
40964
- # Available to use for quota purposes for server-side applications. Can be any
40965
- # arbitrary string assigned to a user, but should not exceed 40 characters.
40966
- # @param [String] user_ip
40967
- # Legacy name for parameter that has been superseded by `quotaUser`.
40968
- # @param [Google::Apis::RequestOptions] options
40969
- # Request-specific options
40970
- #
40971
- # @yield [result, err] Result & error if block supplied
40972
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
40973
- # @yieldparam err [StandardError] error object if request failed
40974
- #
40975
- # @return [Google::Apis::ComputeBeta::Operation]
40976
- #
40977
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40978
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40979
- # @raise [Google::Apis::AuthorizationError] Authorization is required
40980
- def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40981
- command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
40982
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
40983
- command.response_class = Google::Apis::ComputeBeta::Operation
40984
- command.params['project'] = project unless project.nil?
40985
- command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
40986
- command.query['requestId'] = request_id unless request_id.nil?
40987
- command.query['fields'] = fields unless fields.nil?
40988
- command.query['quotaUser'] = quota_user unless quota_user.nil?
40989
- command.query['userIp'] = user_ip unless user_ip.nil?
40990
- execute_or_queue_command(command, &block)
40991
- end
40992
-
40993
- # Returns the specified SslCertificate resource.
40994
- # @param [String] project
40995
- # Project ID for this request.
40996
- # @param [String] ssl_certificate
40997
- # Name of the SslCertificate resource to return.
40998
- # @param [String] fields
40999
- # Selector specifying which fields to include in a partial response.
41000
- # @param [String] quota_user
41001
- # Available to use for quota purposes for server-side applications. Can be any
41002
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41003
- # @param [String] user_ip
41004
- # Legacy name for parameter that has been superseded by `quotaUser`.
41005
- # @param [Google::Apis::RequestOptions] options
41006
- # Request-specific options
41007
- #
41008
- # @yield [result, err] Result & error if block supplied
41009
- # @yieldparam result [Google::Apis::ComputeBeta::SslCertificate] parsed result object
41010
- # @yieldparam err [StandardError] error object if request failed
41011
- #
41012
- # @return [Google::Apis::ComputeBeta::SslCertificate]
41013
- #
41014
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41015
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41016
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41017
- def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41018
- command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options)
41019
- command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
41020
- command.response_class = Google::Apis::ComputeBeta::SslCertificate
41021
- command.params['project'] = project unless project.nil?
41022
- command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
41023
- command.query['fields'] = fields unless fields.nil?
41024
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41025
- command.query['userIp'] = user_ip unless user_ip.nil?
41026
- execute_or_queue_command(command, &block)
41027
- end
41028
-
41029
- # Creates a SslCertificate resource in the specified project using the data
41030
- # included in the request.
41824
+ # Returns the specified storage pool type.
41031
41825
  # @param [String] project
41032
41826
  # Project ID for this request.
41033
- # @param [Google::Apis::ComputeBeta::SslCertificate] ssl_certificate_object
41034
- # @param [String] request_id
41035
- # An optional request ID to identify requests. Specify a unique request ID so
41036
- # that if you must retry your request, the server will know to ignore the
41037
- # request if it has already been completed. For example, consider a situation
41038
- # where you make an initial request and the request times out. If you make the
41039
- # request again with the same request ID, the server can check if original
41040
- # operation with the same request ID was received, and if so, will ignore the
41041
- # second request. This prevents clients from accidentally creating duplicate
41042
- # commitments. The request ID must be a valid UUID with the exception that zero
41043
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41827
+ # @param [String] zone
41828
+ # The name of the zone for this request.
41829
+ # @param [String] storage_pool_type
41830
+ # Name of the storage pool type to return.
41044
41831
  # @param [String] fields
41045
41832
  # Selector specifying which fields to include in a partial response.
41046
41833
  # @param [String] quota_user
@@ -41052,32 +41839,32 @@ module Google
41052
41839
  # Request-specific options
41053
41840
  #
41054
41841
  # @yield [result, err] Result & error if block supplied
41055
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41842
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolType] parsed result object
41056
41843
  # @yieldparam err [StandardError] error object if request failed
41057
41844
  #
41058
- # @return [Google::Apis::ComputeBeta::Operation]
41845
+ # @return [Google::Apis::ComputeBeta::StoragePoolType]
41059
41846
  #
41060
41847
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41061
41848
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41062
41849
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41063
- def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41064
- command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options)
41065
- command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
41066
- command.request_object = ssl_certificate_object
41067
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41068
- command.response_class = Google::Apis::ComputeBeta::Operation
41850
+ def get_storage_pool_type(project, zone, storage_pool_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41851
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}', options)
41852
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolType::Representation
41853
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolType
41069
41854
  command.params['project'] = project unless project.nil?
41070
- command.query['requestId'] = request_id unless request_id.nil?
41855
+ command.params['zone'] = zone unless zone.nil?
41856
+ command.params['storagePoolType'] = storage_pool_type unless storage_pool_type.nil?
41071
41857
  command.query['fields'] = fields unless fields.nil?
41072
41858
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41073
41859
  command.query['userIp'] = user_ip unless user_ip.nil?
41074
41860
  execute_or_queue_command(command, &block)
41075
41861
  end
41076
41862
 
41077
- # Retrieves the list of SslCertificate resources available to the specified
41078
- # project.
41863
+ # Retrieves a list of storage pool types available to the specified project.
41079
41864
  # @param [String] project
41080
41865
  # Project ID for this request.
41866
+ # @param [String] zone
41867
+ # The name of the zone for this request.
41081
41868
  # @param [String] filter
41082
41869
  # A filter expression that filters resources listed in the response. Most
41083
41870
  # Compute resources support two types of filter expressions: expressions that
@@ -41142,19 +41929,20 @@ module Google
41142
41929
  # Request-specific options
41143
41930
  #
41144
41931
  # @yield [result, err] Result & error if block supplied
41145
- # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateList] parsed result object
41932
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolTypeList] parsed result object
41146
41933
  # @yieldparam err [StandardError] error object if request failed
41147
41934
  #
41148
- # @return [Google::Apis::ComputeBeta::SslCertificateList]
41935
+ # @return [Google::Apis::ComputeBeta::StoragePoolTypeList]
41149
41936
  #
41150
41937
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41151
41938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41152
41939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41153
- def list_ssl_certificates(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)
41154
- command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options)
41155
- command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation
41156
- command.response_class = Google::Apis::ComputeBeta::SslCertificateList
41940
+ 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)
41941
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes', options)
41942
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolTypeList::Representation
41943
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolTypeList
41157
41944
  command.params['project'] = project unless project.nil?
41945
+ command.params['zone'] = zone unless zone.nil?
41158
41946
  command.query['filter'] = filter unless filter.nil?
41159
41947
  command.query['maxResults'] = max_results unless max_results.nil?
41160
41948
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -41166,50 +41954,10 @@ module Google
41166
41954
  execute_or_queue_command(command, &block)
41167
41955
  end
41168
41956
 
41169
- # Returns permissions that a caller has on the specified resource.
41957
+ # Retrieves an aggregated list of storage pools. To prevent failure, Google
41958
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
41170
41959
  # @param [String] project
41171
41960
  # Project ID for this request.
41172
- # @param [String] resource
41173
- # Name or id of the resource for this request.
41174
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
41175
- # @param [String] fields
41176
- # Selector specifying which fields to include in a partial response.
41177
- # @param [String] quota_user
41178
- # Available to use for quota purposes for server-side applications. Can be any
41179
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41180
- # @param [String] user_ip
41181
- # Legacy name for parameter that has been superseded by `quotaUser`.
41182
- # @param [Google::Apis::RequestOptions] options
41183
- # Request-specific options
41184
- #
41185
- # @yield [result, err] Result & error if block supplied
41186
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
41187
- # @yieldparam err [StandardError] error object if request failed
41188
- #
41189
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
41190
- #
41191
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41192
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41193
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41194
- def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41195
- command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{resource}/testIamPermissions', options)
41196
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
41197
- command.request_object = test_permissions_request_object
41198
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
41199
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
41200
- command.params['project'] = project unless project.nil?
41201
- command.params['resource'] = resource unless resource.nil?
41202
- command.query['fields'] = fields unless fields.nil?
41203
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41204
- command.query['userIp'] = user_ip unless user_ip.nil?
41205
- execute_or_queue_command(command, &block)
41206
- end
41207
-
41208
- # Retrieves the list of all SslPolicy resources, regional and global, available
41209
- # to the specified project. To prevent failure, Google recommends that you set
41210
- # the `returnPartialSuccess` parameter to `true`.
41211
- # @param [String] project
41212
- # Name of the project scoping this request.
41213
41961
  # @param [String] filter
41214
41962
  # A filter expression that filters resources listed in the response. Most
41215
41963
  # Compute resources support two types of filter expressions: expressions that
@@ -41284,18 +42032,18 @@ module Google
41284
42032
  # Request-specific options
41285
42033
  #
41286
42034
  # @yield [result, err] Result & error if block supplied
41287
- # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesAggregatedList] parsed result object
42035
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolAggregatedList] parsed result object
41288
42036
  # @yieldparam err [StandardError] error object if request failed
41289
42037
  #
41290
- # @return [Google::Apis::ComputeBeta::SslPoliciesAggregatedList]
42038
+ # @return [Google::Apis::ComputeBeta::StoragePoolAggregatedList]
41291
42039
  #
41292
42040
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41293
42041
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41294
42042
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41295
- def aggregated_ssl_policy_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)
41296
- command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
41297
- command.response_representation = Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Representation
41298
- command.response_class = Google::Apis::ComputeBeta::SslPoliciesAggregatedList
42043
+ 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)
42044
+ command = make_simple_command(:get, 'projects/{project}/aggregated/storagePools', options)
42045
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolAggregatedList::Representation
42046
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolAggregatedList
41299
42047
  command.params['project'] = project unless project.nil?
41300
42048
  command.query['filter'] = filter unless filter.nil?
41301
42049
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -41310,13 +42058,16 @@ module Google
41310
42058
  execute_or_queue_command(command, &block)
41311
42059
  end
41312
42060
 
41313
- # Deletes the specified SSL policy. The SSL policy resource can be deleted only
41314
- # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
42061
+ # Deletes the specified storage pool. Deleting a storagePool removes its data
42062
+ # permanently and is irreversible. However, deleting a storagePool does not
42063
+ # delete any snapshots previously made from the storagePool. You must separately
42064
+ # delete snapshots.
41315
42065
  # @param [String] project
41316
42066
  # Project ID for this request.
41317
- # @param [String] ssl_policy
41318
- # Name of the SSL policy to delete. The name must be 1-63 characters long, and
41319
- # comply with RFC1035.
42067
+ # @param [String] zone
42068
+ # The name of the zone for this request.
42069
+ # @param [String] storage_pool
42070
+ # Name of the storage pool to delete.
41320
42071
  # @param [String] request_id
41321
42072
  # An optional request ID to identify requests. Specify a unique request ID so
41322
42073
  # that if you must retry your request, the server will know to ignore the
@@ -41346,12 +42097,13 @@ module Google
41346
42097
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41347
42098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41348
42099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41349
- def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41350
- command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
42100
+ def delete_storage_pool(project, zone, storage_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42101
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
41351
42102
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41352
42103
  command.response_class = Google::Apis::ComputeBeta::Operation
41353
42104
  command.params['project'] = project unless project.nil?
41354
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
42105
+ command.params['zone'] = zone unless zone.nil?
42106
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
41355
42107
  command.query['requestId'] = request_id unless request_id.nil?
41356
42108
  command.query['fields'] = fields unless fields.nil?
41357
42109
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41359,12 +42111,14 @@ module Google
41359
42111
  execute_or_queue_command(command, &block)
41360
42112
  end
41361
42113
 
41362
- # Lists all of the ordered rules present in a single specified policy.
42114
+ # Returns a specified storage pool. Gets a list of available storage pools by
42115
+ # making a list() request.
41363
42116
  # @param [String] project
41364
42117
  # Project ID for this request.
41365
- # @param [String] ssl_policy
41366
- # Name of the SSL policy to update. The name must be 1-63 characters long, and
41367
- # comply with RFC1035.
42118
+ # @param [String] zone
42119
+ # The name of the zone for this request.
42120
+ # @param [String] storage_pool
42121
+ # Name of the storage pool to return.
41368
42122
  # @param [String] fields
41369
42123
  # Selector specifying which fields to include in a partial response.
41370
42124
  # @param [String] quota_user
@@ -41376,30 +42130,76 @@ module Google
41376
42130
  # Request-specific options
41377
42131
  #
41378
42132
  # @yield [result, err] Result & error if block supplied
41379
- # @yieldparam result [Google::Apis::ComputeBeta::SslPolicy] parsed result object
42133
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePool] parsed result object
41380
42134
  # @yieldparam err [StandardError] error object if request failed
41381
42135
  #
41382
- # @return [Google::Apis::ComputeBeta::SslPolicy]
42136
+ # @return [Google::Apis::ComputeBeta::StoragePool]
41383
42137
  #
41384
42138
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41385
42139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41386
42140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41387
- def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41388
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41389
- command.response_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41390
- command.response_class = Google::Apis::ComputeBeta::SslPolicy
42141
+ def get_storage_pool(project, zone, storage_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42142
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42143
+ command.response_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42144
+ command.response_class = Google::Apis::ComputeBeta::StoragePool
41391
42145
  command.params['project'] = project unless project.nil?
41392
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
42146
+ command.params['zone'] = zone unless zone.nil?
42147
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
41393
42148
  command.query['fields'] = fields unless fields.nil?
41394
42149
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41395
42150
  command.query['userIp'] = user_ip unless user_ip.nil?
41396
42151
  execute_or_queue_command(command, &block)
41397
42152
  end
41398
42153
 
41399
- # Returns the specified SSL policy resource.
42154
+ # Gets the access control policy for a resource. May be empty if no such policy
42155
+ # or resource exists.
41400
42156
  # @param [String] project
41401
42157
  # Project ID for this request.
41402
- # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
42158
+ # @param [String] zone
42159
+ # The name of the zone for this request.
42160
+ # @param [String] resource
42161
+ # Name or id of the resource for this request.
42162
+ # @param [Fixnum] options_requested_policy_version
42163
+ # Requested IAM Policy version.
42164
+ # @param [String] fields
42165
+ # Selector specifying which fields to include in a partial response.
42166
+ # @param [String] quota_user
42167
+ # Available to use for quota purposes for server-side applications. Can be any
42168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42169
+ # @param [String] user_ip
42170
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42171
+ # @param [Google::Apis::RequestOptions] options
42172
+ # Request-specific options
42173
+ #
42174
+ # @yield [result, err] Result & error if block supplied
42175
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
42176
+ # @yieldparam err [StandardError] error object if request failed
42177
+ #
42178
+ # @return [Google::Apis::ComputeBeta::Policy]
42179
+ #
42180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42183
+ 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)
42184
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy', options)
42185
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
42186
+ command.response_class = Google::Apis::ComputeBeta::Policy
42187
+ command.params['project'] = project unless project.nil?
42188
+ command.params['zone'] = zone unless zone.nil?
42189
+ command.params['resource'] = resource unless resource.nil?
42190
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
42191
+ command.query['fields'] = fields unless fields.nil?
42192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42193
+ command.query['userIp'] = user_ip unless user_ip.nil?
42194
+ execute_or_queue_command(command, &block)
42195
+ end
42196
+
42197
+ # Creates a storage pool in the specified project using the data in the request.
42198
+ # @param [String] project
42199
+ # Project ID for this request.
42200
+ # @param [String] zone
42201
+ # The name of the zone for this request.
42202
+ # @param [Google::Apis::ComputeBeta::StoragePool] storage_pool_object
41403
42203
  # @param [String] request_id
41404
42204
  # An optional request ID to identify requests. Specify a unique request ID so
41405
42205
  # that if you must retry your request, the server will know to ignore the
@@ -41429,13 +42229,14 @@ module Google
41429
42229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41430
42230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41431
42231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41432
- def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41433
- command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options)
41434
- command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41435
- command.request_object = ssl_policy_object
42232
+ def insert_storage_pool(project, zone, storage_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42233
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools', options)
42234
+ command.request_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42235
+ command.request_object = storage_pool_object
41436
42236
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41437
42237
  command.response_class = Google::Apis::ComputeBeta::Operation
41438
42238
  command.params['project'] = project unless project.nil?
42239
+ command.params['zone'] = zone unless zone.nil?
41439
42240
  command.query['requestId'] = request_id unless request_id.nil?
41440
42241
  command.query['fields'] = fields unless fields.nil?
41441
42242
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41443,9 +42244,11 @@ module Google
41443
42244
  execute_or_queue_command(command, &block)
41444
42245
  end
41445
42246
 
41446
- # Lists all the SSL policies that have been configured for the specified project.
42247
+ # Retrieves a list of storage pools contained within the specified zone.
41447
42248
  # @param [String] project
41448
42249
  # Project ID for this request.
42250
+ # @param [String] zone
42251
+ # The name of the zone for this request.
41449
42252
  # @param [String] filter
41450
42253
  # A filter expression that filters resources listed in the response. Most
41451
42254
  # Compute resources support two types of filter expressions: expressions that
@@ -41510,19 +42313,20 @@ module Google
41510
42313
  # Request-specific options
41511
42314
  #
41512
42315
  # @yield [result, err] Result & error if block supplied
41513
- # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesList] parsed result object
42316
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolList] parsed result object
41514
42317
  # @yieldparam err [StandardError] error object if request failed
41515
42318
  #
41516
- # @return [Google::Apis::ComputeBeta::SslPoliciesList]
42319
+ # @return [Google::Apis::ComputeBeta::StoragePoolList]
41517
42320
  #
41518
42321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41519
42322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41520
42323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41521
- def list_ssl_policies(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)
41522
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options)
41523
- command.response_representation = Google::Apis::ComputeBeta::SslPoliciesList::Representation
41524
- command.response_class = Google::Apis::ComputeBeta::SslPoliciesList
42324
+ 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)
42325
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools', options)
42326
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolList::Representation
42327
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolList
41525
42328
  command.params['project'] = project unless project.nil?
42329
+ command.params['zone'] = zone unless zone.nil?
41526
42330
  command.query['filter'] = filter unless filter.nil?
41527
42331
  command.query['maxResults'] = max_results unless max_results.nil?
41528
42332
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -41534,10 +42338,13 @@ module Google
41534
42338
  execute_or_queue_command(command, &block)
41535
42339
  end
41536
42340
 
41537
- # Lists all features that can be specified in the SSL policy when using custom
41538
- # profile.
42341
+ # Lists the disks in a specified storage pool.
41539
42342
  # @param [String] project
41540
42343
  # Project ID for this request.
42344
+ # @param [String] zone
42345
+ # The name of the zone for this request.
42346
+ # @param [String] storage_pool
42347
+ # Name of the storage pool to list disks of.
41541
42348
  # @param [String] filter
41542
42349
  # A filter expression that filters resources listed in the response. Most
41543
42350
  # Compute resources support two types of filter expressions: expressions that
@@ -41602,19 +42409,21 @@ module Google
41602
42409
  # Request-specific options
41603
42410
  #
41604
42411
  # @yield [result, err] Result & error if block supplied
41605
- # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse] parsed result object
42412
+ # @yieldparam result [Google::Apis::ComputeBeta::StoragePoolListDisks] parsed result object
41606
42413
  # @yieldparam err [StandardError] error object if request failed
41607
42414
  #
41608
- # @return [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse]
42415
+ # @return [Google::Apis::ComputeBeta::StoragePoolListDisks]
41609
42416
  #
41610
42417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41611
42418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41612
42419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41613
- def list_ssl_policy_available_features(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)
41614
- command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options)
41615
- command.response_representation = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse::Representation
41616
- command.response_class = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse
42420
+ 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)
42421
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks', options)
42422
+ command.response_representation = Google::Apis::ComputeBeta::StoragePoolListDisks::Representation
42423
+ command.response_class = Google::Apis::ComputeBeta::StoragePoolListDisks
41617
42424
  command.params['project'] = project unless project.nil?
42425
+ command.params['zone'] = zone unless zone.nil?
42426
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
41618
42427
  command.query['filter'] = filter unless filter.nil?
41619
42428
  command.query['maxResults'] = max_results unless max_results.nil?
41620
42429
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -41626,23 +42435,15 @@ module Google
41626
42435
  execute_or_queue_command(command, &block)
41627
42436
  end
41628
42437
 
41629
- # Patches the specified SSL policy with the data included in the request.
42438
+ # Sets the access control policy on the specified resource. Replaces any
42439
+ # existing policy.
41630
42440
  # @param [String] project
41631
42441
  # Project ID for this request.
41632
- # @param [String] ssl_policy
41633
- # Name of the SSL policy to update. The name must be 1-63 characters long, and
41634
- # comply with RFC1035.
41635
- # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
41636
- # @param [String] request_id
41637
- # An optional request ID to identify requests. Specify a unique request ID so
41638
- # that if you must retry your request, the server will know to ignore the
41639
- # request if it has already been completed. For example, consider a situation
41640
- # where you make an initial request and the request times out. If you make the
41641
- # request again with the same request ID, the server can check if original
41642
- # operation with the same request ID was received, and if so, will ignore the
41643
- # second request. This prevents clients from accidentally creating duplicate
41644
- # commitments. The request ID must be a valid UUID with the exception that zero
41645
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42442
+ # @param [String] zone
42443
+ # The name of the zone for this request.
42444
+ # @param [String] resource
42445
+ # Name or id of the resource for this request.
42446
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
41646
42447
  # @param [String] fields
41647
42448
  # Selector specifying which fields to include in a partial response.
41648
42449
  # @param [String] quota_user
@@ -41654,23 +42455,23 @@ module Google
41654
42455
  # Request-specific options
41655
42456
  #
41656
42457
  # @yield [result, err] Result & error if block supplied
41657
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
42458
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
41658
42459
  # @yieldparam err [StandardError] error object if request failed
41659
42460
  #
41660
- # @return [Google::Apis::ComputeBeta::Operation]
42461
+ # @return [Google::Apis::ComputeBeta::Policy]
41661
42462
  #
41662
42463
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41663
42464
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41664
42465
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41665
- def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41666
- command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options)
41667
- command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
41668
- command.request_object = ssl_policy_object
41669
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41670
- command.response_class = Google::Apis::ComputeBeta::Operation
42466
+ 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)
42467
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy', options)
42468
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
42469
+ command.request_object = zone_set_policy_request_object
42470
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
42471
+ command.response_class = Google::Apis::ComputeBeta::Policy
41671
42472
  command.params['project'] = project unless project.nil?
41672
- command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
41673
- command.query['requestId'] = request_id unless request_id.nil?
42473
+ command.params['zone'] = zone unless zone.nil?
42474
+ command.params['resource'] = resource unless resource.nil?
41674
42475
  command.query['fields'] = fields unless fields.nil?
41675
42476
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41676
42477
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -41680,6 +42481,8 @@ module Google
41680
42481
  # Returns permissions that a caller has on the specified resource.
41681
42482
  # @param [String] project
41682
42483
  # Project ID for this request.
42484
+ # @param [String] zone
42485
+ # The name of the zone for this request.
41683
42486
  # @param [String] resource
41684
42487
  # Name or id of the resource for this request.
41685
42488
  # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
@@ -41702,13 +42505,14 @@ module Google
41702
42505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41703
42506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41704
42507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41705
- def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41706
- command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/testIamPermissions', options)
42508
+ 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)
42509
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions', options)
41707
42510
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
41708
42511
  command.request_object = test_permissions_request_object
41709
42512
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
41710
42513
  command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
41711
42514
  command.params['project'] = project unless project.nil?
42515
+ command.params['zone'] = zone unless zone.nil?
41712
42516
  command.params['resource'] = resource unless resource.nil?
41713
42517
  command.query['fields'] = fields unless fields.nil?
41714
42518
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41716,6 +42520,64 @@ module Google
41716
42520
  execute_or_queue_command(command, &block)
41717
42521
  end
41718
42522
 
42523
+ # Updates the specified storagePool with the data included in the request. The
42524
+ # update is performed only on selected fields included as part of update-mask.
42525
+ # Only the following fields can be modified: size_tb and provisioned_iops.
42526
+ # @param [String] project
42527
+ # Project ID for this request.
42528
+ # @param [String] zone
42529
+ # The name of the zone for this request.
42530
+ # @param [String] storage_pool
42531
+ # The storagePool name for this request.
42532
+ # @param [Google::Apis::ComputeBeta::StoragePool] storage_pool_object
42533
+ # @param [String] request_id
42534
+ # An optional request ID to identify requests. Specify a unique request ID so
42535
+ # that if you must retry your request, the server will know to ignore the
42536
+ # request if it has already been completed. For example, consider a situation
42537
+ # where you make an initial request and the request times out. If you make the
42538
+ # request again with the same request ID, the server can check if original
42539
+ # operation with the same request ID was received, and if so, will ignore the
42540
+ # second request. This prevents clients from accidentally creating duplicate
42541
+ # commitments. The request ID must be a valid UUID with the exception that zero
42542
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42543
+ # @param [String] update_mask
42544
+ # update_mask indicates fields to be updated as part of this request.
42545
+ # @param [String] fields
42546
+ # Selector specifying which fields to include in a partial response.
42547
+ # @param [String] quota_user
42548
+ # Available to use for quota purposes for server-side applications. Can be any
42549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42550
+ # @param [String] user_ip
42551
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42552
+ # @param [Google::Apis::RequestOptions] options
42553
+ # Request-specific options
42554
+ #
42555
+ # @yield [result, err] Result & error if block supplied
42556
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
42557
+ # @yieldparam err [StandardError] error object if request failed
42558
+ #
42559
+ # @return [Google::Apis::ComputeBeta::Operation]
42560
+ #
42561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42564
+ 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)
42565
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
42566
+ command.request_representation = Google::Apis::ComputeBeta::StoragePool::Representation
42567
+ command.request_object = storage_pool_object
42568
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
42569
+ command.response_class = Google::Apis::ComputeBeta::Operation
42570
+ command.params['project'] = project unless project.nil?
42571
+ command.params['zone'] = zone unless zone.nil?
42572
+ command.params['storagePool'] = storage_pool unless storage_pool.nil?
42573
+ command.query['requestId'] = request_id unless request_id.nil?
42574
+ command.query['updateMask'] = update_mask unless update_mask.nil?
42575
+ command.query['fields'] = fields unless fields.nil?
42576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42577
+ command.query['userIp'] = user_ip unless user_ip.nil?
42578
+ execute_or_queue_command(command, &block)
42579
+ end
42580
+
41719
42581
  # Retrieves an aggregated list of subnetworks. To prevent failure, Google
41720
42582
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
41721
42583
  # @param [String] project