MICROSOFT.CUSTOMERINSIGHTS

AuthorizationPolicies_CreateOrUpdate

enum_PermissionTypes := [ "Read", "Write", "Manage" ]

valid {
    input.Body.properties.permissions[_] == enum_PermissionTypes[_]
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.authorizationPolicyName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationPolicies_Get

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

AuthorizationPolicies_ListByHub

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

AuthorizationPolicies_RegeneratePrimaryKey

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

AuthorizationPolicies_RegenerateSecondaryKey

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

ConnectorMappings_CreateOrUpdate

enum_ConnectorMappingAvailabilityFrequency := [ "Minute", "Hour", "Day", "Week", "Month" ]
enum_ConnectorMappingCompleteOperationCompletionOperationType := [ "DoNothing", "DeleteFile", "MoveFile" ]
enum_ConnectorMappingEntityType := [ "None", "Profile", "Interaction", "Relationship" ]
enum_ConnectorMappingErrorManagementErrorManagementType := [ "RejectAndContinue", "StopImport", "RejectUntilLimit" ]
enum_ConnectorMappingFormatFormatType := [ "TextFormat" ]
enum_ConnectorType := [ "None", "CRM", "AzureBlob", "Salesforce", "ExchangeOnline", "Outbound" ]

valid {
    input.Body.properties.connectorType == enum_ConnectorType[_]
    input.Body.properties.entityType == enum_ConnectorMappingEntityType[_]
    input.Body.properties.entityTypeName == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.mappingProperties.folderPath == STRING
    input.Body.properties.mappingProperties.fileFilter == STRING
    input.Body.properties.mappingProperties.hasHeader == BOOLEAN
    input.Body.properties.mappingProperties.errorManagement.errorManagementType == enum_ConnectorMappingErrorManagementErrorManagementType[_]
    input.Body.properties.mappingProperties.errorManagement.errorLimit == INTEGER
    input.Body.properties.mappingProperties.format.formatType == enum_ConnectorMappingFormatFormatType[_]
    input.Body.properties.mappingProperties.format.columnDelimiter == STRING
    input.Body.properties.mappingProperties.format.acceptLanguage == STRING
    input.Body.properties.mappingProperties.format.quoteCharacter == STRING
    input.Body.properties.mappingProperties.format.quoteEscapeCharacter == STRING
    input.Body.properties.mappingProperties.format.arraySeparator == STRING
    input.Body.properties.mappingProperties.availability.frequency == enum_ConnectorMappingAvailabilityFrequency[_]
    input.Body.properties.mappingProperties.availability.interval == INTEGER
    input.Body.properties.mappingProperties.structure[_].propertyName == STRING
    input.Body.properties.mappingProperties.structure[_].columnName == STRING
    input.Body.properties.mappingProperties.structure[_].customFormatSpecifier == STRING
    input.Body.properties.mappingProperties.structure[_].isEncrypted == BOOLEAN
    input.Body.properties.mappingProperties.completeOperation.completionOperationType == enum_ConnectorMappingCompleteOperationCompletionOperationType[_]
    input.Body.properties.mappingProperties.completeOperation.destinationFolder == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.connectorName == STRING
    input.ReqMap.mappingName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ConnectorMappings_Delete

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

ConnectorMappings_Get

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

ConnectorMappings_ListByConnector

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

Connectors_CreateOrUpdate

enum_ConnectorType := [ "None", "CRM", "AzureBlob", "Salesforce", "ExchangeOnline", "Outbound" ]

valid {
    input.Body.properties.connectorName == STRING
    input.Body.properties.connectorType == enum_ConnectorType[_]
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.connectorProperties.STRING.STRING == STRING
    input.Body.properties.isInternal == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.connectorName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Connectors_Delete

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

Connectors_Get

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

Connectors_ListByHub

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

Hubs_CreateOrUpdate

valid {
    input.Body.properties.tenantFeatures == INTEGER
    input.Body.properties.hubBillingInfo.skuName == STRING
    input.Body.properties.hubBillingInfo.minUnits == INTEGER
    input.Body.properties.hubBillingInfo.maxUnits == INTEGER
    input.Body.location == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Hubs_Delete

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

Hubs_Get

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

Hubs_List

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

Hubs_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
}

Hubs_Update

valid {
    input.Body.properties.tenantFeatures == INTEGER
    input.Body.properties.hubBillingInfo.skuName == STRING
    input.Body.properties.hubBillingInfo.minUnits == INTEGER
    input.Body.properties.hubBillingInfo.maxUnits == INTEGER
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Images_GetUploadUrlForData

valid {
    input.Body.entityType == STRING
    input.Body.entityTypeName == STRING
    input.Body.relativePath == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Images_GetUploadUrlForEntityType

valid {
    input.Body.entityType == STRING
    input.Body.entityTypeName == STRING
    input.Body.relativePath == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Interactions_CreateOrUpdate

enum_EntityTypeDefinitionEntityType := [ "None", "Profile", "Interaction", "Relationship" ]

valid {
    input.Body.properties.idPropertyNames[_] == STRING
    input.Body.properties.participantProfiles[_].profileTypeName == STRING
    input.Body.properties.participantProfiles[_].participantPropertyReferences[_].sourcePropertyName == STRING
    input.Body.properties.participantProfiles[_].participantPropertyReferences[_].targetPropertyName == STRING
    input.Body.properties.participantProfiles[_].participantName == STRING
    input.Body.properties.participantProfiles[_].displayName.STRING == STRING
    input.Body.properties.participantProfiles[_].description.STRING == STRING
    input.Body.properties.participantProfiles[_].role == STRING
    input.Body.properties.primaryParticipantProfilePropertyName == STRING
    input.Body.properties.defaultDataSource == {}
    input.Body.properties.isActivity == BOOLEAN
    input.Body.properties.apiEntitySetName == STRING
    input.Body.properties.entityType == enum_EntityTypeDefinitionEntityType[_]
    input.Body.properties.fields[_].arrayValueSeparator == STRING
    input.Body.properties.fields[_].enumValidValues[_].value == INTEGER
    input.Body.properties.fields[_].enumValidValues[_].localizedValueNames.STRING == STRING
    input.Body.properties.fields[_].fieldName == STRING
    input.Body.properties.fields[_].fieldType == STRING
    input.Body.properties.fields[_].isArray == BOOLEAN
    input.Body.properties.fields[_].isEnum == BOOLEAN
    input.Body.properties.fields[_].isFlagEnum == BOOLEAN
    input.Body.properties.fields[_].isImage == BOOLEAN
    input.Body.properties.fields[_].isLocalizedString == BOOLEAN
    input.Body.properties.fields[_].isName == BOOLEAN
    input.Body.properties.fields[_].isRequired == BOOLEAN
    input.Body.properties.fields[_].propertyId == STRING
    input.Body.properties.fields[_].schemaItemPropLink == STRING
    input.Body.properties.fields[_].maxLength == INTEGER
    input.Body.properties.fields[_].isAvailableInGraph == BOOLEAN
    input.Body.properties.instancesCount == INTEGER
    input.Body.properties.schemaItemTypeLink == STRING
    input.Body.properties.timestampFieldName == STRING
    input.Body.properties.typeName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.interactionName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Interactions_Get

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

Interactions_ListByHub

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

Interactions_SuggestRelationshipLinks

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

Kpi_CreateOrUpdate

enum_KpiDefinitionCalculationWindow := [ "Lifetime", "Hour", "Day", "Week", "Month" ]
enum_KpiDefinitionEntityType := [ "None", "Profile", "Interaction", "Relationship" ]
enum_KpiDefinitionFunction := [ "Sum", "Avg", "Min", "Max", "Last", "Count", "None", "CountDistinct" ]

valid {
    input.Body.properties.entityType == enum_KpiDefinitionEntityType[_]
    input.Body.properties.entityTypeName == STRING
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.calculationWindow == enum_KpiDefinitionCalculationWindow[_]
    input.Body.properties.calculationWindowFieldName == STRING
    input.Body.properties.function == enum_KpiDefinitionFunction[_]
    input.Body.properties.expression == STRING
    input.Body.properties.unit == STRING
    input.Body.properties.filter == STRING
    input.Body.properties.groupBy[_] == STRING
    input.Body.properties.thresHolds.lowerLimit == NUMBER
    input.Body.properties.thresHolds.upperLimit == NUMBER
    input.Body.properties.thresHolds.increasingKpi == BOOLEAN
    input.Body.properties.aliases[_].aliasName == STRING
    input.Body.properties.aliases[_].expression == STRING
    input.Body.properties.extracts[_].extractName == STRING
    input.Body.properties.extracts[_].expression == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.kpiName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Kpi_Delete

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

Kpi_Get

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

Kpi_ListByHub

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

Kpi_Reprocess

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

Links_CreateOrUpdate

enum_LinkDefinitionOperationType := [ "Upsert", "Delete" ]
enum_LinkDefinitionSourceEntityType := [ "None", "Profile", "Interaction", "Relationship" ]
enum_LinkDefinitionTargetEntityType := [ "None", "Profile", "Interaction", "Relationship" ]
enum_TypePropertiesMappingLinkType := [ "UpdateAlways", "CopyIfNull" ]

valid {
    input.Body.properties.sourceEntityType == enum_LinkDefinitionSourceEntityType[_]
    input.Body.properties.targetEntityType == enum_LinkDefinitionTargetEntityType[_]
    input.Body.properties.sourceEntityTypeName == STRING
    input.Body.properties.targetEntityTypeName == STRING
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.mappings[_].sourcePropertyName == STRING
    input.Body.properties.mappings[_].targetPropertyName == STRING
    input.Body.properties.mappings[_].linkType == enum_TypePropertiesMappingLinkType[_]
    input.Body.properties.participantPropertyReferences[_].sourcePropertyName == STRING
    input.Body.properties.participantPropertyReferences[_].targetPropertyName == STRING
    input.Body.properties.referenceOnly == BOOLEAN
    input.Body.properties.operationType == enum_LinkDefinitionOperationType[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.linkName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Links_Delete

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

Links_Get

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

Links_ListByHub

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.SubscriptionID == 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
}

Predictions_CreateOrUpdate

valid {
    input.Body.properties.description.STRING == STRING
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.involvedInteractionTypes[_] == STRING
    input.Body.properties.involvedKpiTypes[_] == STRING
    input.Body.properties.involvedRelationships[_] == STRING
    input.Body.properties.negativeOutcomeExpression == STRING
    input.Body.properties.positiveOutcomeExpression == STRING
    input.Body.properties.primaryProfileType == STRING
    input.Body.properties.predictionName == STRING
    input.Body.properties.scopeExpression == STRING
    input.Body.properties.autoAnalyze == BOOLEAN
    input.Body.properties.mappings.score == STRING
    input.Body.properties.mappings.grade == STRING
    input.Body.properties.mappings.reason == STRING
    input.Body.properties.scoreLabel == STRING
    input.Body.properties.grades[_].gradeName == STRING
    input.Body.properties.grades[_].minScoreThreshold == INTEGER
    input.Body.properties.grades[_].maxScoreThreshold == INTEGER
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.predictionName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Predictions_Delete

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

Predictions_Get

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

Predictions_GetModelStatus

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

Predictions_GetTrainingResults

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

Predictions_ListByHub

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

Predictions_ModelStatus

enum_PredictionModelStatusStatus := [ "New", "Provisioning", "ProvisioningFailed", "PendingDiscovering", "Discovering", "PendingFeaturing", "Featuring", "FeaturingFailed", "PendingTraining", "Training", "TrainingFailed", "Evaluating", "EvaluatingFailed", "PendingModelConfirmation", "Active", "Deleted", "HumanIntervention", "Failed" ]

valid {
    input.Body.status == enum_PredictionModelStatusStatus[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.predictionName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Profiles_CreateOrUpdate

enum_EntityTypeDefinitionEntityType := [ "None", "Profile", "Interaction", "Relationship" ]

valid {
    input.Body.properties.strongIds[_].keyPropertyNames[_] == STRING
    input.Body.properties.strongIds[_].strongIdName == STRING
    input.Body.properties.strongIds[_].displayName.STRING == STRING
    input.Body.properties.strongIds[_].description.STRING == STRING
    input.Body.properties.apiEntitySetName == STRING
    input.Body.properties.entityType == enum_EntityTypeDefinitionEntityType[_]
    input.Body.properties.fields[_].arrayValueSeparator == STRING
    input.Body.properties.fields[_].enumValidValues[_].value == INTEGER
    input.Body.properties.fields[_].enumValidValues[_].localizedValueNames.STRING == STRING
    input.Body.properties.fields[_].fieldName == STRING
    input.Body.properties.fields[_].fieldType == STRING
    input.Body.properties.fields[_].isArray == BOOLEAN
    input.Body.properties.fields[_].isEnum == BOOLEAN
    input.Body.properties.fields[_].isFlagEnum == BOOLEAN
    input.Body.properties.fields[_].isImage == BOOLEAN
    input.Body.properties.fields[_].isLocalizedString == BOOLEAN
    input.Body.properties.fields[_].isName == BOOLEAN
    input.Body.properties.fields[_].isRequired == BOOLEAN
    input.Body.properties.fields[_].propertyId == STRING
    input.Body.properties.fields[_].schemaItemPropLink == STRING
    input.Body.properties.fields[_].maxLength == INTEGER
    input.Body.properties.fields[_].isAvailableInGraph == BOOLEAN
    input.Body.properties.instancesCount == INTEGER
    input.Body.properties.schemaItemTypeLink == STRING
    input.Body.properties.timestampFieldName == STRING
    input.Body.properties.typeName == STRING
    input.Body.properties.attributes.STRING[_] == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.localizedAttributes.STRING.STRING == STRING
    input.Body.properties.smallImage == STRING
    input.Body.properties.mediumImage == STRING
    input.Body.properties.largeImage == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.profileName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Profiles_Delete

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

Profiles_Get

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

Profiles_GetEnrichingKpis

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

Profiles_ListByHub

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

RelationshipLinks_CreateOrUpdate

enum_RelationshipLinkFieldMappingLinkType := [ "UpdateAlways", "CopyIfNull" ]

valid {
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.interactionType == STRING
    input.Body.properties.mappings[_].interactionFieldName == STRING
    input.Body.properties.mappings[_].linkType == enum_RelationshipLinkFieldMappingLinkType[_]
    input.Body.properties.mappings[_].relationshipFieldName == STRING
    input.Body.properties.profilePropertyReferences[_].interactionPropertyName == STRING
    input.Body.properties.profilePropertyReferences[_].profilePropertyName == STRING
    input.Body.properties.relatedProfilePropertyReferences[_].interactionPropertyName == STRING
    input.Body.properties.relatedProfilePropertyReferences[_].profilePropertyName == STRING
    input.Body.properties.relationshipName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.relationshipLinkName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

RelationshipLinks_Delete

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

RelationshipLinks_Get

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

RelationshipLinks_ListByHub

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

Relationships_CreateOrUpdate

enum_RelationshipDefinitionCardinality := [ "OneToOne", "OneToMany", "ManyToMany" ]

valid {
    input.Body.properties.cardinality == enum_RelationshipDefinitionCardinality[_]
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.expiryDateTimeUtc == STRING
    input.Body.properties.fields[_].arrayValueSeparator == STRING
    input.Body.properties.fields[_].enumValidValues[_].value == INTEGER
    input.Body.properties.fields[_].enumValidValues[_].localizedValueNames.STRING == STRING
    input.Body.properties.fields[_].fieldName == STRING
    input.Body.properties.fields[_].fieldType == STRING
    input.Body.properties.fields[_].isArray == BOOLEAN
    input.Body.properties.fields[_].isEnum == BOOLEAN
    input.Body.properties.fields[_].isFlagEnum == BOOLEAN
    input.Body.properties.fields[_].isImage == BOOLEAN
    input.Body.properties.fields[_].isLocalizedString == BOOLEAN
    input.Body.properties.fields[_].isName == BOOLEAN
    input.Body.properties.fields[_].isRequired == BOOLEAN
    input.Body.properties.fields[_].propertyId == STRING
    input.Body.properties.fields[_].schemaItemPropLink == STRING
    input.Body.properties.fields[_].maxLength == INTEGER
    input.Body.properties.fields[_].isAvailableInGraph == BOOLEAN
    input.Body.properties.lookupMappings[_].fieldMappings[_].profileFieldName == STRING
    input.Body.properties.lookupMappings[_].fieldMappings[_].relatedProfileKeyProperty == STRING
    input.Body.properties.profileType == STRING
    input.Body.properties.relatedProfileType == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.relationshipName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Relationships_Delete

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

Relationships_Get

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

Relationships_ListByHub

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

RoleAssignments_CreateOrUpdate

enum_RoleAssignmentRole := [ "Admin", "Reader", "ManageAdmin", "ManageReader", "DataAdmin", "DataReader" ]

valid {
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.description.STRING == STRING
    input.Body.properties.role == enum_RoleAssignmentRole[_]
    input.Body.properties.principals[_].principalId == STRING
    input.Body.properties.principals[_].principalType == STRING
    input.Body.properties.principals[_].principalMetadata.STRING == STRING
    input.Body.properties.profiles.elements[_] == STRING
    input.Body.properties.profiles.exceptions[_] == STRING
    input.Body.properties.interactions.elements[_] == STRING
    input.Body.properties.interactions.exceptions[_] == STRING
    input.Body.properties.links.elements[_] == STRING
    input.Body.properties.links.exceptions[_] == STRING
    input.Body.properties.kpis.elements[_] == STRING
    input.Body.properties.kpis.exceptions[_] == STRING
    input.Body.properties.sasPolicies.elements[_] == STRING
    input.Body.properties.sasPolicies.exceptions[_] == STRING
    input.Body.properties.connectors.elements[_] == STRING
    input.Body.properties.connectors.exceptions[_] == STRING
    input.Body.properties.views.elements[_] == STRING
    input.Body.properties.views.exceptions[_] == STRING
    input.Body.properties.relationshipLinks.elements[_] == STRING
    input.Body.properties.relationshipLinks.exceptions[_] == STRING
    input.Body.properties.relationships.elements[_] == STRING
    input.Body.properties.relationships.exceptions[_] == STRING
    input.Body.properties.widgetTypes.elements[_] == STRING
    input.Body.properties.widgetTypes.exceptions[_] == STRING
    input.Body.properties.roleAssignments.elements[_] == STRING
    input.Body.properties.roleAssignments.exceptions[_] == STRING
    input.Body.properties.conflationPolicies.elements[_] == STRING
    input.Body.properties.conflationPolicies.exceptions[_] == STRING
    input.Body.properties.segments.elements[_] == STRING
    input.Body.properties.segments.exceptions[_] == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.assignmentName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

RoleAssignments_Delete

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

RoleAssignments_Get

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

RoleAssignments_ListByHub

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

Roles_ListByHub

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

Views_CreateOrUpdate

valid {
    input.Body.properties.userId == STRING
    input.Body.properties.displayName.STRING == STRING
    input.Body.properties.definition == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.hubName == STRING
    input.ReqMap.viewName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Views_Delete

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

Views_Get

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

Views_ListByHub

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

WidgetTypes_Get

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

WidgetTypes_ListByHub

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