Skip to content

Commit b0327db

Browse files
feat: Automated regeneration of compute beta client (googleapis#23557)
Auto-created at 2025-06-29 09:56:39 +0000 using the toys pull request generator.
1 parent d2efc65 commit b0327db

File tree

6 files changed

+114
-2
lines changed

6 files changed

+114
-2
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100654,9 +100654,13 @@
100654100654
"/compute:beta/GlobalSetPolicyRequest/policy": policy
100655100655
"/compute:beta/GroupMaintenanceInfo": group_maintenance_info
100656100656
"/compute:beta/GroupMaintenanceInfo/enableOpportunisticMaintenance": enable_opportunistic_maintenance
100657+
"/compute:beta/GroupMaintenanceInfo/instanceMaintenanceOngoingCount": instance_maintenance_ongoing_count
100658+
"/compute:beta/GroupMaintenanceInfo/instanceMaintenancePendingCount": instance_maintenance_pending_count
100657100659
"/compute:beta/GroupMaintenanceInfo/maintenanceOngoingCount": maintenance_ongoing_count
100658100660
"/compute:beta/GroupMaintenanceInfo/maintenancePendingCount": maintenance_pending_count
100659100661
"/compute:beta/GroupMaintenanceInfo/schedulingType": scheduling_type
100662+
"/compute:beta/GroupMaintenanceInfo/subblockInfraMaintenanceOngoingCount": subblock_infra_maintenance_ongoing_count
100663+
"/compute:beta/GroupMaintenanceInfo/subblockInfraMaintenancePendingCount": subblock_infra_maintenance_pending_count
100660100664
"/compute:beta/GroupMaintenanceInfo/upcomingGroupMaintenance": upcoming_group_maintenance
100661100665
"/compute:beta/GuestAttributes": guest_attributes
100662100666
"/compute:beta/GuestAttributes/kind": kind
@@ -104163,6 +104167,7 @@
104163104167
"/compute:beta/ReservationSubBlock/kind": kind
104164104168
"/compute:beta/ReservationSubBlock/name": name
104165104169
"/compute:beta/ReservationSubBlock/physicalTopology": physical_topology
104170+
"/compute:beta/ReservationSubBlock/reservationSubBlockMaintenance": reservation_sub_block_maintenance
104166104171
"/compute:beta/ReservationSubBlock/selfLink": self_link
104167104172
"/compute:beta/ReservationSubBlock/selfLinkWithId": self_link_with_id
104168104173
"/compute:beta/ReservationSubBlock/status": status
@@ -110384,6 +110389,12 @@
110384110389
"/compute:beta/compute.reservationSubBlocks.list/project": project
110385110390
"/compute:beta/compute.reservationSubBlocks.list/returnPartialSuccess": return_partial_success
110386110391
"/compute:beta/compute.reservationSubBlocks.list/zone": zone
110392+
"/compute:beta/compute.reservationSubBlocks.performMaintenance": perform_reservation_sub_block_maintenance
110393+
"/compute:beta/compute.reservationSubBlocks.performMaintenance/parentName": parent_name
110394+
"/compute:beta/compute.reservationSubBlocks.performMaintenance/project": project
110395+
"/compute:beta/compute.reservationSubBlocks.performMaintenance/requestId": request_id
110396+
"/compute:beta/compute.reservationSubBlocks.performMaintenance/reservationSubBlock": reservation_sub_block
110397+
"/compute:beta/compute.reservationSubBlocks.performMaintenance/zone": zone
110387110398
"/compute:beta/compute.reservations.aggregatedList": aggregated_reservation_list
110388110399
"/compute:beta/compute.reservations.aggregatedList/filter": filter
110389110400
"/compute:beta/compute.reservations.aggregatedList/includeAllScopes": include_all_scopes

generated/google-apis-compute_beta/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-compute_beta
22

3+
### v0.117.0 (2025-06-29)
4+
5+
* Regenerated from discovery document revision 20250626
6+
37
### v0.116.0 (2025-06-08)
48

59
* Regenerated from discovery document revision 20250601

generated/google-apis-compute_beta/lib/google/apis/compute_beta/classes.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13622,6 +13622,16 @@ def update!(**args)
1362213622
class GroupMaintenanceInfo
1362313623
include Google::Apis::Core::Hashable
1362413624

13625+
# Describes number of instances that have ongoing maintenance.
13626+
# Corresponds to the JSON property `instanceMaintenanceOngoingCount`
13627+
# @return [Fixnum]
13628+
attr_accessor :instance_maintenance_ongoing_count
13629+
13630+
# Describes number of instances that have pending maintenance.
13631+
# Corresponds to the JSON property `instanceMaintenancePendingCount`
13632+
# @return [Fixnum]
13633+
attr_accessor :instance_maintenance_pending_count
13634+
1362513635
# Progress for ongoing maintenance for this group of VMs/hosts. Describes number
1362613636
# of hosts in the block that have ongoing maintenance.
1362713637
# Corresponds to the JSON property `maintenanceOngoingCount`
@@ -13639,6 +13649,22 @@ class GroupMaintenanceInfo
1363913649
# @return [String]
1364013650
attr_accessor :scheduling_type
1364113651

13652+
# Describes number of subblock Infrastructure that has ongoing maintenance. Here,
13653+
# Subblock Infrastructure Maintenance pertains to upstream hardware contained
13654+
# in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not
13655+
# all VM Families will support this field.
13656+
# Corresponds to the JSON property `subblockInfraMaintenanceOngoingCount`
13657+
# @return [Fixnum]
13658+
attr_accessor :subblock_infra_maintenance_ongoing_count
13659+
13660+
# Describes number of subblock Infrastructure that has pending maintenance. Here,
13661+
# Subblock Infrastructure Maintenance pertains to upstream hardware contained
13662+
# in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not
13663+
# all VM Families will support this field.
13664+
# Corresponds to the JSON property `subblockInfraMaintenancePendingCount`
13665+
# @return [Fixnum]
13666+
attr_accessor :subblock_infra_maintenance_pending_count
13667+
1364213668
# Upcoming Maintenance notification information.
1364313669
# Corresponds to the JSON property `upcomingGroupMaintenance`
1364413670
# @return [Google::Apis::ComputeBeta::UpcomingMaintenance]
@@ -13650,9 +13676,13 @@ def initialize(**args)
1365013676

1365113677
# Update properties of this object
1365213678
def update!(**args)
13679+
@instance_maintenance_ongoing_count = args[:instance_maintenance_ongoing_count] if args.key?(:instance_maintenance_ongoing_count)
13680+
@instance_maintenance_pending_count = args[:instance_maintenance_pending_count] if args.key?(:instance_maintenance_pending_count)
1365313681
@maintenance_ongoing_count = args[:maintenance_ongoing_count] if args.key?(:maintenance_ongoing_count)
1365413682
@maintenance_pending_count = args[:maintenance_pending_count] if args.key?(:maintenance_pending_count)
1365513683
@scheduling_type = args[:scheduling_type] if args.key?(:scheduling_type)
13684+
@subblock_infra_maintenance_ongoing_count = args[:subblock_infra_maintenance_ongoing_count] if args.key?(:subblock_infra_maintenance_ongoing_count)
13685+
@subblock_infra_maintenance_pending_count = args[:subblock_infra_maintenance_pending_count] if args.key?(:subblock_infra_maintenance_pending_count)
1365613686
@upcoming_group_maintenance = args[:upcoming_group_maintenance] if args.key?(:upcoming_group_maintenance)
1365713687
end
1365813688
end
@@ -40911,6 +40941,11 @@ class ReservationSubBlock
4091140941
# @return [Google::Apis::ComputeBeta::ReservationSubBlockPhysicalTopology]
4091240942
attr_accessor :physical_topology
4091340943

40944+
# Maintenance Info for ReservationBlocks.
40945+
# Corresponds to the JSON property `reservationSubBlockMaintenance`
40946+
# @return [Google::Apis::ComputeBeta::GroupMaintenanceInfo]
40947+
attr_accessor :reservation_sub_block_maintenance
40948+
4091440949
# [Output Only] Server-defined fully-qualified URL for this resource.
4091540950
# Corresponds to the JSON property `selfLink`
4091640951
# @return [String]
@@ -40944,6 +40979,7 @@ def update!(**args)
4094440979
@kind = args[:kind] if args.key?(:kind)
4094540980
@name = args[:name] if args.key?(:name)
4094640981
@physical_topology = args[:physical_topology] if args.key?(:physical_topology)
40982+
@reservation_sub_block_maintenance = args[:reservation_sub_block_maintenance] if args.key?(:reservation_sub_block_maintenance)
4094740983
@self_link = args[:self_link] if args.key?(:self_link)
4094840984
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
4094940985
@status = args[:status] if args.key?(:status)

generated/google-apis-compute_beta/lib/google/apis/compute_beta/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ComputeBeta
1818
# Version of the google-apis-compute_beta gem
19-
GEM_VERSION = "0.116.0"
19+
GEM_VERSION = "0.117.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250601"
25+
REVISION = "20250626"
2626
end
2727
end
2828
end

generated/google-apis-compute_beta/lib/google/apis/compute_beta/representations.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11128,9 +11128,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
1112811128
class GroupMaintenanceInfo
1112911129
# @private
1113011130
class Representation < Google::Apis::Core::JsonRepresentation
11131+
property :instance_maintenance_ongoing_count, as: 'instanceMaintenanceOngoingCount'
11132+
property :instance_maintenance_pending_count, as: 'instanceMaintenancePendingCount'
1113111133
property :maintenance_ongoing_count, as: 'maintenanceOngoingCount'
1113211134
property :maintenance_pending_count, as: 'maintenancePendingCount'
1113311135
property :scheduling_type, as: 'schedulingType'
11136+
property :subblock_infra_maintenance_ongoing_count, as: 'subblockInfraMaintenanceOngoingCount'
11137+
property :subblock_infra_maintenance_pending_count, as: 'subblockInfraMaintenancePendingCount'
1113411138
property :upcoming_group_maintenance, as: 'upcomingGroupMaintenance', class: Google::Apis::ComputeBeta::UpcomingMaintenance, decorator: Google::Apis::ComputeBeta::UpcomingMaintenance::Representation
1113511139

1113611140
end
@@ -18051,6 +18055,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
1805118055
property :name, as: 'name'
1805218056
property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeBeta::ReservationSubBlockPhysicalTopology, decorator: Google::Apis::ComputeBeta::ReservationSubBlockPhysicalTopology::Representation
1805318057

18058+
property :reservation_sub_block_maintenance, as: 'reservationSubBlockMaintenance', class: Google::Apis::ComputeBeta::GroupMaintenanceInfo, decorator: Google::Apis::ComputeBeta::GroupMaintenanceInfo::Representation
18059+
1805418060
property :self_link, as: 'selfLink'
1805518061
property :self_link_with_id, as: 'selfLinkWithId'
1805618062
property :status, as: 'status'

generated/google-apis-compute_beta/lib/google/apis/compute_beta/service.rb

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41489,6 +41489,61 @@ def list_reservation_sub_blocks(project, zone, parent_name, filter: nil, max_res
4148941489
execute_or_queue_command(command, &block)
4149041490
end
4149141491

41492+
# Allows customers to perform maintenance on a reservation subBlock
41493+
# @param [String] project
41494+
# Project ID for this request.
41495+
# @param [String] zone
41496+
# Name of the zone for this request. Zone name should conform to RFC1035.
41497+
# @param [String] parent_name
41498+
# The name of the parent reservation and parent block. In the format of
41499+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
41500+
# @param [String] reservation_sub_block
41501+
# The name of the reservation subBlock. Name should conform to RFC1035 or be a
41502+
# resource ID.
41503+
# @param [String] request_id
41504+
# An optional request ID to identify requests. Specify a unique request ID so
41505+
# that if you must retry your request, the server will know to ignore the
41506+
# request if it has already been completed. For example, consider a situation
41507+
# where you make an initial request and the request times out. If you make the
41508+
# request again with the same request ID, the server can check if original
41509+
# operation with the same request ID was received, and if so, will ignore the
41510+
# second request. This prevents clients from accidentally creating duplicate
41511+
# commitments. The request ID must be a valid UUID with the exception that zero
41512+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41513+
# @param [String] fields
41514+
# Selector specifying which fields to include in a partial response.
41515+
# @param [String] quota_user
41516+
# Available to use for quota purposes for server-side applications. Can be any
41517+
# arbitrary string assigned to a user, but should not exceed 40 characters.
41518+
# @param [String] user_ip
41519+
# Legacy name for parameter that has been superseded by `quotaUser`.
41520+
# @param [Google::Apis::RequestOptions] options
41521+
# Request-specific options
41522+
#
41523+
# @yield [result, err] Result & error if block supplied
41524+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
41525+
# @yieldparam err [StandardError] error object if request failed
41526+
#
41527+
# @return [Google::Apis::ComputeBeta::Operation]
41528+
#
41529+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41530+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41531+
# @raise [Google::Apis::AuthorizationError] Authorization is required
41532+
def perform_reservation_sub_block_maintenance(project, zone, parent_name, reservation_sub_block, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41533+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance', options)
41534+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
41535+
command.response_class = Google::Apis::ComputeBeta::Operation
41536+
command.params['project'] = project unless project.nil?
41537+
command.params['zone'] = zone unless zone.nil?
41538+
command.params['parentName'] = parent_name unless parent_name.nil?
41539+
command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
41540+
command.query['requestId'] = request_id unless request_id.nil?
41541+
command.query['fields'] = fields unless fields.nil?
41542+
command.query['quotaUser'] = quota_user unless quota_user.nil?
41543+
command.query['userIp'] = user_ip unless user_ip.nil?
41544+
execute_or_queue_command(command, &block)
41545+
end
41546+
4149241547
# Retrieves an aggregated list of reservations. To prevent failure, Google
4149341548
# recommends that you set the `returnPartialSuccess` parameter to `true`.
4149441549
# @param [String] project

0 commit comments

Comments
 (0)