From 6d6e5e569b11ab76b75b21f92b536fd1c7b64a0b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 10 Nov 2020 09:43:24 +0000 Subject: [PATCH] Generated from 3a3936bb8a4768f77047ee6ac8b8e778329bcd29 --- .../2020-08-01-preview/Microsoft.Storage.json | 362 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 5 +- 2 files changed, 366 insertions(+), 1 deletion(-) diff --git a/schemas/2020-08-01-preview/Microsoft.Storage.json b/schemas/2020-08-01-preview/Microsoft.Storage.json index 232f0991b4..ebabfa93a7 100644 --- a/schemas/2020-08-01-preview/Microsoft.Storage.json +++ b/schemas/2020-08-01-preview/Microsoft.Storage.json @@ -81,6 +81,9 @@ { "$ref": "#/definitions/storageAccounts_managementPolicies_childResource" }, + { + "$ref": "#/definitions/storageAccounts_inventoryPolicies_childResource" + }, { "$ref": "#/definitions/storageAccounts_privateEndpointConnections_childResource" }, @@ -436,6 +439,63 @@ ], "description": "Microsoft.Storage/storageAccounts/fileServices/shares" }, + "storageAccounts_inventoryPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-08-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/default$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the storage account blob inventory policy. It should always be 'default'" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/BlobInventoryPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage account blob inventory policy properties." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Storage/storageAccounts/inventoryPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Storage/storageAccounts/inventoryPolicies" + }, "storageAccounts_managementPolicies": { "type": "object", "properties": { @@ -831,6 +891,197 @@ ], "description": "Settings for Azure Files identity based authentication." }, + "BlobInventoryPolicyDefinition": { + "type": "object", + "properties": { + "filters": { + "oneOf": [ + { + "$ref": "#/definitions/BlobInventoryPolicyFilter" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that defines the blob inventory rule filter conditions." + } + }, + "required": [ + "filters" + ], + "description": "An object that defines the blob inventory rule. Each definition consists of a set of filters." + }, + "BlobInventoryPolicyFilter": { + "type": "object", + "properties": { + "blobTypes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs." + }, + "includeBlobVersions": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Includes blob versions in blob inventory when value set to true." + }, + "includeSnapshots": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Includes blob snapshots in blob inventory when value set to true." + }, + "prefixMatch": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of strings for blob prefixes to be matched." + } + }, + "required": [ + "blobTypes" + ], + "description": "An object that defines the blob inventory rule filter conditions." + }, + "BlobInventoryPolicyProperties": { + "type": "object", + "properties": { + "policy": { + "oneOf": [ + { + "$ref": "#/definitions/BlobInventoryPolicySchema" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage account blob inventory policy rules." + } + }, + "required": [ + "policy" + ], + "description": "The storage account blob inventory policy properties." + }, + "BlobInventoryPolicyRule": { + "type": "object", + "properties": { + "definition": { + "oneOf": [ + { + "$ref": "#/definitions/BlobInventoryPolicyDefinition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that defines the blob inventory rule. Each definition consists of a set of filters." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Rule is enabled when set to true." + }, + "name": { + "type": "string", + "description": "A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy." + } + }, + "required": [ + "definition", + "enabled", + "name" + ], + "description": "An object that wraps the blob inventory rule. Each rule is uniquely defined by name." + }, + "BlobInventoryPolicySchema": { + "type": "object", + "properties": { + "destination": { + "type": "string", + "description": "Container name where blob inventory files are stored. Must be pre-created." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Policy is enabled if set to true." + }, + "rules": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/BlobInventoryPolicyRule" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage account blob inventory policy rules. The rule is applied when it is enabled." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Inventory" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The valid value is Inventory" + } + }, + "required": [ + "destination", + "enabled", + "rules", + "type" + ], + "description": "The storage account blob inventory policy rules." + }, "BlobServicePropertiesProperties": { "type": "object", "properties": { @@ -2846,6 +3097,59 @@ ], "description": "Microsoft.Storage/storageAccounts/fileServices/shares" }, + "storageAccounts_inventoryPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-08-01-preview" + ] + }, + "name": { + "type": "string", + "enum": [ + "default" + ], + "description": "The name of the storage account blob inventory policy. It should always be 'default'" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/BlobInventoryPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage account blob inventory policy properties." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "inventoryPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Storage/storageAccounts/inventoryPolicies" + }, "storageAccounts_managementPolicies_childResource": { "type": "object", "properties": { @@ -3136,6 +3440,64 @@ ], "description": "Microsoft.Storage/storageAccounts/tableServices/tables" }, + "SystemData": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that created the resource." + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that last modified the resource." + } + }, + "description": "Metadata pertaining to creation and last modification of the resource." + }, "TableServicePropertiesProperties": { "type": "object", "properties": { diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 063f9bc9be..6e395d26a3 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -5107,6 +5107,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-08-01-preview/Microsoft.Storage.json#/resourceDefinitions/storageAccounts_fileServices_shares" }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-08-01-preview/Microsoft.Storage.json#/resourceDefinitions/storageAccounts_inventoryPolicies" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-08-01-preview/Microsoft.Storage.json#/resourceDefinitions/storageAccounts_managementPolicies" }, @@ -5551,4 +5554,4 @@ ] } ] -} +} \ No newline at end of file