MICROSOFT.NETWORKANALYTICS

DataProductsCatalogs_Get

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

DataProductsCatalogs_ListByResourceGroup

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

DataProductsCatalogs_ListBySubscription

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

DataProducts_AddUserRole

enum_DataProductUserRole := [ "Reader", "SensitiveReader" ]

valid {
    input.Body.roleId == STRING
    input.Body.principalId == STRING
    input.Body.userName == STRING
    input.Body.dataTypeScope[_] == STRING
    input.Body.principalType == STRING
    input.Body.role == enum_DataProductUserRole[_]
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataProducts_Create

enum_ControlState := [ "Enabled", "Disabled" ]
enum_DefaultAction := [ "Allow", "Deny" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]

valid {
    input.Body.properties.publisher == STRING
    input.Body.properties.product == STRING
    input.Body.properties.majorVersion == STRING
    input.Body.properties.owners[_] == STRING
    input.Body.properties.redundancy == enum_ControlState[_]
    input.Body.properties.purviewAccount == STRING
    input.Body.properties.purviewCollection == STRING
    input.Body.properties.privateLinksEnabled == enum_ControlState[_]
    input.Body.properties.publicNetworkAccess == enum_ControlState[_]
    input.Body.properties.customerManagedKeyEncryptionEnabled == enum_ControlState[_]
    input.Body.properties.customerEncryptionKey.keyVaultUri == STRING
    input.Body.properties.customerEncryptionKey.keyName == STRING
    input.Body.properties.customerEncryptionKey.keyVersion == STRING
    input.Body.properties.networkacls.virtualNetworkRule[_].id == STRING
    input.Body.properties.networkacls.virtualNetworkRule[_].action == STRING
    input.Body.properties.networkacls.virtualNetworkRule[_].state == STRING
    input.Body.properties.networkacls.ipRules[_].value == STRING
    input.Body.properties.networkacls.ipRules[_].action == STRING
    input.Body.properties.networkacls.allowedQueryIpRangeList[_] == STRING
    input.Body.properties.networkacls.defaultAction == enum_DefaultAction[_]
    input.Body.properties.managedResourceGroupConfiguration.name == STRING
    input.Body.properties.managedResourceGroupConfiguration.location == STRING
    input.Body.properties.currentMinorVersion == STRING
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.location == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataProducts_Delete

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

DataProducts_GenerateStorageAccountSasToken

valid {
    input.Body.startTimeStamp == STRING
    input.Body.expiryTimeStamp == STRING
    input.Body.ipAddress == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataProducts_Get

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

DataProducts_ListByResourceGroup

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

DataProducts_ListBySubscription

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

DataProducts_ListRolesAssignments

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

DataProducts_RemoveUserRole

enum_DataProductUserRole := [ "Reader", "SensitiveReader" ]

valid {
    input.Body.roleId == STRING
    input.Body.principalId == STRING
    input.Body.userName == STRING
    input.Body.dataTypeScope[_] == STRING
    input.Body.principalType == STRING
    input.Body.role == enum_DataProductUserRole[_]
    input.Body.roleAssignmentId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataProducts_RotateKey

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

DataProducts_Update

enum_ControlState := [ "Enabled", "Disabled" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]

valid {
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.properties.owners[_] == STRING
    input.Body.properties.purviewAccount == STRING
    input.Body.properties.purviewCollection == STRING
    input.Body.properties.privateLinksEnabled == enum_ControlState[_]
    input.Body.properties.currentMinorVersion == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataTypes_Create

enum_DataTypeState := [ "Stopped", "Running" ]

valid {
    input.Body.properties.state == enum_DataTypeState[_]
    input.Body.properties.storageOutputRetention == INTEGER
    input.Body.properties.databaseCacheRetention == INTEGER
    input.Body.properties.databaseRetention == INTEGER
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.ReqMap.dataTypeName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataTypes_Delete

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

DataTypes_DeleteData

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

DataTypes_GenerateStorageContainerSasToken

valid {
    input.Body.startTimeStamp == STRING
    input.Body.expiryTimeStamp == STRING
    input.Body.ipAddress == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.ReqMap.dataTypeName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DataTypes_Get

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

DataTypes_ListByDataProduct

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

DataTypes_Update

enum_DataTypeState := [ "Stopped", "Running" ]

valid {
    input.Body.properties.state == enum_DataTypeState[_]
    input.Body.properties.storageOutputRetention == INTEGER
    input.Body.properties.databaseCacheRetention == INTEGER
    input.Body.properties.databaseRetention == INTEGER
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dataProductName == STRING
    input.ReqMap.dataTypeName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Operations_List

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