Class: OCI::Bds::Models::ClusterDetails
- Inherits:
-
Object
- Object
- OCI::Bds::Models::ClusterDetails
- Defined in:
- lib/oci/bds/models/cluster_details.rb
Overview
Specific info about a Hadoop cluster
Instance Attribute Summary collapse
-
#bda_version ⇒ String
BDA version installed in the cluster.
-
#bdm_version ⇒ String
BDM version installed in the cluster.
-
#big_data_manager_url ⇒ String
The URL of a Big Data Manager.
-
#cloudera_manager_url ⇒ String
The URL of a Cloudera Manager.
-
#hue_server_url ⇒ String
The URL of a Hue Server.
-
#time_created ⇒ DateTime
[Required] The time the cluster was created.
-
#time_refreshed ⇒ DateTime
The time the BDS instance was automatically, or manually refreshed.
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 = {}) ⇒ ClusterDetails
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 = {}) ⇒ ClusterDetails
Initializes the object
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/oci/bds/models/cluster_details.rb', line 83 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.bda_version = attributes[:'bdaVersion'] if attributes[:'bdaVersion'] raise 'You cannot provide both :bdaVersion and :bda_version' if attributes.key?(:'bdaVersion') && attributes.key?(:'bda_version') self.bda_version = attributes[:'bda_version'] if attributes[:'bda_version'] self.bdm_version = attributes[:'bdmVersion'] if attributes[:'bdmVersion'] raise 'You cannot provide both :bdmVersion and :bdm_version' if attributes.key?(:'bdmVersion') && attributes.key?(:'bdm_version') self.bdm_version = attributes[:'bdm_version'] if attributes[:'bdm_version'] 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_refreshed = attributes[:'timeRefreshed'] if attributes[:'timeRefreshed'] raise 'You cannot provide both :timeRefreshed and :time_refreshed' if attributes.key?(:'timeRefreshed') && attributes.key?(:'time_refreshed') self.time_refreshed = attributes[:'time_refreshed'] if attributes[:'time_refreshed'] self.cloudera_manager_url = attributes[:'clouderaManagerUrl'] if attributes[:'clouderaManagerUrl'] raise 'You cannot provide both :clouderaManagerUrl and :cloudera_manager_url' if attributes.key?(:'clouderaManagerUrl') && attributes.key?(:'cloudera_manager_url') self.cloudera_manager_url = attributes[:'cloudera_manager_url'] if attributes[:'cloudera_manager_url'] self.big_data_manager_url = attributes[:'bigDataManagerUrl'] if attributes[:'bigDataManagerUrl'] raise 'You cannot provide both :bigDataManagerUrl and :big_data_manager_url' if attributes.key?(:'bigDataManagerUrl') && attributes.key?(:'big_data_manager_url') self.big_data_manager_url = attributes[:'big_data_manager_url'] if attributes[:'big_data_manager_url'] self.hue_server_url = attributes[:'hueServerUrl'] if attributes[:'hueServerUrl'] raise 'You cannot provide both :hueServerUrl and :hue_server_url' if attributes.key?(:'hueServerUrl') && attributes.key?(:'hue_server_url') self.hue_server_url = attributes[:'hue_server_url'] if attributes[:'hue_server_url'] end |
Instance Attribute Details
#bda_version ⇒ String
BDA version installed in the cluster
12 13 14 |
# File 'lib/oci/bds/models/cluster_details.rb', line 12 def bda_version @bda_version end |
#bdm_version ⇒ String
BDM version installed in the cluster
16 17 18 |
# File 'lib/oci/bds/models/cluster_details.rb', line 16 def bdm_version @bdm_version end |
#big_data_manager_url ⇒ String
The URL of a Big Data Manager
34 35 36 |
# File 'lib/oci/bds/models/cluster_details.rb', line 34 def big_data_manager_url @big_data_manager_url end |
#cloudera_manager_url ⇒ String
The URL of a Cloudera Manager
30 31 32 |
# File 'lib/oci/bds/models/cluster_details.rb', line 30 def cloudera_manager_url @cloudera_manager_url end |
#hue_server_url ⇒ String
The URL of a Hue Server
38 39 40 |
# File 'lib/oci/bds/models/cluster_details.rb', line 38 def hue_server_url @hue_server_url end |
#time_created ⇒ DateTime
[Required] The time the cluster was created. An RFC3339 formatted datetime string
20 21 22 |
# File 'lib/oci/bds/models/cluster_details.rb', line 20 def time_created @time_created end |
#time_refreshed ⇒ DateTime
The time the BDS instance was automatically, or manually refreshed. An RFC3339 formatted datetime string
26 27 28 |
# File 'lib/oci/bds/models/cluster_details.rb', line 26 def time_refreshed @time_refreshed end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/oci/bds/models/cluster_details.rb', line 41 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'bda_version': :'bdaVersion', 'bdm_version': :'bdmVersion', 'time_created': :'timeCreated', 'time_refreshed': :'timeRefreshed', 'cloudera_manager_url': :'clouderaManagerUrl', 'big_data_manager_url': :'bigDataManagerUrl', 'hue_server_url': :'hueServerUrl' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/oci/bds/models/cluster_details.rb', line 56 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'bda_version': :'String', 'bdm_version': :'String', 'time_created': :'DateTime', 'time_refreshed': :'DateTime', 'cloudera_manager_url': :'String', 'big_data_manager_url': :'String', 'hue_server_url': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/oci/bds/models/cluster_details.rb', line 139 def ==(other) return true if equal?(other) self.class == other.class && bda_version == other.bda_version && bdm_version == other.bdm_version && time_created == other.time_created && time_refreshed == other.time_refreshed && cloudera_manager_url == other.cloudera_manager_url && big_data_manager_url == other.big_data_manager_url && hue_server_url == other.hue_server_url end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/oci/bds/models/cluster_details.rb', line 175 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
155 156 157 |
# File 'lib/oci/bds/models/cluster_details.rb', line 155 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
164 165 166 |
# File 'lib/oci/bds/models/cluster_details.rb', line 164 def hash [bda_version, bdm_version, time_created, time_refreshed, cloudera_manager_url, big_data_manager_url, hue_server_url].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
208 209 210 211 212 213 214 215 216 217 |
# File 'lib/oci/bds/models/cluster_details.rb', line 208 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
202 203 204 |
# File 'lib/oci/bds/models/cluster_details.rb', line 202 def to_s to_hash.to_s end |