@@ -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,8 @@ 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 in Flex allocation model
1536+ :param bool include_memory_overhead: Defaults to False, True to include memory overhead in Flex allocation model
15331537
15341538 :return: an object containing EntityType.VDC XML data describing the
15351539 new VDC.
@@ -1589,6 +1593,10 @@ def create_org_vdc(self,
15891593 params .append (E .OverCommitAllowed (over_commit_allowed ))
15901594 if vm_discovery_enabled is not None :
15911595 params .append (E .VmDiscoveryEnabled (vm_discovery_enabled ))
1596+ if is_elastic :
1597+ params .append (E .IsElastic (is_elastic ))
1598+ if include_memory_overhead :
1599+ params .append (E .IncludeMemoryOverhead (include_memory_overhead ))
15921600 return self .client .post_linked_resource (
15931601 resource_admin , RelationType .ADD , EntityType .VDCS_PARAMS .value ,
15941602 params )
0 commit comments