Class: OCI::GoldenGate::Models::DeploymentTypeSummary
- Inherits:
-
Object
- Object
- OCI::GoldenGate::Models::DeploymentTypeSummary
- Defined in:
- lib/oci/golden_gate/models/deployment_type_summary.rb
Overview
The meta-data specific on particular deployment type represented by deploymentType field.
Constant Summary collapse
- CATEGORY_ENUM =
[ CATEGORY_DATA_REPLICATION = 'DATA_REPLICATION'.freeze, CATEGORY_STREAM_ANALYTICS = 'STREAM_ANALYTICS'.freeze, CATEGORY_DATA_TRANSFORMS = 'DATA_TRANSFORMS'.freeze, CATEGORY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DEPLOYMENT_TYPE_ENUM =
[ DEPLOYMENT_TYPE_OGG = 'OGG'.freeze, DEPLOYMENT_TYPE_DATABASE_ORACLE = 'DATABASE_ORACLE'.freeze, DEPLOYMENT_TYPE_BIGDATA = 'BIGDATA'.freeze, DEPLOYMENT_TYPE_DATABASE_MICROSOFT_SQLSERVER = 'DATABASE_MICROSOFT_SQLSERVER'.freeze, DEPLOYMENT_TYPE_DATABASE_MYSQL = 'DATABASE_MYSQL'.freeze, DEPLOYMENT_TYPE_DATABASE_POSTGRESQL = 'DATABASE_POSTGRESQL'.freeze, DEPLOYMENT_TYPE_DATABASE_DB2_ZOS = 'DATABASE_DB2ZOS'.freeze, DEPLOYMENT_TYPE_DATA_TRANSFORMS = 'DATA_TRANSFORMS'.freeze, DEPLOYMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CONNECTION_TYPES_ENUM =
[ CONNECTION_TYPES_GOLDENGATE = 'GOLDENGATE'.freeze, CONNECTION_TYPES_KAFKA = 'KAFKA'.freeze, CONNECTION_TYPES_KAFKA_SCHEMA_REGISTRY = 'KAFKA_SCHEMA_REGISTRY'.freeze, CONNECTION_TYPES_MYSQL = 'MYSQL'.freeze, CONNECTION_TYPES_JAVA_MESSAGE_SERVICE = 'JAVA_MESSAGE_SERVICE'.freeze, CONNECTION_TYPES_MICROSOFT_SQLSERVER = 'MICROSOFT_SQLSERVER'.freeze, CONNECTION_TYPES_OCI_OBJECT_STORAGE = 'OCI_OBJECT_STORAGE'.freeze, CONNECTION_TYPES_ORACLE = 'ORACLE'.freeze, CONNECTION_TYPES_AZURE_DATA_LAKE_STORAGE = 'AZURE_DATA_LAKE_STORAGE'.freeze, CONNECTION_TYPES_POSTGRESQL = 'POSTGRESQL'.freeze, CONNECTION_TYPES_AZURE_SYNAPSE_ANALYTICS = 'AZURE_SYNAPSE_ANALYTICS'.freeze, CONNECTION_TYPES_SNOWFLAKE = 'SNOWFLAKE'.freeze, CONNECTION_TYPES_AMAZON_S3 = 'AMAZON_S3'.freeze, CONNECTION_TYPES_HDFS = 'HDFS'.freeze, CONNECTION_TYPES_ORACLE_NOSQL = 'ORACLE_NOSQL'.freeze, CONNECTION_TYPES_MONGODB = 'MONGODB'.freeze, CONNECTION_TYPES_AMAZON_KINESIS = 'AMAZON_KINESIS'.freeze, CONNECTION_TYPES_AMAZON_REDSHIFT = 'AMAZON_REDSHIFT'.freeze, CONNECTION_TYPES_REDIS = 'REDIS'.freeze, CONNECTION_TYPES_ELASTICSEARCH = 'ELASTICSEARCH'.freeze, CONNECTION_TYPES_GENERIC = 'GENERIC'.freeze, CONNECTION_TYPES_GOOGLE_CLOUD_STORAGE = 'GOOGLE_CLOUD_STORAGE'.freeze, CONNECTION_TYPES_GOOGLE_BIGQUERY = 'GOOGLE_BIGQUERY'.freeze, CONNECTION_TYPES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#category ⇒ String
[Required] The deployment category defines the broad separation of the deployment type into three categories.
-
#connection_types ⇒ Array<String>
An array of connectionTypes.
-
#default_username ⇒ String
The default admin username used by deployment.
-
#deployment_type ⇒ String
[Required] The type of deployment, which can be any one of the Allowed values.
-
#display_name ⇒ String
[Required] An object's Display Name.
-
#ogg_version ⇒ String
Version of OGG.
-
#source_technologies ⇒ Array<String>
List of the supported technologies generally.
-
#supported_technologies_url ⇒ String
The URL to the webpage listing the supported technologies.
-
#target_technologies ⇒ Array<String>
List of the supported technologies generally.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DeploymentTypeSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ DeploymentTypeSummary
Initializes the object
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 160 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.category = attributes[:'category'] if attributes[:'category'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.deployment_type = attributes[:'deploymentType'] if attributes[:'deploymentType'] raise 'You cannot provide both :deploymentType and :deployment_type' if attributes.key?(:'deploymentType') && attributes.key?(:'deployment_type') self.deployment_type = attributes[:'deployment_type'] if attributes[:'deployment_type'] self.connection_types = attributes[:'connectionTypes'] if attributes[:'connectionTypes'] raise 'You cannot provide both :connectionTypes and :connection_types' if attributes.key?(:'connectionTypes') && attributes.key?(:'connection_types') self.connection_types = attributes[:'connection_types'] if attributes[:'connection_types'] self.source_technologies = attributes[:'sourceTechnologies'] if attributes[:'sourceTechnologies'] raise 'You cannot provide both :sourceTechnologies and :source_technologies' if attributes.key?(:'sourceTechnologies') && attributes.key?(:'source_technologies') self.source_technologies = attributes[:'source_technologies'] if attributes[:'source_technologies'] self.target_technologies = attributes[:'targetTechnologies'] if attributes[:'targetTechnologies'] raise 'You cannot provide both :targetTechnologies and :target_technologies' if attributes.key?(:'targetTechnologies') && attributes.key?(:'target_technologies') self.target_technologies = attributes[:'target_technologies'] if attributes[:'target_technologies'] self.ogg_version = attributes[:'oggVersion'] if attributes[:'oggVersion'] raise 'You cannot provide both :oggVersion and :ogg_version' if attributes.key?(:'oggVersion') && attributes.key?(:'ogg_version') self.ogg_version = attributes[:'ogg_version'] if attributes[:'ogg_version'] self.supported_technologies_url = attributes[:'supportedTechnologiesUrl'] if attributes[:'supportedTechnologiesUrl'] raise 'You cannot provide both :supportedTechnologiesUrl and :supported_technologies_url' if attributes.key?(:'supportedTechnologiesUrl') && attributes.key?(:'supported_technologies_url') self.supported_technologies_url = attributes[:'supported_technologies_url'] if attributes[:'supported_technologies_url'] self.default_username = attributes[:'defaultUsername'] if attributes[:'defaultUsername'] raise 'You cannot provide both :defaultUsername and :default_username' if attributes.key?(:'defaultUsername') && attributes.key?(:'default_username') self.default_username = attributes[:'default_username'] if attributes[:'default_username'] end |
Instance Attribute Details
#category ⇒ String
[Required] The deployment category defines the broad separation of the deployment type into three categories. Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'.
63 64 65 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 63 def category @category end |
#connection_types ⇒ Array<String>
An array of connectionTypes.
80 81 82 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 80 def connection_types @connection_types end |
#default_username ⇒ String
The default admin username used by deployment.
109 110 111 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 109 def default_username @default_username end |
#deployment_type ⇒ String
[Required] The type of deployment, which can be any one of the Allowed values. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of 'DATABASE_ORACLE'.
75 76 77 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 75 def deployment_type @deployment_type end |
#display_name ⇒ String
[Required] An object's Display Name.
68 69 70 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 68 def display_name @display_name end |
#ogg_version ⇒ String
Version of OGG
99 100 101 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 99 def ogg_version @ogg_version end |
#source_technologies ⇒ Array<String>
List of the supported technologies generally. The value is a freeform text string generally consisting of a description of the technology and optionally the speific version(s) support. For example, [ "Oracle Database 19c", "Oracle Exadata", "OCI Streaming" ]
87 88 89 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 87 def source_technologies @source_technologies end |
#supported_technologies_url ⇒ String
The URL to the webpage listing the supported technologies.
104 105 106 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 104 def supported_technologies_url @supported_technologies_url end |
#target_technologies ⇒ Array<String>
List of the supported technologies generally. The value is a freeform text string generally consisting of a description of the technology and optionally the speific version(s) support. For example, [ "Oracle Database 19c", "Oracle Exadata", "OCI Streaming" ]
94 95 96 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 94 def target_technologies @target_technologies end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 112 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'category': :'category', 'display_name': :'displayName', 'deployment_type': :'deploymentType', 'connection_types': :'connectionTypes', 'source_technologies': :'sourceTechnologies', 'target_technologies': :'targetTechnologies', 'ogg_version': :'oggVersion', 'supported_technologies_url': :'supportedTechnologiesUrl', 'default_username': :'defaultUsername' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 129 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'category': :'String', 'display_name': :'String', 'deployment_type': :'String', 'connection_types': :'Array<String>', 'source_technologies': :'Array<String>', 'target_technologies': :'Array<String>', 'ogg_version': :'String', 'supported_technologies_url': :'String', 'default_username': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 270 def ==(other) return true if equal?(other) self.class == other.class && category == other.category && display_name == other.display_name && deployment_type == other.deployment_type && connection_types == other.connection_types && source_technologies == other.source_technologies && target_technologies == other.target_technologies && ogg_version == other.ogg_version && supported_technologies_url == other.supported_technologies_url && default_username == other.default_username end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 308 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
288 289 290 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 288 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
297 298 299 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 297 def hash [category, display_name, deployment_type, connection_types, source_technologies, target_technologies, ogg_version, supported_technologies_url, default_username].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
341 342 343 344 345 346 347 348 349 350 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 341 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
335 336 337 |
# File 'lib/oci/golden_gate/models/deployment_type_summary.rb', line 335 def to_s to_hash.to_s end |