PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/src/ResourceManager/AzureBatch/Commands.Batch/Models.Generated/PSPoolSpecification.cs

https://gitlab.com/jslee1/azure-powershell
C# | 375 lines | 324 code | 29 blank | 22 comment | 47 complexity | e369ed6de37d53c6d0d260f9809ac546 MD5 | raw file
  1. // -----------------------------------------------------------------------------
  2. //
  3. // Copyright Microsoft Corporation
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. // -----------------------------------------------------------------------------
  14. //------------------------------------------------------------------------------
  15. // <auto-generated>
  16. // This code was generated by a tool.
  17. // Runtime Version:4.0.30319.42000
  18. //
  19. // Changes to this file may cause incorrect behavior and will be lost if
  20. // the code is regenerated.
  21. // </auto-generated>
  22. //------------------------------------------------------------------------------
  23. namespace Microsoft.Azure.Commands.Batch.Models
  24. {
  25. using System.Collections.Generic;
  26. public class PSPoolSpecification
  27. {
  28. internal Microsoft.Azure.Batch.PoolSpecification omObject;
  29. private IList<PSApplicationPackageReference> applicationPackageReferences;
  30. private IList<PSCertificateReference> certificateReferences;
  31. private PSCloudServiceConfiguration cloudServiceConfiguration;
  32. private IList<PSMetadataItem> metadata;
  33. private PSStartTask startTask;
  34. private PSTaskSchedulingPolicy taskSchedulingPolicy;
  35. private PSVirtualMachineConfiguration virtualMachineConfiguration;
  36. public PSPoolSpecification()
  37. {
  38. this.omObject = new Microsoft.Azure.Batch.PoolSpecification();
  39. }
  40. internal PSPoolSpecification(Microsoft.Azure.Batch.PoolSpecification omObject)
  41. {
  42. if ((omObject == null))
  43. {
  44. throw new System.ArgumentNullException("omObject");
  45. }
  46. this.omObject = omObject;
  47. }
  48. public IList<PSApplicationPackageReference> ApplicationPackageReferences
  49. {
  50. get
  51. {
  52. if (((this.applicationPackageReferences == null)
  53. && (this.omObject.ApplicationPackageReferences != null)))
  54. {
  55. List<PSApplicationPackageReference> list;
  56. list = new List<PSApplicationPackageReference>();
  57. IEnumerator<Microsoft.Azure.Batch.ApplicationPackageReference> enumerator;
  58. enumerator = this.omObject.ApplicationPackageReferences.GetEnumerator();
  59. for (
  60. ; enumerator.MoveNext();
  61. )
  62. {
  63. list.Add(new PSApplicationPackageReference(enumerator.Current));
  64. }
  65. this.applicationPackageReferences = list;
  66. }
  67. return this.applicationPackageReferences;
  68. }
  69. set
  70. {
  71. if ((value == null))
  72. {
  73. this.omObject.ApplicationPackageReferences = null;
  74. }
  75. else
  76. {
  77. this.omObject.ApplicationPackageReferences = new List<Microsoft.Azure.Batch.ApplicationPackageReference>();
  78. }
  79. this.applicationPackageReferences = value;
  80. }
  81. }
  82. public System.Boolean? AutoScaleEnabled
  83. {
  84. get
  85. {
  86. return this.omObject.AutoScaleEnabled;
  87. }
  88. set
  89. {
  90. this.omObject.AutoScaleEnabled = value;
  91. }
  92. }
  93. public System.TimeSpan? AutoScaleEvaluationInterval
  94. {
  95. get
  96. {
  97. return this.omObject.AutoScaleEvaluationInterval;
  98. }
  99. set
  100. {
  101. this.omObject.AutoScaleEvaluationInterval = value;
  102. }
  103. }
  104. public string AutoScaleFormula
  105. {
  106. get
  107. {
  108. return this.omObject.AutoScaleFormula;
  109. }
  110. set
  111. {
  112. this.omObject.AutoScaleFormula = value;
  113. }
  114. }
  115. public IList<PSCertificateReference> CertificateReferences
  116. {
  117. get
  118. {
  119. if (((this.certificateReferences == null)
  120. && (this.omObject.CertificateReferences != null)))
  121. {
  122. List<PSCertificateReference> list;
  123. list = new List<PSCertificateReference>();
  124. IEnumerator<Microsoft.Azure.Batch.CertificateReference> enumerator;
  125. enumerator = this.omObject.CertificateReferences.GetEnumerator();
  126. for (
  127. ; enumerator.MoveNext();
  128. )
  129. {
  130. list.Add(new PSCertificateReference(enumerator.Current));
  131. }
  132. this.certificateReferences = list;
  133. }
  134. return this.certificateReferences;
  135. }
  136. set
  137. {
  138. if ((value == null))
  139. {
  140. this.omObject.CertificateReferences = null;
  141. }
  142. else
  143. {
  144. this.omObject.CertificateReferences = new List<Microsoft.Azure.Batch.CertificateReference>();
  145. }
  146. this.certificateReferences = value;
  147. }
  148. }
  149. public PSCloudServiceConfiguration CloudServiceConfiguration
  150. {
  151. get
  152. {
  153. if (((this.cloudServiceConfiguration == null)
  154. && (this.omObject.CloudServiceConfiguration != null)))
  155. {
  156. this.cloudServiceConfiguration = new PSCloudServiceConfiguration(this.omObject.CloudServiceConfiguration);
  157. }
  158. return this.cloudServiceConfiguration;
  159. }
  160. set
  161. {
  162. if ((value == null))
  163. {
  164. this.omObject.CloudServiceConfiguration = null;
  165. }
  166. else
  167. {
  168. this.omObject.CloudServiceConfiguration = value.omObject;
  169. }
  170. this.cloudServiceConfiguration = value;
  171. }
  172. }
  173. public string DisplayName
  174. {
  175. get
  176. {
  177. return this.omObject.DisplayName;
  178. }
  179. set
  180. {
  181. this.omObject.DisplayName = value;
  182. }
  183. }
  184. public System.Boolean? InterComputeNodeCommunicationEnabled
  185. {
  186. get
  187. {
  188. return this.omObject.InterComputeNodeCommunicationEnabled;
  189. }
  190. set
  191. {
  192. this.omObject.InterComputeNodeCommunicationEnabled = value;
  193. }
  194. }
  195. public System.Int32? MaxTasksPerComputeNode
  196. {
  197. get
  198. {
  199. return this.omObject.MaxTasksPerComputeNode;
  200. }
  201. set
  202. {
  203. this.omObject.MaxTasksPerComputeNode = value;
  204. }
  205. }
  206. public IList<PSMetadataItem> Metadata
  207. {
  208. get
  209. {
  210. if (((this.metadata == null)
  211. && (this.omObject.Metadata != null)))
  212. {
  213. List<PSMetadataItem> list;
  214. list = new List<PSMetadataItem>();
  215. IEnumerator<Microsoft.Azure.Batch.MetadataItem> enumerator;
  216. enumerator = this.omObject.Metadata.GetEnumerator();
  217. for (
  218. ; enumerator.MoveNext();
  219. )
  220. {
  221. list.Add(new PSMetadataItem(enumerator.Current));
  222. }
  223. this.metadata = list;
  224. }
  225. return this.metadata;
  226. }
  227. set
  228. {
  229. if ((value == null))
  230. {
  231. this.omObject.Metadata = null;
  232. }
  233. else
  234. {
  235. this.omObject.Metadata = new List<Microsoft.Azure.Batch.MetadataItem>();
  236. }
  237. this.metadata = value;
  238. }
  239. }
  240. public System.TimeSpan? ResizeTimeout
  241. {
  242. get
  243. {
  244. return this.omObject.ResizeTimeout;
  245. }
  246. set
  247. {
  248. this.omObject.ResizeTimeout = value;
  249. }
  250. }
  251. public PSStartTask StartTask
  252. {
  253. get
  254. {
  255. if (((this.startTask == null)
  256. && (this.omObject.StartTask != null)))
  257. {
  258. this.startTask = new PSStartTask(this.omObject.StartTask);
  259. }
  260. return this.startTask;
  261. }
  262. set
  263. {
  264. if ((value == null))
  265. {
  266. this.omObject.StartTask = null;
  267. }
  268. else
  269. {
  270. this.omObject.StartTask = value.omObject;
  271. }
  272. this.startTask = value;
  273. }
  274. }
  275. public System.Int32? TargetDedicated
  276. {
  277. get
  278. {
  279. return this.omObject.TargetDedicated;
  280. }
  281. set
  282. {
  283. this.omObject.TargetDedicated = value;
  284. }
  285. }
  286. public PSTaskSchedulingPolicy TaskSchedulingPolicy
  287. {
  288. get
  289. {
  290. if (((this.taskSchedulingPolicy == null)
  291. && (this.omObject.TaskSchedulingPolicy != null)))
  292. {
  293. this.taskSchedulingPolicy = new PSTaskSchedulingPolicy(this.omObject.TaskSchedulingPolicy);
  294. }
  295. return this.taskSchedulingPolicy;
  296. }
  297. set
  298. {
  299. if ((value == null))
  300. {
  301. this.omObject.TaskSchedulingPolicy = null;
  302. }
  303. else
  304. {
  305. this.omObject.TaskSchedulingPolicy = value.omObject;
  306. }
  307. this.taskSchedulingPolicy = value;
  308. }
  309. }
  310. public PSVirtualMachineConfiguration VirtualMachineConfiguration
  311. {
  312. get
  313. {
  314. if (((this.virtualMachineConfiguration == null)
  315. && (this.omObject.VirtualMachineConfiguration != null)))
  316. {
  317. this.virtualMachineConfiguration = new PSVirtualMachineConfiguration(this.omObject.VirtualMachineConfiguration);
  318. }
  319. return this.virtualMachineConfiguration;
  320. }
  321. set
  322. {
  323. if ((value == null))
  324. {
  325. this.omObject.VirtualMachineConfiguration = null;
  326. }
  327. else
  328. {
  329. this.omObject.VirtualMachineConfiguration = value.omObject;
  330. }
  331. this.virtualMachineConfiguration = value;
  332. }
  333. }
  334. public string VirtualMachineSize
  335. {
  336. get
  337. {
  338. return this.omObject.VirtualMachineSize;
  339. }
  340. set
  341. {
  342. this.omObject.VirtualMachineSize = value;
  343. }
  344. }
  345. }
  346. }