diff --git a/lib/algolia/models/ingestion/docker_image_type.rb b/lib/algolia/models/ingestion/docker_image_type.rb deleted file mode 100644 index 358b60c3..00000000 --- a/lib/algolia/models/ingestion/docker_image_type.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -require "date" -require "time" - -module Algolia - module Ingestion - class DockerImageType - CUSTOM = "custom".freeze - AIRBYTE = "airbyte".freeze - - def self.all_vars - @all_vars ||= [CUSTOM, AIRBYTE].freeze - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - return value if DockerImageType.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #DockerImageType" - end - end - end -end diff --git a/lib/algolia/models/ingestion/docker_registry.rb b/lib/algolia/models/ingestion/docker_registry.rb deleted file mode 100644 index 642a77bb..00000000 --- a/lib/algolia/models/ingestion/docker_registry.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -require "date" -require "time" - -module Algolia - module Ingestion - class DockerRegistry - DOCKERHUB = "dockerhub".freeze - GHCR = "ghcr".freeze - - def self.all_vars - @all_vars ||= [DOCKERHUB, GHCR].freeze - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - return value if DockerRegistry.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #DockerRegistry" - end - end - end -end diff --git a/lib/algolia/models/ingestion/source_docker.rb b/lib/algolia/models/ingestion/source_docker.rb index 4a5d23ed..397759bf 100644 --- a/lib/algolia/models/ingestion/source_docker.rb +++ b/lib/algolia/models/ingestion/source_docker.rb @@ -6,26 +6,16 @@ module Algolia module Ingestion class SourceDocker - attr_accessor :image_type - - attr_accessor :registry - - # Docker image name. + # Shortname of the image, as returned by the referential. attr_accessor :image - # Docker image version. - attr_accessor :version - # Configuration of the spec. attr_accessor :configuration # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :image_type => :imageType, - :registry => :registry, :image => :image, - :version => :version, :configuration => :configuration } end @@ -33,9 +23,7 @@ def self.attribute_map # Returns the keys that uniquely identify this oneOf variant when present def self.discriminator_attributes [ - :registry, :image, - :imageType, :configuration ] end @@ -43,10 +31,7 @@ def self.discriminator_attributes # Attribute type mapping. def self.types_mapping { - :image_type => :"DockerImageType", - :registry => :"DockerRegistry", :image => :"String", - :version => :"String", :configuration => :"Object" } end @@ -81,28 +66,12 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:image_type) - self.image_type = attributes[:image_type] - else - self.image_type = nil - end - - if attributes.key?(:registry) - self.registry = attributes[:registry] - else - self.registry = nil - end - if attributes.key?(:image) self.image = attributes[:image] else self.image = nil end - if attributes.key?(:version) - self.version = attributes[:version] - end - if attributes.key?(:configuration) self.configuration = attributes[:configuration] else @@ -115,10 +84,7 @@ def initialize(attributes = {}) def ==(other) return true if self.equal?(other) self.class == other.class && - image_type == other.image_type && - registry == other.registry && image == other.image && - version == other.version && configuration == other.configuration end @@ -131,7 +97,7 @@ def eql?(other) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [image_type, registry, image, version, configuration].hash + [image, configuration].hash end # Builds the object from hash diff --git a/lib/algolia/models/ingestion/source_update_docker.rb b/lib/algolia/models/ingestion/source_update_docker.rb index 9d20f191..d783bd2f 100644 --- a/lib/algolia/models/ingestion/source_update_docker.rb +++ b/lib/algolia/models/ingestion/source_update_docker.rb @@ -6,23 +6,12 @@ module Algolia module Ingestion class SourceUpdateDocker - attr_accessor :registry - - # Docker image name. - attr_accessor :image - - # Docker image version. - attr_accessor :version - # Configuration of the spec. attr_accessor :configuration # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :registry => :registry, - :image => :image, - :version => :version, :configuration => :configuration } end @@ -37,9 +26,6 @@ def self.discriminator_attributes # Attribute type mapping. def self.types_mapping { - :registry => :"DockerRegistry", - :image => :"String", - :version => :"String", :configuration => :"Object" } end @@ -74,18 +60,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:registry) - self.registry = attributes[:registry] - end - - if attributes.key?(:image) - self.image = attributes[:image] - end - - if attributes.key?(:version) - self.version = attributes[:version] - end - if attributes.key?(:configuration) self.configuration = attributes[:configuration] else @@ -98,9 +72,6 @@ def initialize(attributes = {}) def ==(other) return true if self.equal?(other) self.class == other.class && - registry == other.registry && - image == other.image && - version == other.version && configuration == other.configuration end @@ -113,7 +84,7 @@ def eql?(other) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [registry, image, version, configuration].hash + [configuration].hash end # Builds the object from hash