Class: IntersightClient::HyperflexClusterProfile

Inherits:
PolicyAbstractConfigProfile show all
Defined in:
lib/intersight_client/models/hyperflex_cluster_profile.rb

Overview

A profile specifying configuration settings for a HyperFlex cluster.

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Attributes inherited from PolicyAbstractConfigProfile

#action, #config_context, #policy_bucket

Attributes inherited from PolicyAbstractProfile

#description, #name, #src_template, #type

Attributes inherited from MoBaseMo

#account_moid, #ancestors, #create_time, #display_names, #domain_group_moid, #mod_time, #moid, #owners, #parent, #permission_resources, #shared_scope, #tags, #version_context

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ HyperflexClusterProfile

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
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/intersight_client/models/hyperflex_cluster_profile.rb', line 254

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::HyperflexClusterProfile` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `#{self.class.name}`. Please check the name to make sure it's valid. List of attributes: " + self.class.acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  # call parent's initialize
  super(attributes)

  if attributes.key?(:'class_id')
    self.class_id = attributes[:'class_id']
  else
    self.class_id = 'hyperflex.ClusterProfile'
  end

  if attributes.key?(:'object_type')
    self.object_type = attributes[:'object_type']
  else
    self.object_type = 'hyperflex.ClusterProfile'
  end

  if attributes.key?(:'cluster_internal_subnet')
    self.cluster_internal_subnet = attributes[:'cluster_internal_subnet']
  end

  if attributes.key?(:'data_ip_address')
    self.data_ip_address = attributes[:'data_ip_address']
  end

  if attributes.key?(:'host_name_prefix')
    self.host_name_prefix = attributes[:'host_name_prefix']
  end

  if attributes.key?(:'hypervisor_control_ip_address')
    self.hypervisor_control_ip_address = attributes[:'hypervisor_control_ip_address']
  end

  if attributes.key?(:'hypervisor_type')
    self.hypervisor_type = attributes[:'hypervisor_type']
  else
    self.hypervisor_type = 'ESXi'
  end

  if attributes.key?(:'mac_address_prefix')
    self.mac_address_prefix = attributes[:'mac_address_prefix']
  end

  if attributes.key?(:'mgmt_ip_address')
    self.mgmt_ip_address = attributes[:'mgmt_ip_address']
  end

  if attributes.key?(:'mgmt_platform')
    self.mgmt_platform = attributes[:'mgmt_platform']
  else
    self.mgmt_platform = 'FI'
  end

  if attributes.key?(:'replication')
    self.replication = attributes[:'replication']
  end

  if attributes.key?(:'storage_client_ip_address')
    self.storage_client_ip_address = attributes[:'storage_client_ip_address']
  end

  if attributes.key?(:'storage_client_netmask')
    self.storage_client_netmask = attributes[:'storage_client_netmask']
  end

  if attributes.key?(:'storage_client_vlan')
    self.storage_client_vlan = attributes[:'storage_client_vlan']
  end

  if attributes.key?(:'storage_cluster_auxiliary_ip')
    self.storage_cluster_auxiliary_ip = attributes[:'storage_cluster_auxiliary_ip']
  end

  if attributes.key?(:'storage_data_vlan')
    self.storage_data_vlan = attributes[:'storage_data_vlan']
  end

  if attributes.key?(:'storage_type')
    self.storage_type = attributes[:'storage_type']
  else
    self.storage_type = 'HyperFlexDp'
  end

  if attributes.key?(:'wwxn_prefix')
    self.wwxn_prefix = attributes[:'wwxn_prefix']
  end

  if attributes.key?(:'associated_cluster')
    self.associated_cluster = attributes[:'associated_cluster']
  end

  if attributes.key?(:'associated_compute_cluster')
    self.associated_compute_cluster = attributes[:'associated_compute_cluster']
  end

  if attributes.key?(:'auto_support')
    self.auto_support = attributes[:'auto_support']
  end

  if attributes.key?(:'cluster_network')
    self.cluster_network = attributes[:'cluster_network']
  end

  if attributes.key?(:'cluster_storage')
    self.cluster_storage = attributes[:'cluster_storage']
  end

  if attributes.key?(:'config_result')
    self.config_result = attributes[:'config_result']
  end

  if attributes.key?(:'ext_fc_storage')
    self.ext_fc_storage = attributes[:'ext_fc_storage']
  end

  if attributes.key?(:'ext_iscsi_storage')
    self.ext_iscsi_storage = attributes[:'ext_iscsi_storage']
  end

  if attributes.key?(:'httpproxypolicy')
    self.httpproxypolicy = attributes[:'httpproxypolicy']
  end

  if attributes.key?(:'local_credential')
    self.local_credential = attributes[:'local_credential']
  end

  if attributes.key?(:'node_config')
    self.node_config = attributes[:'node_config']
  end

  if attributes.key?(:'node_profile_config')
    if (value = attributes[:'node_profile_config']).is_a?(Array)
      self.node_profile_config = value
    end
  end

  if attributes.key?(:'organization')
    self.organization = attributes[:'organization']
  end

  if attributes.key?(:'proxy_setting')
    self.proxy_setting = attributes[:'proxy_setting']
  end

  if attributes.key?(:'running_workflows')
    if (value = attributes[:'running_workflows']).is_a?(Array)
      self.running_workflows = value
    end
  end

  if attributes.key?(:'software_version')
    self.software_version = attributes[:'software_version']
  end

  if attributes.key?(:'sys_config')
    self.sys_config = attributes[:'sys_config']
  end

  if attributes.key?(:'ucsm_config')
    self.ucsm_config = attributes[:'ucsm_config']
  end

  if attributes.key?(:'vcenter_config')
    self.vcenter_config = attributes[:'vcenter_config']
  end
end

Instance Attribute Details

#associated_clusterObject

Returns the value of attribute associated_cluster.



70
71
72
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 70

def associated_cluster
  @associated_cluster
end

#associated_compute_clusterObject

Returns the value of attribute associated_compute_cluster.



72
73
74
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 72

def associated_compute_cluster
  @associated_compute_cluster
end

#auto_supportObject

Returns the value of attribute auto_support.



74
75
76
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 74

def auto_support
  @auto_support
end

#class_idObject

The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.



20
21
22
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 20

def class_id
  @class_id
end

#cluster_internal_subnetObject

Returns the value of attribute cluster_internal_subnet.



25
26
27
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 25

def cluster_internal_subnet
  @cluster_internal_subnet
end

#cluster_networkObject

Returns the value of attribute cluster_network.



76
77
78
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 76

def cluster_network
  @cluster_network
end

#cluster_storageObject

Returns the value of attribute cluster_storage.



78
79
80
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 78

def cluster_storage
  @cluster_storage
end

#config_resultObject

Returns the value of attribute config_result.



80
81
82
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 80

def config_result
  @config_result
end

#data_ip_addressObject

The storage data IP address for the HyperFlex cluster.



28
29
30
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 28

def data_ip_address
  @data_ip_address
end

#ext_fc_storageObject

Returns the value of attribute ext_fc_storage.



82
83
84
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 82

def ext_fc_storage
  @ext_fc_storage
end

#ext_iscsi_storageObject

Returns the value of attribute ext_iscsi_storage.



84
85
86
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 84

def ext_iscsi_storage
  @ext_iscsi_storage
end

#host_name_prefixObject

The node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60, must only contain alphanumeric characters or dash (-), and must start with an alphanumeric character.



31
32
33
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 31

def host_name_prefix
  @host_name_prefix
end

#httpproxypolicyObject

Returns the value of attribute httpproxypolicy.



86
87
88
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 86

def httpproxypolicy
  @httpproxypolicy
end

#hypervisor_control_ip_addressObject

The hypervisor control virtual IP address for the HyperFlex compute cluster that is used for node/pod management.



34
35
36
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 34

def hypervisor_control_ip_address
  @hypervisor_control_ip_address
end

#hypervisor_typeObject

