Class: OCI::GoldenGate::Models::PipelineDiagnosticData
- Inherits:
-
Object
- Object
- OCI::GoldenGate::Models::PipelineDiagnosticData
- Defined in:
- lib/oci/golden_gate/models/pipeline_diagnostic_data.rb
Overview
Information regarding the pipeline diagnostic collection
Constant Summary collapse
- DIAGNOSTIC_STATE_ENUM =
[ DIAGNOSTIC_STATE_IN_PROGRESS = 'IN_PROGRESS'.freeze, DIAGNOSTIC_STATE_SUCCEEDED = 'SUCCEEDED'.freeze, DIAGNOSTIC_STATE_FAILED = 'FAILED'.freeze, DIAGNOSTIC_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
[Required] Name of the bucket where the object is to be uploaded in the object storage.
-
#diagnostic_state ⇒ String
[Required] The state of the pipeline diagnostics collection.
-
#namespace_name ⇒ String
[Required] Name of namespace that serves as a container for all of your buckets.
-
#object_name ⇒ String
[Required] Name of the diagnostic collected and uploaded to object storage.
-
#time_last_collected ⇒ DateTime
The date and time the diagnostic data was last collected for the pipeline.
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 = {}) ⇒ PipelineDiagnosticData
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 = {}) ⇒ PipelineDiagnosticData
Initializes the object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 80 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.namespace_name = attributes[:'namespaceName'] if attributes[:'namespaceName'] raise 'You cannot provide both :namespaceName and :namespace_name' if attributes.key?(:'namespaceName') && attributes.key?(:'namespace_name') self.namespace_name = attributes[:'namespace_name'] if attributes[:'namespace_name'] self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName'] raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name') self.bucket_name = attributes[:'bucket_name'] if attributes[:'bucket_name'] self.object_name = attributes[:'objectName'] if attributes[:'objectName'] raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name') self.object_name = attributes[:'object_name'] if attributes[:'object_name'] self.diagnostic_state = attributes[:'diagnosticState'] if attributes[:'diagnosticState'] raise 'You cannot provide both :diagnosticState and :diagnostic_state' if attributes.key?(:'diagnosticState') && attributes.key?(:'diagnostic_state') self.diagnostic_state = attributes[:'diagnostic_state'] if attributes[:'diagnostic_state'] self.time_last_collected = attributes[:'timeLastCollected'] if attributes[:'timeLastCollected'] raise 'You cannot provide both :timeLastCollected and :time_last_collected' if attributes.key?(:'timeLastCollected') && attributes.key?(:'time_last_collected') self.time_last_collected = attributes[:'time_last_collected'] if attributes[:'time_last_collected'] end |
Instance Attribute Details
#bucket_name ⇒ String
[Required] Name of the bucket where the object is to be uploaded in the object storage
26 27 28 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 26 def bucket_name @bucket_name end |
#diagnostic_state ⇒ String
[Required] The state of the pipeline diagnostics collection.
35 36 37 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 35 def diagnostic_state @diagnostic_state end |
#namespace_name ⇒ String
[Required] Name of namespace that serves as a container for all of your buckets
22 23 24 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 22 def namespace_name @namespace_name end |
#object_name ⇒ String
[Required] Name of the diagnostic collected and uploaded to object storage
30 31 32 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 30 def object_name @object_name end |
#time_last_collected ⇒ DateTime
The date and time the diagnostic data was last collected for the pipeline. The format is defined by RFC3339, such as 2024-07-25T21:10:29.600Z
.
41 42 43 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 41 def time_last_collected @time_last_collected end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 44 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'namespace_name': :'namespaceName', 'bucket_name': :'bucketName', 'object_name': :'objectName', 'diagnostic_state': :'diagnosticState', 'time_last_collected': :'timeLastCollected' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 57 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'namespace_name': :'String', 'bucket_name': :'String', 'object_name': :'String', 'diagnostic_state': :'String', 'time_last_collected': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
137 138 139 140 141 142 143 144 145 146 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 137 def ==(other) return true if equal?(other) self.class == other.class && namespace_name == other.namespace_name && bucket_name == other.bucket_name && object_name == other.object_name && diagnostic_state == other.diagnostic_state && time_last_collected == other.time_last_collected end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 171 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
151 152 153 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 151 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
160 161 162 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 160 def hash [namespace_name, bucket_name, object_name, diagnostic_state, time_last_collected].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
204 205 206 207 208 209 210 211 212 213 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 204 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
198 199 200 |
# File 'lib/oci/golden_gate/models/pipeline_diagnostic_data.rb', line 198 def to_s to_hash.to_s end |