Class: OCI::Bds::Models::ClusterDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/bds/models/cluster_details.rb

Overview

Specific info about a Hadoop cluster

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ClusterDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :bda_version (String)

    The value to assign to the #bda_version property

  • :bdm_version (String)

    The value to assign to the #bdm_version property

  • :bds_version (String)

    The value to assign to the #bds_version property

  • :os_version (String)

    The value to assign to the #os_version property

  • :db_version (String)

    The value to assign to the #db_version property

  • :bd_cell_version (String)

    The value to assign to the #bd_cell_version property

  • :csql_cell_version (String)

    The value to assign to the #csql_cell_version property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :time_refreshed (DateTime)

    The value to assign to the #time_refreshed property

  • :cloudera_manager_url (String)

    The value to assign to the #cloudera_manager_url property

  • :ambari_url (String)

    The value to assign to the #ambari_url property

  • :big_data_manager_url (String)

    The value to assign to the #big_data_manager_url property

  • :hue_server_url (String)

    The value to assign to the #hue_server_url property

  • :odh_version (String)

    The value to assign to the #odh_version property

  • :jupyter_hub_url (String)

    The value to assign to the #jupyter_hub_url property



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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'lib/oci/bds/models/cluster_details.rb', line 139

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.bds_version = attributes[:'bdsVersion'] if attributes[:'bdsVersion']

  raise 'You cannot provide both :bdsVersion and :bds_version' if attributes.key?(:'bdsVersion') && attributes.key?(:'bds_version')

  self.bds_version = attributes[:'bds_version'] if attributes[:'bds_version']

  self.os_version = attributes[:'osVersion'] if attributes[:'osVersion']

  raise 'You cannot provide both :osVersion and :os_version' if attributes.key?(:'osVersion') && attributes.key?(:'os_version')

  self.os_version = attributes[:'os_version'] if attributes[:'os_version']

  self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']

  raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')

  self.db_version = attributes[:'db_version'] if attributes[:'db_version']

  self.bd_cell_version = attributes[:'bdCellVersion'] if attributes[:'bdCellVersion']

  raise 'You cannot provide both :bdCellVersion and :bd_cell_version' if attributes.key?(:'bdCellVersion') && attributes.key?(:'bd_cell_version')

  self.bd_cell_version = attributes[:'bd_cell_version'] if attributes[:'bd_cell_version']

  self.csql_cell_version = attributes[:'csqlCellVersion'] if attributes[:'csqlCellVersion']

  raise 'You cannot provide both :csqlCellVersion and :csql_cell_version' if attributes.key?(:'csqlCellVersion') && attributes.key?(:'csql_cell_version')

  self.csql_cell_version = attributes[:'csql_cell_version'] if attributes[:'csql_cell_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.ambari_url = attributes[:'ambariUrl'] if attributes[:'ambariUrl']

  raise 'You cannot provide both :ambariUrl and :ambari_url' if attributes.key?(:'ambariUrl') && attributes.key?(:'ambari_url')

  self.ambari_url = attributes[:'ambari_url'] if attributes[:'ambari_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']

  self.odh_version = attributes[:'odhVersion'] if attributes[:'odhVersion']

  raise 'You cannot provide both :odhVersion and :odh_version' if attributes.key?(:'odhVersion') && attributes.key?(:'odh_version')

  self.odh_version = attributes[:'odh_version'] if attributes[:'odh_version']

  self.jupyter_hub_url = attributes[:'jupyterHubUrl'] if attributes[:'jupyterHubUrl']

  raise 'You cannot provide both :jupyterHubUrl and :jupyter_hub_url' if attributes.key?(:'jupyterHubUrl') && attributes.key?(:'jupyter_hub_url')

  self.jupyter_hub_url = attributes[:'jupyter_hub_url'] if attributes[:'jupyter_hub_url']
end

Instance Attribute Details

#ambari_urlString

The URL of Ambari

Returns:

  • (String)


54
55
56
# File 'lib/oci/bds/models/cluster_details.rb', line 54

def ambari_url
  @ambari_url
end

#bd_cell_versionString

Cloud SQL cell version.

Returns:

  • (String)


33
34
35
# File 'lib/oci/bds/models/cluster_details.rb', line 33

def bd_cell_version
  @bd_cell_version
end

#bda_versionString

BDA version installed in the cluster

Returns:

  • (String)


13
14
15
# File 'lib/oci/bds/models/cluster_details.rb', line 13

def bda_version
  @bda_version
end

#bdm_versionString

Big Data Manager version installed in the cluster.

Returns:

  • (String)


17
18
19
# File 'lib/oci/bds/models/cluster_details.rb', line 17

def bdm_version
  @bdm_version
end

#bds_versionString

Big Data Service version installed in the cluster.

Returns:

  • (String)


21
22
23
# File 'lib/oci/bds/models/cluster_details.rb', line 21

def bds_version
  @bds_version
end

#big_data_manager_urlString

The URL of Big Data Manager.

Returns:

  • (String)


58
59
60
# File 'lib/oci/bds/models/cluster_details.rb', line 58

def big_data_manager_url
  @big_data_manager_url
end

#cloudera_manager_urlString

The URL of Cloudera Manager

Returns:

  • (String)


50
51
52
# File 'lib/oci/bds/models/cluster_details.rb', line 50

def cloudera_manager_url
  @cloudera_manager_url
end

#csql_cell_versionString

Big Data SQL version.

Returns:

  • (String)


37
38
39
# File 'lib/oci/bds/models/cluster_details.rb', line 37

def csql_cell_version
  @csql_cell_version
end

#db_versionString

Cloud SQL query server database version.

Returns:

  • (String)


29
30
31
# File 'lib/oci/bds/models/cluster_details.rb', line 29

def db_version
  @db_version
end

#hue_server_urlString

The URL of the Hue server.

Returns:

  • (String)


62
63
64
# File 'lib/oci/bds/models/cluster_details.rb', line 62

def hue_server_url
  @hue_server_url
end

#jupyter_hub_urlString

The URL of the Jupyterhub.

Returns:

  • (String)


70
71
72
# File 'lib/oci/bds/models/cluster_details.rb', line 70

def jupyter_hub_url
  @jupyter_hub_url
end

#odh_versionString

Version of the ODH (Oracle Distribution including Apache Hadoop) installed on the cluster.

Returns:

  • (String)


66
67
68
# File 'lib/oci/bds/models/cluster_details.rb', line 66

def odh_version
  @odh_version
end

#os_versionString

Oracle Linux version installed in the cluster.

Returns:

  • (String)


25
26
27
# File 'lib/oci/bds/models/cluster_details.rb', line 25

def os_version
  @os_version
end

#time_createdDateTime

[Required] The time the cluster was created, shown as an RFC 3339 formatted datetime string.

Returns:

  • (DateTime)


41
42
43
# File 'lib/oci/bds/models/cluster_details.rb', line 41

def time_created
  @time_created
end

#time_refreshedDateTime

The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.

Returns:

  • (DateTime)


46
47
48
# File 'lib/oci/bds/models/cluster_details.rb', line 46

def time_refreshed
  @time_refreshed
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/oci/bds/models/cluster_details.rb', line 73

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'bda_version': :'bdaVersion',
    'bdm_version': :'bdmVersion',
    'bds_version': :'bdsVersion',
    'os_version': :'osVersion',
    'db_version': :'dbVersion',
    'bd_cell_version': :'bdCellVersion',
    'csql_cell_version': :'csqlCellVersion',
    'time_created': :'timeCreated',
    'time_refreshed': :'timeRefreshed',
    'cloudera_manager_url': :'clouderaManagerUrl',
    'ambari_url': :'ambariUrl',
    'big_data_manager_url': :'bigDataManagerUrl',
    'hue_server_url': :'hueServerUrl',
    'odh_version': :'odhVersion',
    'jupyter_hub_url': :'jupyterHubUrl'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/oci/bds/models/cluster_details.rb', line 96

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'bda_version': :'String',
    'bdm_version': :'String',
    'bds_version': :'String',
    'os_version': :'String',
    'db_version': :'String',
    'bd_cell_version': :'String',
    'csql_cell_version': :'String',
    'time_created': :'DateTime',
    'time_refreshed': :'DateTime',
    'cloudera_manager_url': :'String',
    'ambari_url': :'String',
    'big_data_manager_url': :'String',
    'hue_server_url': :'String',
    'odh_version': :'String',
    'jupyter_hub_url': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/oci/bds/models/cluster_details.rb', line 243

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    bda_version == other.bda_version &&
    bdm_version == other.bdm_version &&
    bds_version == other.bds_version &&
    os_version == other.os_version &&
    db_version == other.db_version &&
    bd_cell_version == other.bd_cell_version &&
    csql_cell_version == other.csql_cell_version &&
    time_created == other.time_created &&
    time_refreshed == other.time_refreshed &&
    cloudera_manager_url == other.cloudera_manager_url &&
    ambari_url == other.ambari_url &&
    big_data_manager_url == other.big_data_manager_url &&
    hue_server_url == other.hue_server_url &&
    odh_version == other.odh_version &&
    jupyter_hub_url == other.jupyter_hub_url
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
# File 'lib/oci/bds/models/cluster_details.rb', line 287

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


267
268
269
# File 'lib/oci/bds/models/cluster_details.rb', line 267

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



276
277
278
# File 'lib/oci/bds/models/cluster_details.rb', line 276

def hash
  [bda_version, bdm_version, bds_version, os_version, db_version, bd_cell_version, csql_cell_version, time_created, time_refreshed, cloudera_manager_url, ambari_url, big_data_manager_url, hue_server_url, odh_version, jupyter_hub_url].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



320
321
322
323
324
325
326
327
328
329
# File 'lib/oci/bds/models/cluster_details.rb', line 320

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



314
315
316
# File 'lib/oci/bds/models/cluster_details.rb', line 314

def to_s
  to_hash.to_s
end