Class: OCI::GoldenGate::Models::PipelineSummary
- Inherits:
-
Object
- Object
- OCI::GoldenGate::Models::PipelineSummary
- Defined in:
- lib/oci/golden_gate/models/pipeline_summary.rb
Overview
Summary details of the pipeline.
This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
Direct Known Subclasses
Constant Summary collapse
- RECIPE_TYPE_ENUM =
[ RECIPE_TYPE_ZERO_ETL = 'ZERO_ETL'.freeze, RECIPE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze, LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LIFECYCLE_SUB_STATE_ENUM =
[ LIFECYCLE_SUB_STATE_STARTING = 'STARTING'.freeze, LIFECYCLE_SUB_STATE_STOPPING = 'STOPPING'.freeze, LIFECYCLE_SUB_STATE_STOPPED = 'STOPPED'.freeze, LIFECYCLE_SUB_STATE_MOVING = 'MOVING'.freeze, LIFECYCLE_SUB_STATE_RUNNING = 'RUNNING'.freeze, LIFECYCLE_SUB_STATE_PAUSING = 'PAUSING'.freeze, LIFECYCLE_SUB_STATE_PAUSED = 'PAUSED'.freeze, LIFECYCLE_SUB_STATE_START_FAILED = 'START_FAILED'.freeze, LIFECYCLE_SUB_STATE_STOP_FAILED = 'STOP_FAILED'.freeze, LIFECYCLE_SUB_STATE_PAUSE_FAILED = 'PAUSE_FAILED'.freeze, LIFECYCLE_SUB_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of the compartment being referenced.
-
#cpu_core_count ⇒ Integer
[Required] The Minimum number of OCPUs to be made available for this Deployment.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Tags defined for this resource.
-
#description ⇒ String
Metadata about this specific object.
-
#display_name ⇒ String
[Required] An object's Display Name.
-
#freeform_tags ⇒ Hash<String, String>
A simple key-value pair that is applied without any predefined name, type, or scope.
-
#id ⇒ String
[Required] The OCID of the pipeline.
-
#is_auto_scaling_enabled ⇒ BOOLEAN
[Required] Indicates if auto scaling is enabled for the Deployment's CPU core count.
-
#license_model ⇒ String
[Required] The Oracle license model that applies to a Deployment.
-
#lifecycle_details ⇒ String
Describes the object's current state in detail.
-
#lifecycle_state ⇒ String
[Required] Lifecycle state for the pipeline summary.
-
#lifecycle_sub_state ⇒ String
Possible lifecycle substates when retrieving a pipeline.
-
#locks ⇒ Array<OCI::GoldenGate::Models::ResourceLock>
Locks associated with this resource.
-
#recipe_type ⇒ String
[Required] The type of the recipe.
-
#source_connection_details ⇒ OCI::GoldenGate::Models::SourcePipelineConnectionDetails
This attribute is required.
-
#subnet_id ⇒ String
The OCID of the subnet of the pipeline's private endpoint.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
The system tags associated with this resource, if any.
-
#target_connection_details ⇒ OCI::GoldenGate::Models::TargetPipelineConnectionDetails
This attribute is required.
-
#time_created ⇒ DateTime
[Required] The time the resource was created.
-
#time_updated ⇒ DateTime
[Required] The time the resource was last updated.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.get_subtype(object_hash) ⇒ Object
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
.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 = {}) ⇒ PipelineSummary
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 = {}) ⇒ PipelineSummary
Initializes the object
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 246 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.recipe_type = attributes[:'recipeType'] if attributes[:'recipeType'] raise 'You cannot provide both :recipeType and :recipe_type' if attributes.key?(:'recipeType') && attributes.key?(:'recipe_type') self.recipe_type = attributes[:'recipe_type'] if attributes[:'recipe_type'] self.id = attributes[:'id'] if attributes[:'id'] 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.description = attributes[:'description'] if attributes[:'description'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.source_connection_details = attributes[:'sourceConnectionDetails'] if attributes[:'sourceConnectionDetails'] raise 'You cannot provide both :sourceConnectionDetails and :source_connection_details' if attributes.key?(:'sourceConnectionDetails') && attributes.key?(:'source_connection_details') self.source_connection_details = attributes[:'source_connection_details'] if attributes[:'source_connection_details'] self.target_connection_details = attributes[:'targetConnectionDetails'] if attributes[:'targetConnectionDetails'] raise 'You cannot provide both :targetConnectionDetails and :target_connection_details' if attributes.key?(:'targetConnectionDetails') && attributes.key?(:'target_connection_details') self.target_connection_details = attributes[:'target_connection_details'] if attributes[:'target_connection_details'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel'] raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model') self.license_model = attributes[:'license_model'] if attributes[:'license_model'] self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount'] raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count') self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count'] self.is_auto_scaling_enabled = attributes[:'isAutoScalingEnabled'] unless attributes[:'isAutoScalingEnabled'].nil? raise 'You cannot provide both :isAutoScalingEnabled and :is_auto_scaling_enabled' if attributes.key?(:'isAutoScalingEnabled') && attributes.key?(:'is_auto_scaling_enabled') self.is_auto_scaling_enabled = attributes[:'is_auto_scaling_enabled'] unless attributes[:'is_auto_scaling_enabled'].nil? self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] self.locks = attributes[:'locks'] if attributes[:'locks'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_sub_state = attributes[:'lifecycleSubState'] if attributes[:'lifecycleSubState'] raise 'You cannot provide both :lifecycleSubState and :lifecycle_sub_state' if attributes.key?(:'lifecycleSubState') && attributes.key?(:'lifecycle_sub_state') self.lifecycle_sub_state = attributes[:'lifecycle_sub_state'] if attributes[:'lifecycle_sub_state'] self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails'] raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details') self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId'] raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id') self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment being referenced.
62 63 64 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 62 def compartment_id @compartment_id end |
#cpu_core_count ⇒ Integer
[Required] The Minimum number of OCPUs to be made available for this Deployment.
88 89 90 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 88 def cpu_core_count @cpu_core_count end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Tags defined for this resource. Each key is predefined and scoped to a namespace.
Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
100 101 102 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 100 def @defined_tags end |
#description ⇒ String
Metadata about this specific object.
57 58 59 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 57 def description @description end |
#display_name ⇒ String
[Required] An object's Display Name.
52 53 54 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 52 def display_name @display_name end |
#freeform_tags ⇒ Hash<String, String>
A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
Example: {\"bar-key\": \"value\"}
78 79 80 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 78 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the pipeline. This option applies when retrieving a pipeline.
47 48 49 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 47 def id @id end |
#is_auto_scaling_enabled ⇒ BOOLEAN
[Required] Indicates if auto scaling is enabled for the Deployment's CPU core count.
93 94 95 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 93 def is_auto_scaling_enabled @is_auto_scaling_enabled end |
#license_model ⇒ String
[Required] The Oracle license model that applies to a Deployment.
83 84 85 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 83 def license_model @license_model end |
#lifecycle_details ⇒ String
Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.
129 130 131 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 129 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] Lifecycle state for the pipeline summary.
118 119 120 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 118 def lifecycle_state @lifecycle_state end |
#lifecycle_sub_state ⇒ String
Possible lifecycle substates when retrieving a pipeline.
123 124 125 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 123 def lifecycle_sub_state @lifecycle_sub_state end |
#locks ⇒ Array<OCI::GoldenGate::Models::ResourceLock>
Locks associated with this resource.
113 114 115 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 113 def locks @locks end |
#recipe_type ⇒ String
[Required] The type of the recipe
42 43 44 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 42 def recipe_type @recipe_type end |
#source_connection_details ⇒ OCI::GoldenGate::Models::SourcePipelineConnectionDetails
This attribute is required.
66 67 68 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 66 def source_connection_details @source_connection_details end |
#subnet_id ⇒ String
The OCID of the subnet of the pipeline's private endpoint. The subnet must be a private subnet.
147 148 149 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 147 def subnet_id @subnet_id end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags.
Example: {orcl-cloud: {free-tier-retain: true}}
109 110 111 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 109 def @system_tags end |
#target_connection_details ⇒ OCI::GoldenGate::Models::TargetPipelineConnectionDetails
This attribute is required.
70 71 72 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 70 def target_connection_details @target_connection_details end |
#time_created ⇒ DateTime
[Required] The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
135 136 137 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 135 def time_created @time_created end |
#time_updated ⇒ DateTime
[Required] The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
141 142 143 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 141 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 150 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'recipe_type': :'recipeType', 'id': :'id', 'display_name': :'displayName', 'description': :'description', 'compartment_id': :'compartmentId', 'source_connection_details': :'sourceConnectionDetails', 'target_connection_details': :'targetConnectionDetails', 'freeform_tags': :'freeformTags', 'license_model': :'licenseModel', 'cpu_core_count': :'cpuCoreCount', 'is_auto_scaling_enabled': :'isAutoScalingEnabled', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'locks': :'locks', 'lifecycle_state': :'lifecycleState', 'lifecycle_sub_state': :'lifecycleSubState', 'lifecycle_details': :'lifecycleDetails', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'subnet_id': :'subnetId' # rubocop:enable Style/SymbolLiteral } end |
.get_subtype(object_hash) ⇒ Object
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
210 211 212 213 214 215 216 217 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 210 def self.get_subtype(object_hash) type = object_hash[:'recipeType'] # rubocop:disable Style/SymbolLiteral return 'OCI::GoldenGate::Models::ZeroEtlPipelineSummary' if type == 'ZERO_ETL' # TODO: Log a warning when the subtype is not found. 'OCI::GoldenGate::Models::PipelineSummary' end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 178 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'recipe_type': :'String', 'id': :'String', 'display_name': :'String', 'description': :'String', 'compartment_id': :'String', 'source_connection_details': :'OCI::GoldenGate::Models::SourcePipelineConnectionDetails', 'target_connection_details': :'OCI::GoldenGate::Models::TargetPipelineConnectionDetails', 'freeform_tags': :'Hash<String, String>', 'license_model': :'String', 'cpu_core_count': :'Integer', 'is_auto_scaling_enabled': :'BOOLEAN', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'locks': :'Array<OCI::GoldenGate::Models::ResourceLock>', 'lifecycle_state': :'String', 'lifecycle_sub_state': :'String', 'lifecycle_details': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'subnet_id': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 407 def ==(other) return true if equal?(other) self.class == other.class && recipe_type == other.recipe_type && id == other.id && display_name == other.display_name && description == other.description && compartment_id == other.compartment_id && source_connection_details == other.source_connection_details && target_connection_details == other.target_connection_details && == other. && license_model == other.license_model && cpu_core_count == other.cpu_core_count && is_auto_scaling_enabled == other.is_auto_scaling_enabled && == other. && == other. && locks == other.locks && lifecycle_state == other.lifecycle_state && lifecycle_sub_state == other.lifecycle_sub_state && lifecycle_details == other.lifecycle_details && time_created == other.time_created && time_updated == other.time_updated && subnet_id == other.subnet_id end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 456 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
436 437 438 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 436 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
445 446 447 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 445 def hash [recipe_type, id, display_name, description, compartment_id, source_connection_details, target_connection_details, , license_model, cpu_core_count, is_auto_scaling_enabled, , , locks, lifecycle_state, lifecycle_sub_state, lifecycle_details, time_created, time_updated, subnet_id].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
489 490 491 492 493 494 495 496 497 498 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 489 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
483 484 485 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 483 def to_s to_hash.to_s end |