Skip to content

Commit 95662ab

Browse files
feat: Automated regeneration of compute beta client (#25418)
Auto-created at 2026-01-18 10:49:35 +0000 using the toys pull request generator.
1 parent 4a5992a commit 95662ab

File tree

5 files changed

+125
-2
lines changed

5 files changed

+125
-2
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108177,6 +108177,7 @@
108177108177
"/compute:beta/BulkInsertDiskResource/sourceConsistencyGroupPolicy": source_consistency_group_policy
108178108178
"/compute:beta/BulkInsertInstanceResource": bulk_insert_instance_resource
108179108179
"/compute:beta/BulkInsertInstanceResource/count": count
108180+
"/compute:beta/BulkInsertInstanceResource/instanceFlexibilityPolicy": instance_flexibility_policy
108180108181
"/compute:beta/BulkInsertInstanceResource/instanceProperties": instance_properties
108181108182
"/compute:beta/BulkInsertInstanceResource/locationPolicy": location_policy
108182108183
"/compute:beta/BulkInsertInstanceResource/minCount": min_count
@@ -109837,6 +109838,15 @@
109837109838
"/compute:beta/InstanceConsumptionInfo/localSsdGb": local_ssd_gb
109838109839
"/compute:beta/InstanceConsumptionInfo/memoryMb": memory_mb
109839109840
"/compute:beta/InstanceConsumptionInfo/minNodeCpus": min_node_cpus
109841+
"/compute:beta/InstanceFlexibilityPolicy": instance_flexibility_policy
109842+
"/compute:beta/InstanceFlexibilityPolicy/instanceSelections": instance_selections
109843+
"/compute:beta/InstanceFlexibilityPolicy/instanceSelections/instance_selection": instance_selection
109844+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection": instance_flexibility_policy_instance_selection
109845+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection/disks": disks
109846+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection/disks/disk": disk
109847+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection/machineTypes": machine_types
109848+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection/machineTypes/machine_type": machine_type
109849+
"/compute:beta/InstanceFlexibilityPolicyInstanceSelection/rank": rank
109840109850
"/compute:beta/InstanceGroup": instance_group
109841109851
"/compute:beta/InstanceGroup/creationTimestamp": creation_timestamp
109842109852
"/compute:beta/InstanceGroup/description": description

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.131.0 (2026-01-18)
4+
5+
* Regenerated from discovery document revision 20260106
6+
37
### v0.130.0 (2026-01-11)
48

59
* Regenerated from discovery document revision 20251230

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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7168,6 +7168,11 @@ class BulkInsertInstanceResource
71687168
# @return [Fixnum]
71697169
attr_accessor :count
71707170

7171+
# A flexible specification of machine types for instances to create.
7172+
# Corresponds to the JSON property `instanceFlexibilityPolicy`
7173+
# @return [Google::Apis::ComputeBeta::InstanceFlexibilityPolicy]
7174+
attr_accessor :instance_flexibility_policy
7175+
71717176
# The instance properties defining the VM instances to be created. Required
71727177
# if sourceInstanceTemplate is not provided.
71737178
# Corresponds to the JSON property `instanceProperties`
@@ -7238,6 +7243,7 @@ def initialize(**args)
72387243
# Update properties of this object
72397244
def update!(**args)
72407245
@count = args[:count] if args.key?(:count)
7246+
@instance_flexibility_policy = args[:instance_flexibility_policy] if args.key?(:instance_flexibility_policy)
72417247
@instance_properties = args[:instance_properties] if args.key?(:instance_properties)
72427248
@location_policy = args[:location_policy] if args.key?(:location_policy)
72437249
@min_count = args[:min_count] if args.key?(:min_count)
@@ -21617,6 +21623,76 @@ def update!(**args)
2161721623
end
2161821624
end
2161921625

21626+
# A flexible specification of machine types for instances to create.
21627+
class InstanceFlexibilityPolicy
21628+
include Google::Apis::Core::Hashable
21629+
21630+
# Specification of alternative, flexible instance subsets.
21631+
# One of them will be selected to create the instances
21632+
# based on various criteria, like:
21633+
# - ranks,
21634+
# - location policy,
21635+
# - current capacity,
21636+
# - available reservations (you can specify affinity in
21637+
# InstanceProperties),
21638+
# - SWAN/GOOSE limitations.
21639+
# Key is an arbitrary, unique RFC1035 string that identifies the instance
21640+
# selection.
21641+
# Corresponds to the JSON property `instanceSelections`
21642+
# @return [Hash<String,Google::Apis::ComputeBeta::InstanceFlexibilityPolicyInstanceSelection>]
21643+
attr_accessor :instance_selections
21644+
21645+
def initialize(**args)
21646+
update!(**args)
21647+
end
21648+
21649+
# Update properties of this object
21650+
def update!(**args)
21651+
@instance_selections = args[:instance_selections] if args.key?(:instance_selections)
21652+
end
21653+
end
21654+
21655+
# Specification of machine type to use. Every position inside this message
21656+
# is an alternative.
21657+
# The count specified in the shape flexibility must not exceed the number
21658+
# of entries in per_instance_properties or the capacity of the
21659+
# name_pattern, if used.
21660+
class InstanceFlexibilityPolicyInstanceSelection
21661+
include Google::Apis::Core::Hashable
21662+
21663+
# Disks to be attached to the instances created from in this selection.
21664+
# They override the disks specified in the instance properties.
21665+
# Corresponds to the JSON property `disks`
21666+
# @return [Array<Google::Apis::ComputeBeta::AttachedDisk>]
21667+
attr_accessor :disks
21668+
21669+
# Alternative machine types to use for instances that are created from
21670+
# these properties. This field only accepts a machine type names, for
21671+
# example `n2-standard-4` and not URLs or partial URLs.
21672+
# Corresponds to the JSON property `machineTypes`
21673+
# @return [Array<String>]
21674+
attr_accessor :machine_types
21675+
21676+
# Rank when prioritizing the shape flexibilities.
21677+
# The instance selections with rank are considered
21678+
# first, in the ascending order of the rank.
21679+
# If not set, defaults to 0.
21680+
# Corresponds to the JSON property `rank`
21681+
# @return [Fixnum]
21682+
attr_accessor :rank
21683+
21684+
def initialize(**args)
21685+
update!(**args)
21686+
end
21687+
21688+
# Update properties of this object
21689+
def update!(**args)
21690+
@disks = args[:disks] if args.key?(:disks)
21691+
@machine_types = args[:machine_types] if args.key?(:machine_types)
21692+
@rank = args[:rank] if args.key?(:rank)
21693+
end
21694+
end
21695+
2162021696
# Represents an Instance Group resource.
2162121697
# Instance Groups can be used to configure a target forload
2162221698
# balancing.
@@ -28041,6 +28117,7 @@ class InterconnectAttachment
2804128117
# - BPS_20G: 20 Gbit/s
2804228118
# - BPS_50G: 50 Gbit/s
2804328119
# - BPS_100G: 100 Gbit/s
28120+
# - BPS_400G: 400 Gbit/s
2804428121
# Corresponds to the JSON property `bandwidth`
2804528122
# @return [String]
2804628123
attr_accessor :bandwidth

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.130.0"
19+
GEM_VERSION = "0.131.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 = "20251230"
25+
REVISION = "20260106"
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
@@ -2380,6 +2380,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
23802380
include Google::Apis::Core::JsonObjectSupport
23812381
end
23822382

2383+
class InstanceFlexibilityPolicy
2384+
class Representation < Google::Apis::Core::JsonRepresentation; end
2385+
2386+
include Google::Apis::Core::JsonObjectSupport
2387+
end
2388+
2389+
class InstanceFlexibilityPolicyInstanceSelection
2390+
class Representation < Google::Apis::Core::JsonRepresentation; end
2391+
2392+
include Google::Apis::Core::JsonObjectSupport
2393+
end
2394+
23832395
class InstanceGroup
23842396
class Representation < Google::Apis::Core::JsonRepresentation; end
23852397

@@ -10326,6 +10338,8 @@ class BulkInsertInstanceResource
1032610338
# @private
1032710339
class Representation < Google::Apis::Core::JsonRepresentation
1032810340
property :count, :numeric_string => true, as: 'count'
10341+
property :instance_flexibility_policy, as: 'instanceFlexibilityPolicy', class: Google::Apis::ComputeBeta::InstanceFlexibilityPolicy, decorator: Google::Apis::ComputeBeta::InstanceFlexibilityPolicy::Representation
10342+
1032910343
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::InstanceProperties, decorator: Google::Apis::ComputeBeta::InstanceProperties::Representation
1033010344

1033110345
property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeBeta::LocationPolicy, decorator: Google::Apis::ComputeBeta::LocationPolicy::Representation
@@ -13429,6 +13443,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
1342913443
end
1343013444
end
1343113445

13446+
class InstanceFlexibilityPolicy
13447+
# @private
13448+
class Representation < Google::Apis::Core::JsonRepresentation
13449+
hash :instance_selections, as: 'instanceSelections', class: Google::Apis::ComputeBeta::InstanceFlexibilityPolicyInstanceSelection, decorator: Google::Apis::ComputeBeta::InstanceFlexibilityPolicyInstanceSelection::Representation
13450+
13451+
end
13452+
end
13453+
13454+
class InstanceFlexibilityPolicyInstanceSelection
13455+
# @private
13456+
class Representation < Google::Apis::Core::JsonRepresentation
13457+
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
13458+
13459+
collection :machine_types, as: 'machineTypes'
13460+
property :rank, :numeric_string => true, as: 'rank'
13461+
end
13462+
end
13463+
1343213464
class InstanceGroup
1343313465
# @private
1343413466
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)