From e26a643edb42d7974508c2f1a4ee9e8dfe233099 Mon Sep 17 00:00:00 2001 From: adxsdknet Date: Wed, 3 Apr 2019 03:07:07 +0000 Subject: [PATCH] .NET SDK Resource Provider:'IotCentral' REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5495' REST Spec PR Author 'kawayiboy' REST Spec PR Last commit --- .../Generated/Models/AppTemplate.cs | 8 +- .../Generated/Models/AppTemplateProperties.cs | 92 +++++++++++++++++++ 2 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplateProperties.cs diff --git a/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplate.cs b/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplate.cs index 049ccb3b9015..55e759b2717f 100644 --- a/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplate.cs +++ b/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplate.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.IotCentral.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -33,9 +31,8 @@ public AppTemplate() /// /// The application template identifier. /// The application template name. - /// The extra template properties. /// the resource type. - public AppTemplate(string id = default(string), string name = default(string), IDictionary properties = default(IDictionary), string type = default(string)) + public AppTemplate(string id = default(string), string name = default(string), AppTemplateProperties properties = default(AppTemplateProperties), string type = default(string)) { Id = id; Name = name; @@ -62,10 +59,9 @@ public AppTemplate() public string Name { get; private set; } /// - /// Gets or sets the extra template properties. /// [JsonProperty(PropertyName = "properties")] - public IDictionary Properties { get; set; } + public AppTemplateProperties Properties { get; set; } /// /// Gets the resource type. diff --git a/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplateProperties.cs b/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplateProperties.cs new file mode 100644 index 000000000000..eaac34006cb5 --- /dev/null +++ b/src/SDKs/IotCentral/Management.IotCentral/IotCentral/Management.IotCentral/Generated/Models/AppTemplateProperties.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.IotCentral.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// IoT Central Application Template extra properties. + /// + public partial class AppTemplateProperties + { + /// + /// Initializes a new instance of the AppTemplateProperties class. + /// + public AppTemplateProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AppTemplateProperties class. + /// + /// The ID of the template. + /// The version of the template. + /// The name of the template. + /// The title of the template. + /// The order of the template in the templates + /// list. + /// The description of the template. + public AppTemplateProperties(string manifestId = default(string), string manifestVersion = default(string), string appTemplateName = default(string), string title = default(string), double? order = default(double?), string description = default(string)) + { + ManifestId = manifestId; + ManifestVersion = manifestVersion; + AppTemplateName = appTemplateName; + Title = title; + Order = order; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ID of the template. + /// + [JsonProperty(PropertyName = "manifestId")] + public string ManifestId { get; private set; } + + /// + /// Gets the version of the template. + /// + [JsonProperty(PropertyName = "manifestVersion")] + public string ManifestVersion { get; private set; } + + /// + /// Gets the name of the template. + /// + [JsonProperty(PropertyName = "appTemplateName")] + public string AppTemplateName { get; private set; } + + /// + /// Gets the title of the template. + /// + [JsonProperty(PropertyName = "title")] + public string Title { get; private set; } + + /// + /// Gets the order of the template in the templates list. + /// + [JsonProperty(PropertyName = "order")] + public double? Order { get; private set; } + + /// + /// Gets the description of the template. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + } +}