Skip to content

Commit

Permalink
feat: Automated regeneration of workstations v1 client (#19771)
Browse files Browse the repository at this point in the history
Auto-created at 2024-06-26 22:40:31 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jun 26, 2024
1 parent 9778ced commit 5f58df4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-workstations_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,14 @@ class GceInstance
# @return [Array<String>]
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<String,String>]
attr_accessor :vm_tags

def initialize(**args)
update!(**args)
end
Expand All @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f58df4

Please sign in to comment.