forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#3347 from JasonYang-MSFT/vnetacl
[Storage] Supported vnetacl
- Loading branch information
Showing
46 changed files
with
2,842 additions
and
1,797 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/SDKs/Storage/Management.Storage/Generated/Models/Action.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// Defines values for Action. | ||
/// </summary> | ||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] | ||
public enum Action | ||
{ | ||
[EnumMember(Value = "Allow")] | ||
Allow | ||
} | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
src/SDKs/Storage/Management.Storage/Generated/Models/Bypass.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
|
||
/// <summary> | ||
/// Defines values for Bypass. | ||
/// </summary> | ||
public static class Bypass | ||
{ | ||
public const string None = "None"; | ||
public const string Logging = "Logging"; | ||
public const string Metrics = "Metrics"; | ||
public const string AzureServices = "AzureServices"; | ||
} | ||
} | ||
|
31 changes: 31 additions & 0 deletions
31
src/SDKs/Storage/Management.Storage/Generated/Models/DefaultAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// Defines values for DefaultAction. | ||
/// </summary> | ||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] | ||
public enum DefaultAction | ||
{ | ||
[EnumMember(Value = "Allow")] | ||
Allow, | ||
[EnumMember(Value = "Deny")] | ||
Deny | ||
} | ||
} | ||
|
70 changes: 70 additions & 0 deletions
70
src/SDKs/Storage/Management.Storage/Generated/Models/IpRule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
using Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// IP rule with specific IP or IP range in CIDR format. | ||
/// </summary> | ||
public partial class IPRule | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IPRule class. | ||
/// </summary> | ||
public IPRule() { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IPRule class. | ||
/// </summary> | ||
/// <param name="iPAddressOrRange">Specifies the IP or IP range in CIDR | ||
/// format. Only IPV4 address is allowed.</param> | ||
/// <param name="action">The action of IP ACL rule. Possible values | ||
/// include: 'Allow'</param> | ||
public IPRule(string iPAddressOrRange, Action? action = default(Action?)) | ||
{ | ||
IPAddressOrRange = iPAddressOrRange; | ||
Action = action; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets specifies the IP or IP range in CIDR format. Only IPV4 | ||
/// address is allowed. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "value")] | ||
public string IPAddressOrRange { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the action of IP ACL rule. Possible values include: | ||
/// 'Allow' | ||
/// </summary> | ||
[JsonProperty(PropertyName = "action")] | ||
public Action? Action { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (IPAddressOrRange == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "IPAddressOrRange"); | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/SDKs/Storage/Management.Storage/Generated/Models/SignedResourceTypes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
|
||
/// <summary> | ||
/// Defines values for SignedResourceTypes. | ||
/// </summary> | ||
public static class SignedResourceTypes | ||
{ | ||
public const string S = "s"; | ||
public const string C = "c"; | ||
public const string O = "o"; | ||
} | ||
} | ||
|
37 changes: 37 additions & 0 deletions
37
src/SDKs/Storage/Management.Storage/Generated/Models/State.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// 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 1.0.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Storage.Models | ||
{ | ||
using Azure; | ||
using Management; | ||
using Storage; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// Defines values for State. | ||
/// </summary> | ||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] | ||
public enum State | ||
{ | ||
[EnumMember(Value = "provisioning")] | ||
Provisioning, | ||
[EnumMember(Value = "deprovisioning")] | ||
Deprovisioning, | ||
[EnumMember(Value = "succeeded")] | ||
Succeeded, | ||
[EnumMember(Value = "failed")] | ||
Failed, | ||
[EnumMember(Value = "networkSourceDeleted")] | ||
NetworkSourceDeleted | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.