Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CDN package base on Latest Swagger #7723

Merged
merged 4 commits into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions eng/mgmt/mgmtmetadata/cnd_resource-manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installing AutoRest version: latest
AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cnd/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\hata-sdk\azure-sdk-for-net\sdk
2019-09-25 18:22:09 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 151f8794e84d2544961ca64c80f2fdddada29bad
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ namespace Microsoft.Azure.Management.Cdn
using System.Threading.Tasks;

/// <summary>
/// Use these APIs to manage Azure CDN resources through the Azure Resource
/// Manager. You must make sure that requests made to these resources are
/// secure.
/// Cdn Management Client
/// </summary>
public partial class CdnManagementClient : ServiceClient<CdnManagementClient>, ICdnManagementClient, IAzureClient
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Microsoft.Azure.Management.Cdn
using System.Threading.Tasks;

/// <summary>
/// Use these APIs to manage Azure CDN resources through the Azure Resource
/// Manager. You must make sure that requests made to these resources are
/// secure.
/// Cdn Management Client
/// </summary>
public partial interface ICdnManagementClient : System.IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Cdn.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Defines the parameters for the cache-key query string action.
/// </summary>
public partial class CacheKeyQueryStringActionParameters
{
/// <summary>
/// Initializes a new instance of the
/// CacheKeyQueryStringActionParameters class.
/// </summary>
public CacheKeyQueryStringActionParameters()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// CacheKeyQueryStringActionParameters class.
/// </summary>
/// <param name="queryStringBehavior">Caching behavior for the
/// requests. Possible values include: 'Include', 'IncludeAll',
/// 'Exclude', 'ExcludeAll'</param>
/// <param name="queryParameters">query parameters to include or
/// exclude (comma separated).</param>
public CacheKeyQueryStringActionParameters(string queryStringBehavior, string queryParameters = default(string))
{
QueryStringBehavior = queryStringBehavior;
QueryParameters = queryParameters;
CustomInit();
}
/// <summary>
/// Static constructor for CacheKeyQueryStringActionParameters class.
/// </summary>
static CacheKeyQueryStringActionParameters()
{
Odatatype = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters";
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets caching behavior for the requests. Possible values
/// include: 'Include', 'IncludeAll', 'Exclude', 'ExcludeAll'
/// </summary>
[JsonProperty(PropertyName = "queryStringBehavior")]
public string QueryStringBehavior { get; set; }

/// <summary>
/// Gets or sets query parameters to include or exclude (comma
/// separated).
/// </summary>
[JsonProperty(PropertyName = "queryParameters")]
public string QueryParameters { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "@odata.type")]
public static string Odatatype { get; private set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (QueryStringBehavior == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "QueryStringBehavior");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Cdn.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Defines the cache-key query string action for the delivery rule.
/// </summary>
[Newtonsoft.Json.JsonObject("CacheKeyQueryString")]
public partial class DeliveryRuleCacheKeyQueryStringAction : DeliveryRuleAction
{
/// <summary>
/// Initializes a new instance of the
/// DeliveryRuleCacheKeyQueryStringAction class.
/// </summary>
public DeliveryRuleCacheKeyQueryStringAction()
{
Parameters = new CacheKeyQueryStringActionParameters();
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// DeliveryRuleCacheKeyQueryStringAction class.
/// </summary>
/// <param name="parameters">Defines the parameters for the
/// action.</param>
public DeliveryRuleCacheKeyQueryStringAction(CacheKeyQueryStringActionParameters parameters)
{
Parameters = parameters;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets defines the parameters for the action.
/// </summary>
[JsonProperty(PropertyName = "parameters")]
public CacheKeyQueryStringActionParameters Parameters { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Parameters == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
}
if (Parameters != null)
{
Parameters.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Cdn.Models
{

/// <summary>
/// Defines values for QueryStringBehavior.
/// </summary>
public static class QueryStringBehavior
{
public const string Include = "Include";
public const string IncludeAll = "IncludeAll";
public const string Exclude = "Exclude";
public const string ExcludeAll = "ExcludeAll";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public Sku()
/// </summary>
/// <param name="name">Name of the pricing tier. Possible values
/// include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Premium_ChinaCdn',
/// 'Standard_Microsoft'</param>
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft',
/// 'Premium_ChinaCdn'</param>
public Sku(string name = default(string))
{
Name = name;
Expand All @@ -48,8 +48,8 @@ public Sku()
/// <summary>
/// Gets or sets name of the pricing tier. Possible values include:
/// 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Premium_ChinaCdn',
/// 'Standard_Microsoft'
/// 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft',
/// 'Premium_ChinaCdn'
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class SkuName
public const string CustomVerizon = "Custom_Verizon";
public const string StandardAkamai = "Standard_Akamai";
public const string StandardChinaCdn = "Standard_ChinaCdn";
public const string PremiumChinaCdn = "Premium_ChinaCdn";
public const string StandardMicrosoft = "Standard_Microsoft";
public const string PremiumChinaCdn = "Premium_ChinaCdn";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public UrlRedirectActionParameters()
/// empty and must start with /. Leave empty to use the incoming path
/// as destination path.</param>
/// <param name="customHostname">Host to redirect. Leave empty to use
/// use the incoming host as the destination host.</param>
/// the incoming host as the destination host.</param>
/// <param name="customQueryString">The set of query strings to be
/// placed in the redirect URL. Setting this value would replace any
/// existing query string; leave empty to preserve the incoming query
Expand Down Expand Up @@ -100,8 +100,8 @@ static UrlRedirectActionParameters()
public string CustomPath { get; set; }

/// <summary>
/// Gets or sets host to redirect. Leave empty to use use the incoming
/// host as the destination host.
/// Gets or sets host to redirect. Leave empty to use the incoming host
/// as the destination host.
/// </summary>
[JsonProperty(PropertyName = "customHostname")]
public string CustomHostname { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Cdn.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Defines the url rewrite action for the delivery rule.
/// </summary>
[Newtonsoft.Json.JsonObject("UrlRewrite")]
public partial class UrlRewriteAction : DeliveryRuleAction
{
/// <summary>
/// Initializes a new instance of the UrlRewriteAction class.
/// </summary>
public UrlRewriteAction()
{
Parameters = new UrlRewriteActionParameters();
CustomInit();
}

/// <summary>
/// Initializes a new instance of the UrlRewriteAction class.
/// </summary>
/// <param name="parameters">Defines the parameters for the
/// action.</param>
public UrlRewriteAction(UrlRewriteActionParameters parameters)
{
Parameters = parameters;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets defines the parameters for the action.
/// </summary>
[JsonProperty(PropertyName = "parameters")]
public UrlRewriteActionParameters Parameters { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Parameters == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Parameters");
}
if (Parameters != null)
{
Parameters.Validate();
}
}
}
}
Loading