Skip to content

Commit

Permalink
feat: Automated regeneration of connectors v1 client (#19564)
Browse files Browse the repository at this point in the history
Auto-created at 2024-06-09 09:43:24 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jun 9, 2024
1 parent 2898b59 commit 1abe3c1
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 2 deletions.
11 changes: 11 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108053,6 +108053,7 @@
"/connectors:v1/ConfigVariableTemplate/isAdvanced": is_advanced
"/connectors:v1/ConfigVariableTemplate/key": key
"/connectors:v1/ConfigVariableTemplate/locationType": location_type
"/connectors:v1/ConfigVariableTemplate/multipleSelectConfig": multiple_select_config
"/connectors:v1/ConfigVariableTemplate/required": required
"/connectors:v1/ConfigVariableTemplate/requiredCondition": required_condition
"/connectors:v1/ConfigVariableTemplate/roleGrant": role_grant
Expand Down Expand Up @@ -108567,6 +108568,16 @@
"/connectors:v1/ManagedZone/targetProject": target_project
"/connectors:v1/ManagedZone/targetVpc": target_vpc
"/connectors:v1/ManagedZone/updateTime": update_time
"/connectors:v1/MultipleSelectConfig": multiple_select_config
"/connectors:v1/MultipleSelectConfig/allowCustomValues": allow_custom_values
"/connectors:v1/MultipleSelectConfig/multipleSelectOptions": multiple_select_options
"/connectors:v1/MultipleSelectConfig/multipleSelectOptions/multiple_select_option": multiple_select_option
"/connectors:v1/MultipleSelectConfig/valueSeparator": value_separator
"/connectors:v1/MultipleSelectOption": multiple_select_option
"/connectors:v1/MultipleSelectOption/description": description
"/connectors:v1/MultipleSelectOption/displayName": display_name
"/connectors:v1/MultipleSelectOption/key": key
"/connectors:v1/MultipleSelectOption/preselected": preselected
"/connectors:v1/NetworkConfig": network_config
"/connectors:v1/NetworkConfig/egressIps": egress_ips
"/connectors:v1/NetworkConfig/egressIps/egress_ip": egress_ip
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-connectors_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-connectors_v1

### v0.60.0 (2024-06-09)

* Regenerated from discovery document revision 20240606

### v0.59.0 (2024-06-02)

* Regenerated from discovery document revision 20240529
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ class ConfigVariableTemplate
# @return [String]
attr_accessor :location_type

# MultipleSelectConfig represents the multiple options for a config variable.
# Corresponds to the JSON property `multipleSelectConfig`
# @return [Google::Apis::ConnectorsV1::MultipleSelectConfig]
attr_accessor :multiple_select_config

# Flag represents that this `ConfigVariable` must be provided for a connection.
# Corresponds to the JSON property `required`
# @return [Boolean]
Expand Down Expand Up @@ -525,6 +530,7 @@ def update!(**args)
@is_advanced = args[:is_advanced] if args.key?(:is_advanced)
@key = args[:key] if args.key?(:key)
@location_type = args[:location_type] if args.key?(:location_type)
@multiple_select_config = args[:multiple_select_config] if args.key?(:multiple_select_config)
@required = args[:required] if args.key?(:required)
@required_condition = args[:required_condition] if args.key?(:required_condition)
@role_grant = args[:role_grant] if args.key?(:role_grant)
Expand Down Expand Up @@ -3814,6 +3820,76 @@ def update!(**args)
end
end

# MultipleSelectConfig represents the multiple options for a config variable.
class MultipleSelectConfig
include Google::Apis::Core::Hashable

# Optional. Allow custom values.
# Corresponds to the JSON property `allowCustomValues`
# @return [Boolean]
attr_accessor :allow_custom_values
alias_method :allow_custom_values?, :allow_custom_values

# Required. Multiple select options.
# Corresponds to the JSON property `multipleSelectOptions`
# @return [Array<Google::Apis::ConnectorsV1::MultipleSelectOption>]
attr_accessor :multiple_select_options

# Required. Value separator.
# Corresponds to the JSON property `valueSeparator`
# @return [String]
attr_accessor :value_separator

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@allow_custom_values = args[:allow_custom_values] if args.key?(:allow_custom_values)
@multiple_select_options = args[:multiple_select_options] if args.key?(:multiple_select_options)
@value_separator = args[:value_separator] if args.key?(:value_separator)
end
end

# MultiplSelecteOption represents the single option for a config variable.
class MultipleSelectOption
include Google::Apis::Core::Hashable

# Optional. Value of the option.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# Required. Display name of the option.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name

# Required. Key of the option.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key

# Optional. Indicates if the option is preselected.
# Corresponds to the JSON property `preselected`
# @return [Boolean]
attr_accessor :preselected
alias_method :preselected?, :preselected

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@key = args[:key] if args.key?(:key)
@preselected = args[:preselected] if args.key?(:preselected)
end
end

# Regional Network Config.
class NetworkConfig
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ConnectorsV1
# Version of the google-apis-connectors_v1 gem
GEM_VERSION = "0.59.0"
GEM_VERSION = "0.60.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 = "20240529"
REVISION = "20240606"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class MultipleSelectConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class MultipleSelectOption
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class NetworkConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -917,6 +929,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :is_advanced, as: 'isAdvanced'
property :key, as: 'key'
property :location_type, as: 'locationType'
property :multiple_select_config, as: 'multipleSelectConfig', class: Google::Apis::ConnectorsV1::MultipleSelectConfig, decorator: Google::Apis::ConnectorsV1::MultipleSelectConfig::Representation

property :required, as: 'required'
property :required_condition, as: 'requiredCondition', class: Google::Apis::ConnectorsV1::LogicalExpression, decorator: Google::Apis::ConnectorsV1::LogicalExpression::Representation

Expand Down Expand Up @@ -1803,6 +1817,26 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class MultipleSelectConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_custom_values, as: 'allowCustomValues'
collection :multiple_select_options, as: 'multipleSelectOptions', class: Google::Apis::ConnectorsV1::MultipleSelectOption, decorator: Google::Apis::ConnectorsV1::MultipleSelectOption::Representation

property :value_separator, as: 'valueSeparator'
end
end

class MultipleSelectOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :key, as: 'key'
property :preselected, as: 'preselected'
end
end

class NetworkConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 1abe3c1

Please sign in to comment.