From 5f58df47d9600463b55d7f02be649d28a8c1f5d3 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:50:24 -0700 Subject: [PATCH] feat: Automated regeneration of workstations v1 client (#19771) Auto-created at 2024-06-26 22:40:31 +0000 using the toys pull request generator. --- api_names_out.yaml | 3 +++ .../google-apis-workstations_v1/CHANGELOG.md | 4 ++++ .../google/apis/workstations_v1/classes.rb | 19 +++++++++++++++++++ .../apis/workstations_v1/gem_version.rb | 4 ++-- .../apis/workstations_v1/representations.rb | 2 ++ 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 585006a5e70..8e87e4fa78c 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -328168,6 +328168,8 @@ "/workstations:v1/GceInstance/shieldedInstanceConfig": shielded_instance_config "/workstations:v1/GceInstance/tags": tags "/workstations:v1/GceInstance/tags/tag": tag +"/workstations:v1/GceInstance/vmTags": vm_tags +"/workstations:v1/GceInstance/vmTags/vm_tag": vm_tag "/workstations:v1/GcePersistentDisk": gce_persistent_disk "/workstations:v1/GcePersistentDisk/diskType": disk_type "/workstations:v1/GcePersistentDisk/readOnly": read_only @@ -328185,6 +328187,7 @@ "/workstations:v1/GceShieldedInstanceConfig/enableVtpm": enable_vtpm "/workstations:v1/GenerateAccessTokenRequest": generate_access_token_request "/workstations:v1/GenerateAccessTokenRequest/expireTime": expire_time +"/workstations:v1/GenerateAccessTokenRequest/port": port "/workstations:v1/GenerateAccessTokenRequest/ttl": ttl "/workstations:v1/GenerateAccessTokenResponse": generate_access_token_response "/workstations:v1/GenerateAccessTokenResponse/accessToken": access_token diff --git a/generated/google-apis-workstations_v1/CHANGELOG.md b/generated/google-apis-workstations_v1/CHANGELOG.md index b15aacba60e..c3102269d77 100644 --- a/generated/google-apis-workstations_v1/CHANGELOG.md +++ b/generated/google-apis-workstations_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-workstations_v1 +### v0.13.0 (2024-06-26) + +* Regenerated from discovery document revision 20240619 + ### v0.12.0 (2024-06-02) * Regenerated from discovery document revision 20240528 diff --git a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/classes.rb b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/classes.rb index 5e734034098..6d313c54093 100644 --- a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/classes.rb +++ b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/classes.rb @@ -571,6 +571,14 @@ class GceInstance # @return [Array] attr_accessor :tags + # Optional. Resource manager tags to be bound to this instance. Tag keys and + # values have the same definition as https://cloud.google.com/resource-manager/ + # docs/tags/tags-overview Keys must be in the format `tagKeys/`tag_key_id``, and + # values are in the format `tagValues/456`. + # Corresponds to the JSON property `vmTags` + # @return [Hash] + attr_accessor :vm_tags + def initialize(**args) update!(**args) end @@ -590,6 +598,7 @@ def update!(**args) @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @tags = args[:tags] if args.key?(:tags) + @vm_tags = args[:vm_tags] if args.key?(:vm_tags) end end @@ -740,6 +749,15 @@ class GenerateAccessTokenRequest # @return [String] attr_accessor :expire_time + # Optional. Port for which the access token should be generated. If specified, + # the generated access token grants access only to the specified port of the + # workstation. If specified, values must be within the range [1 - 65535]. If not + # specified, the generated access token grants access to all ports of the + # workstation. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + # Desired lifetime duration of the access token. This value must be at most 24 # hours. If a value is not specified, the token's lifetime will be set to a # default value of 1 hour. @@ -754,6 +772,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) + @port = args[:port] if args.key?(:port) @ttl = args[:ttl] if args.key?(:ttl) end end diff --git a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/gem_version.rb b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/gem_version.rb index fce203f342c..3b57b00e5b5 100644 --- a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/gem_version.rb +++ b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module WorkstationsV1 # Version of the google-apis-workstations_v1 gem - GEM_VERSION = "0.12.0" + GEM_VERSION = "0.13.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.0" # Revision of the discovery document this client was generated from - REVISION = "20240528" + REVISION = "20240619" end end end diff --git a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/representations.rb b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/representations.rb index 9d822e0e815..8d472fc6d80 100644 --- a/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/representations.rb +++ b/generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/representations.rb @@ -387,6 +387,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::WorkstationsV1::GceShieldedInstanceConfig, decorator: Google::Apis::WorkstationsV1::GceShieldedInstanceConfig::Representation collection :tags, as: 'tags' + hash :vm_tags, as: 'vmTags' end end @@ -424,6 +425,7 @@ class GenerateAccessTokenRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :expire_time, as: 'expireTime' + property :port, as: 'port' property :ttl, as: 'ttl' end end