in ecs-20140526/src/Models/RunInstancesRequest.php [541:895]
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->cpuOptions) {
$res['CpuOptions'] = null !== $this->cpuOptions ? $this->cpuOptions->toArray($noStream) : $this->cpuOptions;
}
if (null !== $this->hibernationOptions) {
$res['HibernationOptions'] = null !== $this->hibernationOptions ? $this->hibernationOptions->toArray($noStream) : $this->hibernationOptions;
}
if (null !== $this->privatePoolOptions) {
$res['PrivatePoolOptions'] = null !== $this->privatePoolOptions ? $this->privatePoolOptions->toArray($noStream) : $this->privatePoolOptions;
}
if (null !== $this->schedulerOptions) {
$res['SchedulerOptions'] = null !== $this->schedulerOptions ? $this->schedulerOptions->toArray($noStream) : $this->schedulerOptions;
}
if (null !== $this->securityOptions) {
$res['SecurityOptions'] = null !== $this->securityOptions ? $this->securityOptions->toArray($noStream) : $this->securityOptions;
}
if (null !== $this->systemDisk) {
$res['SystemDisk'] = null !== $this->systemDisk ? $this->systemDisk->toArray($noStream) : $this->systemDisk;
}
if (null !== $this->affinity) {
$res['Affinity'] = $this->affinity;
}
if (null !== $this->amount) {
$res['Amount'] = $this->amount;
}
if (null !== $this->arn) {
if (\is_array($this->arn)) {
$res['Arn'] = [];
$n1 = 0;
foreach ($this->arn as $item1) {
$res['Arn'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->autoPay) {
$res['AutoPay'] = $this->autoPay;
}
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) {
if (\is_array($this->dataDisk)) {
$res['DataDisk'] = [];
$n1 = 0;
foreach ($this->dataDisk as $item1) {
$res['DataDisk'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
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->hostName) {
$res['HostName'] = $this->hostName;
}
if (null !== $this->hostNames) {
if (\is_array($this->hostNames)) {
$res['HostNames'] = [];
$n1 = 0;
foreach ($this->hostNames as $item1) {
$res['HostNames'][$n1++] = $item1;
}
}
}
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->imageOptions) {
$res['ImageOptions'] = null !== $this->imageOptions ? $this->imageOptions->toArray($noStream) : $this->imageOptions;
}
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) {
if (\is_array($this->ipv6Address)) {
$res['Ipv6Address'] = [];
$n1 = 0;
foreach ($this->ipv6Address as $item1) {
$res['Ipv6Address'][$n1++] = $item1;
}
}
}
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->minAmount) {
$res['MinAmount'] = $this->minAmount;
}
if (null !== $this->networkInterface) {
if (\is_array($this->networkInterface)) {
$res['NetworkInterface'] = [];
$n1 = 0;
foreach ($this->networkInterface as $item1) {
$res['NetworkInterface'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->networkInterfaceQueueNumber) {
$res['NetworkInterfaceQueueNumber'] = $this->networkInterfaceQueueNumber;
}
if (null !== $this->networkOptions) {
$res['NetworkOptions'] = null !== $this->networkOptions ? $this->networkOptions->toArray($noStream) : $this->networkOptions;
}
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->privateDnsNameOptions) {
$res['PrivateDnsNameOptions'] = null !== $this->privateDnsNameOptions ? $this->privateDnsNameOptions->toArray($noStream) : $this->privateDnsNameOptions;
}
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) {
if (\is_array($this->securityGroupIds)) {
$res['SecurityGroupIds'] = [];
$n1 = 0;
foreach ($this->securityGroupIds as $item1) {
$res['SecurityGroupIds'][$n1++] = $item1;
}
}
}
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) {
if (\is_array($this->tag)) {
$res['Tag'] = [];
$n1 = 0;
foreach ($this->tag as $item1) {
$res['Tag'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
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;
}