PageRenderTime 51ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://gitlab.com/jslee1/azure-powershell
C# | 394 lines | 337 code | 35 blank | 22 comment | 54 complexity | 06fef08778f64621214f98ca7a3ef0e5 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 PSCloudJob
  27. {
  28. internal Microsoft.Azure.Batch.CloudJob omObject;
  29. private IList<PSEnvironmentSetting> commonEnvironmentSettings;
  30. private PSJobConstraints constraints;
  31. private PSJobExecutionInformation executionInformation;
  32. private PSJobManagerTask jobManagerTask;
  33. private PSJobPreparationTask jobPreparationTask;
  34. private PSJobReleaseTask jobReleaseTask;
  35. private IList<PSMetadataItem> metadata;
  36. private PSPoolInformation poolInformation;
  37. private PSJobStatistics statistics;
  38. internal PSCloudJob(Microsoft.Azure.Batch.CloudJob omObject)
  39. {
  40. if ((omObject == null))
  41. {
  42. throw new System.ArgumentNullException("omObject");
  43. }
  44. this.omObject = omObject;
  45. }
  46. public IList<PSEnvironmentSetting> CommonEnvironmentSettings
  47. {
  48. get
  49. {
  50. if (((this.commonEnvironmentSettings == null)
  51. && (this.omObject.CommonEnvironmentSettings != null)))
  52. {
  53. List<PSEnvironmentSetting> list;
  54. list = new List<PSEnvironmentSetting>();
  55. IEnumerator<Microsoft.Azure.Batch.EnvironmentSetting> enumerator;
  56. enumerator = this.omObject.CommonEnvironmentSettings.GetEnumerator();
  57. for (
  58. ; enumerator.MoveNext();
  59. )
  60. {
  61. list.Add(new PSEnvironmentSetting(enumerator.Current));
  62. }
  63. this.commonEnvironmentSettings = list;
  64. }
  65. return this.commonEnvironmentSettings;
  66. }
  67. set
  68. {
  69. if ((value == null))
  70. {
  71. this.omObject.CommonEnvironmentSettings = null;
  72. }
  73. else
  74. {
  75. this.omObject.CommonEnvironmentSettings = new List<Microsoft.Azure.Batch.EnvironmentSetting>();
  76. }
  77. this.commonEnvironmentSettings = value;
  78. }
  79. }
  80. public PSJobConstraints Constraints
  81. {
  82. get
  83. {
  84. if (((this.constraints == null)
  85. && (this.omObject.Constraints != null)))
  86. {
  87. this.constraints = new PSJobConstraints(this.omObject.Constraints);
  88. }
  89. return this.constraints;
  90. }
  91. set
  92. {
  93. if ((value == null))
  94. {
  95. this.omObject.Constraints = null;
  96. }
  97. else
  98. {
  99. this.omObject.Constraints = value.omObject;
  100. }
  101. this.constraints = value;
  102. }
  103. }
  104. public System.DateTime? CreationTime
  105. {
  106. get
  107. {
  108. return this.omObject.CreationTime;
  109. }
  110. }
  111. public string DisplayName
  112. {
  113. get
  114. {
  115. return this.omObject.DisplayName;
  116. }
  117. set
  118. {
  119. this.omObject.DisplayName = value;
  120. }
  121. }
  122. public string ETag
  123. {
  124. get
  125. {
  126. return this.omObject.ETag;
  127. }
  128. }
  129. public PSJobExecutionInformation ExecutionInformation
  130. {
  131. get
  132. {
  133. if (((this.executionInformation == null)
  134. && (this.omObject.ExecutionInformation != null)))
  135. {
  136. this.executionInformation = new PSJobExecutionInformation(this.omObject.ExecutionInformation);
  137. }
  138. return this.executionInformation;
  139. }
  140. }
  141. public string Id
  142. {
  143. get
  144. {
  145. return this.omObject.Id;
  146. }
  147. set
  148. {
  149. this.omObject.Id = value;
  150. }
  151. }
  152. public PSJobManagerTask JobManagerTask
  153. {
  154. get
  155. {
  156. if (((this.jobManagerTask == null)
  157. && (this.omObject.JobManagerTask != null)))
  158. {
  159. this.jobManagerTask = new PSJobManagerTask(this.omObject.JobManagerTask);
  160. }
  161. return this.jobManagerTask;
  162. }
  163. set
  164. {
  165. if ((value == null))
  166. {
  167. this.omObject.JobManagerTask = null;
  168. }
  169. else
  170. {
  171. this.omObject.JobManagerTask = value.omObject;
  172. }
  173. this.jobManagerTask = value;
  174. }
  175. }
  176. public PSJobPreparationTask JobPreparationTask
  177. {
  178. get
  179. {
  180. if (((this.jobPreparationTask == null)
  181. && (this.omObject.JobPreparationTask != null)))
  182. {
  183. this.jobPreparationTask = new PSJobPreparationTask(this.omObject.JobPreparationTask);
  184. }
  185. return this.jobPreparationTask;
  186. }
  187. set
  188. {
  189. if ((value == null))
  190. {
  191. this.omObject.JobPreparationTask = null;
  192. }
  193. else
  194. {
  195. this.omObject.JobPreparationTask = value.omObject;
  196. }
  197. this.jobPreparationTask = value;
  198. }
  199. }
  200. public PSJobReleaseTask JobReleaseTask
  201. {
  202. get
  203. {
  204. if (((this.jobReleaseTask == null)
  205. && (this.omObject.JobReleaseTask != null)))
  206. {
  207. this.jobReleaseTask = new PSJobReleaseTask(this.omObject.JobReleaseTask);
  208. }
  209. return this.jobReleaseTask;
  210. }
  211. set
  212. {
  213. if ((value == null))
  214. {
  215. this.omObject.JobReleaseTask = null;
  216. }
  217. else
  218. {
  219. this.omObject.JobReleaseTask = value.omObject;
  220. }
  221. this.jobReleaseTask = value;
  222. }
  223. }
  224. public System.DateTime? LastModified
  225. {
  226. get
  227. {
  228. return this.omObject.LastModified;
  229. }
  230. }
  231. public IList<PSMetadataItem> Metadata
  232. {
  233. get
  234. {
  235. if (((this.metadata == null)
  236. && (this.omObject.Metadata != null)))
  237. {
  238. List<PSMetadataItem> list;
  239. list = new List<PSMetadataItem>();
  240. IEnumerator<Microsoft.Azure.Batch.MetadataItem> enumerator;
  241. enumerator = this.omObject.Metadata.GetEnumerator();
  242. for (
  243. ; enumerator.MoveNext();
  244. )
  245. {
  246. list.Add(new PSMetadataItem(enumerator.Current));
  247. }
  248. this.metadata = list;
  249. }
  250. return this.metadata;
  251. }
  252. set
  253. {
  254. if ((value == null))
  255. {
  256. this.omObject.Metadata = null;
  257. }
  258. else
  259. {
  260. this.omObject.Metadata = new List<Microsoft.Azure.Batch.MetadataItem>();
  261. }
  262. this.metadata = value;
  263. }
  264. }
  265. public PSPoolInformation PoolInformation
  266. {
  267. get
  268. {
  269. if (((this.poolInformation == null)
  270. && (this.omObject.PoolInformation != null)))
  271. {
  272. this.poolInformation = new PSPoolInformation(this.omObject.PoolInformation);
  273. }
  274. return this.poolInformation;
  275. }
  276. set
  277. {
  278. if ((value == null))
  279. {
  280. this.omObject.PoolInformation = null;
  281. }
  282. else
  283. {
  284. this.omObject.PoolInformation = value.omObject;
  285. }
  286. this.poolInformation = value;
  287. }
  288. }
  289. public Microsoft.Azure.Batch.Common.JobState? PreviousState
  290. {
  291. get
  292. {
  293. return this.omObject.PreviousState;
  294. }
  295. }
  296. public System.DateTime? PreviousStateTransitionTime
  297. {
  298. get
  299. {
  300. return this.omObject.PreviousStateTransitionTime;
  301. }
  302. }
  303. public System.Int32? Priority
  304. {
  305. get
  306. {
  307. return this.omObject.Priority;
  308. }
  309. set
  310. {
  311. this.omObject.Priority = value;
  312. }
  313. }
  314. public Microsoft.Azure.Batch.Common.JobState? State
  315. {
  316. get
  317. {
  318. return this.omObject.State;
  319. }
  320. }
  321. public System.DateTime? StateTransitionTime
  322. {
  323. get
  324. {
  325. return this.omObject.StateTransitionTime;
  326. }
  327. }
  328. public PSJobStatistics Statistics
  329. {
  330. get
  331. {
  332. if (((this.statistics == null)
  333. && (this.omObject.Statistics != null)))
  334. {
  335. this.statistics = new PSJobStatistics(this.omObject.Statistics);
  336. }
  337. return this.statistics;
  338. }
  339. }
  340. public string Url
  341. {
  342. get
  343. {
  344. return this.omObject.Url;
  345. }
  346. }
  347. public System.Boolean? UsesTaskDependencies
  348. {
  349. get
  350. {
  351. return this.omObject.UsesTaskDependencies;
  352. }
  353. set
  354. {
  355. this.omObject.UsesTaskDependencies = value;
  356. }
  357. }
  358. }
  359. }