diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs
similarity index 100%
rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs
rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs
similarity index 100%
rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs
rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/ManagementPolicyFilter.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/ManagementPolicyFilter.cs
index c04bcd9795d2..26623f2d3499 100644
--- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/ManagementPolicyFilter.cs
+++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/ManagementPolicyFilter.cs
@@ -34,14 +34,16 @@ public ManagementPolicyFilter()
///
/// Initializes a new instance of the ManagementPolicyFilter class.
///
- /// An array of predefined enum values. Only
- /// blockBlob is supported.
+ /// An array of predefined enum values.
/// An array of strings for prefixes to be
/// match.
- public ManagementPolicyFilter(IList blobTypes, IList prefixMatch = default(IList))
+ /// An array of tag based filters, there
+ /// can be at most 10 tag filters
+ public ManagementPolicyFilter(IList blobTypes, IList prefixMatch = default(IList), IList blobIndexMatch = default(IList))
{
PrefixMatch = prefixMatch;
BlobTypes = blobTypes;
+ BlobIndexMatch = blobIndexMatch;
CustomInit();
}
@@ -57,12 +59,18 @@ public ManagementPolicyFilter()
public IList PrefixMatch { get; set; }
///
- /// Gets or sets an array of predefined enum values. Only blockBlob is
- /// supported.
+ /// Gets or sets an array of predefined enum values.
///
[JsonProperty(PropertyName = "blobTypes")]
public IList BlobTypes { get; set; }
+ ///
+ /// Gets or sets an array of tag based filters, there can be at most 10
+ /// tag filters
+ ///
+ [JsonProperty(PropertyName = "blobIndexMatch")]
+ public IList BlobIndexMatch { get; set; }
+
///
/// Validate the object.
///
@@ -75,6 +83,16 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "BlobTypes");
}
+ if (BlobIndexMatch != null)
+ {
+ foreach (var element in BlobIndexMatch)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs
similarity index 100%
rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs
rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/TagFilter.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/TagFilter.cs
new file mode 100644
index 000000000000..d4ff06ca73b9
--- /dev/null
+++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/TagFilter.cs
@@ -0,0 +1,119 @@
+//
+// 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.Storage.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Tag based filtering for blob objects
+ ///
+ public partial class TagFilter
+ {
+ ///
+ /// Initializes a new instance of the TagFilter class.
+ ///
+ public TagFilter()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TagFilter class.
+ ///
+ /// This is the filter tag name, it can have 1 - 128
+ /// characters
+ /// This is the comparison operator which is used for
+ /// object comparsion and filtering. Only == (equality operator) is
+ /// currently supported
+ /// This is the filter tag value field used for tag
+ /// based filtering, it can have 1 - 256 characters
+ public TagFilter(string name, string op, string value)
+ {
+ Name = name;
+ Op = op;
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets this is the filter tag name, it can have 1 - 128
+ /// characters
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets this is the comparison operator which is used for
+ /// object comparsion and filtering. Only == (equality operator) is
+ /// currently supported
+ ///
+ [JsonProperty(PropertyName = "op")]
+ public string Op { get; set; }
+
+ ///
+ /// Gets or sets this is the filter tag value field used for tag based
+ /// filtering, it can have 1 - 256 characters
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public string Value { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (Op == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Op");
+ }
+ if (Value == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Value");
+ }
+ if (Name != null)
+ {
+ if (Name.Length > 128)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "Name", 128);
+ }
+ if (Name.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Name", 1);
+ }
+ }
+ if (Value != null)
+ {
+ if (Value.Length > 256)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "Value", 256);
+ }
+ if (Value.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Value", 1);
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs
index 6ad9d9f23c39..2742c80e5fdd 100644
--- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs
+++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs
@@ -33,16 +33,5 @@ public static IEnumerable> ApiInfo_StorageManageme
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- 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/storage/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp.output-folder=C:\\code\\srpsdk\\sdk\\storage\\Microsoft.Azure.Management.Storage\\src\\Generated";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "1840a3849622fcd715717b08186839b93fc40483";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs
similarity index 100%
rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs
rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs
diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs
similarity index 100%
rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs
rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs