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_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.
-
#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
232 233 234 235 236 237 238 239 240 241 242 243 244 245 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 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 232 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'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment being referenced.
57 58 59 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 57 def compartment_id @compartment_id end |
#cpu_core_count ⇒ Integer
[Required] The Minimum number of OCPUs to be made available for this Deployment.
83 84 85 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 83 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\"}}
95 96 97 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 95 def @defined_tags end |
#description ⇒ String
Metadata about this specific object.
52 53 54 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 52 def description @description end |
#display_name ⇒ String
[Required] An object's Display Name.
47 48 49 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 47 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\"}
73 74 75 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 73 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the pipeline. This option applies when retrieving a pipeline.
42 43 44 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 42 def id @id end |
#is_auto_scaling_enabled ⇒ BOOLEAN
[Required] Indicates if auto scaling is enabled for the Deployment's CPU core count.
88 89 90 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 88 def is_auto_scaling_enabled @is_auto_scaling_enabled end |
#license_model ⇒ String
[Required] The Oracle license model that applies to a Deployment.
78 79 80 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 78 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.
124 125 126 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 124 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] Lifecycle state for the pipeline summary.
113 114 115 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 113 def lifecycle_state @lifecycle_state end |
#lifecycle_sub_state ⇒ String
Possible lifecycle substates when retrieving a pipeline.
118 119 120 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 118 def lifecycle_sub_state @lifecycle_sub_state end |
#locks ⇒ Array<OCI::GoldenGate::Models::ResourceLock>
Locks associated with this resource.
108 109 110 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 108 def locks @locks end |
#recipe_type ⇒ String
[Required] The type of the recipe
37 38 39 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 37 def recipe_type @recipe_type end |
#source_connection_details ⇒ OCI::GoldenGate::Models::SourcePipelineConnectionDetails
This attribute is required.
61 62 63 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 61 def source_connection_details @source_connection_details 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}}
104 105 106 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 104 def @system_tags end |
#target_connection_details ⇒ OCI::GoldenGate::Models::TargetPipelineConnectionDetails
This attribute is required.
65 66 67 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 65 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
.
130 131 132 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 130 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
.
136 137 138 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 136 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 139 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' # 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.
197 198 199 200 201 202 203 204 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 197 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.
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 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 166 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' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 387 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 end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 435 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
415 416 417 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 415 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
424 425 426 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 424 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].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
468 469 470 471 472 473 474 475 476 477 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 468 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
462 463 464 |
# File 'lib/oci/golden_gate/models/pipeline_summary.rb', line 462 def to_s to_hash.to_s end |