/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolSpecification.cs
C# | 375 lines | 324 code | 29 blank | 22 comment | 47 complexity | e369ed6de37d53c6d0d260f9809ac546 MD5 | raw file
- // -----------------------------------------------------------------------------
- //
- // Copyright Microsoft Corporation
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- // http://www.apache.org/licenses/LICENSE-2.0
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- // -----------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.42000
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- namespace Microsoft.Azure.Commands.Batch.Models
- {
- using System.Collections.Generic;
-
-
- public class PSPoolSpecification
- {
-
- internal Microsoft.Azure.Batch.PoolSpecification omObject;
-
- private IList<PSApplicationPackageReference> applicationPackageReferences;
-
- private IList<PSCertificateReference> certificateReferences;
-
- private PSCloudServiceConfiguration cloudServiceConfiguration;
-
- private IList<PSMetadataItem> metadata;
-
- private PSStartTask startTask;
-
- private PSTaskSchedulingPolicy taskSchedulingPolicy;
-
- private PSVirtualMachineConfiguration virtualMachineConfiguration;
-
- public PSPoolSpecification()
- {
- this.omObject = new Microsoft.Azure.Batch.PoolSpecification();
- }
-
- internal PSPoolSpecification(Microsoft.Azure.Batch.PoolSpecification omObject)
- {
- if ((omObject == null))
- {
- throw new System.ArgumentNullException("omObject");
- }
- this.omObject = omObject;
- }
-
- public IList<PSApplicationPackageReference> ApplicationPackageReferences
- {
- get
- {
- if (((this.applicationPackageReferences == null)
- && (this.omObject.ApplicationPackageReferences != null)))
- {
- List<PSApplicationPackageReference> list;
- list = new List<PSApplicationPackageReference>();
- IEnumerator<Microsoft.Azure.Batch.ApplicationPackageReference> enumerator;
- enumerator = this.omObject.ApplicationPackageReferences.GetEnumerator();
- for (
- ; enumerator.MoveNext();
- )
- {
- list.Add(new PSApplicationPackageReference(enumerator.Current));
- }
- this.applicationPackageReferences = list;
- }
- return this.applicationPackageReferences;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.ApplicationPackageReferences = null;
- }
- else
- {
- this.omObject.ApplicationPackageReferences = new List<Microsoft.Azure.Batch.ApplicationPackageReference>();
- }
- this.applicationPackageReferences = value;
- }
- }
-
- public System.Boolean? AutoScaleEnabled
- {
- get
- {
- return this.omObject.AutoScaleEnabled;
- }
- set
- {
- this.omObject.AutoScaleEnabled = value;
- }
- }
-
- public System.TimeSpan? AutoScaleEvaluationInterval
- {
- get
- {
- return this.omObject.AutoScaleEvaluationInterval;
- }
- set
- {
- this.omObject.AutoScaleEvaluationInterval = value;
- }
- }
-
- public string AutoScaleFormula
- {
- get
- {
- return this.omObject.AutoScaleFormula;
- }
- set
- {
- this.omObject.AutoScaleFormula = value;
- }
- }
-
- public IList<PSCertificateReference> CertificateReferences
- {
- get
- {
- if (((this.certificateReferences == null)
- && (this.omObject.CertificateReferences != null)))
- {
- List<PSCertificateReference> list;
- list = new List<PSCertificateReference>();
- IEnumerator<Microsoft.Azure.Batch.CertificateReference> enumerator;
- enumerator = this.omObject.CertificateReferences.GetEnumerator();
- for (
- ; enumerator.MoveNext();
- )
- {
- list.Add(new PSCertificateReference(enumerator.Current));
- }
- this.certificateReferences = list;
- }
- return this.certificateReferences;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.CertificateReferences = null;
- }
- else
- {
- this.omObject.CertificateReferences = new List<Microsoft.Azure.Batch.CertificateReference>();
- }
- this.certificateReferences = value;
- }
- }
-
- public PSCloudServiceConfiguration CloudServiceConfiguration
- {
- get
- {
- if (((this.cloudServiceConfiguration == null)
- && (this.omObject.CloudServiceConfiguration != null)))
- {
- this.cloudServiceConfiguration = new PSCloudServiceConfiguration(this.omObject.CloudServiceConfiguration);
- }
- return this.cloudServiceConfiguration;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.CloudServiceConfiguration = null;
- }
- else
- {
- this.omObject.CloudServiceConfiguration = value.omObject;
- }
- this.cloudServiceConfiguration = value;
- }
- }
-
- public string DisplayName
- {
- get
- {
- return this.omObject.DisplayName;
- }
- set
- {
- this.omObject.DisplayName = value;
- }
- }
-
- public System.Boolean? InterComputeNodeCommunicationEnabled
- {
- get
- {
- return this.omObject.InterComputeNodeCommunicationEnabled;
- }
- set
- {
- this.omObject.InterComputeNodeCommunicationEnabled = value;
- }
- }
-
- public System.Int32? MaxTasksPerComputeNode
- {
- get
- {
- return this.omObject.MaxTasksPerComputeNode;
- }
- set
- {
- this.omObject.MaxTasksPerComputeNode = value;
- }
- }
-
- public IList<PSMetadataItem> Metadata
- {
- get
- {
- if (((this.metadata == null)
- && (this.omObject.Metadata != null)))
- {
- List<PSMetadataItem> list;
- list = new List<PSMetadataItem>();
- IEnumerator<Microsoft.Azure.Batch.MetadataItem> enumerator;
- enumerator = this.omObject.Metadata.GetEnumerator();
- for (
- ; enumerator.MoveNext();
- )
- {
- list.Add(new PSMetadataItem(enumerator.Current));
- }
- this.metadata = list;
- }
- return this.metadata;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.Metadata = null;
- }
- else
- {
- this.omObject.Metadata = new List<Microsoft.Azure.Batch.MetadataItem>();
- }
- this.metadata = value;
- }
- }
-
- public System.TimeSpan? ResizeTimeout
- {
- get
- {
- return this.omObject.ResizeTimeout;
- }
- set
- {
- this.omObject.ResizeTimeout = value;
- }
- }
-
- public PSStartTask StartTask
- {
- get
- {
- if (((this.startTask == null)
- && (this.omObject.StartTask != null)))
- {
- this.startTask = new PSStartTask(this.omObject.StartTask);
- }
- return this.startTask;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.StartTask = null;
- }
- else
- {
- this.omObject.StartTask = value.omObject;
- }
- this.startTask = value;
- }
- }
-
- public System.Int32? TargetDedicated
- {
- get
- {
- return this.omObject.TargetDedicated;
- }
- set
- {
- this.omObject.TargetDedicated = value;
- }
- }
-
- public PSTaskSchedulingPolicy TaskSchedulingPolicy
- {
- get
- {
- if (((this.taskSchedulingPolicy == null)
- && (this.omObject.TaskSchedulingPolicy != null)))
- {
- this.taskSchedulingPolicy = new PSTaskSchedulingPolicy(this.omObject.TaskSchedulingPolicy);
- }
- return this.taskSchedulingPolicy;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.TaskSchedulingPolicy = null;
- }
- else
- {
- this.omObject.TaskSchedulingPolicy = value.omObject;
- }
- this.taskSchedulingPolicy = value;
- }
- }
-
- public PSVirtualMachineConfiguration VirtualMachineConfiguration
- {
- get
- {
- if (((this.virtualMachineConfiguration == null)
- && (this.omObject.VirtualMachineConfiguration != null)))
- {
- this.virtualMachineConfiguration = new PSVirtualMachineConfiguration(this.omObject.VirtualMachineConfiguration);
- }
- return this.virtualMachineConfiguration;
- }
- set
- {
- if ((value == null))
- {
- this.omObject.VirtualMachineConfiguration = null;
- }
- else
- {
- this.omObject.VirtualMachineConfiguration = value.omObject;
- }
- this.virtualMachineConfiguration = value;
- }
- }
-
- public string VirtualMachineSize
- {
- get
- {
- return this.omObject.VirtualMachineSize;
- }
- set
- {
- this.omObject.VirtualMachineSize = value;
- }
- }
- }
- }