@@ -1470,7 +1470,9 @@ def create_org_vdc(self,
14701470 uses_fast_provisioning = None ,
14711471 over_commit_allowed = None ,
14721472 vm_discovery_enabled = None ,
1473- is_enabled = True ):
1473+ is_enabled = True ,
1474+ is_elastic = False ,
1475+ include_memory_overhead = False ):
14741476 """Create an Organization VDC in the current organization.
14751477
14761478 :param str vdc_name: name of the new org vdc.
@@ -1479,7 +1481,7 @@ def create_org_vdc(self,
14791481 :param str description: description of the new org vdc.
14801482 :param str allocation_model: allocation model used by this vdc.
14811483 Accepted values are 'AllocationVApp', 'AllocationPool' or
1482- 'ReservationPool'.
1484+ 'ReservationPool' or 'Flex' .
14831485 :param str cpu_units: unit for compute capacity allocated to this vdc.
14841486 Accepted values are 'MHz' or 'GHz'.
14851487 :param int cpu_allocated: capacity that is committed to be available.
@@ -1530,6 +1532,10 @@ def create_org_vdc(self,
15301532 is enabled for resource pools backing this vdc.
15311533 :param bool is_enabled: True, if this vdc is enabled for use by the
15321534 organization users.
1535+ :param bool is_elastic: Defaults to False, True to enable elasticity
1536+ in Flex allocation model.
1537+ :param bool include_memory_overhead: Defaults to False,
1538+ True to include memory overhead in Flex allocation model.
15331539
15341540 :return: an object containing EntityType.VDC XML data describing the
15351541 new VDC.
@@ -1589,6 +1595,10 @@ def create_org_vdc(self,
15891595 params .append (E .OverCommitAllowed (over_commit_allowed ))
15901596 if vm_discovery_enabled is not None :
15911597 params .append (E .VmDiscoveryEnabled (vm_discovery_enabled ))
1598+ if is_elastic :
1599+ params .append (E .IsElastic (is_elastic ))
1600+ if include_memory_overhead :
1601+ params .append (E .IncludeMemoryOverhead (include_memory_overhead ))
15921602 return self .client .post_linked_resource (
15931603 resource_admin , RelationType .ADD , EntityType .VDCS_PARAMS .value ,
15941604 params )
0 commit comments