def create_agent_pool_profile_instance(agentpoolprofile): ''' Helper method to serialize a dict to a ContainerServiceAgentPoolProfile :param: agentpoolprofile: dict with the parameters to setup the ContainerServiceAgentPoolProfile :return: ContainerServiceAgentPoolProfile ''' return ContainerServiceAgentPoolProfile( name=agentpoolprofile['name'], count=agentpoolprofile['count'], dns_prefix=agentpoolprofile['dns_prefix'], vm_size=agentpoolprofile['vm_size'])
def create_agent_pool_profile_instance(agentpoolprofile): ''' Helper method to serialize a dict to a ContainerServiceAgentPoolProfile :param: agentpoolprofile: dict with the parameters to setup the ContainerServiceAgentPoolProfile :return: ContainerServiceAgentPoolProfile ''' return ContainerServiceAgentPoolProfile( name=agentpoolprofile['name'], count=agentpoolprofile['count'], vm_size=agentpoolprofile['vm_size'], os_disk_size_gb=agentpoolprofile['os_disk_size_gb'], dns_prefix=agentpoolprofile.get('dns_prefix'), ports=agentpoolprofile.get('ports'), storage_profile=agentpoolprofile.get('storage_profile'), vnet_subnet_id=agentpoolprofile.get('vnet_subnet_id'), os_type=agentpoolprofile.get('os_type'))