google-apis-compute_v1 0.90.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_v1/classes.rb +1758 -12
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +706 -40
- data/lib/google/apis/compute_v1/service.rb +1177 -0
- metadata +3 -3
@@ -9376,6 +9376,322 @@ module Google
|
|
9376
9376
|
execute_or_queue_command(command, &block)
|
9377
9377
|
end
|
9378
9378
|
|
9379
|
+
# Cancels the specified resize request and removes it from the queue. Cancelled
|
9380
|
+
# resize request does no longer wait for the resources to be provisioned. Cancel
|
9381
|
+
# is only possible for requests that are accepted in the queue.
|
9382
|
+
# @param [String] project
|
9383
|
+
# Project ID for this request.
|
9384
|
+
# @param [String] zone
|
9385
|
+
# The name of the zone where the managed instance group is located. The name
|
9386
|
+
# should conform to RFC1035.
|
9387
|
+
# @param [String] instance_group_manager
|
9388
|
+
# The name of the managed instance group. The name should conform to RFC1035 or
|
9389
|
+
# be a resource ID.
|
9390
|
+
# @param [String] resize_request
|
9391
|
+
# The name of the resize request to cancel. The name should conform to RFC1035
|
9392
|
+
# or be a resource ID.
|
9393
|
+
# @param [String] request_id
|
9394
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9395
|
+
# that if you must retry your request, the server will know to ignore the
|
9396
|
+
# request if it has already been completed. For example, consider a situation
|
9397
|
+
# where you make an initial request and the request times out. If you make the
|
9398
|
+
# request again with the same request ID, the server can check if original
|
9399
|
+
# operation with the same request ID was received, and if so, will ignore the
|
9400
|
+
# second request. This prevents clients from accidentally creating duplicate
|
9401
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
9402
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
9403
|
+
# @param [String] fields
|
9404
|
+
# Selector specifying which fields to include in a partial response.
|
9405
|
+
# @param [String] quota_user
|
9406
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9407
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9408
|
+
# @param [String] user_ip
|
9409
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9410
|
+
# @param [Google::Apis::RequestOptions] options
|
9411
|
+
# Request-specific options
|
9412
|
+
#
|
9413
|
+
# @yield [result, err] Result & error if block supplied
|
9414
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
9415
|
+
# @yieldparam err [StandardError] error object if request failed
|
9416
|
+
#
|
9417
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
9418
|
+
#
|
9419
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9420
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9421
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9422
|
+
def cancel_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9423
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
|
9424
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
9425
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
9426
|
+
command.params['project'] = project unless project.nil?
|
9427
|
+
command.params['zone'] = zone unless zone.nil?
|
9428
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
9429
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
9430
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9431
|
+
command.query['fields'] = fields unless fields.nil?
|
9432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9433
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9434
|
+
execute_or_queue_command(command, &block)
|
9435
|
+
end
|
9436
|
+
|
9437
|
+
# Deletes the specified, inactive resize request. Requests that are still active
|
9438
|
+
# cannot be deleted. Deleting request does not delete instances that were
|
9439
|
+
# provisioned previously.
|
9440
|
+
# @param [String] project
|
9441
|
+
# Project ID for this request.
|
9442
|
+
# @param [String] zone
|
9443
|
+
# The name of the zone where the managed instance group is located. The name
|
9444
|
+
# should conform to RFC1035.
|
9445
|
+
# @param [String] instance_group_manager
|
9446
|
+
# The name of the managed instance group. The name should conform to RFC1035 or
|
9447
|
+
# be a resource ID.
|
9448
|
+
# @param [String] resize_request
|
9449
|
+
# The name of the resize request to delete. The name should conform to RFC1035
|
9450
|
+
# or be a resource ID.
|
9451
|
+
# @param [String] request_id
|
9452
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9453
|
+
# that if you must retry your request, the server will know to ignore the
|
9454
|
+
# request if it has already been completed. For example, consider a situation
|
9455
|
+
# where you make an initial request and the request times out. If you make the
|
9456
|
+
# request again with the same request ID, the server can check if original
|
9457
|
+
# operation with the same request ID was received, and if so, will ignore the
|
9458
|
+
# second request. This prevents clients from accidentally creating duplicate
|
9459
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
9460
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
9461
|
+
# @param [String] fields
|
9462
|
+
# Selector specifying which fields to include in a partial response.
|
9463
|
+
# @param [String] quota_user
|
9464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9466
|
+
# @param [String] user_ip
|
9467
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9468
|
+
# @param [Google::Apis::RequestOptions] options
|
9469
|
+
# Request-specific options
|
9470
|
+
#
|
9471
|
+
# @yield [result, err] Result & error if block supplied
|
9472
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
9473
|
+
# @yieldparam err [StandardError] error object if request failed
|
9474
|
+
#
|
9475
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
9476
|
+
#
|
9477
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9478
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9479
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9480
|
+
def delete_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9481
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
9482
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
9483
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
9484
|
+
command.params['project'] = project unless project.nil?
|
9485
|
+
command.params['zone'] = zone unless zone.nil?
|
9486
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
9487
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
9488
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9489
|
+
command.query['fields'] = fields unless fields.nil?
|
9490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9491
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9492
|
+
execute_or_queue_command(command, &block)
|
9493
|
+
end
|
9494
|
+
|
9495
|
+
# Returns all of the details about the specified resize request.
|
9496
|
+
# @param [String] project
|
9497
|
+
# Project ID for this request.
|
9498
|
+
# @param [String] zone
|
9499
|
+
# Name of the href="/compute/docs/regions-zones/#available">zone scoping this
|
9500
|
+
# request. Name should conform to RFC1035.
|
9501
|
+
# @param [String] instance_group_manager
|
9502
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
9503
|
+
# resource ID.
|
9504
|
+
# @param [String] resize_request
|
9505
|
+
# The name of the resize request. Name should conform to RFC1035 or be a
|
9506
|
+
# resource ID.
|
9507
|
+
# @param [String] fields
|
9508
|
+
# Selector specifying which fields to include in a partial response.
|
9509
|
+
# @param [String] quota_user
|
9510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9512
|
+
# @param [String] user_ip
|
9513
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9514
|
+
# @param [Google::Apis::RequestOptions] options
|
9515
|
+
# Request-specific options
|
9516
|
+
#
|
9517
|
+
# @yield [result, err] Result & error if block supplied
|
9518
|
+
# @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest] parsed result object
|
9519
|
+
# @yieldparam err [StandardError] error object if request failed
|
9520
|
+
#
|
9521
|
+
# @return [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest]
|
9522
|
+
#
|
9523
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9524
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9525
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9526
|
+
def get_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9527
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
9528
|
+
command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest::Representation
|
9529
|
+
command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest
|
9530
|
+
command.params['project'] = project unless project.nil?
|
9531
|
+
command.params['zone'] = zone unless zone.nil?
|
9532
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
9533
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
9534
|
+
command.query['fields'] = fields unless fields.nil?
|
9535
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9536
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9537
|
+
execute_or_queue_command(command, &block)
|
9538
|
+
end
|
9539
|
+
|
9540
|
+
# Creates a new resize request that starts provisioning VMs immediately or
|
9541
|
+
# queues VM creation.
|
9542
|
+
# @param [String] project
|
9543
|
+
# Project ID for this request.
|
9544
|
+
# @param [String] zone
|
9545
|
+
# The name of the zone where the managed instance group is located and where the
|
9546
|
+
# resize request will be created. Name should conform to RFC1035.
|
9547
|
+
# @param [String] instance_group_manager
|
9548
|
+
# The name of the managed instance group to which the resize request will be
|
9549
|
+
# added. Name should conform to RFC1035 or be a resource ID.
|
9550
|
+
# @param [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
|
9551
|
+
# @param [String] request_id
|
9552
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9553
|
+
# that if you must retry your request, the server will know to ignore the
|
9554
|
+
# request if it has already been completed. For example, consider a situation
|
9555
|
+
# where you make an initial request and the request times out. If you make the
|
9556
|
+
# request again with the same request ID, the server can check if original
|
9557
|
+
# operation with the same request ID was received, and if so, will ignore the
|
9558
|
+
# second request. This prevents clients from accidentally creating duplicate
|
9559
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
9560
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
9561
|
+
# @param [String] fields
|
9562
|
+
# Selector specifying which fields to include in a partial response.
|
9563
|
+
# @param [String] quota_user
|
9564
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9565
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9566
|
+
# @param [String] user_ip
|
9567
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9568
|
+
# @param [Google::Apis::RequestOptions] options
|
9569
|
+
# Request-specific options
|
9570
|
+
#
|
9571
|
+
# @yield [result, err] Result & error if block supplied
|
9572
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
9573
|
+
# @yieldparam err [StandardError] error object if request failed
|
9574
|
+
#
|
9575
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
9576
|
+
#
|
9577
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9578
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9579
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9580
|
+
def insert_instance_group_manager_resize_request(project, zone, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9581
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
9582
|
+
command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest::Representation
|
9583
|
+
command.request_object = instance_group_manager_resize_request_object
|
9584
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
9585
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
9586
|
+
command.params['project'] = project unless project.nil?
|
9587
|
+
command.params['zone'] = zone unless zone.nil?
|
9588
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
9589
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9590
|
+
command.query['fields'] = fields unless fields.nil?
|
9591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9592
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9593
|
+
execute_or_queue_command(command, &block)
|
9594
|
+
end
|
9595
|
+
|
9596
|
+
# Retrieves a list of resize requests that are contained in the managed instance
|
9597
|
+
# group.
|
9598
|
+
# @param [String] project
|
9599
|
+
# Project ID for this request.
|
9600
|
+
# @param [String] zone
|
9601
|
+
# The name of the zone where the managed instance group is located. The name
|
9602
|
+
# should conform to RFC1035.
|
9603
|
+
# @param [String] instance_group_manager
|
9604
|
+
# The name of the managed instance group. The name should conform to RFC1035.
|
9605
|
+
# @param [String] filter
|
9606
|
+
# A filter expression that filters resources listed in the response. Most
|
9607
|
+
# Compute resources support two types of filter expressions: expressions that
|
9608
|
+
# support regular expressions and expressions that follow API improvement
|
9609
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
9610
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
9611
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
9612
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
9613
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
9614
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
9615
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
9616
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
9617
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
9618
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
9619
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
9620
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
9621
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
9622
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
9623
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
9624
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
9625
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
9626
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
9627
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
9628
|
+
# un-parenthesized expression with or without quotes or against multiple
|
9629
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
9630
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
9631
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
9632
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
9633
|
+
# literal value must match the entire field. For example, to filter for
|
9634
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
9635
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
9636
|
+
# expressions.
|
9637
|
+
# @param [Fixnum] max_results
|
9638
|
+
# The maximum number of results per page that should be returned. If the number
|
9639
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
9640
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
9641
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
9642
|
+
# @param [String] order_by
|
9643
|
+
# Sorts list results by a certain order. By default, results are returned in
|
9644
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
9645
|
+
# descending order based on the creation timestamp using `orderBy="
|
9646
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
9647
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
9648
|
+
# resources like operations so that the newest operation is returned first.
|
9649
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
9650
|
+
# @param [String] page_token
|
9651
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
9652
|
+
# by a previous list request to get the next page of results.
|
9653
|
+
# @param [Boolean] return_partial_success
|
9654
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
9655
|
+
# failure. The default value is false. For example, when partial success
|
9656
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
9657
|
+
# resources in the zone or no resources, with an error code.
|
9658
|
+
# @param [String] fields
|
9659
|
+
# Selector specifying which fields to include in a partial response.
|
9660
|
+
# @param [String] quota_user
|
9661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9663
|
+
# @param [String] user_ip
|
9664
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9665
|
+
# @param [Google::Apis::RequestOptions] options
|
9666
|
+
# Request-specific options
|
9667
|
+
#
|
9668
|
+
# @yield [result, err] Result & error if block supplied
|
9669
|
+
# @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse] parsed result object
|
9670
|
+
# @yieldparam err [StandardError] error object if request failed
|
9671
|
+
#
|
9672
|
+
# @return [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse]
|
9673
|
+
#
|
9674
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9675
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9676
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9677
|
+
def list_instance_group_manager_resize_requests(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9678
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
9679
|
+
command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse::Representation
|
9680
|
+
command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse
|
9681
|
+
command.params['project'] = project unless project.nil?
|
9682
|
+
command.params['zone'] = zone unless zone.nil?
|
9683
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
9684
|
+
command.query['filter'] = filter unless filter.nil?
|
9685
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
9686
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
9687
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
9688
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
9689
|
+
command.query['fields'] = fields unless fields.nil?
|
9690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9691
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9692
|
+
execute_or_queue_command(command, &block)
|
9693
|
+
end
|
9694
|
+
|
9379
9695
|
# Flags the specified instances to be removed from the managed instance group.
|
9380
9696
|
# Abandoning an instance does not delete the instance, but it does remove the
|
9381
9697
|
# instance from any target pools that are applied by the managed instance group.
|
@@ -37598,6 +37914,867 @@ module Google
|
|
37598
37914
|
execute_or_queue_command(command, &block)
|
37599
37915
|
end
|
37600
37916
|
|
37917
|
+
# Retrieves an aggregated list of storage pool types. To prevent failure, Google
|
37918
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37919
|
+
# @param [String] project
|
37920
|
+
# Project ID for this request.
|
37921
|
+
# @param [String] filter
|
37922
|
+
# A filter expression that filters resources listed in the response. Most
|
37923
|
+
# Compute resources support two types of filter expressions: expressions that
|
37924
|
+
# support regular expressions and expressions that follow API improvement
|
37925
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37926
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37927
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37928
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37929
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37930
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37931
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37932
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37933
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37934
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37935
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37936
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37937
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37938
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37939
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37940
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37941
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37942
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37943
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37944
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37945
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37946
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37947
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37948
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37949
|
+
# literal value must match the entire field. For example, to filter for
|
37950
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37951
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37952
|
+
# expressions.
|
37953
|
+
# @param [Boolean] include_all_scopes
|
37954
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
37955
|
+
# global) should be included in the response. For new resource types added after
|
37956
|
+
# this field, the flag has no effect as new resource types will always include
|
37957
|
+
# every visible scope for each scope type in response. For resource types which
|
37958
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
37959
|
+
# types where the resource type is expected to be found will be included.
|
37960
|
+
# @param [Fixnum] max_results
|
37961
|
+
# The maximum number of results per page that should be returned. If the number
|
37962
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37963
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37964
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37965
|
+
# @param [String] order_by
|
37966
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37967
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37968
|
+
# descending order based on the creation timestamp using `orderBy="
|
37969
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37970
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37971
|
+
# resources like operations so that the newest operation is returned first.
|
37972
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37973
|
+
# @param [String] page_token
|
37974
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37975
|
+
# by a previous list request to get the next page of results.
|
37976
|
+
# @param [Boolean] return_partial_success
|
37977
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37978
|
+
# failure. The default value is false. For example, when partial success
|
37979
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37980
|
+
# resources in the zone or no resources, with an error code.
|
37981
|
+
# @param [Fixnum] service_project_number
|
37982
|
+
# The Shared VPC service project id or service project number for which
|
37983
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
37984
|
+
# @param [String] fields
|
37985
|
+
# Selector specifying which fields to include in a partial response.
|
37986
|
+
# @param [String] quota_user
|
37987
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37988
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37989
|
+
# @param [String] user_ip
|
37990
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37991
|
+
# @param [Google::Apis::RequestOptions] options
|
37992
|
+
# Request-specific options
|
37993
|
+
#
|
37994
|
+
# @yield [result, err] Result & error if block supplied
|
37995
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolTypeAggregatedList] parsed result object
|
37996
|
+
# @yieldparam err [StandardError] error object if request failed
|
37997
|
+
#
|
37998
|
+
# @return [Google::Apis::ComputeV1::StoragePoolTypeAggregatedList]
|
37999
|
+
#
|
38000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38003
|
+
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)
|
38004
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/storagePoolTypes', options)
|
38005
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolTypeAggregatedList::Representation
|
38006
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolTypeAggregatedList
|
38007
|
+
command.params['project'] = project unless project.nil?
|
38008
|
+
command.query['filter'] = filter unless filter.nil?
|
38009
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
38010
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38011
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38012
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38013
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38014
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
38015
|
+
command.query['fields'] = fields unless fields.nil?
|
38016
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38017
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38018
|
+
execute_or_queue_command(command, &block)
|
38019
|
+
end
|
38020
|
+
|
38021
|
+
# Returns the specified storage pool type.
|
38022
|
+
# @param [String] project
|
38023
|
+
# Project ID for this request.
|
38024
|
+
# @param [String] zone
|
38025
|
+
# The name of the zone for this request.
|
38026
|
+
# @param [String] storage_pool_type
|
38027
|
+
# Name of the storage pool type to return.
|
38028
|
+
# @param [String] fields
|
38029
|
+
# Selector specifying which fields to include in a partial response.
|
38030
|
+
# @param [String] quota_user
|
38031
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38032
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38033
|
+
# @param [String] user_ip
|
38034
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38035
|
+
# @param [Google::Apis::RequestOptions] options
|
38036
|
+
# Request-specific options
|
38037
|
+
#
|
38038
|
+
# @yield [result, err] Result & error if block supplied
|
38039
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolType] parsed result object
|
38040
|
+
# @yieldparam err [StandardError] error object if request failed
|
38041
|
+
#
|
38042
|
+
# @return [Google::Apis::ComputeV1::StoragePoolType]
|
38043
|
+
#
|
38044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38047
|
+
def get_storage_pool_type(project, zone, storage_pool_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38048
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}', options)
|
38049
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolType::Representation
|
38050
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolType
|
38051
|
+
command.params['project'] = project unless project.nil?
|
38052
|
+
command.params['zone'] = zone unless zone.nil?
|
38053
|
+
command.params['storagePoolType'] = storage_pool_type unless storage_pool_type.nil?
|
38054
|
+
command.query['fields'] = fields unless fields.nil?
|
38055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38056
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38057
|
+
execute_or_queue_command(command, &block)
|
38058
|
+
end
|
38059
|
+
|
38060
|
+
# Retrieves a list of storage pool types available to the specified project.
|
38061
|
+
# @param [String] project
|
38062
|
+
# Project ID for this request.
|
38063
|
+
# @param [String] zone
|
38064
|
+
# The name of the zone for this request.
|
38065
|
+
# @param [String] filter
|
38066
|
+
# A filter expression that filters resources listed in the response. Most
|
38067
|
+
# Compute resources support two types of filter expressions: expressions that
|
38068
|
+
# support regular expressions and expressions that follow API improvement
|
38069
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38070
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38071
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38072
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38073
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38074
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38075
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38076
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38077
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38078
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38079
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38080
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38081
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38082
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38083
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38084
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38085
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38086
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38087
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38088
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38089
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38090
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38091
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38092
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38093
|
+
# literal value must match the entire field. For example, to filter for
|
38094
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38095
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38096
|
+
# expressions.
|
38097
|
+
# @param [Fixnum] max_results
|
38098
|
+
# The maximum number of results per page that should be returned. If the number
|
38099
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38100
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38101
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38102
|
+
# @param [String] order_by
|
38103
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38104
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38105
|
+
# descending order based on the creation timestamp using `orderBy="
|
38106
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38107
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38108
|
+
# resources like operations so that the newest operation is returned first.
|
38109
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38110
|
+
# @param [String] page_token
|
38111
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38112
|
+
# by a previous list request to get the next page of results.
|
38113
|
+
# @param [Boolean] return_partial_success
|
38114
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38115
|
+
# failure. The default value is false. For example, when partial success
|
38116
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38117
|
+
# resources in the zone or no resources, with an error code.
|
38118
|
+
# @param [String] fields
|
38119
|
+
# Selector specifying which fields to include in a partial response.
|
38120
|
+
# @param [String] quota_user
|
38121
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38122
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38123
|
+
# @param [String] user_ip
|
38124
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38125
|
+
# @param [Google::Apis::RequestOptions] options
|
38126
|
+
# Request-specific options
|
38127
|
+
#
|
38128
|
+
# @yield [result, err] Result & error if block supplied
|
38129
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolTypeList] parsed result object
|
38130
|
+
# @yieldparam err [StandardError] error object if request failed
|
38131
|
+
#
|
38132
|
+
# @return [Google::Apis::ComputeV1::StoragePoolTypeList]
|
38133
|
+
#
|
38134
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38135
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38136
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38137
|
+
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)
|
38138
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePoolTypes', options)
|
38139
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolTypeList::Representation
|
38140
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolTypeList
|
38141
|
+
command.params['project'] = project unless project.nil?
|
38142
|
+
command.params['zone'] = zone unless zone.nil?
|
38143
|
+
command.query['filter'] = filter unless filter.nil?
|
38144
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38145
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38146
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38147
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38148
|
+
command.query['fields'] = fields unless fields.nil?
|
38149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38150
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38151
|
+
execute_or_queue_command(command, &block)
|
38152
|
+
end
|
38153
|
+
|
38154
|
+
# Retrieves an aggregated list of storage pools. To prevent failure, Google
|
38155
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
38156
|
+
# @param [String] project
|
38157
|
+
# Project ID for this request.
|
38158
|
+
# @param [String] filter
|
38159
|
+
# A filter expression that filters resources listed in the response. Most
|
38160
|
+
# Compute resources support two types of filter expressions: expressions that
|
38161
|
+
# support regular expressions and expressions that follow API improvement
|
38162
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38163
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38164
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38165
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38166
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38167
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38168
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38169
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38170
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38171
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38172
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38173
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38174
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38175
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38176
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38177
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38178
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38179
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38180
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38181
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38182
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38183
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38184
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38185
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38186
|
+
# literal value must match the entire field. For example, to filter for
|
38187
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38188
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38189
|
+
# expressions.
|
38190
|
+
# @param [Boolean] include_all_scopes
|
38191
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
38192
|
+
# global) should be included in the response. For new resource types added after
|
38193
|
+
# this field, the flag has no effect as new resource types will always include
|
38194
|
+
# every visible scope for each scope type in response. For resource types which
|
38195
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
38196
|
+
# types where the resource type is expected to be found will be included.
|
38197
|
+
# @param [Fixnum] max_results
|
38198
|
+
# The maximum number of results per page that should be returned. If the number
|
38199
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38200
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38201
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38202
|
+
# @param [String] order_by
|
38203
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38204
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38205
|
+
# descending order based on the creation timestamp using `orderBy="
|
38206
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38207
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38208
|
+
# resources like operations so that the newest operation is returned first.
|
38209
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38210
|
+
# @param [String] page_token
|
38211
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38212
|
+
# by a previous list request to get the next page of results.
|
38213
|
+
# @param [Boolean] return_partial_success
|
38214
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38215
|
+
# failure. The default value is false. For example, when partial success
|
38216
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38217
|
+
# resources in the zone or no resources, with an error code.
|
38218
|
+
# @param [Fixnum] service_project_number
|
38219
|
+
# The Shared VPC service project id or service project number for which
|
38220
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
38221
|
+
# @param [String] fields
|
38222
|
+
# Selector specifying which fields to include in a partial response.
|
38223
|
+
# @param [String] quota_user
|
38224
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38225
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38226
|
+
# @param [String] user_ip
|
38227
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38228
|
+
# @param [Google::Apis::RequestOptions] options
|
38229
|
+
# Request-specific options
|
38230
|
+
#
|
38231
|
+
# @yield [result, err] Result & error if block supplied
|
38232
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolAggregatedList] parsed result object
|
38233
|
+
# @yieldparam err [StandardError] error object if request failed
|
38234
|
+
#
|
38235
|
+
# @return [Google::Apis::ComputeV1::StoragePoolAggregatedList]
|
38236
|
+
#
|
38237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38240
|
+
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)
|
38241
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/storagePools', options)
|
38242
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolAggregatedList::Representation
|
38243
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolAggregatedList
|
38244
|
+
command.params['project'] = project unless project.nil?
|
38245
|
+
command.query['filter'] = filter unless filter.nil?
|
38246
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
38247
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38248
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38249
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38250
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38251
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
38252
|
+
command.query['fields'] = fields unless fields.nil?
|
38253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38254
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38255
|
+
execute_or_queue_command(command, &block)
|
38256
|
+
end
|
38257
|
+
|
38258
|
+
# Deletes the specified storage pool. Deleting a storagePool removes its data
|
38259
|
+
# permanently and is irreversible. However, deleting a storagePool does not
|
38260
|
+
# delete any snapshots previously made from the storagePool. You must separately
|
38261
|
+
# delete snapshots.
|
38262
|
+
# @param [String] project
|
38263
|
+
# Project ID for this request.
|
38264
|
+
# @param [String] zone
|
38265
|
+
# The name of the zone for this request.
|
38266
|
+
# @param [String] storage_pool
|
38267
|
+
# Name of the storage pool to delete.
|
38268
|
+
# @param [String] request_id
|
38269
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38270
|
+
# that if you must retry your request, the server will know to ignore the
|
38271
|
+
# request if it has already been completed. For example, consider a situation
|
38272
|
+
# where you make an initial request and the request times out. If you make the
|
38273
|
+
# request again with the same request ID, the server can check if original
|
38274
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38275
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38276
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38277
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38278
|
+
# @param [String] fields
|
38279
|
+
# Selector specifying which fields to include in a partial response.
|
38280
|
+
# @param [String] quota_user
|
38281
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38282
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38283
|
+
# @param [String] user_ip
|
38284
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38285
|
+
# @param [Google::Apis::RequestOptions] options
|
38286
|
+
# Request-specific options
|
38287
|
+
#
|
38288
|
+
# @yield [result, err] Result & error if block supplied
|
38289
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38290
|
+
# @yieldparam err [StandardError] error object if request failed
|
38291
|
+
#
|
38292
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38293
|
+
#
|
38294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38297
|
+
def delete_storage_pool(project, zone, storage_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38298
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
38299
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38300
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38301
|
+
command.params['project'] = project unless project.nil?
|
38302
|
+
command.params['zone'] = zone unless zone.nil?
|
38303
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38304
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38305
|
+
command.query['fields'] = fields unless fields.nil?
|
38306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38307
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38308
|
+
execute_or_queue_command(command, &block)
|
38309
|
+
end
|
38310
|
+
|
38311
|
+
# Returns a specified storage pool. Gets a list of available storage pools by
|
38312
|
+
# making a list() request.
|
38313
|
+
# @param [String] project
|
38314
|
+
# Project ID for this request.
|
38315
|
+
# @param [String] zone
|
38316
|
+
# The name of the zone for this request.
|
38317
|
+
# @param [String] storage_pool
|
38318
|
+
# Name of the storage pool to return.
|
38319
|
+
# @param [String] fields
|
38320
|
+
# Selector specifying which fields to include in a partial response.
|
38321
|
+
# @param [String] quota_user
|
38322
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38323
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38324
|
+
# @param [String] user_ip
|
38325
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38326
|
+
# @param [Google::Apis::RequestOptions] options
|
38327
|
+
# Request-specific options
|
38328
|
+
#
|
38329
|
+
# @yield [result, err] Result & error if block supplied
|
38330
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePool] parsed result object
|
38331
|
+
# @yieldparam err [StandardError] error object if request failed
|
38332
|
+
#
|
38333
|
+
# @return [Google::Apis::ComputeV1::StoragePool]
|
38334
|
+
#
|
38335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38338
|
+
def get_storage_pool(project, zone, storage_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38339
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
38340
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38341
|
+
command.response_class = Google::Apis::ComputeV1::StoragePool
|
38342
|
+
command.params['project'] = project unless project.nil?
|
38343
|
+
command.params['zone'] = zone unless zone.nil?
|
38344
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38345
|
+
command.query['fields'] = fields unless fields.nil?
|
38346
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38347
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38348
|
+
execute_or_queue_command(command, &block)
|
38349
|
+
end
|
38350
|
+
|
38351
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
38352
|
+
# or resource exists.
|
38353
|
+
# @param [String] project
|
38354
|
+
# Project ID for this request.
|
38355
|
+
# @param [String] zone
|
38356
|
+
# The name of the zone for this request.
|
38357
|
+
# @param [String] resource
|
38358
|
+
# Name or id of the resource for this request.
|
38359
|
+
# @param [Fixnum] options_requested_policy_version
|
38360
|
+
# Requested IAM Policy version.
|
38361
|
+
# @param [String] fields
|
38362
|
+
# Selector specifying which fields to include in a partial response.
|
38363
|
+
# @param [String] quota_user
|
38364
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38365
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38366
|
+
# @param [String] user_ip
|
38367
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38368
|
+
# @param [Google::Apis::RequestOptions] options
|
38369
|
+
# Request-specific options
|
38370
|
+
#
|
38371
|
+
# @yield [result, err] Result & error if block supplied
|
38372
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
38373
|
+
# @yieldparam err [StandardError] error object if request failed
|
38374
|
+
#
|
38375
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
38376
|
+
#
|
38377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38380
|
+
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)
|
38381
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy', options)
|
38382
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
38383
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
38384
|
+
command.params['project'] = project unless project.nil?
|
38385
|
+
command.params['zone'] = zone unless zone.nil?
|
38386
|
+
command.params['resource'] = resource unless resource.nil?
|
38387
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
38388
|
+
command.query['fields'] = fields unless fields.nil?
|
38389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38390
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38391
|
+
execute_or_queue_command(command, &block)
|
38392
|
+
end
|
38393
|
+
|
38394
|
+
# Creates a storage pool in the specified project using the data in the request.
|
38395
|
+
# @param [String] project
|
38396
|
+
# Project ID for this request.
|
38397
|
+
# @param [String] zone
|
38398
|
+
# The name of the zone for this request.
|
38399
|
+
# @param [Google::Apis::ComputeV1::StoragePool] storage_pool_object
|
38400
|
+
# @param [String] request_id
|
38401
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38402
|
+
# that if you must retry your request, the server will know to ignore the
|
38403
|
+
# request if it has already been completed. For example, consider a situation
|
38404
|
+
# where you make an initial request and the request times out. If you make the
|
38405
|
+
# request again with the same request ID, the server can check if original
|
38406
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38407
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38408
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38409
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38410
|
+
# @param [String] fields
|
38411
|
+
# Selector specifying which fields to include in a partial response.
|
38412
|
+
# @param [String] quota_user
|
38413
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38414
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38415
|
+
# @param [String] user_ip
|
38416
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38417
|
+
# @param [Google::Apis::RequestOptions] options
|
38418
|
+
# Request-specific options
|
38419
|
+
#
|
38420
|
+
# @yield [result, err] Result & error if block supplied
|
38421
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38422
|
+
# @yieldparam err [StandardError] error object if request failed
|
38423
|
+
#
|
38424
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38425
|
+
#
|
38426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38429
|
+
def insert_storage_pool(project, zone, storage_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38430
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools', options)
|
38431
|
+
command.request_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38432
|
+
command.request_object = storage_pool_object
|
38433
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38434
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38435
|
+
command.params['project'] = project unless project.nil?
|
38436
|
+
command.params['zone'] = zone unless zone.nil?
|
38437
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38438
|
+
command.query['fields'] = fields unless fields.nil?
|
38439
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38440
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38441
|
+
execute_or_queue_command(command, &block)
|
38442
|
+
end
|
38443
|
+
|
38444
|
+
# Retrieves a list of storage pools contained within the specified zone.
|
38445
|
+
# @param [String] project
|
38446
|
+
# Project ID for this request.
|
38447
|
+
# @param [String] zone
|
38448
|
+
# The name of the zone for this request.
|
38449
|
+
# @param [String] filter
|
38450
|
+
# A filter expression that filters resources listed in the response. Most
|
38451
|
+
# Compute resources support two types of filter expressions: expressions that
|
38452
|
+
# support regular expressions and expressions that follow API improvement
|
38453
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38454
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38455
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38456
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38457
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38458
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38459
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38460
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38461
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38462
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38463
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38464
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38465
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38466
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38467
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38468
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38469
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38470
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38471
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38472
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38473
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38474
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38475
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38476
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38477
|
+
# literal value must match the entire field. For example, to filter for
|
38478
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38479
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38480
|
+
# expressions.
|
38481
|
+
# @param [Fixnum] max_results
|
38482
|
+
# The maximum number of results per page that should be returned. If the number
|
38483
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38484
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38485
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38486
|
+
# @param [String] order_by
|
38487
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38488
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38489
|
+
# descending order based on the creation timestamp using `orderBy="
|
38490
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38491
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38492
|
+
# resources like operations so that the newest operation is returned first.
|
38493
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38494
|
+
# @param [String] page_token
|
38495
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38496
|
+
# by a previous list request to get the next page of results.
|
38497
|
+
# @param [Boolean] return_partial_success
|
38498
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38499
|
+
# failure. The default value is false. For example, when partial success
|
38500
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38501
|
+
# resources in the zone or no resources, with an error code.
|
38502
|
+
# @param [String] fields
|
38503
|
+
# Selector specifying which fields to include in a partial response.
|
38504
|
+
# @param [String] quota_user
|
38505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38507
|
+
# @param [String] user_ip
|
38508
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38509
|
+
# @param [Google::Apis::RequestOptions] options
|
38510
|
+
# Request-specific options
|
38511
|
+
#
|
38512
|
+
# @yield [result, err] Result & error if block supplied
|
38513
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolList] parsed result object
|
38514
|
+
# @yieldparam err [StandardError] error object if request failed
|
38515
|
+
#
|
38516
|
+
# @return [Google::Apis::ComputeV1::StoragePoolList]
|
38517
|
+
#
|
38518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38521
|
+
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)
|
38522
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools', options)
|
38523
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolList::Representation
|
38524
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolList
|
38525
|
+
command.params['project'] = project unless project.nil?
|
38526
|
+
command.params['zone'] = zone unless zone.nil?
|
38527
|
+
command.query['filter'] = filter unless filter.nil?
|
38528
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38529
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38530
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38531
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38532
|
+
command.query['fields'] = fields unless fields.nil?
|
38533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38534
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38535
|
+
execute_or_queue_command(command, &block)
|
38536
|
+
end
|
38537
|
+
|
38538
|
+
# Lists the disks in a specified storage pool.
|
38539
|
+
# @param [String] project
|
38540
|
+
# Project ID for this request.
|
38541
|
+
# @param [String] zone
|
38542
|
+
# The name of the zone for this request.
|
38543
|
+
# @param [String] storage_pool
|
38544
|
+
# Name of the storage pool to list disks of.
|
38545
|
+
# @param [String] filter
|
38546
|
+
# A filter expression that filters resources listed in the response. Most
|
38547
|
+
# Compute resources support two types of filter expressions: expressions that
|
38548
|
+
# support regular expressions and expressions that follow API improvement
|
38549
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38550
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38551
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38552
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38553
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38554
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38555
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38556
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38557
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38558
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38559
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38560
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38561
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38562
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38563
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38564
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38565
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38566
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38567
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38568
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38569
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38570
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38571
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38572
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38573
|
+
# literal value must match the entire field. For example, to filter for
|
38574
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38575
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38576
|
+
# expressions.
|
38577
|
+
# @param [Fixnum] max_results
|
38578
|
+
# The maximum number of results per page that should be returned. If the number
|
38579
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38580
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38581
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38582
|
+
# @param [String] order_by
|
38583
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38584
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38585
|
+
# descending order based on the creation timestamp using `orderBy="
|
38586
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38587
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38588
|
+
# resources like operations so that the newest operation is returned first.
|
38589
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38590
|
+
# @param [String] page_token
|
38591
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38592
|
+
# by a previous list request to get the next page of results.
|
38593
|
+
# @param [Boolean] return_partial_success
|
38594
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38595
|
+
# failure. The default value is false. For example, when partial success
|
38596
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38597
|
+
# resources in the zone or no resources, with an error code.
|
38598
|
+
# @param [String] fields
|
38599
|
+
# Selector specifying which fields to include in a partial response.
|
38600
|
+
# @param [String] quota_user
|
38601
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38602
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38603
|
+
# @param [String] user_ip
|
38604
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38605
|
+
# @param [Google::Apis::RequestOptions] options
|
38606
|
+
# Request-specific options
|
38607
|
+
#
|
38608
|
+
# @yield [result, err] Result & error if block supplied
|
38609
|
+
# @yieldparam result [Google::Apis::ComputeV1::StoragePoolListDisks] parsed result object
|
38610
|
+
# @yieldparam err [StandardError] error object if request failed
|
38611
|
+
#
|
38612
|
+
# @return [Google::Apis::ComputeV1::StoragePoolListDisks]
|
38613
|
+
#
|
38614
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38615
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38616
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38617
|
+
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)
|
38618
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks', options)
|
38619
|
+
command.response_representation = Google::Apis::ComputeV1::StoragePoolListDisks::Representation
|
38620
|
+
command.response_class = Google::Apis::ComputeV1::StoragePoolListDisks
|
38621
|
+
command.params['project'] = project unless project.nil?
|
38622
|
+
command.params['zone'] = zone unless zone.nil?
|
38623
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38624
|
+
command.query['filter'] = filter unless filter.nil?
|
38625
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38626
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38627
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38628
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38629
|
+
command.query['fields'] = fields unless fields.nil?
|
38630
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38631
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38632
|
+
execute_or_queue_command(command, &block)
|
38633
|
+
end
|
38634
|
+
|
38635
|
+
# Sets the access control policy on the specified resource. Replaces any
|
38636
|
+
# existing policy.
|
38637
|
+
# @param [String] project
|
38638
|
+
# Project ID for this request.
|
38639
|
+
# @param [String] zone
|
38640
|
+
# The name of the zone for this request.
|
38641
|
+
# @param [String] resource
|
38642
|
+
# Name or id of the resource for this request.
|
38643
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
38644
|
+
# @param [String] fields
|
38645
|
+
# Selector specifying which fields to include in a partial response.
|
38646
|
+
# @param [String] quota_user
|
38647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38649
|
+
# @param [String] user_ip
|
38650
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38651
|
+
# @param [Google::Apis::RequestOptions] options
|
38652
|
+
# Request-specific options
|
38653
|
+
#
|
38654
|
+
# @yield [result, err] Result & error if block supplied
|
38655
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
38656
|
+
# @yieldparam err [StandardError] error object if request failed
|
38657
|
+
#
|
38658
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
38659
|
+
#
|
38660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38663
|
+
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)
|
38664
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy', options)
|
38665
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
38666
|
+
command.request_object = zone_set_policy_request_object
|
38667
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
38668
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
38669
|
+
command.params['project'] = project unless project.nil?
|
38670
|
+
command.params['zone'] = zone unless zone.nil?
|
38671
|
+
command.params['resource'] = resource unless resource.nil?
|
38672
|
+
command.query['fields'] = fields unless fields.nil?
|
38673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38674
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38675
|
+
execute_or_queue_command(command, &block)
|
38676
|
+
end
|
38677
|
+
|
38678
|
+
# Returns permissions that a caller has on the specified resource.
|
38679
|
+
# @param [String] project
|
38680
|
+
# Project ID for this request.
|
38681
|
+
# @param [String] zone
|
38682
|
+
# The name of the zone for this request.
|
38683
|
+
# @param [String] resource
|
38684
|
+
# Name or id of the resource for this request.
|
38685
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
38686
|
+
# @param [String] fields
|
38687
|
+
# Selector specifying which fields to include in a partial response.
|
38688
|
+
# @param [String] quota_user
|
38689
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38690
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38691
|
+
# @param [String] user_ip
|
38692
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38693
|
+
# @param [Google::Apis::RequestOptions] options
|
38694
|
+
# Request-specific options
|
38695
|
+
#
|
38696
|
+
# @yield [result, err] Result & error if block supplied
|
38697
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
38698
|
+
# @yieldparam err [StandardError] error object if request failed
|
38699
|
+
#
|
38700
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
38701
|
+
#
|
38702
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38703
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38704
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38705
|
+
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)
|
38706
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions', options)
|
38707
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
38708
|
+
command.request_object = test_permissions_request_object
|
38709
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
38710
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
38711
|
+
command.params['project'] = project unless project.nil?
|
38712
|
+
command.params['zone'] = zone unless zone.nil?
|
38713
|
+
command.params['resource'] = resource unless resource.nil?
|
38714
|
+
command.query['fields'] = fields unless fields.nil?
|
38715
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38716
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38717
|
+
execute_or_queue_command(command, &block)
|
38718
|
+
end
|
38719
|
+
|
38720
|
+
# Updates the specified storagePool with the data included in the request. The
|
38721
|
+
# update is performed only on selected fields included as part of update-mask.
|
38722
|
+
# Only the following fields can be modified: size_tb and provisioned_iops.
|
38723
|
+
# @param [String] project
|
38724
|
+
# Project ID for this request.
|
38725
|
+
# @param [String] zone
|
38726
|
+
# The name of the zone for this request.
|
38727
|
+
# @param [String] storage_pool
|
38728
|
+
# The storagePool name for this request.
|
38729
|
+
# @param [Google::Apis::ComputeV1::StoragePool] storage_pool_object
|
38730
|
+
# @param [String] request_id
|
38731
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38732
|
+
# that if you must retry your request, the server will know to ignore the
|
38733
|
+
# request if it has already been completed. For example, consider a situation
|
38734
|
+
# where you make an initial request and the request times out. If you make the
|
38735
|
+
# request again with the same request ID, the server can check if original
|
38736
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38737
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38738
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38739
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38740
|
+
# @param [String] update_mask
|
38741
|
+
# update_mask indicates fields to be updated as part of this request.
|
38742
|
+
# @param [String] fields
|
38743
|
+
# Selector specifying which fields to include in a partial response.
|
38744
|
+
# @param [String] quota_user
|
38745
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38746
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38747
|
+
# @param [String] user_ip
|
38748
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38749
|
+
# @param [Google::Apis::RequestOptions] options
|
38750
|
+
# Request-specific options
|
38751
|
+
#
|
38752
|
+
# @yield [result, err] Result & error if block supplied
|
38753
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38754
|
+
# @yieldparam err [StandardError] error object if request failed
|
38755
|
+
#
|
38756
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38757
|
+
#
|
38758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38761
|
+
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)
|
38762
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/storagePools/{storagePool}', options)
|
38763
|
+
command.request_representation = Google::Apis::ComputeV1::StoragePool::Representation
|
38764
|
+
command.request_object = storage_pool_object
|
38765
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38766
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38767
|
+
command.params['project'] = project unless project.nil?
|
38768
|
+
command.params['zone'] = zone unless zone.nil?
|
38769
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
38770
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38771
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
38772
|
+
command.query['fields'] = fields unless fields.nil?
|
38773
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38774
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38775
|
+
execute_or_queue_command(command, &block)
|
38776
|
+
end
|
38777
|
+
|
37601
38778
|
# Retrieves an aggregated list of subnetworks. To prevent failure, Google
|
37602
38779
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37603
38780
|
# @param [String] project
|