コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the CloudPool class.
 /// </summary>
 /// <param name="id">A string that uniquely identifies the pool within
 /// the account.</param>
 /// <param name="displayName">The display name for the pool.</param>
 /// <param name="url">The URL of the pool.</param>
 /// <param name="eTag">The ETag of the pool.</param>
 /// <param name="lastModified">The last modified time of the
 /// pool.</param>
 /// <param name="creationTime">The creation time of the pool.</param>
 /// <param name="state">The current state of the pool.</param>
 /// <param name="stateTransitionTime">The time at which the pool
 /// entered its current state.</param>
 /// <param name="allocationState">Whether the pool is resizing.</param>
 /// <param name="allocationStateTransitionTime">The time at which the
 /// pool entered its current allocation state.</param>
 /// <param name="vmSize">The size of virtual machines in the pool. All
 /// virtual machines in a pool are the same size.</param>
 /// <param name="cloudServiceConfiguration">The cloud service
 /// configuration for the pool.</param>
 /// <param name="virtualMachineConfiguration">The virtual machine
 /// configuration for the pool.</param>
 /// <param name="resizeTimeout">The timeout for allocation of compute
 /// nodes to the pool.</param>
 /// <param name="resizeError">Details of any error encountered while
 /// performing the last resize on the pool.</param>
 /// <param name="currentDedicated">The number of compute nodes
 /// currently in the pool.</param>
 /// <param name="targetDedicated">The desired number of compute nodes
 /// in the pool.</param>
 /// <param name="enableAutoScale">Whether the pool size should
 /// automatically adjust over time.</param>
 /// <param name="autoScaleFormula">A formula for the desired number of
 /// compute nodes in the pool.</param>
 /// <param name="autoScaleEvaluationInterval">A time interval for the
 /// desired AutoScale evaluation period in the pool.</param>
 /// <param name="autoScaleRun">The results and errors from the last
 /// execution of the autoscale formula.</param>
 /// <param name="enableInterNodeCommunication">Whether the pool
 /// permits direct communication between nodes.</param>
 /// <param name="networkConfiguration">The network configuration for
 /// the pool.</param>
 /// <param name="startTask">A task specified to run on each compute
 /// node as it joins the pool.</param>
 /// <param name="certificateReferences">The list of certificates to be
 /// installed on each compute node in the pool.</param>
 /// <param name="applicationPackageReferences">The list of application
 /// packages to be installed on each compute node in the pool.</param>
 /// <param name="maxTasksPerNode">The maximum number of tasks that can
 /// run concurrently on a single compute node in the pool.</param>
 /// <param name="taskSchedulingPolicy">How the Batch service
 /// distributes tasks between compute nodes in the pool.</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// the pool as metadata.</param>
 /// <param name="stats">Utilization and resource usage statistics for
 /// the entire lifetime of the pool.</param>
 public CloudPool(string id = default(string), string displayName = default(string), string url = default(string), string eTag = default(string), System.DateTime?lastModified = default(System.DateTime?), System.DateTime?creationTime = default(System.DateTime?), PoolState?state = default(PoolState?), System.DateTime?stateTransitionTime = default(System.DateTime?), AllocationState?allocationState = default(AllocationState?), System.DateTime?allocationStateTransitionTime = default(System.DateTime?), string vmSize = default(string), CloudServiceConfiguration cloudServiceConfiguration = default(CloudServiceConfiguration), VirtualMachineConfiguration virtualMachineConfiguration = default(VirtualMachineConfiguration), System.TimeSpan?resizeTimeout = default(System.TimeSpan?), ResizeError resizeError = default(ResizeError), int?currentDedicated = default(int?), int?targetDedicated = default(int?), bool?enableAutoScale = default(bool?), string autoScaleFormula = default(string), System.TimeSpan?autoScaleEvaluationInterval = default(System.TimeSpan?), AutoScaleRun autoScaleRun = default(AutoScaleRun), bool?enableInterNodeCommunication = default(bool?), NetworkConfiguration networkConfiguration = default(NetworkConfiguration), StartTask startTask = default(StartTask), System.Collections.Generic.IList <CertificateReference> certificateReferences = default(System.Collections.Generic.IList <CertificateReference>), System.Collections.Generic.IList <ApplicationPackageReference> applicationPackageReferences = default(System.Collections.Generic.IList <ApplicationPackageReference>), int?maxTasksPerNode = default(int?), TaskSchedulingPolicy taskSchedulingPolicy = default(TaskSchedulingPolicy), System.Collections.Generic.IList <MetadataItem> metadata = default(System.Collections.Generic.IList <MetadataItem>), PoolStatistics stats = default(PoolStatistics))
 {
     Id                            = id;
     DisplayName                   = displayName;
     Url                           = url;
     ETag                          = eTag;
     LastModified                  = lastModified;
     CreationTime                  = creationTime;
     State                         = state;
     StateTransitionTime           = stateTransitionTime;
     AllocationState               = allocationState;
     AllocationStateTransitionTime = allocationStateTransitionTime;
     VmSize                        = vmSize;
     CloudServiceConfiguration     = cloudServiceConfiguration;
     VirtualMachineConfiguration   = virtualMachineConfiguration;
     ResizeTimeout                 = resizeTimeout;
     ResizeError                   = resizeError;
     CurrentDedicated              = currentDedicated;
     TargetDedicated               = targetDedicated;
     EnableAutoScale               = enableAutoScale;
     AutoScaleFormula              = autoScaleFormula;
     AutoScaleEvaluationInterval   = autoScaleEvaluationInterval;
     AutoScaleRun                  = autoScaleRun;
     EnableInterNodeCommunication  = enableInterNodeCommunication;
     NetworkConfiguration          = networkConfiguration;
     StartTask                     = startTask;
     CertificateReferences         = certificateReferences;
     ApplicationPackageReferences  = applicationPackageReferences;
     MaxTasksPerNode               = maxTasksPerNode;
     TaskSchedulingPolicy          = taskSchedulingPolicy;
     Metadata                      = metadata;
     Stats                         = stats;
 }
コード例 #2
0
 internal ResizeError(Models.ResizeError protocolObject)
 {
     this.code    = protocolObject.Code;
     this.message = protocolObject.Message;
     this.values  = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Values);
 }