google-apis-compute_alpha 0.126.0 → 0.128.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.
@@ -41717,6 +41717,69 @@ module Google
41717
41717
  execute_or_queue_command(command, &block)
41718
41718
  end
41719
41719
 
41720
+ # Flags the specified instances to be adopted to the managed instance
41721
+ # group. Adopting an instance does not change the instance status, but it
41722
+ # adds the instance to any target pools that are applied by the managed
41723
+ # instance group. This method increases the targetSize of the managed
41724
+ # instance group by the number of instances that you adopt. This operation
41725
+ # is marked as DONE when the action is scheduled even if the instances have
41726
+ # not been adopted to the group yet. You must separately verify the status
41727
+ # of the adopting action with the listManagedInstances method.
41728
+ # @param [String] project
41729
+ # Project ID for this request.
41730
+ # @param [String] region
41731
+ # Name of the region scoping this request. It should conform to RFC1035.
41732
+ # @param [String] instance_group_manager
41733
+ # Name of the managed instance group. It should conform to RFC1035 or be a
41734
+ # resource ID.
41735
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAdoptInstancesRequest] region_instance_group_managers_adopt_instances_request_object
41736
+ # @param [String] request_id
41737
+ # An optional request ID to identify requests. Specify a unique request ID so
41738
+ # that if you must retry your request, the server will know to ignore the
41739
+ # request if it has already been completed.
41740
+ # For example, consider a situation where you make an initial request and
41741
+ # the request times out. If you make the request again with the same
41742
+ # request ID, the server can check if original operation with the same
41743
+ # request ID was received, and if so, will ignore the second request. This
41744
+ # prevents clients from accidentally creating duplicate commitments.
41745
+ # The request ID must be
41746
+ # a valid UUID with the exception that zero UUID is not supported
41747
+ # (00000000-0000-0000-0000-000000000000).
41748
+ # @param [String] fields
41749
+ # Selector specifying which fields to include in a partial response.
41750
+ # @param [String] quota_user
41751
+ # Available to use for quota purposes for server-side applications. Can be any
41752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41753
+ # @param [String] user_ip
41754
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41755
+ # @param [Google::Apis::RequestOptions] options
41756
+ # Request-specific options
41757
+ #
41758
+ # @yield [result, err] Result & error if block supplied
41759
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41760
+ # @yieldparam err [StandardError] error object if request failed
41761
+ #
41762
+ # @return [Google::Apis::ComputeAlpha::Operation]
41763
+ #
41764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41767
+ def adopt_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_adopt_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41768
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances', options)
41769
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAdoptInstancesRequest::Representation
41770
+ command.request_object = region_instance_group_managers_adopt_instances_request_object
41771
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41772
+ command.response_class = Google::Apis::ComputeAlpha::Operation
41773
+ command.params['project'] = project unless project.nil?
41774
+ command.params['region'] = region unless region.nil?
41775
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
41776
+ command.query['requestId'] = request_id unless request_id.nil?
41777
+ command.query['fields'] = fields unless fields.nil?
41778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41779
+ command.query['userIp'] = user_ip unless user_ip.nil?
41780
+ execute_or_queue_command(command, &block)
41781
+ end
41782
+
41720
41783
  # Apply updates to selected instances the managed instance group.
41721
41784
  # @param [String] project
41722
41785
  # Project ID for this request.
@@ -53128,6 +53191,173 @@ module Google
53128
53191
  execute_or_queue_command(command, &block)
53129
53192
  end
53130
53193
 
