google-apis-compute_alpha 0.41.0 → 0.44.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13255,6 +13255,7 @@ module Google
13255
13255
  end
13256
13256
 
13257
13257
  # Creates multiple instances. Count specifies the number of instances to create.
13258
+ # For more information, see About bulk creation of VMs.
13258
13259
  # @param [String] project
13259
13260
  # Project ID for this request.
13260
13261
  # @param [String] zone
@@ -46632,6 +46633,289 @@ module Google
46632
46633
  execute_or_queue_command(command, &block)
46633
46634
  end
46634
46635
 
46636
+ # Cancels a QueuedResource. Only a resource in ACCEPTED state may be cancelled.
46637
+ # @param [String] project
46638
+ # Project ID for this request.
46639
+ # @param [String] zone
46640
+ # Name of the zone for this request.
46641
+ # @param [String] queued_resource
46642
+ # Name of the QueuedResource to cancel.
46643
+ # @param [String] request_id
46644
+ # An optional request ID to identify requests. Specify a unique request ID so
46645
+ # that if you must retry your request, the server will know to ignore the
46646
+ # request if it has already been completed. For example, consider a situation
46647
+ # where you make an initial request and the request times out. If you make the
46648
+ # request again with the same request ID, the server can check if original
46649
+ # operation with the same request ID was received, and if so, will ignore the
46650
+ # second request. This prevents clients from accidentally creating duplicate
46651
+ # commitments. The request ID must be a valid UUID with the exception that zero
46652
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
46653
+ # @param [String] fields
46654
+ # Selector specifying which fields to include in a partial response.
46655
+ # @param [String] quota_user
46656
+ # Available to use for quota purposes for server-side applications. Can be any
46657
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46658
+ # @param [String] user_ip
46659
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46660
+ # @param [Google::Apis::RequestOptions] options
46661
+ # Request-specific options
46662
+ #
46663
+ # @yield [result, err] Result & error if block supplied
46664
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
46665
+ # @yieldparam err [StandardError] error object if request failed
46666
+ #
46667
+ # @return [Google::Apis::ComputeAlpha::Operation]
46668
+ #
46669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46672
+ def cancel_zone_queued_resource(project, zone, queued_resource, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
46673
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}/cancel', options)
46674
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
46675
+ command.response_class = Google::Apis::ComputeAlpha::Operation
46676
+ command.params['project'] = project unless project.nil?
46677
+ command.params['zone'] = zone unless zone.nil?
46678
+ command.params['queuedResource'] = queued_resource unless queued_resource.nil?
46679
+ command.query['requestId'] = request_id unless request_id.nil?
46680
+ command.query['fields'] = fields unless fields.nil?
46681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46682
+ command.query['userIp'] = user_ip unless user_ip.nil?
46683
+ execute_or_queue_command(command, &block)
46684
+ end
46685
+
46686
+ # Deletes a QueuedResource. For a QueuedResource in ACCEPTED state, call cancel
46687
+ # on the resource before deleting, to make sure no VMs have been provisioned and
46688
+ # may require cleaning up. For a QueuedResource in PROVISIONING state the
46689
+ # request to delete is registered for execution following the provisioning.
46690
+ # @param [String] project
46691
+ # Project ID for this request.
46692
+ # @param [String] zone
46693
+ # Name of the zone for this request.
46694
+ # @param [String] queued_resource
46695
+ # Name of the QueuedResource to delete.
46696
+ # @param [String] request_id
46697
+ # An optional request ID to identify requests. Specify a unique request ID so
46698
+ # that if you must retry your request, the server will know to ignore the
46699
+ # request if it has already been completed. For example, consider a situation
46700
+ # where you make an initial request and the request times out. If you make the
46701
+ # request again with the same request ID, the server can check if original
46702
+ # operation with the same request ID was received, and if so, will ignore the
46703
+ # second request. This prevents clients from accidentally creating duplicate
46704
+ # commitments. The request ID must be a valid UUID with the exception that zero
46705
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
46706
+ # @param [String] fields
46707
+ # Selector specifying which fields to include in a partial response.
46708
+ # @param [String] quota_user
46709
+ # Available to use for quota purposes for server-side applications. Can be any
46710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46711
+ # @param [String] user_ip
46712
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46713
+ # @param [Google::Apis::RequestOptions] options
46714
+ # Request-specific options
46715
+ #
46716
+ # @yield [result, err] Result & error if block supplied
46717
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
46718
+ # @yieldparam err [StandardError] error object if request failed
46719
+ #
46720
+ # @return [Google::Apis::ComputeAlpha::Operation]
46721
+ #
46722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46725
+ def delete_zone_queued_resource(project, zone, queued_resource, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
46726
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}', options)
46727
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
46728
+ command.response_class = Google::Apis::ComputeAlpha::Operation
46729
+ command.params['project'] = project unless project.nil?
46730
+ command.params['zone'] = zone unless zone.nil?
46731
+ command.params['queuedResource'] = queued_resource unless queued_resource.nil?
46732
+ command.query['requestId'] = request_id unless request_id.nil?
46733
+ command.query['fields'] = fields unless fields.nil?
46734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46735
+ command.query['userIp'] = user_ip unless user_ip.nil?
46736
+ execute_or_queue_command(command, &block)
46737
+ end
46738
+
46739
+ # Returns the specified QueuedResource resource.
46740
+ # @param [String] project
46741
+ # Project ID for this request.
46742
+ # @param [String] zone
46743
+ # Name of the zone for this request.
46744
+ # @param [String] queued_resource
46745
+ # Name of the QueuedResource resource to return.
46746
+ # @param [String] fields
46747
+ # Selector specifying which fields to include in a partial response.
46748
+ # @param [String] quota_user
46749
+ # Available to use for quota purposes for server-side applications. Can be any
46750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46751
+ # @param [String] user_ip
46752
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46753
+ # @param [Google::Apis::RequestOptions] options
46754
+ # Request-specific options
46755
+ #
46756
+ # @yield [result, err] Result & error if block supplied
46757
+ # @yieldparam result [Google::Apis::ComputeAlpha::QueuedResource] parsed result object
46758
+ # @yieldparam err [StandardError] error object if request failed
46759
+ #
46760
+ # @return [Google::Apis::ComputeAlpha::QueuedResource]
46761
+ #
46762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46765
+ def get_zone_queued_resource(project, zone, queued_resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
46766
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}', options)
46767
+ command.response_representation = Google::Apis::ComputeAlpha::QueuedResource::Representation
46768
+ command.response_class = Google::Apis::ComputeAlpha::QueuedResource
46769
+ command.params['project'] = project unless project.nil?
46770
+ command.params['zone'] = zone unless zone.nil?
46771
+ command.params['queuedResource'] = queued_resource unless queued_resource.nil?
46772
+ command.query['fields'] = fields unless fields.nil?
46773
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46774
+ command.query['userIp'] = user_ip unless user_ip.nil?
46775
+ execute_or_queue_command(command, &block)
46776
+ end
46777
+
46778
+ # Creates a QueuedResource.
46779
+ # @param [String] project
46780
+ # Project ID for this request.
46781
+ # @param [String] zone
46782
+ # Name of the zone for this request.
46783
+ # @param [Google::Apis::ComputeAlpha::QueuedResource] queued_resource_object
46784
+ # @param [String] request_id
46785
+ # An optional request ID to identify requests. Specify a unique request ID so
46786
+ # that if you must retry your request, the server will know to ignore the
46787
+ # request if it has already been completed. For example, consider a situation
46788
+ # where you make an initial request and the request times out. If you make the
46789
+ # request again with the same request ID, the server can check if original
46790
+ # operation with the same request ID was received, and if so, will ignore the
46791
+ # second request. This prevents clients from accidentally creating duplicate
46792
+ # commitments. The request ID must be a valid UUID with the exception that zero
46793
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
46794
+ # @param [String] fields
46795
+ # Selector specifying which fields to include in a partial response.
46796
+ # @param [String] quota_user
46797
+ # Available to use for quota purposes for server-side applications. Can be any
46798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46799
+ # @param [String] user_ip
46800
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46801
+ # @param [Google::Apis::RequestOptions] options
46802
+ # Request-specific options
46803
+ #
46804
+ # @yield [result, err] Result & error if block supplied
46805
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
46806
+ # @yieldparam err [StandardError] error object if request failed
46807
+ #
46808
+ # @return [Google::Apis::ComputeAlpha::Operation]
46809
+ #
46810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46813
+ def insert_zone_queued_resource(project, zone, queued_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
46814
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/queuedResources', options)
46815
+ command.request_representation = Google::Apis::ComputeAlpha::QueuedResource::Representation
46816
+ command.request_object = queued_resource_object
46817
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
46818
+ command.response_class = Google::Apis::ComputeAlpha::Operation
46819
+ command.params['project'] = project unless project.nil?
46820
+ command.params['zone'] = zone unless zone.nil?
46821
+ command.query['requestId'] = request_id unless request_id.nil?
46822
+ command.query['fields'] = fields unless fields.nil?
46823
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46824
+ command.query['userIp'] = user_ip unless user_ip.nil?
46825
+ execute_or_queue_command(command, &block)
46826
+ end
46827
+
46828
+ # Retrieves the list of QueuedResource resources.
46829
+ # @param [String] project
46830
+ # Project ID for this request.
46831
+ # @param [String] zone
46832
+ # Name of the zone for this request.
46833
+ # @param [String] filter
46834
+ # A filter expression that filters resources listed in the response. Most
46835
+ # Compute resources support two types of filter expressions: expressions that
46836
+ # support regular expressions and expressions that follow API improvement
46837
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
46838
+ # field name, an operator, and the value that you want to use for filtering. The
46839
+ # value must be a string, a number, or a boolean. The operator must be either `=`
46840
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
46841
+ # Engine instances, you can exclude instances named `example-instance` by
46842
+ # specifying `name != example-instance`. The `:` operator can be used with
46843
+ # string fields to match substrings. For non-string fields it is equivalent to
46844
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
46845
+ # been defined. For example, to find all objects with `owner` label use: ```
46846
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
46847
+ # specify `scheduling.automaticRestart = false` to include instances only if
46848
+ # they are not scheduled for automatic restarts. You can use filtering on nested
46849
+ # fields to filter based on resource labels. To filter on multiple expressions,
46850
+ # provide each separate expression within parentheses. For example: ``` (
46851
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
46852
+ # default, each expression is an `AND` expression. However, you can include `AND`
46853
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
46854
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
46855
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
46856
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
46857
+ # expression with or without quotes or against multiple parenthesized
46858
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
46859
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
46860
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
46861
+ # regular expression using Google RE2 library syntax. The literal value must
46862
+ # match the entire field. For example, to filter for instances that do not end
46863
+ # with name "instance", you would use `name ne .*instance`.
46864
+ # @param [Fixnum] max_results
46865
+ # The maximum number of results per page that should be returned. If the number
46866
+ # of available results is larger than `maxResults`, Compute Engine returns a `
46867
+ # nextPageToken` that can be used to get the next page of results in subsequent
46868
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
46869
+ # @param [String] order_by
46870
+ # Sorts list results by a certain order. By default, results are returned in
46871
+ # alphanumerical order based on the resource name. You can also sort results in
46872
+ # descending order based on the creation timestamp using `orderBy="
46873
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
46874
+ # field in reverse chronological order (newest result first). Use this to sort
46875
+ # resources like operations so that the newest operation is returned first.
46876
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
46877
+ # @param [String] page_token
46878
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
46879
+ # by a previous list request to get the next page of results.
46880
+ # @param [Boolean] return_partial_success
46881
+ # Opt-in for partial success behavior which provides partial results in case of
46882
+ # failure. The default value is false.
46883
+ # @param [String] fields
46884
+ # Selector specifying which fields to include in a partial response.
46885
+ # @param [String] quota_user
46886
+ # Available to use for quota purposes for server-side applications. Can be any
46887
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46888
+ # @param [String] user_ip
46889
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46890
+ # @param [Google::Apis::RequestOptions] options
46891
+ # Request-specific options
46892
+ #
46893
+ # @yield [result, err] Result & error if block supplied
46894
+ # @yieldparam result [Google::Apis::ComputeAlpha::QueuedResourceList] parsed result object
46895
+ # @yieldparam err [StandardError] error object if request failed
46896
+ #
46897
+ # @return [Google::Apis::ComputeAlpha::QueuedResourceList]
46898
+ #
46899
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46900
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46901
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46902
+ def list_zone_queued_resources(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)
46903
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/queuedResources', options)
46904
+ command.response_representation = Google::Apis::ComputeAlpha::QueuedResourceList::Representation
46905
+ command.response_class = Google::Apis::ComputeAlpha::QueuedResourceList
46906
+ command.params['project'] = project unless project.nil?
46907
+ command.params['zone'] = zone unless zone.nil?
46908
+ command.query['filter'] = filter unless filter.nil?
46909
+ command.query['maxResults'] = max_results unless max_results.nil?
46910
+ command.query['orderBy'] = order_by unless order_by.nil?
46911
+ command.query['pageToken'] = page_token unless page_token.nil?
46912
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
46913
+ command.query['fields'] = fields unless fields.nil?
46914
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46915
+ command.query['userIp'] = user_ip unless user_ip.nil?
46916
+ execute_or_queue_command(command, &block)
46917
+ end
46918
+
46635
46919
  # Returns the specified Zone resource. Gets a list of available zones by making
46636
46920
  # a list() request.
46637
46921
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.0
4
+ version: 0.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.44.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []