Skip to content

Commit b5b540d

Browse files
feat: Automated regeneration of workstations v1beta client (googleapis#21374)
Auto-created at 2025-01-12 10:31:40 +0000 using the toys pull request generator.
1 parent 8be9e9c commit b5b540d

File tree

5 files changed

+123
-10
lines changed

5 files changed

+123
-10
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353931,6 +353931,10 @@
353931353931
"/workstations:v1beta/GceInstance/tags/tag": tag
353932353932
"/workstations:v1beta/GceInstance/vmTags": vm_tags
353933353933
"/workstations:v1beta/GceInstance/vmTags/vm_tag": vm_tag
353934+
"/workstations:v1beta/GceInstanceHost": gce_instance_host
353935+
"/workstations:v1beta/GceInstanceHost/id": id
353936+
"/workstations:v1beta/GceInstanceHost/name": name
353937+
"/workstations:v1beta/GceInstanceHost/zone": zone
353934353938
"/workstations:v1beta/GcePersistentDisk": gce_persistent_disk
353935353939
"/workstations:v1beta/GcePersistentDisk/diskType": disk_type
353936353940
"/workstations:v1beta/GcePersistentDisk/readOnly": read_only
@@ -353958,6 +353962,7 @@
353958353962
"/workstations:v1beta/Host/gceInstance": gce_instance
353959353963
"/workstations:v1beta/HttpOptions": http_options
353960353964
"/workstations:v1beta/HttpOptions/allowedUnauthenticatedCorsPreflightRequests": allowed_unauthenticated_cors_preflight_requests
353965+
"/workstations:v1beta/HttpOptions/disableLocalhostReplacement": disable_localhost_replacement
353961353966
"/workstations:v1beta/ListOperationsResponse": list_operations_response
353962353967
"/workstations:v1beta/ListOperationsResponse/nextPageToken": next_page_token
353963353968
"/workstations:v1beta/ListOperationsResponse/operations": operations
@@ -354032,6 +354037,8 @@
354032354037
"/workstations:v1beta/ReadinessCheck": readiness_check
354033354038
"/workstations:v1beta/ReadinessCheck/path": path
354034354039
"/workstations:v1beta/ReadinessCheck/port": port
354040+
"/workstations:v1beta/RuntimeHost": runtime_host
354041+
"/workstations:v1beta/RuntimeHost/gceInstanceHost": gce_instance_host
354035354042
"/workstations:v1beta/SetIamPolicyRequest": set_iam_policy_request
354036354043
"/workstations:v1beta/SetIamPolicyRequest/policy": policy
354037354044
"/workstations:v1beta/SetIamPolicyRequest/updateMask": update_mask
@@ -354071,6 +354078,7 @@
354071354078
"/workstations:v1beta/Workstation/labels/label": label
354072354079
"/workstations:v1beta/Workstation/name": name
354073354080
"/workstations:v1beta/Workstation/reconciling": reconciling
354081+
"/workstations:v1beta/Workstation/runtimeHost": runtime_host
354074354082
"/workstations:v1beta/Workstation/satisfiesPzi": satisfies_pzi
354075354083
"/workstations:v1beta/Workstation/satisfiesPzs": satisfies_pzs
354076354084
"/workstations:v1beta/Workstation/sourceWorkstation": source_workstation

generated/google-apis-workstations_v1beta/CHANGELOG.md

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

3+
### v0.35.0 (2025-01-12)
4+
5+
* Regenerated from discovery document revision 20250101
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.34.0 (2024-12-08)
49

510
* Regenerated from discovery document revision 20241202

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

Lines changed: 75 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ def update!(**args)
221221
end
222222

223223
# A boost configuration is a set of resources that a workstation can use to
224-
# increase its performance. If a boost configuration is specified, when starting
225-
# a workstation, users can choose to use a VM provisioned under the boost config
226-
# by passing the boost config id in the start request. If no boost config id is
227-
# provided in the start request, the system will choose a VM from the pool
228-
# provisioned under the default config.
224+
# increase its performance. If you specify a boost configuration, upon startup,
225+
# workstation users can choose to use a VM provisioned under the boost config by
226+
# passing the boost config ID in the start request. If the workstation user does
227+
# not provide a boost config ID in the start request, the system will choose a
228+
# VM from the pool provisioned under the default config.
229229
class BoostConfig
230230
include Google::Apis::Core::Hashable
231231

@@ -264,7 +264,7 @@ class BoostConfig
264264
attr_accessor :enable_nested_virtualization
265265
alias_method :enable_nested_virtualization?, :enable_nested_virtualization
266266

267-
# Required. The id to be used for the boost configuration.
267+
# Required. The ID to be used for the boost configuration.
268268
# Corresponds to the JSON property `id`
269269
# @return [String]
270270
attr_accessor :id
@@ -684,6 +684,37 @@ def update!(**args)
684684
end
685685
end
686686

687+
# The Compute Engine instance host.
688+
class GceInstanceHost
689+
include Google::Apis::Core::Hashable
690+
691+
# Optional. Output only. The ID of the Compute Engine instance.
692+
# Corresponds to the JSON property `id`
693+
# @return [String]
694+
attr_accessor :id
695+
696+
# Optional. Output only. The name of the Compute Engine instance.
697+
# Corresponds to the JSON property `name`
698+
# @return [String]
699+
attr_accessor :name
700+
701+
# Optional. Output only. The zone of the Compute Engine instance.
702+
# Corresponds to the JSON property `zone`
703+
# @return [String]
704+
attr_accessor :zone
705+
706+
def initialize(**args)
707+
update!(**args)
708+
end
709+
710+
# Update properties of this object
711+
def update!(**args)
712+
@id = args[:id] if args.key?(:id)
713+
@name = args[:name] if args.key?(:name)
714+
@zone = args[:zone] if args.key?(:zone)
715+
end
716+
end
717+
687718
# An EphemeralDirectory is backed by a Compute Engine persistent disk.
688719
class GcePersistentDisk
689720
include Google::Apis::Core::Hashable
@@ -937,13 +968,24 @@ class HttpOptions
937968
attr_accessor :allowed_unauthenticated_cors_preflight_requests
938969
alias_method :allowed_unauthenticated_cors_preflight_requests?, :allowed_unauthenticated_cors_preflight_requests
939970

971+
# Optional. By default, the workstations service replaces references to
972+
# localhost, 127.0.0.1, and 0.0.0.0 with the workstation's hostname in http
973+
# responses from the workstation so that applications under development run
974+
# properly on the workstation. This may intefere with some applications, and so
975+
# this option allows that behavior to be disabled.
976+
# Corresponds to the JSON property `disableLocalhostReplacement`
977+
# @return [Boolean]
978+
attr_accessor :disable_localhost_replacement
979+
alias_method :disable_localhost_replacement?, :disable_localhost_replacement
980+
940981
def initialize(**args)
941982
update!(**args)
942983
end
943984

944985
# Update properties of this object
945986
def update!(**args)
946987
@allowed_unauthenticated_cors_preflight_requests = args[:allowed_unauthenticated_cors_preflight_requests] if args.key?(:allowed_unauthenticated_cors_preflight_requests)
988+
@disable_localhost_replacement = args[:disable_localhost_replacement] if args.key?(:disable_localhost_replacement)
947989
end
948990
end
949991

@@ -1251,7 +1293,8 @@ def update!(**args)
12511293
end
12521294
end
12531295

1254-
# A directory to persist across workstation sessions.
1296+
# A directory to persist across workstation sessions. Updates to this field will
1297+
# not update existing workstations and will only take effect on new workstations.
12551298
class PersistentDirectory
12561299
include Google::Apis::Core::Hashable
12571300

@@ -1478,6 +1521,25 @@ def update!(**args)
14781521
end
14791522
end
14801523

1524+
# Runtime host for the workstation.
1525+
class RuntimeHost
1526+
include Google::Apis::Core::Hashable
1527+
1528+
# The Compute Engine instance host.
1529+
# Corresponds to the JSON property `gceInstanceHost`
1530+
# @return [Google::Apis::WorkstationsV1beta::GceInstanceHost]
1531+
attr_accessor :gce_instance_host
1532+
1533+
def initialize(**args)
1534+
update!(**args)
1535+
end
1536+
1537+
# Update properties of this object
1538+
def update!(**args)
1539+
@gce_instance_host = args[:gce_instance_host] if args.key?(:gce_instance_host)
1540+
end
1541+
end
1542+
14811543
# Request message for `SetIamPolicy` method.
14821544
class SetIamPolicyRequest
14831545
include Google::Apis::Core::Hashable
@@ -1750,6 +1812,11 @@ class Workstation
17501812
attr_accessor :reconciling
17511813
alias_method :reconciling?, :reconciling
17521814

1815+
# Runtime host for the workstation.
1816+
# Corresponds to the JSON property `runtimeHost`
1817+
# @return [Google::Apis::WorkstationsV1beta::RuntimeHost]
1818+
attr_accessor :runtime_host
1819+
17531820
# Output only. Reserved for future use.
17541821
# Corresponds to the JSON property `satisfiesPzi`
17551822
# @return [Boolean]
@@ -1807,6 +1874,7 @@ def update!(**args)
18071874
@labels = args[:labels] if args.key?(:labels)
18081875
@name = args[:name] if args.key?(:name)
18091876
@reconciling = args[:reconciling] if args.key?(:reconciling)
1877+
@runtime_host = args[:runtime_host] if args.key?(:runtime_host)
18101878
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
18111879
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
18121880
@source_workstation = args[:source_workstation] if args.key?(:source_workstation)

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

Lines changed: 3 additions & 3 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.34.0"
19+
GEM_VERSION = "0.35.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
100100
include Google::Apis::Core::JsonObjectSupport
101101
end
102102

103+
class GceInstanceHost
104+
class Representation < Google::Apis::Core::JsonRepresentation; end
105+
106+
include Google::Apis::Core::JsonObjectSupport
107+
end
108+
103109
class GcePersistentDisk
104110
class Representation < Google::Apis::Core::JsonRepresentation; end
105111

@@ -226,6 +232,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
226232
include Google::Apis::Core::JsonObjectSupport
227233
end
228234

235+
class RuntimeHost
236+
class Representation < Google::Apis::Core::JsonRepresentation; end
237+
238+
include Google::Apis::Core::JsonObjectSupport
239+
end
240+
229241
class SetIamPolicyRequest
230242
class Representation < Google::Apis::Core::JsonRepresentation; end
231243

@@ -418,6 +430,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
418430
end
419431
end
420432

433+
class GceInstanceHost
434+
# @private
435+
class Representation < Google::Apis::Core::JsonRepresentation
436+
property :id, as: 'id'
437+
property :name, as: 'name'
438+
property :zone, as: 'zone'
439+
end
440+
end
441+
421442
class GcePersistentDisk
422443
# @private
423444
class Representation < Google::Apis::Core::JsonRepresentation
@@ -483,6 +504,7 @@ class HttpOptions
483504
# @private
484505
class Representation < Google::Apis::Core::JsonRepresentation
485506
property :allowed_unauthenticated_cors_preflight_requests, as: 'allowedUnauthenticatedCorsPreflightRequests'
507+
property :disable_localhost_replacement, as: 'disableLocalhostReplacement'
486508
end
487509
end
488510

@@ -617,6 +639,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
617639
end
618640
end
619641

642+
class RuntimeHost
643+
# @private
644+
class Representation < Google::Apis::Core::JsonRepresentation
645+
property :gce_instance_host, as: 'gceInstanceHost', class: Google::Apis::WorkstationsV1beta::GceInstanceHost, decorator: Google::Apis::WorkstationsV1beta::GceInstanceHost::Representation
646+
647+
end
648+
end
649+
620650
class SetIamPolicyRequest
621651
# @private
622652
class Representation < Google::Apis::Core::JsonRepresentation
@@ -682,6 +712,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
682712
hash :labels, as: 'labels'
683713
property :name, as: 'name'
684714
property :reconciling, as: 'reconciling'
715+
property :runtime_host, as: 'runtimeHost', class: Google::Apis::WorkstationsV1beta::RuntimeHost, decorator: Google::Apis::WorkstationsV1beta::RuntimeHost::Representation
716+
685717
property :satisfies_pzi, as: 'satisfiesPzi'
686718
property :satisfies_pzs, as: 'satisfiesPzs'
687719
property :source_workstation, as: 'sourceWorkstation'

0 commit comments

Comments
 (0)