Skip to content

Commit 7b7ace5

Browse files
feat: Automated regeneration of workstations v1beta client (googleapis#23632)
Auto-created at 2025-07-06 10:34:26 +0000 using the toys pull request generator.
1 parent 2705332 commit 7b7ace5

File tree

5 files changed

+81
-2
lines changed

5 files changed

+81
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375492,6 +375492,7 @@
375492375492
"/workstations:v1beta/BoostConfig/id": id
375493375493
"/workstations:v1beta/BoostConfig/machineType": machine_type
375494375494
"/workstations:v1beta/BoostConfig/poolSize": pool_size
375495+
"/workstations:v1beta/BoostConfig/reservationAffinity": reservation_affinity
375495375496
"/workstations:v1beta/CancelOperationRequest": cancel_operation_request
375496375497
"/workstations:v1beta/Container": container
375497375498
"/workstations:v1beta/Container/args": args
@@ -375534,6 +375535,7 @@
375534375535
"/workstations:v1beta/GceInstance/machineType": machine_type
375535375536
"/workstations:v1beta/GceInstance/poolSize": pool_size
375536375537
"/workstations:v1beta/GceInstance/pooledInstances": pooled_instances
375538+
"/workstations:v1beta/GceInstance/reservationAffinity": reservation_affinity
375537375539
"/workstations:v1beta/GceInstance/serviceAccount": service_account
375538375540
"/workstations:v1beta/GceInstance/serviceAccountScopes": service_account_scopes
375539375541
"/workstations:v1beta/GceInstance/serviceAccountScopes/service_account_scope": service_account_scope
@@ -375648,6 +375650,11 @@
375648375650
"/workstations:v1beta/ReadinessCheck": readiness_check
375649375651
"/workstations:v1beta/ReadinessCheck/path": path
375650375652
"/workstations:v1beta/ReadinessCheck/port": port
375653+
"/workstations:v1beta/ReservationAffinity": reservation_affinity
375654+
"/workstations:v1beta/ReservationAffinity/consumeReservationType": consume_reservation_type
375655+
"/workstations:v1beta/ReservationAffinity/key": key
375656+
"/workstations:v1beta/ReservationAffinity/values": values
375657+
"/workstations:v1beta/ReservationAffinity/values/value": value
375651375658
"/workstations:v1beta/RuntimeHost": runtime_host
375652375659
"/workstations:v1beta/RuntimeHost/gceInstanceHost": gce_instance_host
375653375660
"/workstations:v1beta/SetIamPolicyRequest": set_iam_policy_request

generated/google-apis-workstations_v1beta/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-workstations_v1beta
22

3+
### v0.41.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250625
6+
37
### v0.40.0 (2025-06-15)
48

59
* Regenerated from discovery document revision 20250604

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ class BoostConfig
284284
# @return [Fixnum]
285285
attr_accessor :pool_size
286286

287+
# ReservationAffinity is the configuration of the desired reservation from which
288+
# instances can consume resources.
289+
# Corresponds to the JSON property `reservationAffinity`
290+
# @return [Google::Apis::WorkstationsV1beta::ReservationAffinity]
291+
attr_accessor :reservation_affinity
292+
287293
def initialize(**args)
288294
update!(**args)
289295
end
@@ -296,6 +302,7 @@ def update!(**args)
296302
@id = args[:id] if args.key?(:id)
297303
@machine_type = args[:machine_type] if args.key?(:machine_type)
298304
@pool_size = args[:pool_size] if args.key?(:pool_size)
305+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
299306
end
300307
end
301308

@@ -635,6 +642,12 @@ class GceInstance
635642
# @return [Fixnum]
636643
attr_accessor :pooled_instances
637644

645+
# ReservationAffinity is the configuration of the desired reservation from which
646+
# instances can consume resources.
647+
# Corresponds to the JSON property `reservationAffinity`
648+
# @return [Google::Apis::WorkstationsV1beta::ReservationAffinity]
649+
attr_accessor :reservation_affinity
650+
638651
# Optional. The email address of the service account for Cloud Workstations VMs
639652
# created with this configuration. When specified, be sure that the service
640653
# account has `logging.logEntries.create` and `monitoring.timeSeries.create`
@@ -697,6 +710,7 @@ def update!(**args)
697710
@machine_type = args[:machine_type] if args.key?(:machine_type)
698711
@pool_size = args[:pool_size] if args.key?(:pool_size)
699712
@pooled_instances = args[:pooled_instances] if args.key?(:pooled_instances)
713+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
700714
@service_account = args[:service_account] if args.key?(:service_account)
701715
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
702716
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@@ -1550,6 +1564,41 @@ def update!(**args)
15501564
end
15511565
end
15521566

1567+
# ReservationAffinity is the configuration of the desired reservation from which
1568+
# instances can consume resources.
1569+
class ReservationAffinity
1570+
include Google::Apis::Core::Hashable
1571+
1572+
# Optional. Corresponds to the type of reservation consumption.
1573+
# Corresponds to the JSON property `consumeReservationType`
1574+
# @return [String]
1575+
attr_accessor :consume_reservation_type
1576+
1577+
# Optional. Corresponds to the label key of reservation resource.
1578+
# Corresponds to the JSON property `key`
1579+
# @return [String]
1580+
attr_accessor :key
1581+
1582+
# Optional. Corresponds to the label values of reservation resources. Valid
1583+
# values are either a name to a reservation in the same project or "projects/`
1584+
# project`/reservations/`reservation`" to target a shared reservation in the
1585+
# same zone but in a different project.
1586+
# Corresponds to the JSON property `values`
1587+
# @return [Array<String>]
1588+
attr_accessor :values
1589+
1590+
def initialize(**args)
1591+
update!(**args)
1592+
end
1593+
1594+
# Update properties of this object
1595+
def update!(**args)
1596+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
1597+
@key = args[:key] if args.key?(:key)
1598+
@values = args[:values] if args.key?(:values)
1599+
end
1600+
end
1601+
15531602
# Runtime host for the workstation.
15541603
class RuntimeHost
15551604
include Google::Apis::Core::Hashable

generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/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 WorkstationsV1beta
1818
# Version of the google-apis-workstations_v1beta gem
19-
GEM_VERSION = "0.40.0"
19+
GEM_VERSION = "0.41.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 = "20250604"
25+
REVISION = "20250625"
2626
end
2727
end
2828
end

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
238238
include Google::Apis::Core::JsonObjectSupport
239239
end
240240

241+
class ReservationAffinity
242+
class Representation < Google::Apis::Core::JsonRepresentation; end
243+
244+
include Google::Apis::Core::JsonObjectSupport
245+
end
246+
241247
class RuntimeHost
242248
class Representation < Google::Apis::Core::JsonRepresentation; end
243249

@@ -349,6 +355,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
349355
property :id, as: 'id'
350356
property :machine_type, as: 'machineType'
351357
property :pool_size, as: 'poolSize'
358+
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::WorkstationsV1beta::ReservationAffinity, decorator: Google::Apis::WorkstationsV1beta::ReservationAffinity::Representation
359+
352360
end
353361
end
354362

@@ -434,6 +442,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
434442
property :machine_type, as: 'machineType'
435443
property :pool_size, as: 'poolSize'
436444
property :pooled_instances, as: 'pooledInstances'
445+
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::WorkstationsV1beta::ReservationAffinity, decorator: Google::Apis::WorkstationsV1beta::ReservationAffinity::Representation
446+
437447
property :service_account, as: 'serviceAccount'
438448
collection :service_account_scopes, as: 'serviceAccountScopes'
439449
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig, decorator: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig::Representation
@@ -652,6 +662,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
652662
end
653663
end
654664

665+
class ReservationAffinity
666+
# @private
667+
class Representation < Google::Apis::Core::JsonRepresentation
668+
property :consume_reservation_type, as: 'consumeReservationType'
669+
property :key, as: 'key'
670+
collection :values, as: 'values'
671+
end
672+
end
673+
655674
class RuntimeHost
656675
# @private
657676
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)