| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using System.Text.Json; |
| | 10 | | using Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 13 | | { |
| | 14 | | public partial class HDInsightOnDemandLinkedService : IUtf8JsonSerializable |
| | 15 | | { |
| | 16 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 17 | | { |
| 0 | 18 | | writer.WriteStartObject(); |
| 0 | 19 | | writer.WritePropertyName("type"); |
| 0 | 20 | | writer.WriteStringValue(Type); |
| 0 | 21 | | if (Optional.IsDefined(ConnectVia)) |
| | 22 | | { |
| 0 | 23 | | writer.WritePropertyName("connectVia"); |
| 0 | 24 | | writer.WriteObjectValue(ConnectVia); |
| | 25 | | } |
| 0 | 26 | | if (Optional.IsDefined(Description)) |
| | 27 | | { |
| 0 | 28 | | writer.WritePropertyName("description"); |
| 0 | 29 | | writer.WriteStringValue(Description); |
| | 30 | | } |
| 0 | 31 | | if (Optional.IsCollectionDefined(Parameters)) |
| | 32 | | { |
| 0 | 33 | | writer.WritePropertyName("parameters"); |
| 0 | 34 | | writer.WriteStartObject(); |
| 0 | 35 | | foreach (var item in Parameters) |
| | 36 | | { |
| 0 | 37 | | writer.WritePropertyName(item.Key); |
| 0 | 38 | | writer.WriteObjectValue(item.Value); |
| | 39 | | } |
| 0 | 40 | | writer.WriteEndObject(); |
| | 41 | | } |
| 0 | 42 | | if (Optional.IsCollectionDefined(Annotations)) |
| | 43 | | { |
| 0 | 44 | | writer.WritePropertyName("annotations"); |
| 0 | 45 | | writer.WriteStartArray(); |
| 0 | 46 | | foreach (var item in Annotations) |
| | 47 | | { |
| 0 | 48 | | writer.WriteObjectValue(item); |
| | 49 | | } |
| 0 | 50 | | writer.WriteEndArray(); |
| | 51 | | } |
| 0 | 52 | | writer.WritePropertyName("typeProperties"); |
| 0 | 53 | | writer.WriteStartObject(); |
| 0 | 54 | | writer.WritePropertyName("clusterSize"); |
| 0 | 55 | | writer.WriteObjectValue(ClusterSize); |
| 0 | 56 | | writer.WritePropertyName("timeToLive"); |
| 0 | 57 | | writer.WriteObjectValue(TimeToLive); |
| 0 | 58 | | writer.WritePropertyName("version"); |
| 0 | 59 | | writer.WriteObjectValue(Version); |
| 0 | 60 | | writer.WritePropertyName("linkedServiceName"); |
| 0 | 61 | | writer.WriteObjectValue(LinkedServiceName); |
| 0 | 62 | | writer.WritePropertyName("hostSubscriptionId"); |
| 0 | 63 | | writer.WriteObjectValue(HostSubscriptionId); |
| 0 | 64 | | if (Optional.IsDefined(ServicePrincipalId)) |
| | 65 | | { |
| 0 | 66 | | writer.WritePropertyName("servicePrincipalId"); |
| 0 | 67 | | writer.WriteObjectValue(ServicePrincipalId); |
| | 68 | | } |
| 0 | 69 | | if (Optional.IsDefined(ServicePrincipalKey)) |
| | 70 | | { |
| 0 | 71 | | writer.WritePropertyName("servicePrincipalKey"); |
| 0 | 72 | | writer.WriteObjectValue(ServicePrincipalKey); |
| | 73 | | } |
| 0 | 74 | | writer.WritePropertyName("tenant"); |
| 0 | 75 | | writer.WriteObjectValue(Tenant); |
| 0 | 76 | | writer.WritePropertyName("clusterResourceGroup"); |
| 0 | 77 | | writer.WriteObjectValue(ClusterResourceGroup); |
| 0 | 78 | | if (Optional.IsDefined(ClusterNamePrefix)) |
| | 79 | | { |
| 0 | 80 | | writer.WritePropertyName("clusterNamePrefix"); |
| 0 | 81 | | writer.WriteObjectValue(ClusterNamePrefix); |
| | 82 | | } |
| 0 | 83 | | if (Optional.IsDefined(ClusterUserName)) |
| | 84 | | { |
| 0 | 85 | | writer.WritePropertyName("clusterUserName"); |
| 0 | 86 | | writer.WriteObjectValue(ClusterUserName); |
| | 87 | | } |
| 0 | 88 | | if (Optional.IsDefined(ClusterPassword)) |
| | 89 | | { |
| 0 | 90 | | writer.WritePropertyName("clusterPassword"); |
| 0 | 91 | | writer.WriteObjectValue(ClusterPassword); |
| | 92 | | } |
| 0 | 93 | | if (Optional.IsDefined(ClusterSshUserName)) |
| | 94 | | { |
| 0 | 95 | | writer.WritePropertyName("clusterSshUserName"); |
| 0 | 96 | | writer.WriteObjectValue(ClusterSshUserName); |
| | 97 | | } |
| 0 | 98 | | if (Optional.IsDefined(ClusterSshPassword)) |
| | 99 | | { |
| 0 | 100 | | writer.WritePropertyName("clusterSshPassword"); |
| 0 | 101 | | writer.WriteObjectValue(ClusterSshPassword); |
| | 102 | | } |
| 0 | 103 | | if (Optional.IsCollectionDefined(AdditionalLinkedServiceNames)) |
| | 104 | | { |
| 0 | 105 | | writer.WritePropertyName("additionalLinkedServiceNames"); |
| 0 | 106 | | writer.WriteStartArray(); |
| 0 | 107 | | foreach (var item in AdditionalLinkedServiceNames) |
| | 108 | | { |
| 0 | 109 | | writer.WriteObjectValue(item); |
| | 110 | | } |
| 0 | 111 | | writer.WriteEndArray(); |
| | 112 | | } |
| 0 | 113 | | if (Optional.IsDefined(HcatalogLinkedServiceName)) |
| | 114 | | { |
| 0 | 115 | | writer.WritePropertyName("hcatalogLinkedServiceName"); |
| 0 | 116 | | writer.WriteObjectValue(HcatalogLinkedServiceName); |
| | 117 | | } |
| 0 | 118 | | if (Optional.IsDefined(ClusterType)) |
| | 119 | | { |
| 0 | 120 | | writer.WritePropertyName("clusterType"); |
| 0 | 121 | | writer.WriteObjectValue(ClusterType); |
| | 122 | | } |
| 0 | 123 | | if (Optional.IsDefined(SparkVersion)) |
| | 124 | | { |
| 0 | 125 | | writer.WritePropertyName("sparkVersion"); |
| 0 | 126 | | writer.WriteObjectValue(SparkVersion); |
| | 127 | | } |
| 0 | 128 | | if (Optional.IsDefined(CoreConfiguration)) |
| | 129 | | { |
| 0 | 130 | | writer.WritePropertyName("coreConfiguration"); |
| 0 | 131 | | writer.WriteObjectValue(CoreConfiguration); |
| | 132 | | } |
| 0 | 133 | | if (Optional.IsDefined(HBaseConfiguration)) |
| | 134 | | { |
| 0 | 135 | | writer.WritePropertyName("hBaseConfiguration"); |
| 0 | 136 | | writer.WriteObjectValue(HBaseConfiguration); |
| | 137 | | } |
| 0 | 138 | | if (Optional.IsDefined(HdfsConfiguration)) |
| | 139 | | { |
| 0 | 140 | | writer.WritePropertyName("hdfsConfiguration"); |
| 0 | 141 | | writer.WriteObjectValue(HdfsConfiguration); |
| | 142 | | } |
| 0 | 143 | | if (Optional.IsDefined(HiveConfiguration)) |
| | 144 | | { |
| 0 | 145 | | writer.WritePropertyName("hiveConfiguration"); |
| 0 | 146 | | writer.WriteObjectValue(HiveConfiguration); |
| | 147 | | } |
| 0 | 148 | | if (Optional.IsDefined(MapReduceConfiguration)) |
| | 149 | | { |
| 0 | 150 | | writer.WritePropertyName("mapReduceConfiguration"); |
| 0 | 151 | | writer.WriteObjectValue(MapReduceConfiguration); |
| | 152 | | } |
| 0 | 153 | | if (Optional.IsDefined(OozieConfiguration)) |
| | 154 | | { |
| 0 | 155 | | writer.WritePropertyName("oozieConfiguration"); |
| 0 | 156 | | writer.WriteObjectValue(OozieConfiguration); |
| | 157 | | } |
| 0 | 158 | | if (Optional.IsDefined(StormConfiguration)) |
| | 159 | | { |
| 0 | 160 | | writer.WritePropertyName("stormConfiguration"); |
| 0 | 161 | | writer.WriteObjectValue(StormConfiguration); |
| | 162 | | } |
| 0 | 163 | | if (Optional.IsDefined(YarnConfiguration)) |
| | 164 | | { |
| 0 | 165 | | writer.WritePropertyName("yarnConfiguration"); |
| 0 | 166 | | writer.WriteObjectValue(YarnConfiguration); |
| | 167 | | } |
| 0 | 168 | | if (Optional.IsDefined(EncryptedCredential)) |
| | 169 | | { |
| 0 | 170 | | writer.WritePropertyName("encryptedCredential"); |
| 0 | 171 | | writer.WriteObjectValue(EncryptedCredential); |
| | 172 | | } |
| 0 | 173 | | if (Optional.IsDefined(HeadNodeSize)) |
| | 174 | | { |
| 0 | 175 | | writer.WritePropertyName("headNodeSize"); |
| 0 | 176 | | writer.WriteObjectValue(HeadNodeSize); |
| | 177 | | } |
| 0 | 178 | | if (Optional.IsDefined(DataNodeSize)) |
| | 179 | | { |
| 0 | 180 | | writer.WritePropertyName("dataNodeSize"); |
| 0 | 181 | | writer.WriteObjectValue(DataNodeSize); |
| | 182 | | } |
| 0 | 183 | | if (Optional.IsDefined(ZookeeperNodeSize)) |
| | 184 | | { |
| 0 | 185 | | writer.WritePropertyName("zookeeperNodeSize"); |
| 0 | 186 | | writer.WriteObjectValue(ZookeeperNodeSize); |
| | 187 | | } |
| 0 | 188 | | if (Optional.IsCollectionDefined(ScriptActions)) |
| | 189 | | { |
| 0 | 190 | | writer.WritePropertyName("scriptActions"); |
| 0 | 191 | | writer.WriteStartArray(); |
| 0 | 192 | | foreach (var item in ScriptActions) |
| | 193 | | { |
| 0 | 194 | | writer.WriteObjectValue(item); |
| | 195 | | } |
| 0 | 196 | | writer.WriteEndArray(); |
| | 197 | | } |
| 0 | 198 | | if (Optional.IsDefined(VirtualNetworkId)) |
| | 199 | | { |
| 0 | 200 | | writer.WritePropertyName("virtualNetworkId"); |
| 0 | 201 | | writer.WriteObjectValue(VirtualNetworkId); |
| | 202 | | } |
| 0 | 203 | | if (Optional.IsDefined(SubnetName)) |
| | 204 | | { |
| 0 | 205 | | writer.WritePropertyName("subnetName"); |
| 0 | 206 | | writer.WriteObjectValue(SubnetName); |
| | 207 | | } |
| 0 | 208 | | writer.WriteEndObject(); |
| 0 | 209 | | foreach (var item in AdditionalProperties) |
| | 210 | | { |
| 0 | 211 | | writer.WritePropertyName(item.Key); |
| 0 | 212 | | writer.WriteObjectValue(item.Value); |
| | 213 | | } |
| 0 | 214 | | writer.WriteEndObject(); |
| 0 | 215 | | } |
| | 216 | |
|
| | 217 | | internal static HDInsightOnDemandLinkedService DeserializeHDInsightOnDemandLinkedService(JsonElement element) |
| | 218 | | { |
| 0 | 219 | | string type = default; |
| 0 | 220 | | Optional<IntegrationRuntimeReference> connectVia = default; |
| 0 | 221 | | Optional<string> description = default; |
| 0 | 222 | | Optional<IDictionary<string, ParameterSpecification>> parameters = default; |
| 0 | 223 | | Optional<IList<object>> annotations = default; |
| 0 | 224 | | object clusterSize = default; |
| 0 | 225 | | object timeToLive = default; |
| 0 | 226 | | object version = default; |
| 0 | 227 | | LinkedServiceReference linkedServiceName = default; |
| 0 | 228 | | object hostSubscriptionId = default; |
| 0 | 229 | | Optional<object> servicePrincipalId = default; |
| 0 | 230 | | Optional<SecretBase> servicePrincipalKey = default; |
| 0 | 231 | | object tenant = default; |
| 0 | 232 | | object clusterResourceGroup = default; |
| 0 | 233 | | Optional<object> clusterNamePrefix = default; |
| 0 | 234 | | Optional<object> clusterUserName = default; |
| 0 | 235 | | Optional<SecretBase> clusterPassword = default; |
| 0 | 236 | | Optional<object> clusterSshUserName = default; |
| 0 | 237 | | Optional<SecretBase> clusterSshPassword = default; |
| 0 | 238 | | Optional<IList<LinkedServiceReference>> additionalLinkedServiceNames = default; |
| 0 | 239 | | Optional<LinkedServiceReference> hcatalogLinkedServiceName = default; |
| 0 | 240 | | Optional<object> clusterType = default; |
| 0 | 241 | | Optional<object> sparkVersion = default; |
| 0 | 242 | | Optional<object> coreConfiguration = default; |
| 0 | 243 | | Optional<object> hBaseConfiguration = default; |
| 0 | 244 | | Optional<object> hdfsConfiguration = default; |
| 0 | 245 | | Optional<object> hiveConfiguration = default; |
| 0 | 246 | | Optional<object> mapReduceConfiguration = default; |
| 0 | 247 | | Optional<object> oozieConfiguration = default; |
| 0 | 248 | | Optional<object> stormConfiguration = default; |
| 0 | 249 | | Optional<object> yarnConfiguration = default; |
| 0 | 250 | | Optional<object> encryptedCredential = default; |
| 0 | 251 | | Optional<object> headNodeSize = default; |
| 0 | 252 | | Optional<object> dataNodeSize = default; |
| 0 | 253 | | Optional<object> zookeeperNodeSize = default; |
| 0 | 254 | | Optional<IList<ScriptAction>> scriptActions = default; |
| 0 | 255 | | Optional<object> virtualNetworkId = default; |
| 0 | 256 | | Optional<object> subnetName = default; |
| 0 | 257 | | IDictionary<string, object> additionalProperties = default; |
| 0 | 258 | | Dictionary<string, object> additionalPropertiesDictionary = default; |
| 0 | 259 | | foreach (var property in element.EnumerateObject()) |
| | 260 | | { |
| 0 | 261 | | if (property.NameEquals("type")) |
| | 262 | | { |
| 0 | 263 | | type = property.Value.GetString(); |
| 0 | 264 | | continue; |
| | 265 | | } |
| 0 | 266 | | if (property.NameEquals("connectVia")) |
| | 267 | | { |
| 0 | 268 | | connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property.Value); |
| 0 | 269 | | continue; |
| | 270 | | } |
| 0 | 271 | | if (property.NameEquals("description")) |
| | 272 | | { |
| 0 | 273 | | description = property.Value.GetString(); |
| 0 | 274 | | continue; |
| | 275 | | } |
| 0 | 276 | | if (property.NameEquals("parameters")) |
| | 277 | | { |
| 0 | 278 | | Dictionary<string, ParameterSpecification> dictionary = new Dictionary<string, ParameterSpecificatio |
| 0 | 279 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 280 | | { |
| 0 | 281 | | dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property |
| | 282 | | } |
| 0 | 283 | | parameters = dictionary; |
| 0 | 284 | | continue; |
| | 285 | | } |
| 0 | 286 | | if (property.NameEquals("annotations")) |
| | 287 | | { |
| 0 | 288 | | List<object> array = new List<object>(); |
| 0 | 289 | | foreach (var item in property.Value.EnumerateArray()) |
| | 290 | | { |
| 0 | 291 | | array.Add(item.GetObject()); |
| | 292 | | } |
| 0 | 293 | | annotations = array; |
| 0 | 294 | | continue; |
| | 295 | | } |
| 0 | 296 | | if (property.NameEquals("typeProperties")) |
| | 297 | | { |
| 0 | 298 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 299 | | { |
| 0 | 300 | | if (property0.NameEquals("clusterSize")) |
| | 301 | | { |
| 0 | 302 | | clusterSize = property0.Value.GetObject(); |
| 0 | 303 | | continue; |
| | 304 | | } |
| 0 | 305 | | if (property0.NameEquals("timeToLive")) |
| | 306 | | { |
| 0 | 307 | | timeToLive = property0.Value.GetObject(); |
| 0 | 308 | | continue; |
| | 309 | | } |
| 0 | 310 | | if (property0.NameEquals("version")) |
| | 311 | | { |
| 0 | 312 | | version = property0.Value.GetObject(); |
| 0 | 313 | | continue; |
| | 314 | | } |
| 0 | 315 | | if (property0.NameEquals("linkedServiceName")) |
| | 316 | | { |
| 0 | 317 | | linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property0.Value |
| 0 | 318 | | continue; |
| | 319 | | } |
| 0 | 320 | | if (property0.NameEquals("hostSubscriptionId")) |
| | 321 | | { |
| 0 | 322 | | hostSubscriptionId = property0.Value.GetObject(); |
| 0 | 323 | | continue; |
| | 324 | | } |
| 0 | 325 | | if (property0.NameEquals("servicePrincipalId")) |
| | 326 | | { |
| 0 | 327 | | servicePrincipalId = property0.Value.GetObject(); |
| 0 | 328 | | continue; |
| | 329 | | } |
| 0 | 330 | | if (property0.NameEquals("servicePrincipalKey")) |
| | 331 | | { |
| 0 | 332 | | servicePrincipalKey = SecretBase.DeserializeSecretBase(property0.Value); |
| 0 | 333 | | continue; |
| | 334 | | } |
| 0 | 335 | | if (property0.NameEquals("tenant")) |
| | 336 | | { |
| 0 | 337 | | tenant = property0.Value.GetObject(); |
| 0 | 338 | | continue; |
| | 339 | | } |
| 0 | 340 | | if (property0.NameEquals("clusterResourceGroup")) |
| | 341 | | { |
| 0 | 342 | | clusterResourceGroup = property0.Value.GetObject(); |
| 0 | 343 | | continue; |
| | 344 | | } |
| 0 | 345 | | if (property0.NameEquals("clusterNamePrefix")) |
| | 346 | | { |
| 0 | 347 | | clusterNamePrefix = property0.Value.GetObject(); |
| 0 | 348 | | continue; |
| | 349 | | } |
| 0 | 350 | | if (property0.NameEquals("clusterUserName")) |
| | 351 | | { |
| 0 | 352 | | clusterUserName = property0.Value.GetObject(); |
| 0 | 353 | | continue; |
| | 354 | | } |
| 0 | 355 | | if (property0.NameEquals("clusterPassword")) |
| | 356 | | { |
| 0 | 357 | | clusterPassword = SecretBase.DeserializeSecretBase(property0.Value); |
| 0 | 358 | | continue; |
| | 359 | | } |
| 0 | 360 | | if (property0.NameEquals("clusterSshUserName")) |
| | 361 | | { |
| 0 | 362 | | clusterSshUserName = property0.Value.GetObject(); |
| 0 | 363 | | continue; |
| | 364 | | } |
| 0 | 365 | | if (property0.NameEquals("clusterSshPassword")) |
| | 366 | | { |
| 0 | 367 | | clusterSshPassword = SecretBase.DeserializeSecretBase(property0.Value); |
| 0 | 368 | | continue; |
| | 369 | | } |
| 0 | 370 | | if (property0.NameEquals("additionalLinkedServiceNames")) |
| | 371 | | { |
| 0 | 372 | | List<LinkedServiceReference> array = new List<LinkedServiceReference>(); |
| 0 | 373 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 374 | | { |
| 0 | 375 | | array.Add(LinkedServiceReference.DeserializeLinkedServiceReference(item)); |
| | 376 | | } |
| 0 | 377 | | additionalLinkedServiceNames = array; |
| 0 | 378 | | continue; |
| | 379 | | } |
| 0 | 380 | | if (property0.NameEquals("hcatalogLinkedServiceName")) |
| | 381 | | { |
| 0 | 382 | | hcatalogLinkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(propert |
| 0 | 383 | | continue; |
| | 384 | | } |
| 0 | 385 | | if (property0.NameEquals("clusterType")) |
| | 386 | | { |
| 0 | 387 | | clusterType = property0.Value.GetObject(); |
| 0 | 388 | | continue; |
| | 389 | | } |
| 0 | 390 | | if (property0.NameEquals("sparkVersion")) |
| | 391 | | { |
| 0 | 392 | | sparkVersion = property0.Value.GetObject(); |
| 0 | 393 | | continue; |
| | 394 | | } |
| 0 | 395 | | if (property0.NameEquals("coreConfiguration")) |
| | 396 | | { |
| 0 | 397 | | coreConfiguration = property0.Value.GetObject(); |
| 0 | 398 | | continue; |
| | 399 | | } |
| 0 | 400 | | if (property0.NameEquals("hBaseConfiguration")) |
| | 401 | | { |
| 0 | 402 | | hBaseConfiguration = property0.Value.GetObject(); |
| 0 | 403 | | continue; |
| | 404 | | } |
| 0 | 405 | | if (property0.NameEquals("hdfsConfiguration")) |
| | 406 | | { |
| 0 | 407 | | hdfsConfiguration = property0.Value.GetObject(); |
| 0 | 408 | | continue; |
| | 409 | | } |
| 0 | 410 | | if (property0.NameEquals("hiveConfiguration")) |
| | 411 | | { |
| 0 | 412 | | hiveConfiguration = property0.Value.GetObject(); |
| 0 | 413 | | continue; |
| | 414 | | } |
| 0 | 415 | | if (property0.NameEquals("mapReduceConfiguration")) |
| | 416 | | { |
| 0 | 417 | | mapReduceConfiguration = property0.Value.GetObject(); |
| 0 | 418 | | continue; |
| | 419 | | } |
| 0 | 420 | | if (property0.NameEquals("oozieConfiguration")) |
| | 421 | | { |
| 0 | 422 | | oozieConfiguration = property0.Value.GetObject(); |
| 0 | 423 | | continue; |
| | 424 | | } |
| 0 | 425 | | if (property0.NameEquals("stormConfiguration")) |
| | 426 | | { |
| 0 | 427 | | stormConfiguration = property0.Value.GetObject(); |
| 0 | 428 | | continue; |
| | 429 | | } |
| 0 | 430 | | if (property0.NameEquals("yarnConfiguration")) |
| | 431 | | { |
| 0 | 432 | | yarnConfiguration = property0.Value.GetObject(); |
| 0 | 433 | | continue; |
| | 434 | | } |
| 0 | 435 | | if (property0.NameEquals("encryptedCredential")) |
| | 436 | | { |
| 0 | 437 | | encryptedCredential = property0.Value.GetObject(); |
| 0 | 438 | | continue; |
| | 439 | | } |
| 0 | 440 | | if (property0.NameEquals("headNodeSize")) |
| | 441 | | { |
| 0 | 442 | | headNodeSize = property0.Value.GetObject(); |
| 0 | 443 | | continue; |
| | 444 | | } |
| 0 | 445 | | if (property0.NameEquals("dataNodeSize")) |
| | 446 | | { |
| 0 | 447 | | dataNodeSize = property0.Value.GetObject(); |
| 0 | 448 | | continue; |
| | 449 | | } |
| 0 | 450 | | if (property0.NameEquals("zookeeperNodeSize")) |
| | 451 | | { |
| 0 | 452 | | zookeeperNodeSize = property0.Value.GetObject(); |
| 0 | 453 | | continue; |
| | 454 | | } |
| 0 | 455 | | if (property0.NameEquals("scriptActions")) |
| | 456 | | { |
| 0 | 457 | | List<ScriptAction> array = new List<ScriptAction>(); |
| 0 | 458 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 459 | | { |
| 0 | 460 | | array.Add(ScriptAction.DeserializeScriptAction(item)); |
| | 461 | | } |
| 0 | 462 | | scriptActions = array; |
| 0 | 463 | | continue; |
| | 464 | | } |
| 0 | 465 | | if (property0.NameEquals("virtualNetworkId")) |
| | 466 | | { |
| 0 | 467 | | virtualNetworkId = property0.Value.GetObject(); |
| 0 | 468 | | continue; |
| | 469 | | } |
| 0 | 470 | | if (property0.NameEquals("subnetName")) |
| | 471 | | { |
| 0 | 472 | | subnetName = property0.Value.GetObject(); |
| | 473 | | continue; |
| | 474 | | } |
| | 475 | | } |
| | 476 | | continue; |
| | 477 | | } |
| 0 | 478 | | additionalPropertiesDictionary ??= new Dictionary<string, object>(); |
| 0 | 479 | | additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); |
| | 480 | | } |
| 0 | 481 | | additionalProperties = additionalPropertiesDictionary; |
| 0 | 482 | | return new HDInsightOnDemandLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(p |
| | 483 | | } |
| | 484 | | } |
| | 485 | | } |