53194
+ # Retrieves information about the specified reservation slot.
53195
+ # @param [String] project
53196
+ # Project ID for this request.
53197
+ # @param [String] zone
53198
+ # Name of the zone for this request. Zone name should conform to RFC1035.
53199
+ # @param [String] parent_name
53200
+ # The name of the parent reservation and parent block. In the format of
53201
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
53202
+ # reservationSubBlocks/`reservation_sub_block_name`
53203
+ # @param [String] reservation_slot
53204
+ # The name of the reservation slot.
53205
+ # Name should conform to RFC1035 or be a resource ID.
53206
+ # @param [String] fields
53207
+ # Selector specifying which fields to include in a partial response.
53208
+ # @param [String] quota_user
53209
+ # Available to use for quota purposes for server-side applications. Can be any
53210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53211
+ # @param [String] user_ip
53212
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53213
+ # @param [Google::Apis::RequestOptions] options
53214
+ # Request-specific options
53215
+ #
53216
+ # @yield [result, err] Result & error if block supplied
53217
+ # @yieldparam result [Google::Apis::ComputeAlpha::ReservationSlotsGetResponse] parsed result object
53218
+ # @yieldparam err [StandardError] error object if request failed
53219
+ #
53220
+ # @return [Google::Apis::ComputeAlpha::ReservationSlotsGetResponse]
53221
+ #
53222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53225
+ def get_reservation_slot(project, zone, parent_name, reservation_slot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53226
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
53227
+ command.response_representation = Google::Apis::ComputeAlpha::ReservationSlotsGetResponse::Representation
53228
+ command.response_class = Google::Apis::ComputeAlpha::ReservationSlotsGetResponse
53229
+ command.params['project'] = project unless project.nil?
53230
+ command.params['zone'] = zone unless zone.nil?
53231
+ command.params['parentName'] = parent_name unless parent_name.nil?
53232
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
53233
+ command.query['fields'] = fields unless fields.nil?
53234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53235
+ command.query['userIp'] = user_ip unless user_ip.nil?
53236
+ execute_or_queue_command(command, &block)
53237
+ end
53238
+
53239
+ # Retrieves a list of reservation slots under a single reservation.
53240
+ # @param [String] project
53241
+ # Project ID for this request.
53242
+ # @param [String] zone
53243
+ # Name of the zone for this request. Zone name should conform to RFC1035.
53244
+ # @param [String] parent_name
53245
+ # The name of the parent reservation and parent block. In the format of
53246
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
53247
+ # reservationSubBlocks/`reservation_sub_block_name`
53248
+ # @param [String] filter
53249
+ # A filter expression that filters resources listed in the response. Most
53250
+ # Compute resources support two types of filter expressions:
53251
+ # expressions that support regular expressions and expressions that follow
53252
+ # API improvement proposal AIP-160.
53253
+ # These two types of filter expressions cannot be mixed in one request.
53254
+ # If you want to use AIP-160, your expression must specify the field name, an
53255
+ # operator, and the value that you want to use for filtering. The value
53256
+ # must be a string, a number, or a boolean. The operator
53257
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
53258
+ # For example, if you are filtering Compute Engine instances, you can
53259
+ # exclude instances named `example-instance` by specifying
53260
+ # `name != example-instance`.
53261
+ # The `:*` comparison can be used to test whether a key has been defined.
53262
+ # For example, to find all objects with `owner` label use:
53263
+ # ```
53264
+ # labels.owner:*
53265
+ # ```
53266
+ # You can also filter nested fields. For example, you could specify
53267
+ # `scheduling.automaticRestart = false` to include instances only
53268
+ # if they are not scheduled for automatic restarts. You can use filtering
53269
+ # on nested fields to filter based onresource labels.
53270
+ # To filter on multiple expressions, provide each separate expression within
53271
+ # parentheses. For example:
53272
+ # ```
53273
+ # (scheduling.automaticRestart = true)
53274
+ # (cpuPlatform = "Intel Skylake")
53275
+ # ```
53276
+ # By default, each expression is an `AND` expression. However, you
53277
+ # can include `AND` and `OR` expressions explicitly.
53278
+ # For example:
53279
+ # ```
53280
+ # (cpuPlatform = "Intel Skylake") OR
53281
+ # (cpuPlatform = "Intel Broadwell") AND
53282
+ # (scheduling.automaticRestart = true)
53283
+ # ```
53284
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
53285
+ # (not equal) operator against a single un-parenthesized expression with or
53286
+ # without quotes or against multiple parenthesized expressions. Examples:
53287
+ # `fieldname eq unquoted literal`
53288
+ # `fieldname eq 'single quoted literal'`
53289
+ # `fieldname eq "double quoted literal"`
53290
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
53291
+ # The literal value is interpreted as a regular expression using GoogleRE2
53292
+ # library syntax.
53293
+ # The literal value must match the entire field.
53294
+ # For example, to filter for instances that do not end with name "instance",
53295
+ # you would use `name ne .*instance`.
53296
+ # You cannot combine constraints on multiple fields using regular
53297
+ # expressions.
53298
+ # @param [Fixnum] max_results
53299
+ # The maximum number of results per page that should be returned.
53300
+ # If the number of available results is larger than `maxResults`,
53301
+ # Compute Engine returns a `nextPageToken` that can be used to get
53302
+ # the next page of results in subsequent list requests. Acceptable values are
53303
+ # `0` to `500`, inclusive. (Default: `500`)
53304
+ # @param [String] order_by
53305
+ # Sorts list results by a certain order. By default, results
53306
+ # are returned in alphanumerical order based on the resource name.
53307
+ # You can also sort results in descending order based on the creation
53308
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
53309
+ # results based on the `creationTimestamp` field in
53310
+ # reverse chronological order (newest result first). Use this to sort
53311
+ # resources like operations so that the newest operation is returned first.
53312
+ # Currently, only sorting by `name` or
53313
+ # `creationTimestamp desc` is supported.
53314
+ # @param [String] page_token
53315
+ # Specifies a page token to use. Set `pageToken` to the
53316
+ # `nextPageToken` returned by a previous list request to get
53317
+ # the next page of results.
53318
+ # @param [Boolean] return_partial_success
53319
+ # Opt-in for partial success behavior which provides partial results in case
53320
+ # of failure. The default value is false.
53321
+ # For example, when partial success behavior is enabled, aggregatedList for a
53322
+ # single zone scope either returns all resources in the zone or no resources,
53323
+ # with an error code.
53324
+ # @param [String] fields
53325
+ # Selector specifying which fields to include in a partial response.
53326
+ # @param [String] quota_user
53327
+ # Available to use for quota purposes for server-side applications. Can be any
53328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53329
+ # @param [String] user_ip
53330
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53331
+ # @param [Google::Apis::RequestOptions] options
53332
+ # Request-specific options
53333
+ #
53334
+ # @yield [result, err] Result & error if block supplied
53335
+ # @yieldparam result [Google::Apis::ComputeAlpha::ReservationSlotsListResponse] parsed result object
53336
+ # @yieldparam err [StandardError] error object if request failed
53337
+ #
53338
+ # @return [Google::Apis::ComputeAlpha::ReservationSlotsListResponse]
53339
+ #
53340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53343
+ def list_reservation_slots(project, zone, parent_name, 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)
53344
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', options)
53345
+ command.response_representation = Google::Apis::ComputeAlpha::ReservationSlotsListResponse::Representation
53346
+ command.response_class = Google::Apis::ComputeAlpha::ReservationSlotsListResponse
53347
+ command.params['project'] = project unless project.nil?
53348
+ command.params['zone'] = zone unless zone.nil?
53349
+ command.params['parentName'] = parent_name unless parent_name.nil?
53350
+ command.query['filter'] = filter unless filter.nil?
53351
+ command.query['maxResults'] = max_results unless max_results.nil?
53352
+ command.query['orderBy'] = order_by unless order_by.nil?
53353
+ command.query['pageToken'] = page_token unless page_token.nil?
53354
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
53355
+ command.query['fields'] = fields unless fields.nil?
53356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53357
+ command.query['userIp'] = user_ip unless user_ip.nil?
53358
+ execute_or_queue_command(command, &block)
53359
+ end
53360
+
53131
53361
  # Retrieves information about the specified reservation subBlock.
53132
53362
  # @param [String] project
53133
53363
  # Project ID for this request.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.126.0
4
+ version: 0.128.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.126.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.128.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
62
62
  rdoc_options: []
63
63
  require_paths: