google-apis-compute_alpha 0.104.0 → 0.105.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16874,6 +16874,243 @@ module Google
16874
16874
  execute_or_queue_command(command, &block)
16875
16875
  end
16876
16876
 
16877
+ # deletes a Zonal InstantSnapshotGroup resource
16878
+ # @param [String] project
16879
+ # Project ID for this request.
16880
+ # @param [String] zone
16881
+ # The name of the zone for this request.
16882
+ # @param [String] instant_snapshot_group
16883
+ # Name of the InstantSnapshot resource to delete.
16884
+ # @param [String] request_id
16885
+ # An optional request ID to identify requests. Specify a unique request ID so
16886
+ # that if you must retry your request, the server will know to ignore the
16887
+ # request if it has already been completed. For example, consider a situation
16888
+ # where you make an initial request and the request times out. If you make the
16889
+ # request again with the same request ID, the server can check if original
16890
+ # operation with the same request ID was received, and if so, will ignore the
16891
+ # second request. This prevents clients from accidentally creating duplicate
16892
+ # commitments. The request ID must be a valid UUID with the exception that zero
16893
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
16894
+ # @param [String] fields
16895
+ # Selector specifying which fields to include in a partial response.
16896
+ # @param [String] quota_user
16897
+ # Available to use for quota purposes for server-side applications. Can be any
16898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16899
+ # @param [String] user_ip
16900
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16901
+ # @param [Google::Apis::RequestOptions] options
16902
+ # Request-specific options
16903
+ #
16904
+ # @yield [result, err] Result & error if block supplied
16905
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16906
+ # @yieldparam err [StandardError] error object if request failed
16907
+ #
16908
+ # @return [Google::Apis::ComputeAlpha::Operation]
16909
+ #
16910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16913
+ def delete_instant_snapshot_group(project, zone, instant_snapshot_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16914
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}', options)
16915
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16916
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16917
+ command.params['project'] = project unless project.nil?
16918
+ command.params['zone'] = zone unless zone.nil?
16919
+ command.params['instantSnapshotGroup'] = instant_snapshot_group unless instant_snapshot_group.nil?
16920
+ command.query['requestId'] = request_id unless request_id.nil?
16921
+ command.query['fields'] = fields unless fields.nil?
16922
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16923
+ command.query['userIp'] = user_ip unless user_ip.nil?
16924
+ execute_or_queue_command(command, &block)
16925
+ end
16926
+
16927
+ # returns the specified InstantSnapshotGroup resource in the specified zone.
16928
+ # @param [String] project
16929
+ # Project ID for this request.
16930
+ # @param [String] zone
16931
+ # The name of the zone for this request.
16932
+ # @param [String] instant_snapshot_group
16933
+ # Name of the instantSnapshotGroup resource to return.
16934
+ # @param [String] fields
16935
+ # Selector specifying which fields to include in a partial response.
16936
+ # @param [String] quota_user
16937
+ # Available to use for quota purposes for server-side applications. Can be any
16938
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16939
+ # @param [String] user_ip
16940
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16941
+ # @param [Google::Apis::RequestOptions] options
16942
+ # Request-specific options
16943
+ #
16944
+ # @yield [result, err] Result & error if block supplied
16945
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotGroup] parsed result object
16946
+ # @yieldparam err [StandardError] error object if request failed
16947
+ #
16948
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotGroup]
16949
+ #
16950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16953
+ def get_instant_snapshot_group(project, zone, instant_snapshot_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16954
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}', options)
16955
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotGroup::Representation
16956
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotGroup
16957
+ command.params['project'] = project unless project.nil?
16958
+ command.params['zone'] = zone unless zone.nil?
16959
+ command.params['instantSnapshotGroup'] = instant_snapshot_group unless instant_snapshot_group.nil?
16960
+ command.query['fields'] = fields unless fields.nil?
16961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16962
+ command.query['userIp'] = user_ip unless user_ip.nil?
16963
+ execute_or_queue_command(command, &block)
16964
+ end
16965
+
16966
+ # inserts a Zonal InstantSnapshotGroup resource
16967
+ # @param [String] project
16968
+ # Project ID for this request.
16969
+ # @param [String] zone
16970
+ # Name of the zone for this request.
16971
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshotGroup] instant_snapshot_group_object
16972
+ # @param [String] request_id
16973
+ # An optional request ID to identify requests. Specify a unique request ID so
16974
+ # that if you must retry your request, the server will know to ignore the
16975
+ # request if it has already been completed. For example, consider a situation
16976
+ # where you make an initial request and the request times out. If you make the
16977
+ # request again with the same request ID, the server can check if original
16978
+ # operation with the same request ID was received, and if so, will ignore the
16979
+ # second request. This prevents clients from accidentally creating duplicate
16980
+ # commitments. The request ID must be a valid UUID with the exception that zero
16981
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
16982
+ # @param [String] source_consistency_group
16983
+ # begin_interface: MixerMutationRequestBuilder
16984
+ # @param [String] fields
16985
+ # Selector specifying which fields to include in a partial response.
16986
+ # @param [String] quota_user
16987
+ # Available to use for quota purposes for server-side applications. Can be any
16988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16989
+ # @param [String] user_ip
16990
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16991
+ # @param [Google::Apis::RequestOptions] options
16992
+ # Request-specific options
16993
+ #
16994
+ # @yield [result, err] Result & error if block supplied
16995
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16996
+ # @yieldparam err [StandardError] error object if request failed
16997
+ #
16998
+ # @return [Google::Apis::ComputeAlpha::Operation]
16999
+ #
17000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17003
+ def insert_instant_snapshot_group(project, zone, instant_snapshot_group_object = nil, request_id: nil, source_consistency_group: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17004
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshotGroups', options)
17005
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotGroup::Representation
17006
+ command.request_object = instant_snapshot_group_object
17007
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
17008
+ command.response_class = Google::Apis::ComputeAlpha::Operation
17009
+ command.params['project'] = project unless project.nil?
17010
+ command.params['zone'] = zone unless zone.nil?
17011
+ command.query['requestId'] = request_id unless request_id.nil?
17012
+ command.query['sourceConsistencyGroup'] = source_consistency_group unless source_consistency_group.nil?
17013
+ command.query['fields'] = fields unless fields.nil?
17014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17015
+ command.query['userIp'] = user_ip unless user_ip.nil?
17016
+ execute_or_queue_command(command, &block)
17017
+ end
17018
+
17019
+ # retrieves the list of InstantSnapshotGroup resources contained within the
17020
+ # specified zone.
17021
+ # @param [String] project
17022
+ # Project ID for this request.
17023
+ # @param [String] zone
17024
+ # The name of the zone for this request.
17025
+ # @param [String] filter
17026
+ # A filter expression that filters resources listed in the response. Most
17027
+ # Compute resources support two types of filter expressions: expressions that
17028
+ # support regular expressions and expressions that follow API improvement
17029
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
17030
+ # request. If you want to use AIP-160, your expression must specify the field
17031
+ # name, an operator, and the value that you want to use for filtering. The value
17032
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
17033
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
17034
+ # Engine instances, you can exclude instances named `example-instance` by
17035
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
17036
+ # whether a key has been defined. For example, to find all objects with `owner`
17037
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
17038
+ # example, you could specify `scheduling.automaticRestart = false` to include
17039
+ # instances only if they are not scheduled for automatic restarts. You can use
17040
+ # filtering on nested fields to filter based on resource labels. To filter on
17041
+ # multiple expressions, provide each separate expression within parentheses. For
17042
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
17043
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
17044
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
17045
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
17046
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
17047
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
17048
+ # un-parenthesized expression with or without quotes or against multiple
17049
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
17050
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
17051
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
17052
+ # interpreted as a regular expression using Google RE2 library syntax. The
17053
+ # literal value must match the entire field. For example, to filter for
17054
+ # instances that do not end with name "instance", you would use `name ne .*
17055
+ # instance`. You cannot combine constraints on multiple fields using regular
17056
+ # expressions.
17057
+ # @param [Fixnum] max_results
17058
+ # The maximum number of results per page that should be returned. If the number
17059
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17060
+ # nextPageToken` that can be used to get the next page of results in subsequent
17061
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17062
+ # @param [String] order_by
17063
+ # Sorts list results by a certain order. By default, results are returned in
17064
+ # alphanumerical order based on the resource name. You can also sort results in
17065
+ # descending order based on the creation timestamp using `orderBy="
17066
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
17067
+ # field in reverse chronological order (newest result first). Use this to sort
17068
+ # resources like operations so that the newest operation is returned first.
17069
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17070
+ # @param [String] page_token
17071
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17072
+ # by a previous list request to get the next page of results.
17073
+ # @param [Boolean] return_partial_success
17074
+ # Opt-in for partial success behavior which provides partial results in case of
17075
+ # failure. The default value is false. For example, when partial success
17076
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
17077
+ # resources in the zone or no resources, with an error code.
17078
+ # @param [String] fields
17079
+ # Selector specifying which fields to include in a partial response.
17080
+ # @param [String] quota_user
17081
+ # Available to use for quota purposes for server-side applications. Can be any
17082
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
17083
+ # @param [String] user_ip
17084
+ # Legacy name for parameter that has been superseded by `quotaUser`.
17085
+ # @param [Google::Apis::RequestOptions] options
17086
+ # Request-specific options
17087
+ #
17088
+ # @yield [result, err] Result & error if block supplied
17089
+ # @yieldparam result [Google::Apis::ComputeAlpha::ListInstantSnapshotGroups] parsed result object
17090
+ # @yieldparam err [StandardError] error object if request failed
17091
+ #
17092
+ # @return [Google::Apis::ComputeAlpha::ListInstantSnapshotGroups]
17093
+ #
17094
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17095
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17096
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17097
+ def list_instant_snapshot_groups(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)
17098
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshotGroups', options)
17099
+ command.response_representation = Google::Apis::ComputeAlpha::ListInstantSnapshotGroups::Representation
17100
+ command.response_class = Google::Apis::ComputeAlpha::ListInstantSnapshotGroups
17101
+ command.params['project'] = project unless project.nil?
17102
+ command.params['zone'] = zone unless zone.nil?
17103
+ command.query['filter'] = filter unless filter.nil?
17104
+ command.query['maxResults'] = max_results unless max_results.nil?
17105
+ command.query['orderBy'] = order_by unless order_by.nil?
17106
+ command.query['pageToken'] = page_token unless page_token.nil?
17107
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17108
+ command.query['fields'] = fields unless fields.nil?
17109
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17110
+ command.query['userIp'] = user_ip unless user_ip.nil?
17111
+ execute_or_queue_command(command, &block)
17112
+ end
17113
+
16877
17114
  # Retrieves an aggregated list of instantSnapshots. To prevent failure, Google
16878
17115
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
16879
17116
  # @param [String] project
@@ -31495,6 +31732,105 @@ module Google
31495
31732
  execute_or_queue_command(command, &block)
31496
31733
  end
31497
31734
 
31735
+ # Returns all of the details about the specified resize request.
31736
+ # @param [String] project
31737
+ # Project ID for this request.
31738
+ # @param [String] region
31739
+ # The name of the region scoping this request. Name should conform to RFC1035.
31740
+ # @param [String] instance_group_manager
31741
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
31742
+ # resource ID.
31743
+ # @param [String] resize_request
31744
+ # The name of the resize request. Name should conform to RFC1035 or be a
31745
+ # resource ID.
31746
+ # @param [String] fields
31747
+ # Selector specifying which fields to include in a partial response.
31748
+ # @param [String] quota_user
31749
+ # Available to use for quota purposes for server-side applications. Can be any
31750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31751
+ # @param [String] user_ip
31752
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31753
+ # @param [Google::Apis::RequestOptions] options
31754
+ # Request-specific options
31755
+ #
31756
+ # @yield [result, err] Result & error if block supplied
31757
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] parsed result object
31758
+ # @yieldparam err [StandardError] error object if request failed
31759
+ #
31760
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest]
31761
+ #
31762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31765
+ def get_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31766
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
31767
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
31768
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest
31769
+ command.params['project'] = project unless project.nil?
31770
+ command.params['region'] = region unless region.nil?
31771
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
31772
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
31773
+ command.query['fields'] = fields unless fields.nil?
31774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31775
+ command.query['userIp'] = user_ip unless user_ip.nil?
31776
+ execute_or_queue_command(command, &block)
31777
+ end
31778
+
31779
+ # Creates a new Resize Request that starts provisioning VMs immediately or
31780
+ # queues VM creation.
31781
+ # @param [String] project
31782
+ # Project ID for this request.
31783
+ # @param [String] region
31784
+ # Name of the region scoping this request. Name should conform to RFC1035.
31785
+ # @param [String] instance_group_manager
31786
+ # Name of the managed instance group to which the resize request is scoped. Name
31787
+ # should conform to RFC1035 or be a resource ID.
31788
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
31789
+ # @param [String] request_id
31790
+ # An optional request ID to identify requests. Specify a unique request ID so
31791
+ # that if you must retry your request, the server will know to ignore the
31792
+ # request if it has already been completed. For example, consider a situation
31793
+ # where you make an initial request and the request times out. If you make the
31794
+ # request again with the same request ID, the server can check if original
31795
+ # operation with the same request ID was received, and if so, will ignore the
31796
+ # second request. This prevents clients from accidentally creating duplicate
31797
+ # commitments. The request ID must be a valid UUID with the exception that zero
31798
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
31799
+ # @param [String] fields
31800
+ # Selector specifying which fields to include in a partial response.
31801
+ # @param [String] quota_user
31802
+ # Available to use for quota purposes for server-side applications. Can be any
31803
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31804
+ # @param [String] user_ip
31805
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31806
+ # @param [Google::Apis::RequestOptions] options
31807
+ # Request-specific options
31808
+ #
31809
+ # @yield [result, err] Result & error if block supplied
31810
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31811
+ # @yieldparam err [StandardError] error object if request failed
31812
+ #
31813
+ # @return [Google::Apis::ComputeAlpha::Operation]
31814
+ #
31815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31818
+ def insert_region_instance_group_manager_resize_request(project, region, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31819
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
31820
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
31821
+ command.request_object = instance_group_manager_resize_request_object
31822
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31823
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31824
+ command.params['project'] = project unless project.nil?
31825
+ command.params['region'] = region unless region.nil?
31826
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
31827
+ command.query['requestId'] = request_id unless request_id.nil?
31828
+ command.query['fields'] = fields unless fields.nil?
31829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31830
+ command.query['userIp'] = user_ip unless user_ip.nil?
31831
+ execute_or_queue_command(command, &block)
31832
+ end
31833
+
31498
31834
  # Flags the specified instances to be immediately removed from the managed
31499
31835
  # instance group. Abandoning an instance does not delete the instance, but it
31500
31836
  # does remove the instance from any target pools that are applied by the managed
@@ -33823,6 +34159,243 @@ module Google
33823
34159
  execute_or_queue_command(command, &block)
33824
34160
  end
33825
34161
 
34162
+ # deletes a Regional InstantSnapshotGroup resource
34163
+ # @param [String] project
34164
+ # Project ID for this request.
34165
+ # @param [String] region
34166
+ # The name of the region for this request.
34167
+ # @param [String] instant_snapshot_group
34168
+ # Name of the InstantSnapshotGroup resource to delete.
34169
+ # @param [String] request_id
34170
+ # An optional request ID to identify requests. Specify a unique request ID so
34171
+ # that if you must retry your request, the server will know to ignore the
34172
+ # request if it has already been completed. For example, consider a situation
34173
+ # where you make an initial request and the request times out. If you make the
34174
+ # request again with the same request ID, the server can check if original
34175
+ # operation with the same request ID was received, and if so, will ignore the
34176
+ # second request. This prevents clients from accidentally creating duplicate
34177
+ # commitments. The request ID must be a valid UUID with the exception that zero
34178
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
34179
+ # @param [String] fields
34180
+ # Selector specifying which fields to include in a partial response.
34181
+ # @param [String] quota_user
34182
+ # Available to use for quota purposes for server-side applications. Can be any
34183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34184
+ # @param [String] user_ip
34185
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34186
+ # @param [Google::Apis::RequestOptions] options
34187
+ # Request-specific options
34188
+ #
34189
+ # @yield [result, err] Result & error if block supplied
34190
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
34191
+ # @yieldparam err [StandardError] error object if request failed
34192
+ #
34193
+ # @return [Google::Apis::ComputeAlpha::Operation]
34194
+ #
34195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34198
+ def delete_region_instant_snapshot_group(project, region, instant_snapshot_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34199
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}', options)
34200
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
34201
+ command.response_class = Google::Apis::ComputeAlpha::Operation
34202
+ command.params['project'] = project unless project.nil?
34203
+ command.params['region'] = region unless region.nil?
34204
+ command.params['instantSnapshotGroup'] = instant_snapshot_group unless instant_snapshot_group.nil?
34205
+ command.query['requestId'] = request_id unless request_id.nil?
34206
+ command.query['fields'] = fields unless fields.nil?
34207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34208
+ command.query['userIp'] = user_ip unless user_ip.nil?
34209
+ execute_or_queue_command(command, &block)
34210
+ end
34211
+
34212
+ # returns the specified InstantSnapshotGroup resource in the specified region.
34213
+ # @param [String] project
34214
+ # Project ID for this request.
34215
+ # @param [String] region
34216
+ # The name of the region for this request.
34217
+ # @param [String] instant_snapshot
34218
+ # Name of the InstantSnapshotGroup resource to return.
34219
+ # @param [String] fields
34220
+ # Selector specifying which fields to include in a partial response.
34221
+ # @param [String] quota_user
34222
+ # Available to use for quota purposes for server-side applications. Can be any
34223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34224
+ # @param [String] user_ip
34225
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34226
+ # @param [Google::Apis::RequestOptions] options
34227
+ # Request-specific options
34228
+ #
34229
+ # @yield [result, err] Result & error if block supplied
34230
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotGroup] parsed result object
34231
+ # @yieldparam err [StandardError] error object if request failed
34232
+ #
34233
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotGroup]
34234
+ #
34235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34238
+ def get_region_instant_snapshot_group(project, region, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34239
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshot}', options)
34240
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotGroup::Representation
34241
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotGroup
34242
+ command.params['project'] = project unless project.nil?
34243
+ command.params['region'] = region unless region.nil?
34244
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
34245
+ command.query['fields'] = fields unless fields.nil?
34246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34247
+ command.query['userIp'] = user_ip unless user_ip.nil?
34248
+ execute_or_queue_command(command, &block)
34249
+ end
34250
+
34251
+ # creates a Regional InstantSnapshotGroup resource
34252
+ # @param [String] project
34253
+ # Project ID for this request.
34254
+ # @param [String] region
34255
+ # Name of the region for this request.
34256
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshotGroup] instant_snapshot_group_object
34257
+ # @param [String] request_id
34258
+ # An optional request ID to identify requests. Specify a unique request ID so
34259
+ # that if you must retry your request, the server will know to ignore the
34260
+ # request if it has already been completed. For example, consider a situation
34261
+ # where you make an initial request and the request times out. If you make the
34262
+ # request again with the same request ID, the server can check if original
34263
+ # operation with the same request ID was received, and if so, will ignore the
34264
+ # second request. This prevents clients from accidentally creating duplicate
34265
+ # commitments. The request ID must be a valid UUID with the exception that zero
34266
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
34267
+ # @param [String] source_consistency_group
34268
+ # begin_interface: MixerMutationRequestBuilder
34269
+ # @param [String] fields
34270
+ # Selector specifying which fields to include in a partial response.
34271
+ # @param [String] quota_user
34272
+ # Available to use for quota purposes for server-side applications. Can be any
34273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34274
+ # @param [String] user_ip
34275
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34276
+ # @param [Google::Apis::RequestOptions] options
34277
+ # Request-specific options
34278
+ #
34279
+ # @yield [result, err] Result & error if block supplied
34280
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
34281
+ # @yieldparam err [StandardError] error object if request failed
34282
+ #
34283
+ # @return [Google::Apis::ComputeAlpha::Operation]
34284
+ #
34285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34288
+ def insert_region_instant_snapshot_group(project, region, instant_snapshot_group_object = nil, request_id: nil, source_consistency_group: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34289
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshotGroups', options)
34290
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotGroup::Representation
34291
+ command.request_object = instant_snapshot_group_object
34292
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
34293
+ command.response_class = Google::Apis::ComputeAlpha::Operation
34294
+ command.params['project'] = project unless project.nil?
34295
+ command.params['region'] = region unless region.nil?
34296
+ command.query['requestId'] = request_id unless request_id.nil?
34297
+ command.query['sourceConsistencyGroup'] = source_consistency_group unless source_consistency_group.nil?
34298
+ command.query['fields'] = fields unless fields.nil?
34299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34300
+ command.query['userIp'] = user_ip unless user_ip.nil?
34301
+ execute_or_queue_command(command, &block)
34302
+ end
34303
+
34304
+ # retrieves the list of InstantSnapshotGroup resources contained within the
34305
+ # specified region.
34306
+ # @param [String] project
34307
+ # Project ID for this request.
34308
+ # @param [String] region
34309
+ # The name of the region for this request.
34310
+ # @param [String] filter
34311
+ # A filter expression that filters resources listed in the response. Most
34312
+ # Compute resources support two types of filter expressions: expressions that
34313
+ # support regular expressions and expressions that follow API improvement
34314
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
34315
+ # request. If you want to use AIP-160, your expression must specify the field
34316
+ # name, an operator, and the value that you want to use for filtering. The value
34317
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
34318
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
34319
+ # Engine instances, you can exclude instances named `example-instance` by
34320
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
34321
+ # whether a key has been defined. For example, to find all objects with `owner`
34322
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
34323
+ # example, you could specify `scheduling.automaticRestart = false` to include
34324
+ # instances only if they are not scheduled for automatic restarts. You can use
34325
+ # filtering on nested fields to filter based on resource labels. To filter on
34326
+ # multiple expressions, provide each separate expression within parentheses. For
34327
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
34328
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
34329
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
34330
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
34331
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
34332
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
34333
+ # un-parenthesized expression with or without quotes or against multiple
34334
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
34335
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
34336
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
34337
+ # interpreted as a regular expression using Google RE2 library syntax. The
34338
+ # literal value must match the entire field. For example, to filter for
34339
+ # instances that do not end with name "instance", you would use `name ne .*
34340
+ # instance`. You cannot combine constraints on multiple fields using regular
34341
+ # expressions.
34342
+ # @param [Fixnum] max_results
34343
+ # The maximum number of results per page that should be returned. If the number
34344
+ # of available results is larger than `maxResults`, Compute Engine returns a `
34345
+ # nextPageToken` that can be used to get the next page of results in subsequent
34346
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
34347
+ # @param [String] order_by
34348
+ # Sorts list results by a certain order. By default, results are returned in
34349
+ # alphanumerical order based on the resource name. You can also sort results in
34350
+ # descending order based on the creation timestamp using `orderBy="
34351
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
34352
+ # field in reverse chronological order (newest result first). Use this to sort
34353
+ # resources like operations so that the newest operation is returned first.
34354
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
34355
+ # @param [String] page_token
34356
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
34357
+ # by a previous list request to get the next page of results.
34358
+ # @param [Boolean] return_partial_success
34359
+ # Opt-in for partial success behavior which provides partial results in case of
34360
+ # failure. The default value is false. For example, when partial success
34361
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
34362
+ # resources in the zone or no resources, with an error code.
34363
+ # @param [String] fields
34364
+ # Selector specifying which fields to include in a partial response.
34365
+ # @param [String] quota_user
34366
+ # Available to use for quota purposes for server-side applications. Can be any
34367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34368
+ # @param [String] user_ip
34369
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34370
+ # @param [Google::Apis::RequestOptions] options
34371
+ # Request-specific options
34372
+ #
34373
+ # @yield [result, err] Result & error if block supplied
34374
+ # @yieldparam result [Google::Apis::ComputeAlpha::ListInstantSnapshotGroups] parsed result object
34375
+ # @yieldparam err [StandardError] error object if request failed
34376
+ #
34377
+ # @return [Google::Apis::ComputeAlpha::ListInstantSnapshotGroups]
34378
+ #
34379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34382
+ def list_region_instant_snapshot_groups(project, region, 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)
34383
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshotGroups', options)
34384
+ command.response_representation = Google::Apis::ComputeAlpha::ListInstantSnapshotGroups::Representation
34385
+ command.response_class = Google::Apis::ComputeAlpha::ListInstantSnapshotGroups
34386
+ command.params['project'] = project unless project.nil?
34387
+ command.params['region'] = region unless region.nil?
34388
+ command.query['filter'] = filter unless filter.nil?
34389
+ command.query['maxResults'] = max_results unless max_results.nil?
34390
+ command.query['orderBy'] = order_by unless order_by.nil?
34391
+ command.query['pageToken'] = page_token unless page_token.nil?
34392
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
34393
+ command.query['fields'] = fields unless fields.nil?
34394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34395
+ command.query['userIp'] = user_ip unless user_ip.nil?
34396
+ execute_or_queue_command(command, &block)
34397
+ end
34398
+
33826
34399
  # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
33827
34400
  # single instantSnapshot might not necessarily delete all the data on that
33828
34401
  # instantSnapshot. If any data on the instantSnapshot that is marked for
@@ -39741,7 +40314,13 @@ module Google
39741
40314
  # information (the `quotas` field). To exclude one or more fields, set your
39742
40315
  # request's `fields` query parameter to only include the fields you need. For
39743
40316
  # example, to only include the `id` and `selfLink` fields, add the query
39744
- # parameter `?fields=id,selfLink` to your request.
40317
+ # parameter `?fields=id,selfLink` to your request. This method fails if the
40318
+ # quota information is unavailable for the region and if the organization policy
40319
+ # constraint compute.requireBasicQuotaInResponse is enforced. This constraint,
40320
+ # when enforced, disables the fail-open behaviour when quota information (the `
40321
+ # items.quotas` field) is unavailable for the region. It is recommended to use
40322
+ # the default setting for the constraint unless your application requires the
40323
+ # fail-closed behaviour for this method.
39745
40324
  # @param [String] project
39746
40325
  # Project ID for this request.
39747
40326
  # @param [String] region
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.104.0
4
+ version: 0.105.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: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-07-25 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.104.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.105.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: []