Skip to content

Commit f0f35ad

Browse files
feat: Automated regeneration of compute beta client (googleapis#23693)
Auto-created at 2025-07-13 10:38:23 +0000 using the toys pull request generator.
1 parent 8002e93 commit f0f35ad

File tree

6 files changed

+114
-3
lines changed

6 files changed

+114
-3
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104544,6 +104544,15 @@
104544104544
"/compute:beta/ReservationBlockPhysicalTopology": reservation_block_physical_topology
104545104545
"/compute:beta/ReservationBlockPhysicalTopology/block": block
104546104546
"/compute:beta/ReservationBlockPhysicalTopology/cluster": cluster
104547+
"/compute:beta/ReservationBlockPhysicalTopology/instances": instances
104548+
"/compute:beta/ReservationBlockPhysicalTopology/instances/instance": instance
104549+
"/compute:beta/ReservationBlockPhysicalTopologyInstance": reservation_block_physical_topology_instance
104550+
"/compute:beta/ReservationBlockPhysicalTopologyInstance/instanceId": instance_id
104551+
"/compute:beta/ReservationBlockPhysicalTopologyInstance/physicalHostTopology": physical_host_topology
104552+
"/compute:beta/ReservationBlockPhysicalTopologyInstance/projectId": project_id
104553+
"/compute:beta/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology": reservation_block_physical_topology_instance_physical_host_topology
104554+
"/compute:beta/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology/host": host
104555+
"/compute:beta/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology/subBlock": sub_block
104547104556
"/compute:beta/ReservationBlocksGetResponse": reservation_blocks_get_response
104548104557
"/compute:beta/ReservationBlocksGetResponse/resource": resource
104549104558
"/compute:beta/ReservationBlocksListResponse": reservation_blocks_list_response
@@ -110774,6 +110783,7 @@
110774110783
"/compute:beta/compute.reservationBlocks.get/project": project
110775110784
"/compute:beta/compute.reservationBlocks.get/reservation": reservation
110776110785
"/compute:beta/compute.reservationBlocks.get/reservationBlock": reservation_block
110786+
"/compute:beta/compute.reservationBlocks.get/view": view
110777110787
"/compute:beta/compute.reservationBlocks.get/zone": zone
110778110788
"/compute:beta/compute.reservationBlocks.list": list_reservation_blocks
110779110789
"/compute:beta/compute.reservationBlocks.list/filter": filter

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.118.0 (2025-07-13)
4+
5+
* Regenerated from discovery document revision 20250708
6+
37
### v0.117.0 (2025-06-29)
48

59
* Regenerated from discovery document revision 20250626

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40629,6 +40629,11 @@ class ReservationBlockPhysicalTopology
4062940629
# @return [String]
4063040630
attr_accessor :cluster
4063140631

40632+
# The detailed instances information for a given Block
40633+
# Corresponds to the JSON property `instances`
40634+
# @return [Array<Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstance>]
40635+
attr_accessor :instances
40636+
4063240637
def initialize(**args)
4063340638
update!(**args)
4063440639
end
@@ -40637,6 +40642,63 @@ def initialize(**args)
4063740642
def update!(**args)
4063840643
@block = args[:block] if args.key?(:block)
4063940644
@cluster = args[:cluster] if args.key?(:cluster)
40645+
@instances = args[:instances] if args.key?(:instances)
40646+
end
40647+
end
40648+
40649+
# The instances information for a given Block
40650+
class ReservationBlockPhysicalTopologyInstance
40651+
include Google::Apis::Core::Hashable
40652+
40653+
# The InstanceId of the instance
40654+
# Corresponds to the JSON property `instanceId`
40655+
# @return [Fixnum]
40656+
attr_accessor :instance_id
40657+
40658+
# The PhysicalHostTopology of the instance within a Block resource.
40659+
# Corresponds to the JSON property `physicalHostTopology`
40660+
# @return [Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstancePhysicalHostTopology]
40661+
attr_accessor :physical_host_topology
40662+
40663+
# Project where the instance lives
40664+
# Corresponds to the JSON property `projectId`
40665+
# @return [Fixnum]
40666+
attr_accessor :project_id
40667+
40668+
def initialize(**args)
40669+
update!(**args)
40670+
end
40671+
40672+
# Update properties of this object
40673+
def update!(**args)
40674+
@instance_id = args[:instance_id] if args.key?(:instance_id)
40675+
@physical_host_topology = args[:physical_host_topology] if args.key?(:physical_host_topology)
40676+
@project_id = args[:project_id] if args.key?(:project_id)
40677+
end
40678+
end
40679+
40680+
# The PhysicalHostTopology of the instance within a Block resource.
40681+
class ReservationBlockPhysicalTopologyInstancePhysicalHostTopology
40682+
include Google::Apis::Core::Hashable
40683+
40684+
# Host hash for a given instance
40685+
# Corresponds to the JSON property `host`
40686+
# @return [String]
40687+
attr_accessor :host
40688+
40689+
# Sub block hash for a given instance
40690+
# Corresponds to the JSON property `subBlock`
40691+
# @return [String]
40692+
attr_accessor :sub_block
40693+
40694+
def initialize(**args)
40695+
update!(**args)
40696+
end
40697+
40698+
# Update properties of this object
40699+
def update!(**args)
40700+
@host = args[:host] if args.key?(:host)
40701+
@sub_block = args[:sub_block] if args.key?(:sub_block)
4064040702
end
4064140703
end
4064240704

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.117.0"
19+
GEM_VERSION = "0.118.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 = "20250626"
25+
REVISION = "20250708"
2626
end
2727
end
2828
end

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,6 +5332,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
53325332
include Google::Apis::Core::JsonObjectSupport
53335333
end
53345334

5335+
class ReservationBlockPhysicalTopologyInstance
5336+
class Representation < Google::Apis::Core::JsonRepresentation; end
5337+
5338+
include Google::Apis::Core::JsonObjectSupport
5339+
end
5340+
5341+
class ReservationBlockPhysicalTopologyInstancePhysicalHostTopology
5342+
class Representation < Google::Apis::Core::JsonRepresentation; end
5343+
5344+
include Google::Apis::Core::JsonObjectSupport
5345+
end
5346+
53355347
class ReservationBlocksGetResponse
53365348
class Representation < Google::Apis::Core::JsonRepresentation; end
53375349

@@ -17969,6 +17981,26 @@ class ReservationBlockPhysicalTopology
1796917981
class Representation < Google::Apis::Core::JsonRepresentation
1797017982
property :block, as: 'block'
1797117983
property :cluster, as: 'cluster'
17984+
collection :instances, as: 'instances', class: Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstance, decorator: Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstance::Representation
17985+
17986+
end
17987+
end
17988+
17989+
class ReservationBlockPhysicalTopologyInstance
17990+
# @private
17991+
class Representation < Google::Apis::Core::JsonRepresentation
17992+
property :instance_id, :numeric_string => true, as: 'instanceId'
17993+
property :physical_host_topology, as: 'physicalHostTopology', class: Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstancePhysicalHostTopology, decorator: Google::Apis::ComputeBeta::ReservationBlockPhysicalTopologyInstancePhysicalHostTopology::Representation
17994+
17995+
property :project_id, :numeric_string => true, as: 'projectId'
17996+
end
17997+
end
17998+
17999+
class ReservationBlockPhysicalTopologyInstancePhysicalHostTopology
18000+
# @private
18001+
class Representation < Google::Apis::Core::JsonRepresentation
18002+
property :host, as: 'host'
18003+
property :sub_block, as: 'subBlock'
1797218004
end
1797318005
end
1797418006

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41158,6 +41158,8 @@ def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_tok
4115841158
# @param [String] reservation_block
4115941159
# The name of the reservation block. Name should conform to RFC1035 or be a
4116041160
# resource ID.
41161+
# @param [String] view
41162+
# View of the Block.
4116141163
# @param [String] fields
4116241164
# Selector specifying which fields to include in a partial response.
4116341165
# @param [String] quota_user
@@ -41177,14 +41179,15 @@ def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_tok
4117741179
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4117841180
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4117941181
# @raise [Google::Apis::AuthorizationError] Authorization is required
41180-
def get_reservation_block(project, zone, reservation, reservation_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41182+
def get_reservation_block(project, zone, reservation, reservation_block, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4118141183
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
4118241184
command.response_representation = Google::Apis::ComputeBeta::ReservationBlocksGetResponse::Representation
4118341185
command.response_class = Google::Apis::ComputeBeta::ReservationBlocksGetResponse
4118441186
command.params['project'] = project unless project.nil?
4118541187
command.params['zone'] = zone unless zone.nil?
4118641188
command.params['reservation'] = reservation unless reservation.nil?
4118741189
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
41190+
command.query['view'] = view unless view.nil?
4118841191
command.query['fields'] = fields unless fields.nil?
4118941192
command.query['quotaUser'] = quota_user unless quota_user.nil?
4119041193
command.query['userIp'] = user_ip unless user_ip.nil?

0 commit comments

Comments
 (0)