MICROSOFT.STORAGEACTIONS

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

StorageTaskAssignment_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$maxpagesize == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasksReport_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$maxpagesize == STRING
    input.Qs.$filter == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasks_Create

enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned" ]
enum_StorageTaskOperationName := [ "SetBlobTier", "SetBlobTags", "SetBlobImmutabilityPolicy", "SetBlobLegalHold", "SetBlobExpiry", "DeleteBlob", "UndeleteBlob" ]
enum_StorageTaskOperationOnFailure := [ "break" ]
enum_StorageTaskOperationOnSuccess := [ "continue" ]

valid {
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.properties.enabled == BOOLEAN
    input.Body.properties.description == STRING
    input.Body.properties.action.if.condition == STRING
    input.Body.properties.action.if.operations[_].name == enum_StorageTaskOperationName[_]
    input.Body.properties.action.if.operations[_].parameters.STRING == STRING
    input.Body.properties.action.if.operations[_].onSuccess == enum_StorageTaskOperationOnSuccess[_]
    input.Body.properties.action.if.operations[_].onFailure == enum_StorageTaskOperationOnFailure[_]
    input.Body.properties.action.else.operations[_].name == enum_StorageTaskOperationName[_]
    input.Body.properties.action.else.operations[_].parameters.STRING == STRING
    input.Body.properties.action.else.operations[_].onSuccess == enum_StorageTaskOperationOnSuccess[_]
    input.Body.properties.action.else.operations[_].onFailure == enum_StorageTaskOperationOnFailure[_]
    input.Body.tags.STRING == STRING
    input.Body.location == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasks_Delete

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasks_Get

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasks_ListByResourceGroup

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

StorageTasks_ListBySubscription

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

StorageTasks_PreviewActions

valid {
    input.Body.properties.container.name == STRING
    input.Body.properties.container.metadata[_].key == STRING
    input.Body.properties.container.metadata[_].value == STRING
    input.Body.properties.blobs[_].name == STRING
    input.Body.properties.blobs[_].properties[_].key == STRING
    input.Body.properties.blobs[_].properties[_].value == STRING
    input.Body.properties.blobs[_].metadata[_].key == STRING
    input.Body.properties.blobs[_].metadata[_].value == STRING
    input.Body.properties.blobs[_].tags[_].key == STRING
    input.Body.properties.blobs[_].tags[_].value == STRING
    input.Body.properties.action.if.condition == STRING
    input.Body.properties.action.elseBlockExists == BOOLEAN
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.location == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

StorageTasks_Update

enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned" ]
enum_StorageTaskOperationName := [ "SetBlobTier", "SetBlobTags", "SetBlobImmutabilityPolicy", "SetBlobLegalHold", "SetBlobExpiry", "DeleteBlob", "UndeleteBlob" ]
enum_StorageTaskOperationOnFailure := [ "break" ]
enum_StorageTaskOperationOnSuccess := [ "continue" ]

valid {
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.properties.enabled == BOOLEAN
    input.Body.properties.description == STRING
    input.Body.properties.action.if.condition == STRING
    input.Body.properties.action.if.operations[_].name == enum_StorageTaskOperationName[_]
    input.Body.properties.action.if.operations[_].parameters.STRING == STRING
    input.Body.properties.action.if.operations[_].onSuccess == enum_StorageTaskOperationOnSuccess[_]
    input.Body.properties.action.if.operations[_].onFailure == enum_StorageTaskOperationOnFailure[_]
    input.Body.properties.action.else.operations[_].name == enum_StorageTaskOperationName[_]
    input.Body.properties.action.else.operations[_].parameters.STRING == STRING
    input.Body.properties.action.else.operations[_].onSuccess == enum_StorageTaskOperationOnSuccess[_]
    input.Body.properties.action.else.operations[_].onFailure == enum_StorageTaskOperationOnFailure[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.storageTaskName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}