in ess-20220222/src/Models/DescribeScalingConfigurationsResponseBody/scalingConfigurations.php [504:860]
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->affinity) {
$res['Affinity'] = $this->affinity;
}
if (null !== $this->cpu) {
$res['Cpu'] = $this->cpu;
}
if (null !== $this->creationTime) {
$res['CreationTime'] = $this->creationTime;
}
if (null !== $this->creditSpecification) {
$res['CreditSpecification'] = $this->creditSpecification;
}
if (null !== $this->customPriorities) {
if (\is_array($this->customPriorities)) {
$res['CustomPriorities'] = [];
$n1 = 0;
foreach ($this->customPriorities as $item1) {
$res['CustomPriorities'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->dataDisks) {
if (\is_array($this->dataDisks)) {
$res['DataDisks'] = [];
$n1 = 0;
foreach ($this->dataDisks as $item1) {
$res['DataDisks'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->dedicatedHostClusterId) {
$res['DedicatedHostClusterId'] = $this->dedicatedHostClusterId;
}
if (null !== $this->dedicatedHostId) {
$res['DedicatedHostId'] = $this->dedicatedHostId;
}
if (null !== $this->deletionProtection) {
$res['DeletionProtection'] = $this->deletionProtection;
}
if (null !== $this->deploymentSetId) {
$res['DeploymentSetId'] = $this->deploymentSetId;
}
if (null !== $this->hostName) {
$res['HostName'] = $this->hostName;
}
if (null !== $this->hpcClusterId) {
$res['HpcClusterId'] = $this->hpcClusterId;
}
if (null !== $this->httpEndpoint) {
$res['HttpEndpoint'] = $this->httpEndpoint;
}
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->imageName) {
$res['ImageName'] = $this->imageName;
}
if (null !== $this->imageOptionsLoginAsNonRoot) {
$res['ImageOptionsLoginAsNonRoot'] = $this->imageOptionsLoginAsNonRoot;
}
if (null !== $this->imageOwnerAlias) {
$res['ImageOwnerAlias'] = $this->imageOwnerAlias;
}
if (null !== $this->instanceDescription) {
$res['InstanceDescription'] = $this->instanceDescription;
}
if (null !== $this->instanceGeneration) {
$res['InstanceGeneration'] = $this->instanceGeneration;
}
if (null !== $this->instanceName) {
$res['InstanceName'] = $this->instanceName;
}
if (null !== $this->instancePatternInfos) {
if (\is_array($this->instancePatternInfos)) {
$res['InstancePatternInfos'] = [];
$n1 = 0;
foreach ($this->instancePatternInfos as $item1) {
$res['InstancePatternInfos'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->instanceType) {
$res['InstanceType'] = $this->instanceType;
}
if (null !== $this->instanceTypes) {
if (\is_array($this->instanceTypes)) {
$res['InstanceTypes'] = [];
$n1 = 0;
foreach ($this->instanceTypes as $item1) {
$res['InstanceTypes'][$n1++] = $item1;
}
}
}
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->ipv6AddressCount) {
$res['Ipv6AddressCount'] = $this->ipv6AddressCount;
}
if (null !== $this->keyPairName) {
$res['KeyPairName'] = $this->keyPairName;
}
if (null !== $this->lifecycleState) {
$res['LifecycleState'] = $this->lifecycleState;
}
if (null !== $this->loadBalancerWeight) {
$res['LoadBalancerWeight'] = $this->loadBalancerWeight;
}
if (null !== $this->memory) {
$res['Memory'] = $this->memory;
}
if (null !== $this->networkInterfaces) {
if (\is_array($this->networkInterfaces)) {
$res['NetworkInterfaces'] = [];
$n1 = 0;
foreach ($this->networkInterfaces as $item1) {
$res['NetworkInterfaces'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->passwordInherit) {
$res['PasswordInherit'] = $this->passwordInherit;
}
if (null !== $this->passwordSetted) {
$res['PasswordSetted'] = $this->passwordSetted;
}
if (null !== $this->privatePoolOptions_id) {
$res['PrivatePoolOptions.Id'] = $this->privatePoolOptions_id;
}
if (null !== $this->privatePoolOptions_matchCriteria) {
$res['PrivatePoolOptions.MatchCriteria'] = $this->privatePoolOptions_matchCriteria;
}
if (null !== $this->ramRoleName) {
$res['RamRoleName'] = $this->ramRoleName;
}
if (null !== $this->resourceGroupId) {
$res['ResourceGroupId'] = $this->resourceGroupId;
}
if (null !== $this->resourcePoolOptions) {
$res['ResourcePoolOptions'] = null !== $this->resourcePoolOptions ? $this->resourcePoolOptions->toArray($noStream) : $this->resourcePoolOptions;
}
if (null !== $this->scalingConfigurationId) {
$res['ScalingConfigurationId'] = $this->scalingConfigurationId;
}
if (null !== $this->scalingConfigurationName) {
$res['ScalingConfigurationName'] = $this->scalingConfigurationName;
}
if (null !== $this->scalingGroupId) {
$res['ScalingGroupId'] = $this->scalingGroupId;
}
if (null !== $this->schedulerOptions) {
$res['SchedulerOptions'] = null !== $this->schedulerOptions ? $this->schedulerOptions->toArray($noStream) : $this->schedulerOptions;
}
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->securityOptions) {
$res['SecurityOptions'] = null !== $this->securityOptions ? $this->securityOptions->toArray($noStream) : $this->securityOptions;
}
if (null !== $this->spotDuration) {
$res['SpotDuration'] = $this->spotDuration;
}
if (null !== $this->spotInterruptionBehavior) {
$res['SpotInterruptionBehavior'] = $this->spotInterruptionBehavior;
}
if (null !== $this->spotPriceLimits) {
if (\is_array($this->spotPriceLimits)) {
$res['SpotPriceLimits'] = [];
$n1 = 0;
foreach ($this->spotPriceLimits as $item1) {
$res['SpotPriceLimits'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
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->systemDiskAutoSnapshotPolicyId) {
$res['SystemDiskAutoSnapshotPolicyId'] = $this->systemDiskAutoSnapshotPolicyId;
}
if (null !== $this->systemDiskBurstingEnabled) {
$res['SystemDiskBurstingEnabled'] = $this->systemDiskBurstingEnabled;
}
if (null !== $this->systemDiskCategories) {
if (\is_array($this->systemDiskCategories)) {
$res['SystemDiskCategories'] = [];
$n1 = 0;
foreach ($this->systemDiskCategories as $item1) {
$res['SystemDiskCategories'][$n1++] = $item1;
}
}
}
if (null !== $this->systemDiskCategory) {
$res['SystemDiskCategory'] = $this->systemDiskCategory;
}
if (null !== $this->systemDiskDescription) {
$res['SystemDiskDescription'] = $this->systemDiskDescription;
}
if (null !== $this->systemDiskEncryptAlgorithm) {
$res['SystemDiskEncryptAlgorithm'] = $this->systemDiskEncryptAlgorithm;
}
if (null !== $this->systemDiskEncrypted) {
$res['SystemDiskEncrypted'] = $this->systemDiskEncrypted;
}
if (null !== $this->systemDiskKMSKeyId) {
$res['SystemDiskKMSKeyId'] = $this->systemDiskKMSKeyId;
}
if (null !== $this->systemDiskName) {
$res['SystemDiskName'] = $this->systemDiskName;
}
if (null !== $this->systemDiskPerformanceLevel) {
$res['SystemDiskPerformanceLevel'] = $this->systemDiskPerformanceLevel;
}
if (null !== $this->systemDiskProvisionedIops) {
$res['SystemDiskProvisionedIops'] = $this->systemDiskProvisionedIops;
}
if (null !== $this->systemDiskSize) {
$res['SystemDiskSize'] = $this->systemDiskSize;
}
if (null !== $this->tags) {
if (\is_array($this->tags)) {
$res['Tags'] = [];
$n1 = 0;
foreach ($this->tags as $item1) {
$res['Tags'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->tenancy) {
$res['Tenancy'] = $this->tenancy;
}
if (null !== $this->userData) {
$res['UserData'] = $this->userData;
}
if (null !== $this->weightedCapacities) {
if (\is_array($this->weightedCapacities)) {
$res['WeightedCapacities'] = [];
$n1 = 0;
foreach ($this->weightedCapacities as $item1) {
$res['WeightedCapacities'][$n1++] = $item1;
}
}
}
if (null !== $this->zoneId) {
$res['ZoneId'] = $this->zoneId;
}
return $res;
}