The hypervisor type for the HyperFlex cluster. * ‘ESXi` - The hypervisor running on the HyperFlex cluster is a Vmware ESXi hypervisor of any version. * `HyperFlexAp` - The hypervisor of the virtualization platform is Cisco HyperFlex Application Platform. * `IWE` - The hypervisor of the virtualization platform is Cisco Intersight Workload Engine. * `Hyper-V` - The hypervisor running on the HyperFlex cluster is Microsoft Hyper-V. * `Unknown` - The hypervisor running on the HyperFlex cluster is not known.



37
38
39
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 37

def hypervisor_type
  @hypervisor_type
end

#local_credentialObject

Returns the value of attribute local_credential.



88
89
90
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 88

def local_credential
  @local_credential
end

#mac_address_prefixObject

The MAC address prefix in the form of 00:25:B5:XX.



40
41
42
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 40

def mac_address_prefix
  @mac_address_prefix
end

#mgmt_ip_addressObject

The management IP address for the HyperFlex cluster.



43
44
45
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 43

def mgmt_ip_address
  @mgmt_ip_address
end

#mgmt_platformObject

The management platform for the HyperFlex cluster. * ‘FI` - The host servers used in the cluster deployment are managed by a UCS Fabric Interconnect. * `EDGE` - The host servers used in the cluster deployment are standalone severs.



46
47
48
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 46

def mgmt_platform
  @mgmt_platform
end

#node_configObject

Returns the value of attribute node_config.



90
91
92
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 90

def node_config
  @node_config
end

#node_profile_configObject

An array of relationships to hyperflexNodeProfile resources.



93
94
95
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 93

def node_profile_config
  @node_profile_config
end

#object_typeObject

The fully-qualified name of the instantiated, concrete type. The value should be the same as the ‘ClassId’ property.



23
24
25
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 23

def object_type
  @object_type
end

#organizationObject

Returns the value of attribute organization.



95
96
97
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 95

def organization
  @organization
end

#proxy_settingObject

Returns the value of attribute proxy_setting.



97
98
99
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 97

def proxy_setting
  @proxy_setting
end

#replicationObject

The number of copies of each data block written.



49
50
51
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 49

def replication
  @replication
end

#running_workflowsObject

An array of relationships to workflowWorkflowInfo resources.



100
101
102
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 100

def running_workflows
  @running_workflows
end

#software_versionObject

Returns the value of attribute software_version.



102
103
104
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 102

def software_version
  @software_version
end

#storage_client_ip_addressObject

The storage data IP address for the HyperFlex cluster.



52
53
54
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 52

def storage_client_ip_address
  @storage_client_ip_address
end

#storage_client_netmaskObject

The netmask for the Storage client network IP address.



55
56
57
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 55

def storage_client_netmask
  @storage_client_netmask
end

#storage_client_vlanObject

Returns the value of attribute storage_client_vlan.



57
58
59
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 57

def storage_client_vlan
  @storage_client_vlan
end

#storage_cluster_auxiliary_ipObject

The auxiliary storage IP address for the HyperFlex cluster. For two node clusters, this is the IP address of the auxiliary ZK controller.



60
61
62
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 60

def storage_cluster_auxiliary_ip
  @storage_cluster_auxiliary_ip
end

#storage_data_vlanObject

Returns the value of attribute storage_data_vlan.



62
63
64
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 62

def storage_data_vlan
  @storage_data_vlan
end

#storage_typeObject

The storage type used for the HyperFlex cluster (HyperFlex Storage or 3rd party). * ‘HyperFlexDp` - The type of storage is HyperFlex Data Platform. * `ThirdParty` - The type of storage is 3rd Party Storage (PureStorage, etc..).



65
66
67
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 65

def storage_type
  @storage_type
end

#sys_configObject

Returns the value of attribute sys_config.



104
105
106
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 104

def sys_config
  @sys_config
end

#ucsm_configObject

Returns the value of attribute ucsm_config.



106
107
108
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 106

def ucsm_config
  @ucsm_config
end

#vcenter_configObject

Returns the value of attribute vcenter_config.



108
109
110
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 108

def vcenter_config
  @vcenter_config
end

#wwxn_prefixObject

The WWxN prefix in the form of 20:00:00:25:B5:XX.



68
69
70
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 68

def wwxn_prefix
  @wwxn_prefix
end

Class Method Details

.acceptable_attribute_mapObject

Returns the key-value map of all the JSON attributes this model knows about, including the ones defined in its parent(s)



181
182
183
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 181

def self.acceptable_attribute_map
  attribute_map.merge(superclass.acceptable_attribute_map)
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about, including the ones defined in its parent(s)



176
177
178
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 176

def self.acceptable_attributes
  attribute_map.values.concat(superclass.acceptable_attributes)
end

.attribute_mapObject

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



133
134
135
136
137
138
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
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 133

def self.attribute_map
  {
    :'class_id' => :'ClassId',
    :'object_type' => :'ObjectType',
    :'cluster_internal_subnet' => :'ClusterInternalSubnet',
    :'data_ip_address' => :'DataIpAddress',
    :'host_name_prefix' => :'HostNamePrefix',
    :'hypervisor_control_ip_address' => :'HypervisorControlIpAddress',
    :'hypervisor_type' => :'HypervisorType',
    :'mac_address_prefix' => :'MacAddressPrefix',
    :'mgmt_ip_address' => :'MgmtIpAddress',
    :'mgmt_platform' => :'MgmtPlatform',
    :'replication' => :'Replication',
    :'storage_client_ip_address' => :'StorageClientIpAddress',
    :'storage_client_netmask' => :'StorageClientNetmask',
    :'storage_client_vlan' => :'StorageClientVlan',
    :'storage_cluster_auxiliary_ip' => :'StorageClusterAuxiliaryIp',
    :'storage_data_vlan' => :'StorageDataVlan',
    :'storage_type' => :'StorageType',
    :'wwxn_prefix' => :'WwxnPrefix',
    :'associated_cluster' => :'AssociatedCluster',
    :'associated_compute_cluster' => :'AssociatedComputeCluster',
    :'auto_support' => :'AutoSupport',
    :'cluster_network' => :'ClusterNetwork',
    :'cluster_storage' => :'ClusterStorage',
    :'config_result' => :'ConfigResult',
    :'ext_fc_storage' => :'ExtFcStorage',
    :'ext_iscsi_storage' => :'ExtIscsiStorage',
    :'httpproxypolicy' => :'Httpproxypolicy',
    :'local_credential' => :'LocalCredential',
    :'node_config' => :'NodeConfig',
    :'node_profile_config' => :'NodeProfileConfig',
    :'organization' => :'Organization',
    :'proxy_setting' => :'ProxySetting',
    :'running_workflows' => :'RunningWorkflows',
    :'software_version' => :'SoftwareVersion',
    :'sys_config' => :'SysConfig',
    :'ucsm_config' => :'UcsmConfig',
    :'vcenter_config' => :'VcenterConfig'
  }
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



711
712
713
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 711

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_all_ofObject

List of class defined in allOf (OpenAPI v3)



240
241
242
243
244
245
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 240

def self.openapi_all_of
  [
  :'HyperflexClusterProfileAllOf',
  :'PolicyAbstractConfigProfile'
  ]
end

.openapi_discriminator_nameObject

discriminator’s property name in OpenAPI v3



248
249
250
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 248

def self.openapi_discriminator_name
  :'ClassId'
end

.openapi_nullableObject

List of attributes with nullable: true



229
230
231
232
233
234
235
236
237
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 229

def self.openapi_nullable
  Set.new([
    :'cluster_internal_subnet',
    :'storage_client_vlan',
    :'storage_data_vlan',
    :'node_profile_config',
    :'running_workflows',
  ])
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 186

def self.openapi_types
  {
    :'class_id' => :'String',
    :'object_type' => :'String',
    :'cluster_internal_subnet' => :'CommIpV4Interface',
    :'data_ip_address' => :'String',
    :'host_name_prefix' => :'String',
    :'hypervisor_control_ip_address' => :'String',
    :'hypervisor_type' => :'String',
    :'mac_address_prefix' => :'String',
    :'mgmt_ip_address' => :'String',
    :'mgmt_platform' => :'String',
    :'replication' => :'Integer',
    :'storage_client_ip_address' => :'String',
    :'storage_client_netmask' => :'String',
    :'storage_client_vlan' => :'HyperflexNamedVlan',
    :'storage_cluster_auxiliary_ip' => :'String',
    :'storage_data_vlan' => :'HyperflexNamedVlan',
    :'storage_type' => :'String',
    :'wwxn_prefix' => :'String',
    :'associated_cluster' => :'HyperflexClusterRelationship',
    :'associated_compute_cluster' => :'HyperflexHxapClusterRelationship',
    :'auto_support' => :'HyperflexAutoSupportPolicyRelationship',
    :'cluster_network' => :'HyperflexClusterNetworkPolicyRelationship',
    :'cluster_storage' => :'HyperflexClusterStoragePolicyRelationship',
    :'config_result' => :'HyperflexConfigResultRelationship',
    :'ext_fc_storage' => :'HyperflexExtFcStoragePolicyRelationship',
    :'ext_iscsi_storage' => :'HyperflexExtIscsiStoragePolicyRelationship',
    :'httpproxypolicy' => :'CommHttpProxyPolicyRelationship',
    :'local_credential' => :'HyperflexLocalCredentialPolicyRelationship',
    :'node_config' => :'HyperflexNodeConfigPolicyRelationship',
    :'node_profile_config' => :'Array<HyperflexNodeProfileRelationship>',
    :'organization' => :'OrganizationOrganizationRelationship',
    :'proxy_setting' => :'HyperflexProxySettingPolicyRelationship',
    :'running_workflows' => :'Array<WorkflowWorkflowInfoRelationship>',
    :'software_version' => :'HyperflexSoftwareVersionPolicyRelationship',
    :'sys_config' => :'HyperflexSysConfigPolicyRelationship',
    :'ucsm_config' => :'HyperflexUcsmConfigPolicyRelationship',
    :'vcenter_config' => :'HyperflexVcenterConfigPolicyRelationship'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 654

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      class_id == o.class_id &&
      object_type == o.object_type &&
      cluster_internal_subnet == o.cluster_internal_subnet &&
      data_ip_address == o.data_ip_address &&
      host_name_prefix == o.host_name_prefix &&
      hypervisor_control_ip_address == o.hypervisor_control_ip_address &&
      hypervisor_type == o.hypervisor_type &&
      mac_address_prefix == o.mac_address_prefix &&
      mgmt_ip_address == o.mgmt_ip_address &&
      mgmt_platform == o.mgmt_platform &&
      replication == o.replication &&
      storage_client_ip_address == o.storage_client_ip_address &&
      storage_client_netmask == o.storage_client_netmask &&
      storage_client_vlan == o.storage_client_vlan &&
      storage_cluster_auxiliary_ip == o.storage_cluster_auxiliary_ip &&
      storage_data_vlan == o.storage_data_vlan &&
      storage_type == o.storage_type &&
      wwxn_prefix == o.wwxn_prefix &&
      associated_cluster == o.associated_cluster &&
      associated_compute_cluster == o.associated_compute_cluster &&
      auto_support == o.auto_support &&
      cluster_network == o.cluster_network &&
      cluster_storage == o.cluster_storage &&
      config_result == o.config_result &&
      ext_fc_storage == o.ext_fc_storage &&
      ext_iscsi_storage == o.ext_iscsi_storage &&
      httpproxypolicy == o.httpproxypolicy &&
      local_credential == o.local_credential &&
      node_config == o.node_config &&
      node_profile_config == o.node_profile_config &&
      organization == o.organization &&
      proxy_setting == o.proxy_setting &&
      running_workflows == o.running_workflows &&
      software_version == o.software_version &&
      sys_config == o.sys_config &&
      ucsm_config == o.ucsm_config &&
      vcenter_config == o.vcenter_config && super(o)
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 742

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = IntersightClient.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



813
814
815
816
817
818
819
820
821
822
823
824
825
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 813

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
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



718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 718

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  super(attributes)
  HyperflexClusterProfile.openapi_types.each_pair do |key, type|
    if attributes[HyperflexClusterProfile.attribute_map[key]].nil? && HyperflexClusterProfile.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[HyperflexClusterProfile.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[HyperflexClusterProfile.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[HyperflexClusterProfile.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[HyperflexClusterProfile.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


698
699
700
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 698

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



704
705
706
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 704

def hash
  [class_id, object_type, cluster_internal_subnet, data_ip_address, host_name_prefix, hypervisor_control_ip_address, hypervisor_type, mac_address_prefix, mgmt_ip_address, mgmt_platform, replication, storage_client_ip_address, storage_client_netmask, storage_client_vlan, storage_cluster_auxiliary_ip, storage_data_vlan, storage_type, wwxn_prefix, associated_cluster, associated_compute_cluster, auto_support, cluster_network, cluster_storage, config_result, ext_fc_storage, ext_iscsi_storage, httpproxypolicy, local_credential, node_config, node_profile_config, organization, proxy_setting, running_workflows, software_version, sys_config, ucsm_config, vcenter_config].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 435

def list_invalid_properties
  invalid_properties = super
  if @class_id.nil?
    invalid_properties.push('invalid value for "class_id", class_id cannot be nil.')
  end

  if @object_type.nil?
    invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
  end

  pattern = Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  if !@data_ip_address.nil? && @data_ip_address !~ pattern
    invalid_properties.push("invalid value for \"data_ip_address\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^[a-zA-Z0-9][a-zA-Z0-9\-]{1,59}$/)
  if !@host_name_prefix.nil? && @host_name_prefix !~ pattern
    invalid_properties.push("invalid value for \"host_name_prefix\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  if !@hypervisor_control_ip_address.nil? && @hypervisor_control_ip_address !~ pattern
    invalid_properties.push("invalid value for \"hypervisor_control_ip_address\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^00:25:B5:[0-9a-fA-F]{2}$/)
  if !@mac_address_prefix.nil? && @mac_address_prefix !~ pattern
    invalid_properties.push("invalid value for \"mac_address_prefix\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  if !@mgmt_ip_address.nil? && @mgmt_ip_address !~ pattern
    invalid_properties.push("invalid value for \"mgmt_ip_address\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  if !@storage_client_ip_address.nil? && @storage_client_ip_address !~ pattern
    invalid_properties.push("invalid value for \"storage_client_ip_address\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  if !@storage_cluster_auxiliary_ip.nil? && @storage_cluster_auxiliary_ip !~ pattern
    invalid_properties.push("invalid value for \"storage_cluster_auxiliary_ip\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$/)
  if !@wwxn_prefix.nil? && @wwxn_prefix !~ pattern
    invalid_properties.push("invalid value for \"wwxn_prefix\", must conform to the pattern #{pattern}.")
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



789
790
791
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 789

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



795
796
797
798
799
800
801
802
803
804
805
806
807
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 795

def to_hash
  hash = super
  HyperflexClusterProfile.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = HyperflexClusterProfile.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



783
784
785
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 783

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
# File 'lib/intersight_client/models/hyperflex_cluster_profile.rb', line 490

def valid?
  return false if @class_id.nil?
  class_id_validator = EnumAttributeValidator.new('String', ["hyperflex.ClusterProfile"])
  return false unless class_id_validator.valid?(@class_id)
  return false if @object_type.nil?
  object_type_validator = EnumAttributeValidator.new('String', ["hyperflex.ClusterProfile"])
  return false unless object_type_validator.valid?(@object_type)
  return false if !@data_ip_address.nil? && @data_ip_address !~ Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  return false if !@host_name_prefix.nil? && @host_name_prefix !~ Regexp.new(/^$|^[a-zA-Z0-9][a-zA-Z0-9\-]{1,59}$/)
  return false if !@hypervisor_control_ip_address.nil? && @hypervisor_control_ip_address !~ Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  hypervisor_type_validator = EnumAttributeValidator.new('String', ["ESXi", "HyperFlexAp", "IWE", "Hyper-V", "Unknown"])
  return false unless hypervisor_type_validator.valid?(@hypervisor_type)
  return false if !@mac_address_prefix.nil? && @mac_address_prefix !~ Regexp.new(/^$|^00:25:B5:[0-9a-fA-F]{2}$/)
  return false if !@mgmt_ip_address.nil? && @mgmt_ip_address !~ Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  mgmt_platform_validator = EnumAttributeValidator.new('String', ["FI", "EDGE"])
  return false unless mgmt_platform_validator.valid?(@mgmt_platform)
  return false if !@storage_client_ip_address.nil? && @storage_client_ip_address !~ Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  return false if !@storage_cluster_auxiliary_ip.nil? && @storage_cluster_auxiliary_ip !~ Regexp.new(/^$|^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/)
  storage_type_validator = EnumAttributeValidator.new('String', ["HyperFlexDp", "ThirdParty"])
  return false unless storage_type_validator.valid?(@storage_type)
  return false if !@wwxn_prefix.nil? && @wwxn_prefix !~ Regexp.new(/^$|^20:00:00:25:B5:[0-9a-fA-F]{2}$/)
  true && super
end