in ecs-20160314/src/Models/CreateWaitingOrderRequest.php [471:722]
public function toMap()
{
$res = [];
if (null !== $this->cpuOptions) {
$res['CpuOptions'] = null !== $this->cpuOptions ? $this->cpuOptions->toMap() : null;
}
if (null !== $this->hibernationOptions) {
$res['HibernationOptions'] = null !== $this->hibernationOptions ? $this->hibernationOptions->toMap() : null;
}
if (null !== $this->privatePoolOptions) {
$res['PrivatePoolOptions'] = null !== $this->privatePoolOptions ? $this->privatePoolOptions->toMap() : null;
}
if (null !== $this->schedulerOptions) {
$res['SchedulerOptions'] = null !== $this->schedulerOptions ? $this->schedulerOptions->toMap() : null;
}
if (null !== $this->securityOptions) {
$res['SecurityOptions'] = null !== $this->securityOptions ? $this->securityOptions->toMap() : null;
}
if (null !== $this->systemDisk) {
$res['SystemDisk'] = null !== $this->systemDisk ? $this->systemDisk->toMap() : null;
}
if (null !== $this->affinity) {
$res['Affinity'] = $this->affinity;
}
if (null !== $this->arn) {
$res['Arn'] = [];
if (null !== $this->arn && \is_array($this->arn)) {
$n = 0;
foreach ($this->arn as $item) {
$res['Arn'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->autoReleaseTime) {
$res['AutoReleaseTime'] = $this->autoReleaseTime;
}
if (null !== $this->autoRenew) {
$res['AutoRenew'] = $this->autoRenew;
}
if (null !== $this->autoRenewPeriod) {
$res['AutoRenewPeriod'] = $this->autoRenewPeriod;
}
if (null !== $this->clientToken) {
$res['ClientToken'] = $this->clientToken;
}
if (null !== $this->creditSpecification) {
$res['CreditSpecification'] = $this->creditSpecification;
}
if (null !== $this->dataDisk) {
$res['DataDisk'] = [];
if (null !== $this->dataDisk && \is_array($this->dataDisk)) {
$n = 0;
foreach ($this->dataDisk as $item) {
$res['DataDisk'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->dedicatedHostId) {
$res['DedicatedHostId'] = $this->dedicatedHostId;
}
if (null !== $this->deletionProtection) {
$res['DeletionProtection'] = $this->deletionProtection;
}
if (null !== $this->deploymentSetGroupNo) {
$res['DeploymentSetGroupNo'] = $this->deploymentSetGroupNo;
}
if (null !== $this->deploymentSetId) {
$res['DeploymentSetId'] = $this->deploymentSetId;
}
if (null !== $this->description) {
$res['Description'] = $this->description;
}
if (null !== $this->dryRun) {
$res['DryRun'] = $this->dryRun;
}
if (null !== $this->expiredTime) {
$res['ExpiredTime'] = $this->expiredTime;
}
if (null !== $this->hostName) {
$res['HostName'] = $this->hostName;
}
if (null !== $this->hostNames) {
$res['HostNames'] = $this->hostNames;
}
if (null !== $this->hpcClusterId) {
$res['HpcClusterId'] = $this->hpcClusterId;
}
if (null !== $this->httpEndpoint) {
$res['HttpEndpoint'] = $this->httpEndpoint;
}
if (null !== $this->httpPutResponseHopLimit) {
$res['HttpPutResponseHopLimit'] = $this->httpPutResponseHopLimit;
}
if (null !== $this->httpTokens) {
$res['HttpTokens'] = $this->httpTokens;
}
if (null !== $this->imageFamily) {
$res['ImageFamily'] = $this->imageFamily;
}
if (null !== $this->imageId) {
$res['ImageId'] = $this->imageId;
}
if (null !== $this->instanceChargeType) {
$res['InstanceChargeType'] = $this->instanceChargeType;
}
if (null !== $this->instanceName) {
$res['InstanceName'] = $this->instanceName;
}
if (null !== $this->instanceType) {
$res['InstanceType'] = $this->instanceType;
}
if (null !== $this->internetChargeType) {
$res['InternetChargeType'] = $this->internetChargeType;
}
if (null !== $this->internetMaxBandwidthIn) {
$res['InternetMaxBandwidthIn'] = $this->internetMaxBandwidthIn;
}
if (null !== $this->internetMaxBandwidthOut) {
$res['InternetMaxBandwidthOut'] = $this->internetMaxBandwidthOut;
}
if (null !== $this->ioOptimized) {
$res['IoOptimized'] = $this->ioOptimized;
}
if (null !== $this->ipv6Address) {
$res['Ipv6Address'] = $this->ipv6Address;
}
if (null !== $this->ipv6AddressCount) {
$res['Ipv6AddressCount'] = $this->ipv6AddressCount;
}
if (null !== $this->isp) {
$res['Isp'] = $this->isp;
}
if (null !== $this->keyPairName) {
$res['KeyPairName'] = $this->keyPairName;
}
if (null !== $this->launchTemplateId) {
$res['LaunchTemplateId'] = $this->launchTemplateId;
}
if (null !== $this->launchTemplateName) {
$res['LaunchTemplateName'] = $this->launchTemplateName;
}
if (null !== $this->launchTemplateVersion) {
$res['LaunchTemplateVersion'] = $this->launchTemplateVersion;
}
if (null !== $this->maxAmount) {
$res['MaxAmount'] = $this->maxAmount;
}
if (null !== $this->minAmount) {
$res['MinAmount'] = $this->minAmount;
}
if (null !== $this->networkInterface) {
$res['NetworkInterface'] = [];
if (null !== $this->networkInterface && \is_array($this->networkInterface)) {
$n = 0;
foreach ($this->networkInterface as $item) {
$res['NetworkInterface'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->networkInterfaceQueueNumber) {
$res['NetworkInterfaceQueueNumber'] = $this->networkInterfaceQueueNumber;
}
if (null !== $this->ownerAccount) {
$res['OwnerAccount'] = $this->ownerAccount;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->password) {
$res['Password'] = $this->password;
}
if (null !== $this->passwordInherit) {
$res['PasswordInherit'] = $this->passwordInherit;
}
if (null !== $this->period) {
$res['Period'] = $this->period;
}
if (null !== $this->periodUnit) {
$res['PeriodUnit'] = $this->periodUnit;
}
if (null !== $this->privateIpAddress) {
$res['PrivateIpAddress'] = $this->privateIpAddress;
}
if (null !== $this->ramRoleName) {
$res['RamRoleName'] = $this->ramRoleName;
}
if (null !== $this->regionId) {
$res['RegionId'] = $this->regionId;
}
if (null !== $this->resourceGroupId) {
$res['ResourceGroupId'] = $this->resourceGroupId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->securityEnhancementStrategy) {
$res['SecurityEnhancementStrategy'] = $this->securityEnhancementStrategy;
}
if (null !== $this->securityGroupId) {
$res['SecurityGroupId'] = $this->securityGroupId;
}
if (null !== $this->securityGroupIds) {
$res['SecurityGroupIds'] = $this->securityGroupIds;
}
if (null !== $this->spotDuration) {
$res['SpotDuration'] = $this->spotDuration;
}
if (null !== $this->spotInterruptionBehavior) {
$res['SpotInterruptionBehavior'] = $this->spotInterruptionBehavior;
}
if (null !== $this->spotPriceLimit) {
$res['SpotPriceLimit'] = $this->spotPriceLimit;
}
if (null !== $this->spotStrategy) {
$res['SpotStrategy'] = $this->spotStrategy;
}
if (null !== $this->storageSetId) {
$res['StorageSetId'] = $this->storageSetId;
}
if (null !== $this->storageSetPartitionNumber) {
$res['StorageSetPartitionNumber'] = $this->storageSetPartitionNumber;
}
if (null !== $this->tag) {
$res['Tag'] = [];
if (null !== $this->tag && \is_array($this->tag)) {
$n = 0;
foreach ($this->tag as $item) {
$res['Tag'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->tenancy) {
$res['Tenancy'] = $this->tenancy;
}
if (null !== $this->uniqueSuffix) {
$res['UniqueSuffix'] = $this->uniqueSuffix;
}
if (null !== $this->userData) {
$res['UserData'] = $this->userData;
}
if (null !== $this->vSwitchId) {
$res['VSwitchId'] = $this->vSwitchId;
}
if (null !== $this->zoneId) {
$res['ZoneId'] = $this->zoneId;
}
return $res;
}