Class: IbmCloudPower::PVMInstanceCreate

Inherits:
Object
  • Object
show all
Defined in:
lib/ibm_cloud_power/models/pvm_instance_create.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PVMInstanceCreate

Initializes the object



214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 214

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceCreate` 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.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

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

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

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

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

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

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

  if attributes.key?(:'migratable')
    self.migratable = attributes[:'migratable']
  else
    self.migratable = true
  end

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

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

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

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

  if attributes.key?(:'proc_type')
    self.proc_type = attributes[:'proc_type']
  else
    self.proc_type = 'dedicated'
  end

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

  if attributes.key?(:'replicant_affinity_policy')
    self.replicant_affinity_policy = attributes[:'replicant_affinity_policy']
  else
    self.replicant_affinity_policy = 'none'
  end

  if attributes.key?(:'replicant_naming_scheme')
    self.replicant_naming_scheme = attributes[:'replicant_naming_scheme']
  else
    self.replicant_naming_scheme = 'suffix'
  end

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

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

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

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

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

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

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

  if attributes.key?(:'storage_pool_affinity')
    self.storage_pool_affinity = attributes[:'storage_pool_affinity']
  else
    self.storage_pool_affinity = true
  end

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

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

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

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

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

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

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

Instance Attribute Details

#deployment_targetObject

Returns the value of attribute deployment_target.



18
19
20
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 18

def deployment_target
  @deployment_target
end

#deployment_typeObject

The custom deployment type



21
22
23
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 21

def deployment_type
  @deployment_type
end

#image_idObject

Image ID of the image to use for the server



24
25
26
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 24

def image_id
  @image_id
end

#key_pair_nameObject

The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant’s list of keys)



27
28
29
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 27

def key_pair_name
  @key_pair_name
end

#license_repository_capacityObject

The VTL license repository capacity TB value



30
31
32
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 30

def license_repository_capacity
  @license_repository_capacity
end

#memoryObject

Amount of memory allocated (in GB)



33
34
35
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 33

def memory
  @memory
end

#migratableObject

(deprecated - replaced by pinPolicy) Indicates if the server is allowed to migrate between hosts



36
37
38
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 36

def migratable
  @migratable
end

#network_idsObject

(deprecated - replaced by networks) List of Network IDs



39
40
41
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 39

def network_ids
  @network_ids
end

#networksObject

The pvm instance networks information



42
43
44
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 42

def networks
  @networks
end

#pin_policyObject

Returns the value of attribute pin_policy.



44
45
46
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 44

def pin_policy
  @pin_policy
end

#placement_groupObject

The placement group for the server



47
48
49
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 47

def placement_group
  @placement_group
end

#proc_typeObject

Processor type (dedicated, shared, capped)



50
51
52
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 50

def proc_type
  @proc_type
end

#processorsObject

Number of processors allocated



53
54
55
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 53

def processors
  @processors
end

#replicant_affinity_policyObject

Affinity policy for replicants being created; affinity for the same host, anti-affinity for different hosts, none for no preference



56
57
58
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 56

def replicant_affinity_policy
  @replicant_affinity_policy
end

#replicant_naming_schemeObject

How to name the created vms



59
60
61
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 59

def replicant_naming_scheme
  @replicant_naming_scheme
end

#replicantsObject

Number of duplicate instances to create in this request



62
63
64
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 62

def replicants
  @replicants
end

#server_nameObject

Name of the server to create



65
66
67
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 65

def server_name
  @server_name
end

#shared_processor_poolObject

The shared processor pool for server deployment



68
69
70
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 68

def shared_processor_pool
  @shared_processor_pool
end

#software_licensesObject

Returns the value of attribute software_licenses.



70
71
72
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 70

def software_licenses
  @software_licenses
end

#storage_affinityObject

Returns the value of attribute storage_affinity.



72
73
74
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 72

def storage_affinity
  @storage_affinity
end

#storage_connectionObject

The storage connection type



75
76
77
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 75

def storage_connection
  @storage_connection
end

#storage_poolObject

Storage Pool for server deployment; if provided then storageAffinity will be ignored; Only valid when you deploy one of the IBM supplied stock images. Storage pool for a custom image (an imported image or an image that is created from a PVMInstance capture) defaults to the storage pool the image was created in



78
79
80
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 78

def storage_pool
  @storage_pool
end

#storage_pool_affinityObject

Indicates if all volumes attached to the PVMInstance must reside in the same storage pool. If set to false, volumes from any storage pool can be attached to the PVMInstance. This flag only impacts PVMInstance snapshot and capture operations. For capture, only volumes that reside in the same storage pool as the PVMInstance’s boot volume can be included. For snapshots, all volumes included in the snapshot must reside in the same storage pool.



81
82
83
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 81

def storage_pool_affinity
  @storage_pool_affinity
end

#storage_typeObject

Storage type for server deployment; if storageType is not provided the storage type will default to ‘tier3’.



84
85
86
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 84

def storage_type
  @storage_type
end

#sys_typeObject

System type used to host the instance



87
88
89
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 87

def sys_type
  @sys_type
end

#user_dataObject

Cloud init user defined data; For FLS, only cloud-config user-data is supported and data must not be compressed or exceed 63K



90
91
92
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 90

def user_data
  @user_data
end

#user_tagsObject

Returns the value of attribute user_tags.



92
93
94
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 92

def user_tags
  @user_tags
end

#virtual_coresObject

Returns the value of attribute virtual_cores.



94
95
96
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 94

def virtual_cores
  @virtual_cores
end

#virtual_serial_numberObject

Returns the value of attribute virtual_serial_number.



96
97
98
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 96

def virtual_serial_number
  @virtual_serial_number
end

#volume_idsObject

List of volume IDs



99
100
101
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 99

def volume_ids
  @volume_ids
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



160
161
162
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 160

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



124
125
126
127
128
129
130
131
132
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
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 124

def self.attribute_map
  {
    :'deployment_target' => :'deploymentTarget',
    :'deployment_type' => :'deploymentType',
    :'image_id' => :'imageID',
    :'key_pair_name' => :'keyPairName',
    :'license_repository_capacity' => :'licenseRepositoryCapacity',
    :'memory' => :'memory',
    :'migratable' => :'migratable',
    :'network_ids' => :'networkIDs',
    :'networks' => :'networks',
    :'pin_policy' => :'pinPolicy',
    :'placement_group' => :'placementGroup',
    :'proc_type' => :'procType',
    :'processors' => :'processors',
    :'replicant_affinity_policy' => :'replicantAffinityPolicy',
    :'replicant_naming_scheme' => :'replicantNamingScheme',
    :'replicants' => :'replicants',
    :'server_name' => :'serverName',
    :'shared_processor_pool' => :'sharedProcessorPool',
    :'software_licenses' => :'softwareLicenses',
    :'storage_affinity' => :'storageAffinity',
    :'storage_connection' => :'storageConnection',
    :'storage_pool' => :'storagePool',
    :'storage_pool_affinity' => :'storagePoolAffinity',
    :'storage_type' => :'storageType',
    :'sys_type' => :'sysType',
    :'user_data' => :'userData',
    :'user_tags' => :'userTags',
    :'virtual_cores' => :'virtualCores',
    :'virtual_serial_number' => :'virtualSerialNumber',
    :'volume_ids' => :'volumeIDs'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash



517
518
519
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 517

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

.openapi_nullableObject

List of attributes with nullable: true



201
202
203
204
205
206
207
208
209
210
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 201

def self.openapi_nullable
  Set.new([
    :'deployment_target',
    :'software_licenses',
    :'storage_affinity',
    :'user_tags',
    :'virtual_cores',
    :'virtual_serial_number',
  ])
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 165

def self.openapi_types
  {
    :'deployment_target' => :'DeploymentTarget',
    :'deployment_type' => :'String',
    :'image_id' => :'String',
    :'key_pair_name' => :'String',
    :'license_repository_capacity' => :'Integer',
    :'memory' => :'Float',
    :'migratable' => :'Boolean',
    :'network_ids' => :'Array<String>',
    :'networks' => :'Array<PVMInstanceAddNetwork>',
    :'pin_policy' => :'PinPolicy',
    :'placement_group' => :'String',
    :'proc_type' => :'String',
    :'processors' => :'Float',
    :'replicant_affinity_policy' => :'String',
    :'replicant_naming_scheme' => :'String',
    :'replicants' => :'Float',
    :'server_name' => :'String',
    :'shared_processor_pool' => :'String',
    :'software_licenses' => :'SoftwareLicenses',
    :'storage_affinity' => :'StorageAffinity',
    :'storage_connection' => :'String',
    :'storage_pool' => :'String',
    :'storage_pool_affinity' => :'Boolean',
    :'storage_type' => :'String',
    :'sys_type' => :'String',
    :'user_data' => :'String',
    :'user_tags' => :'Array',
    :'virtual_cores' => :'VirtualCores',
    :'virtual_serial_number' => :'CreateServerVirtualSerialNumber',
    :'volume_ids' => :'Array<String>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.



467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 467

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      deployment_target == o.deployment_target &&
      deployment_type == o.deployment_type &&
      image_id == o.image_id &&
      key_pair_name == o.key_pair_name &&
      license_repository_capacity == o.license_repository_capacity &&
      memory == o.memory &&
      migratable == o.migratable &&
      network_ids == o.network_ids &&
      networks == o.networks &&
      pin_policy == o.pin_policy &&
      placement_group == o.placement_group &&
      proc_type == o.proc_type &&
      processors == o.processors &&
      replicant_affinity_policy == o.replicant_affinity_policy &&
      replicant_naming_scheme == o.replicant_naming_scheme &&
      replicants == o.replicants &&
      server_name == o.server_name &&
      shared_processor_pool == o.shared_processor_pool &&
      software_licenses == o.software_licenses &&
      storage_affinity == o.storage_affinity &&
      storage_connection == o.storage_connection &&
      storage_pool == o.storage_pool &&
      storage_pool_affinity == o.storage_pool_affinity &&
      storage_type == o.storage_type &&
      sys_type == o.sys_type &&
      user_data == o.user_data &&
      user_tags == o.user_tags &&
      virtual_cores == o.virtual_cores &&
      virtual_serial_number == o.virtual_serial_number &&
      volume_ids == o.volume_ids
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type



547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 547

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 = IbmCloudPower.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



618
619
620
621
622
623
624
625
626
627
628
629
630
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 618

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



524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 524

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.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[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

See Also:

  • `==` method


504
505
506
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 504

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.



510
511
512
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 510

def hash
  [deployment_target, deployment_type, image_id, key_pair_name, license_repository_capacity, memory, migratable, network_ids, networks, pin_policy, placement_group, proc_type, processors, replicant_affinity_policy, replicant_naming_scheme, replicants, server_name, shared_processor_pool, software_licenses, storage_affinity, storage_connection, storage_pool, storage_pool_affinity, storage_type, sys_type, user_data, user_tags, virtual_cores, virtual_serial_number, volume_ids].hash
end

#list_invalid_propertiesObject

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



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
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 366

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

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

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

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

  if !@replicants.nil? && @replicants < 1
    invalid_properties.push('invalid value for "replicants", must be greater than or equal to 1.')
  end

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

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)



594
595
596
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 594

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash



600
601
602
603
604
605
606
607
608
609
610
611
612
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 600

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.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



588
589
590
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 588

def to_s
  to_hash.to_s
end

#valid?Boolean

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



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'lib/ibm_cloud_power/models/pvm_instance_create.rb', line 397

def valid?
  return false if @image_id.nil?
  return false if @memory.nil?
  return false if @proc_type.nil?
  proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"])
  return false unless proc_type_validator.valid?(@proc_type)
  return false if @processors.nil?
  replicant_affinity_policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"])
  return false unless replicant_affinity_policy_validator.valid?(@replicant_affinity_policy)
  replicant_naming_scheme_validator = EnumAttributeValidator.new('String', ["prefix", "suffix"])
  return false unless replicant_naming_scheme_validator.valid?(@replicant_naming_scheme)
  return false if !@replicants.nil? && @replicants < 1
  return false if @server_name.nil?
  storage_connection_validator = EnumAttributeValidator.new('String', ["vSCSI", "maxVolumeSupport"])
  return false unless storage_connection_validator.valid?(@storage_connection)
  true
end