diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningAction.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningAction.cs new file mode 100644 index 000000000000..ef6d6ecb744f --- /dev/null +++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/UrlSigningAction.cs @@ -0,0 +1,71 @@ +// +// 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.Cdn.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines the url signing action for the delivery rule. + /// + [Newtonsoft.Json.JsonObject("UrlSigning")] + public partial class UrlSigningAction : DeliveryRuleAction + { + /// + /// Initializes a new instance of the UrlSigningAction class. + /// + public UrlSigningAction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UrlSigningAction class. + /// + /// Defines the parameters for the + /// action. + public UrlSigningAction(UrlSigningActionParameters parameters) + { + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets defines the parameters for the action. + /// + [JsonProperty(PropertyName = "parameters")] + public UrlSigningActionParameters Parameters { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Parameters"); + } + if (Parameters != null) + { + Parameters.Validate(); + } + } + } +} diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/SdkInfo_CdnManagementClient.cs b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/SdkInfo_CdnManagementClient.cs index 82926675fab3..220bec087543 100644 --- a/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/SdkInfo_CdnManagementClient.cs +++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/SdkInfo_CdnManagementClient.cs @@ -35,16 +35,5 @@ public static IEnumerable> ApiInfo_CdnManagementCl }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cdn/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2020-04 --csharp-sdks-folder=C:\\git\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "2916791fddcf1b69ebbc0741aa809350201041be"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -