MICROSOFT.APIMANAGEMENT

AllPolicies_ListByService

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

ApiDiagnosticLogger_CheckEntityExists

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

ApiDiagnosticLogger_CreateOrUpdate

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

ApiDiagnosticLogger_Delete

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

ApiDiagnosticLogger_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.diagnosticId == STRING
    input.Qs.api-version == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiDiagnostic_CreateOrUpdate

enum_DataMaskingEntityMode := [ "Mask", "Hide" ]
enum_DiagnosticContractPropertiesAlwaysLog := [ "allErrors" ]
enum_DiagnosticContractPropertiesHttpCorrelationProtocol := [ "None", "Legacy", "W3C" ]
enum_DiagnosticContractPropertiesOperationNameFormat := [ "Name", "Url" ]
enum_DiagnosticContractPropertiesVerbosity := [ "verbose", "information", "error" ]
enum_SamplingSettingsSamplingType := [ "fixed" ]

valid {
    input.Body.properties.alwaysLog == enum_DiagnosticContractPropertiesAlwaysLog[_]
    input.Body.properties.loggerId == STRING
    input.Body.properties.sampling.samplingType == enum_SamplingSettingsSamplingType[_]
    input.Body.properties.sampling.percentage == NUMBER
    input.Body.properties.frontend.request.headers[_] == STRING
    input.Body.properties.frontend.request.body.bytes == INTEGER
    input.Body.properties.frontend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.headers[_] == STRING
    input.Body.properties.frontend.response.body.bytes == INTEGER
    input.Body.properties.frontend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.headers[_] == STRING
    input.Body.properties.backend.request.body.bytes == INTEGER
    input.Body.properties.backend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.headers[_] == STRING
    input.Body.properties.backend.response.body.bytes == INTEGER
    input.Body.properties.backend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.logClientIp == BOOLEAN
    input.Body.properties.httpCorrelationProtocol == enum_DiagnosticContractPropertiesHttpCorrelationProtocol[_]
    input.Body.properties.verbosity == enum_DiagnosticContractPropertiesVerbosity[_]
    input.Body.properties.operationNameFormat == enum_DiagnosticContractPropertiesOperationNameFormat[_]
    input.Body.properties.metrics == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.diagnosticId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiDiagnostic_Delete

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

ApiDiagnostic_Get

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

ApiDiagnostic_GetEntityTag

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

ApiDiagnostic_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiDiagnostic_Update

enum_DataMaskingEntityMode := [ "Mask", "Hide" ]
enum_DiagnosticContractPropertiesAlwaysLog := [ "allErrors" ]
enum_DiagnosticContractPropertiesHttpCorrelationProtocol := [ "None", "Legacy", "W3C" ]
enum_DiagnosticContractPropertiesOperationNameFormat := [ "Name", "Url" ]
enum_DiagnosticContractPropertiesVerbosity := [ "verbose", "information", "error" ]
enum_SamplingSettingsSamplingType := [ "fixed" ]

valid {
    input.Body.properties.alwaysLog == enum_DiagnosticContractPropertiesAlwaysLog[_]
    input.Body.properties.loggerId == STRING
    input.Body.properties.sampling.samplingType == enum_SamplingSettingsSamplingType[_]
    input.Body.properties.sampling.percentage == NUMBER
    input.Body.properties.frontend.request.headers[_] == STRING
    input.Body.properties.frontend.request.body.bytes == INTEGER
    input.Body.properties.frontend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.headers[_] == STRING
    input.Body.properties.frontend.response.body.bytes == INTEGER
    input.Body.properties.frontend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.headers[_] == STRING
    input.Body.properties.backend.request.body.bytes == INTEGER
    input.Body.properties.backend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.headers[_] == STRING
    input.Body.properties.backend.response.body.bytes == INTEGER
    input.Body.properties.backend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.logClientIp == BOOLEAN
    input.Body.properties.httpCorrelationProtocol == enum_DiagnosticContractPropertiesHttpCorrelationProtocol[_]
    input.Body.properties.verbosity == enum_DiagnosticContractPropertiesVerbosity[_]
    input.Body.properties.operationNameFormat == enum_DiagnosticContractPropertiesOperationNameFormat[_]
    input.Body.properties.metrics == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.diagnosticId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiExport_Get

enum_ExportParameter := [ "true" ]
enum_FormatParameter := [ "swagger-link", "wadl-link", "wsdl-link", "openapi-link", "openapi+json-link" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_FormatParameter[_]
    input.Qs.export == enum_ExportParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssueAttachment_CreateOrUpdate

valid {
    input.Body.properties.title == STRING
    input.Body.properties.contentFormat == STRING
    input.Body.properties.content == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.attachmentId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssueAttachment_Delete

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

ApiIssueAttachment_Get

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

ApiIssueAttachment_GetEntityTag

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

ApiIssueAttachment_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssueComment_CreateOrUpdate

valid {
    input.Body.properties.text == STRING
    input.Body.properties.createdDate == STRING
    input.Body.properties.userId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.commentId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssueComment_Delete

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

ApiIssueComment_Get

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

ApiIssueComment_GetEntityTag

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

ApiIssueComment_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssue_CreateOrUpdate

enum_IssueContractBasePropertiesState := [ "proposed", "open", "removed", "resolved", "closed" ]

valid {
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.userId == STRING
    input.Body.properties.createdDate == STRING
    input.Body.properties.state == enum_IssueContractBasePropertiesState[_]
    input.Body.properties.apiId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssue_Delete

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

ApiIssue_Get

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.expandCommentsAttachments == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssue_GetEntityTag

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

ApiIssue_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.expandCommentsAttachments == BOOLEAN
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiIssue_Update

enum_IssueContractBasePropertiesState := [ "proposed", "open", "removed", "resolved", "closed" ]

valid {
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.userId == STRING
    input.Body.properties.createdDate == STRING
    input.Body.properties.state == enum_IssueContractBasePropertiesState[_]
    input.Body.properties.apiId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.issueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementOperations_List

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

ApiManagementServiceSkus_ListAvailableServiceSkus

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

ApiManagementService_ApplyNetworkConfigurationUpdates

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

ApiManagementService_Backup

enum_ApiManagementServiceBackupRestoreParametersAccessType := [ "AccessKey", "SystemAssignedManagedIdentity", "UserAssignedManagedIdentity" ]

valid {
    input.Body.storageAccount == STRING
    input.Body.containerName == STRING
    input.Body.backupName == STRING
    input.Body.accessType == enum_ApiManagementServiceBackupRestoreParametersAccessType[_]
    input.Body.accessKey == STRING
    input.Body.clientId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_CheckNameAvailability

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

ApiManagementService_CreateOrUpdate

enum_AdditionalLocationNatGatewayState := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesDeveloperPortalStatus := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesLegacyPortalStatus := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesNatGatewayState := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesPublicNetworkAccess := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesVirtualNetworkType := [ "None", "External", "Internal" ]
enum_ApiManagementServiceIdentityType := [ "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None" ]
enum_ApiManagementServiceSkuPropertiesName := [ "Developer", "Standard", "Premium", "Basic", "Consumption", "Isolated", "BasicV2", "StandardV2" ]
enum_CertificateConfigurationStoreName := [ "CertificateAuthority", "Root" ]
enum_ConfigurationApiLegacyApi := [ "Enabled", "Disabled" ]
enum_HostnameConfigurationCertificateSource := [ "Managed", "KeyVault", "Custom", "BuiltIn" ]
enum_HostnameConfigurationCertificateStatus := [ "Completed", "Failed", "InProgress" ]
enum_HostnameConfigurationType := [ "Proxy", "Portal", "Management", "Scm", "DeveloperPortal", "ConfigurationApi" ]
enum_PrivateEndpointServiceConnectionStatus := [ "Pending", "Approved", "Rejected" ]

valid {
    input.Body.properties.publisherEmail == STRING
    input.Body.properties.publisherName == STRING
    input.Body.properties.notificationSenderEmail == STRING
    input.Body.properties.hostnameConfigurations[_].type == enum_HostnameConfigurationType[_]
    input.Body.properties.hostnameConfigurations[_].hostName == STRING
    input.Body.properties.hostnameConfigurations[_].keyVaultId == STRING
    input.Body.properties.hostnameConfigurations[_].identityClientId == STRING
    input.Body.properties.hostnameConfigurations[_].encodedCertificate == STRING
    input.Body.properties.hostnameConfigurations[_].certificatePassword == STRING
    input.Body.properties.hostnameConfigurations[_].defaultSslBinding == BOOLEAN
    input.Body.properties.hostnameConfigurations[_].negotiateClientCertificate == BOOLEAN
    input.Body.properties.hostnameConfigurations[_].certificate.expiry == STRING
    input.Body.properties.hostnameConfigurations[_].certificate.thumbprint == STRING
    input.Body.properties.hostnameConfigurations[_].certificate.subject == STRING
    input.Body.properties.hostnameConfigurations[_].certificateSource == enum_HostnameConfigurationCertificateSource[_]
    input.Body.properties.hostnameConfigurations[_].certificateStatus == enum_HostnameConfigurationCertificateStatus[_]
    input.Body.properties.publicIpAddressId == STRING
    input.Body.properties.publicNetworkAccess == enum_ApiManagementServiceBasePropertiesPublicNetworkAccess[_]
    input.Body.properties.configurationApi.legacyApi == enum_ConfigurationApiLegacyApi[_]
    input.Body.properties.virtualNetworkConfiguration.subnetResourceId == STRING
    input.Body.properties.additionalLocations[_].location == STRING
    input.Body.properties.additionalLocations[_].sku.name == enum_ApiManagementServiceSkuPropertiesName[_]
    input.Body.properties.additionalLocations[_].sku.capacity == INTEGER
    input.Body.properties.additionalLocations[_].zones[_] == STRING
    input.Body.properties.additionalLocations[_].publicIpAddressId == STRING
    input.Body.properties.additionalLocations[_].virtualNetworkConfiguration.subnetResourceId == STRING
    input.Body.properties.additionalLocations[_].natGatewayState == enum_AdditionalLocationNatGatewayState[_]
    input.Body.properties.additionalLocations[_].disableGateway == BOOLEAN
    input.Body.properties.customProperties.STRING == STRING
    input.Body.properties.certificates[_].encodedCertificate == STRING
    input.Body.properties.certificates[_].certificatePassword == STRING
    input.Body.properties.certificates[_].storeName == enum_CertificateConfigurationStoreName[_]
    input.Body.properties.certificates[_].certificate.expiry == STRING
    input.Body.properties.certificates[_].certificate.thumbprint == STRING
    input.Body.properties.certificates[_].certificate.subject == STRING
    input.Body.properties.enableClientCertificate == BOOLEAN
    input.Body.properties.natGatewayState == enum_ApiManagementServiceBasePropertiesNatGatewayState[_]
    input.Body.properties.disableGateway == BOOLEAN
    input.Body.properties.virtualNetworkType == enum_ApiManagementServiceBasePropertiesVirtualNetworkType[_]
    input.Body.properties.apiVersionConstraint.minApiVersion == STRING
    input.Body.properties.restore == BOOLEAN
    input.Body.properties.privateEndpointConnections[_].id == STRING
    input.Body.properties.privateEndpointConnections[_].name == STRING
    input.Body.properties.privateEndpointConnections[_].type == STRING
    input.Body.properties.privateEndpointConnections[_].properties.privateEndpoint == {}
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.status == enum_PrivateEndpointServiceConnectionStatus[_]
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.description == STRING
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.actionsRequired == STRING
    input.Body.properties.legacyPortalStatus == enum_ApiManagementServiceBasePropertiesLegacyPortalStatus[_]
    input.Body.properties.developerPortalStatus == enum_ApiManagementServiceBasePropertiesDeveloperPortalStatus[_]
    input.Body.sku.name == enum_ApiManagementServiceSkuPropertiesName[_]
    input.Body.sku.capacity == INTEGER
    input.Body.identity.type == enum_ApiManagementServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING.principalId == STRING
    input.Body.identity.userAssignedIdentities.STRING.clientId == STRING
    input.Body.location == STRING
    input.Body.zones[_] == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_Delete

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

ApiManagementService_Get

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

ApiManagementService_GetDomainOwnershipIdentifier

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

ApiManagementService_GetSsoToken

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

ApiManagementService_List

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

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

ApiManagementService_MigrateToStv2

enum_MigrateToStv2ContractMode := [ "PreserveIp", "NewIP" ]

valid {
    input.Body.mode == enum_MigrateToStv2ContractMode[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_Restore

enum_ApiManagementServiceBackupRestoreParametersAccessType := [ "AccessKey", "SystemAssignedManagedIdentity", "UserAssignedManagedIdentity" ]

valid {
    input.Body.storageAccount == STRING
    input.Body.containerName == STRING
    input.Body.backupName == STRING
    input.Body.accessType == enum_ApiManagementServiceBackupRestoreParametersAccessType[_]
    input.Body.accessKey == STRING
    input.Body.clientId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_Update

enum_AdditionalLocationNatGatewayState := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesDeveloperPortalStatus := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesLegacyPortalStatus := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesNatGatewayState := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesPublicNetworkAccess := [ "Enabled", "Disabled" ]
enum_ApiManagementServiceBasePropertiesVirtualNetworkType := [ "None", "External", "Internal" ]
enum_ApiManagementServiceIdentityType := [ "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None" ]
enum_ApiManagementServiceSkuPropertiesName := [ "Developer", "Standard", "Premium", "Basic", "Consumption", "Isolated", "BasicV2", "StandardV2" ]
enum_CertificateConfigurationStoreName := [ "CertificateAuthority", "Root" ]
enum_ConfigurationApiLegacyApi := [ "Enabled", "Disabled" ]
enum_HostnameConfigurationCertificateSource := [ "Managed", "KeyVault", "Custom", "BuiltIn" ]
enum_HostnameConfigurationCertificateStatus := [ "Completed", "Failed", "InProgress" ]
enum_HostnameConfigurationType := [ "Proxy", "Portal", "Management", "Scm", "DeveloperPortal", "ConfigurationApi" ]
enum_PrivateEndpointServiceConnectionStatus := [ "Pending", "Approved", "Rejected" ]

valid {
    input.Body.properties.publisherEmail == STRING
    input.Body.properties.publisherName == STRING
    input.Body.properties.notificationSenderEmail == STRING
    input.Body.properties.hostnameConfigurations[_].type == enum_HostnameConfigurationType[_]
    input.Body.properties.hostnameConfigurations[_].hostName == STRING
    input.Body.properties.hostnameConfigurations[_].keyVaultId == STRING
    input.Body.properties.hostnameConfigurations[_].identityClientId == STRING
    input.Body.properties.hostnameConfigurations[_].encodedCertificate == STRING
    input.Body.properties.hostnameConfigurations[_].certificatePassword == STRING
    input.Body.properties.hostnameConfigurations[_].defaultSslBinding == BOOLEAN
    input.Body.properties.hostnameConfigurations[_].negotiateClientCertificate == BOOLEAN
    input.Body.properties.hostnameConfigurations[_].certificate.expiry == STRING
    input.Body.properties.hostnameConfigurations[_].certificate.thumbprint == STRING
    input.Body.properties.hostnameConfigurations[_].certificate.subject == STRING
    input.Body.properties.hostnameConfigurations[_].certificateSource == enum_HostnameConfigurationCertificateSource[_]
    input.Body.properties.hostnameConfigurations[_].certificateStatus == enum_HostnameConfigurationCertificateStatus[_]
    input.Body.properties.publicIpAddressId == STRING
    input.Body.properties.publicNetworkAccess == enum_ApiManagementServiceBasePropertiesPublicNetworkAccess[_]
    input.Body.properties.configurationApi.legacyApi == enum_ConfigurationApiLegacyApi[_]
    input.Body.properties.virtualNetworkConfiguration.subnetResourceId == STRING
    input.Body.properties.additionalLocations[_].location == STRING
    input.Body.properties.additionalLocations[_].sku.name == enum_ApiManagementServiceSkuPropertiesName[_]
    input.Body.properties.additionalLocations[_].sku.capacity == INTEGER
    input.Body.properties.additionalLocations[_].zones[_] == STRING
    input.Body.properties.additionalLocations[_].publicIpAddressId == STRING
    input.Body.properties.additionalLocations[_].virtualNetworkConfiguration.subnetResourceId == STRING
    input.Body.properties.additionalLocations[_].natGatewayState == enum_AdditionalLocationNatGatewayState[_]
    input.Body.properties.additionalLocations[_].disableGateway == BOOLEAN
    input.Body.properties.customProperties.STRING == STRING
    input.Body.properties.certificates[_].encodedCertificate == STRING
    input.Body.properties.certificates[_].certificatePassword == STRING
    input.Body.properties.certificates[_].storeName == enum_CertificateConfigurationStoreName[_]
    input.Body.properties.certificates[_].certificate.expiry == STRING
    input.Body.properties.certificates[_].certificate.thumbprint == STRING
    input.Body.properties.certificates[_].certificate.subject == STRING
    input.Body.properties.enableClientCertificate == BOOLEAN
    input.Body.properties.natGatewayState == enum_ApiManagementServiceBasePropertiesNatGatewayState[_]
    input.Body.properties.disableGateway == BOOLEAN
    input.Body.properties.virtualNetworkType == enum_ApiManagementServiceBasePropertiesVirtualNetworkType[_]
    input.Body.properties.apiVersionConstraint.minApiVersion == STRING
    input.Body.properties.restore == BOOLEAN
    input.Body.properties.privateEndpointConnections[_].id == STRING
    input.Body.properties.privateEndpointConnections[_].name == STRING
    input.Body.properties.privateEndpointConnections[_].type == STRING
    input.Body.properties.privateEndpointConnections[_].properties.privateEndpoint == {}
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.status == enum_PrivateEndpointServiceConnectionStatus[_]
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.description == STRING
    input.Body.properties.privateEndpointConnections[_].properties.privateLinkServiceConnectionState.actionsRequired == STRING
    input.Body.properties.legacyPortalStatus == enum_ApiManagementServiceBasePropertiesLegacyPortalStatus[_]
    input.Body.properties.developerPortalStatus == enum_ApiManagementServiceBasePropertiesDeveloperPortalStatus[_]
    input.Body.sku.name == enum_ApiManagementServiceSkuPropertiesName[_]
    input.Body.sku.capacity == INTEGER
    input.Body.identity.type == enum_ApiManagementServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING.principalId == STRING
    input.Body.identity.userAssignedIdentities.STRING.clientId == STRING
    input.Body.zones[_] == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_UpdateHostname

enum_ApiManagementServiceUpdateHostnameParametersDelete := [ "Proxy", "Portal", "Management", "Scm" ]
enum_HostnameConfigurationOldType := [ "Proxy", "Portal", "Management", "Scm" ]

valid {
    input.Body.update[_].type == enum_HostnameConfigurationOldType[_]
    input.Body.update[_].hostname == STRING
    input.Body.update[_].certificate.expiry == STRING
    input.Body.update[_].certificate.thumbprint == STRING
    input.Body.update[_].certificate.subject == STRING
    input.Body.delete[_] == enum_ApiManagementServiceUpdateHostnameParametersDelete[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementService_UploadCertificate

enum_ApiManagementServiceUploadCertificateParametersType := [ "Proxy", "Portal", "Management", "Scm" ]

valid {
    input.Body.type == enum_ApiManagementServiceUploadCertificateParametersType[_]
    input.Body.certificate == STRING
    input.Body.certificate_password == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementServices_GetSsoToken

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

ApiManagementServices_ManageDeployments

enum_AdditionalRegionSkuType := [ "Developer", "Standard", "Premium" ]
enum_ApiManagementServiceManageDeploymentsParametersSkuType := [ "Developer", "Standard", "Premium" ]
enum_ApiManagementServiceManageDeploymentsParametersVpnType := [ "None", "External", "Internal" ]

valid {
    input.Body.location == STRING
    input.Body.skuType == enum_ApiManagementServiceManageDeploymentsParametersSkuType[_]
    input.Body.skuUnitCount == INTEGER
    input.Body.additionalLocations[_].location == STRING
    input.Body.additionalLocations[_].skuType == enum_AdditionalRegionSkuType[_]
    input.Body.additionalLocations[_].skuUnitCount == INTEGER
    input.Body.additionalLocations[_].vpnconfiguration.subnetResourceId == STRING
    input.Body.additionalLocations[_].vpnconfiguration.location == STRING
    input.Body.vpnConfiguration.subnetResourceId == STRING
    input.Body.vpnConfiguration.location == STRING
    input.Body.vpnType == enum_ApiManagementServiceManageDeploymentsParametersVpnType[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiManagementSkus_List

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

ApiOperationPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperationPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperationPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperationPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperationPolicy_ListByOperation

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

ApiOperation_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.method == STRING
    input.Body.properties.urlTemplate == STRING
    input.Body.properties.templateParameters[_].name == STRING
    input.Body.properties.templateParameters[_].description == STRING
    input.Body.properties.templateParameters[_].type == STRING
    input.Body.properties.templateParameters[_].defaultValue == STRING
    input.Body.properties.templateParameters[_].required == BOOLEAN
    input.Body.properties.templateParameters[_].values[_] == STRING
    input.Body.properties.templateParameters[_].schemaId == STRING
    input.Body.properties.templateParameters[_].typeName == STRING
    input.Body.properties.templateParameters[_].examples.STRING.summary == STRING
    input.Body.properties.templateParameters[_].examples.STRING.description == STRING
    input.Body.properties.templateParameters[_].examples.STRING.value == {}
    input.Body.properties.templateParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.description == STRING
    input.Body.properties.request.description == STRING
    input.Body.properties.request.queryParameters[_].name == STRING
    input.Body.properties.request.queryParameters[_].description == STRING
    input.Body.properties.request.queryParameters[_].type == STRING
    input.Body.properties.request.queryParameters[_].defaultValue == STRING
    input.Body.properties.request.queryParameters[_].required == BOOLEAN
    input.Body.properties.request.queryParameters[_].values[_] == STRING
    input.Body.properties.request.queryParameters[_].schemaId == STRING
    input.Body.properties.request.queryParameters[_].typeName == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.value == {}
    input.Body.properties.request.queryParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.headers[_].name == STRING
    input.Body.properties.request.headers[_].description == STRING
    input.Body.properties.request.headers[_].type == STRING
    input.Body.properties.request.headers[_].defaultValue == STRING
    input.Body.properties.request.headers[_].required == BOOLEAN
    input.Body.properties.request.headers[_].values[_] == STRING
    input.Body.properties.request.headers[_].schemaId == STRING
    input.Body.properties.request.headers[_].typeName == STRING
    input.Body.properties.request.headers[_].examples.STRING.summary == STRING
    input.Body.properties.request.headers[_].examples.STRING.description == STRING
    input.Body.properties.request.headers[_].examples.STRING.value == {}
    input.Body.properties.request.headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].contentType == STRING
    input.Body.properties.request.representations[_].schemaId == STRING
    input.Body.properties.request.representations[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].name == STRING
    input.Body.properties.request.representations[_].formParameters[_].description == STRING
    input.Body.properties.request.representations[_].formParameters[_].type == STRING
    input.Body.properties.request.representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.request.representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.request.representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.request.representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.request.representations[_].formParameters[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].statusCode == INTEGER
    input.Body.properties.responses[_].description == STRING
    input.Body.properties.responses[_].representations[_].contentType == STRING
    input.Body.properties.responses[_].representations[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].name == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].type == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.responses[_].representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].headers[_].name == STRING
    input.Body.properties.responses[_].headers[_].description == STRING
    input.Body.properties.responses[_].headers[_].type == STRING
    input.Body.properties.responses[_].headers[_].defaultValue == STRING
    input.Body.properties.responses[_].headers[_].required == BOOLEAN
    input.Body.properties.responses[_].headers[_].values[_] == STRING
    input.Body.properties.responses[_].headers[_].schemaId == STRING
    input.Body.properties.responses[_].headers[_].typeName == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.value == {}
    input.Body.properties.responses[_].headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.policies == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperation_Delete

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

ApiOperation_Get

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

ApiOperation_GetEntityTag

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

ApiOperation_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.tags == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperation_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.method == STRING
    input.Body.properties.urlTemplate == STRING
    input.Body.properties.templateParameters[_].name == STRING
    input.Body.properties.templateParameters[_].description == STRING
    input.Body.properties.templateParameters[_].type == STRING
    input.Body.properties.templateParameters[_].defaultValue == STRING
    input.Body.properties.templateParameters[_].required == BOOLEAN
    input.Body.properties.templateParameters[_].values[_] == STRING
    input.Body.properties.templateParameters[_].schemaId == STRING
    input.Body.properties.templateParameters[_].typeName == STRING
    input.Body.properties.templateParameters[_].examples.STRING.summary == STRING
    input.Body.properties.templateParameters[_].examples.STRING.description == STRING
    input.Body.properties.templateParameters[_].examples.STRING.value == {}
    input.Body.properties.templateParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.description == STRING
    input.Body.properties.request.description == STRING
    input.Body.properties.request.queryParameters[_].name == STRING
    input.Body.properties.request.queryParameters[_].description == STRING
    input.Body.properties.request.queryParameters[_].type == STRING
    input.Body.properties.request.queryParameters[_].defaultValue == STRING
    input.Body.properties.request.queryParameters[_].required == BOOLEAN
    input.Body.properties.request.queryParameters[_].values[_] == STRING
    input.Body.properties.request.queryParameters[_].schemaId == STRING
    input.Body.properties.request.queryParameters[_].typeName == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.value == {}
    input.Body.properties.request.queryParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.headers[_].name == STRING
    input.Body.properties.request.headers[_].description == STRING
    input.Body.properties.request.headers[_].type == STRING
    input.Body.properties.request.headers[_].defaultValue == STRING
    input.Body.properties.request.headers[_].required == BOOLEAN
    input.Body.properties.request.headers[_].values[_] == STRING
    input.Body.properties.request.headers[_].schemaId == STRING
    input.Body.properties.request.headers[_].typeName == STRING
    input.Body.properties.request.headers[_].examples.STRING.summary == STRING
    input.Body.properties.request.headers[_].examples.STRING.description == STRING
    input.Body.properties.request.headers[_].examples.STRING.value == {}
    input.Body.properties.request.headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].contentType == STRING
    input.Body.properties.request.representations[_].schemaId == STRING
    input.Body.properties.request.representations[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].name == STRING
    input.Body.properties.request.representations[_].formParameters[_].description == STRING
    input.Body.properties.request.representations[_].formParameters[_].type == STRING
    input.Body.properties.request.representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.request.representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.request.representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.request.representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.request.representations[_].formParameters[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].statusCode == INTEGER
    input.Body.properties.responses[_].description == STRING
    input.Body.properties.responses[_].representations[_].contentType == STRING
    input.Body.properties.responses[_].representations[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].name == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].type == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.responses[_].representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].headers[_].name == STRING
    input.Body.properties.responses[_].headers[_].description == STRING
    input.Body.properties.responses[_].headers[_].type == STRING
    input.Body.properties.responses[_].headers[_].defaultValue == STRING
    input.Body.properties.responses[_].headers[_].required == BOOLEAN
    input.Body.properties.responses[_].headers[_].values[_] == STRING
    input.Body.properties.responses[_].headers[_].schemaId == STRING
    input.Body.properties.responses[_].headers[_].typeName == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.value == {}
    input.Body.properties.responses[_].headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.policies == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiOperationsPolicy_CreateOrUpdate

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

ApiOperationsPolicy_Delete

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

ApiOperationsPolicy_Get

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

ApiPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiPolicy_ListByApi

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

ApiProduct_ListByApis

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiRelease_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.properties.notes == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.releaseId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiRelease_Delete

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

ApiRelease_Get

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

ApiRelease_GetEntityTag

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

ApiRelease_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiRelease_Update

valid {
    input.Body.properties.apiId == STRING
    input.Body.properties.notes == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.releaseId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiRevision_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiSchema_CreateOrUpdate

valid {
    input.Body.properties.contentType == STRING
    input.Body.properties.document.value == STRING
    input.Body.properties.document.definitions.STRING == STRING
    input.Body.properties.document.components.STRING == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiSchema_Delete

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.force == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiSchema_Get

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

ApiSchema_GetEntityTag

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

ApiSchema_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiTagDescription_CreateOrUpdate

valid {
    input.Body.properties.description == STRING
    input.Body.properties.externalDocsUrl == STRING
    input.Body.properties.externalDocsDescription == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.tagDescriptionId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiTagDescription_Delete

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

ApiTagDescription_Get

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

ApiTagDescription_GetEntityTag

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

ApiTagDescription_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiVersionSet_CreateOrUpdate

enum_ApiVersionSetContractPropertiesVersioningScheme := [ "Segment", "Query", "Header" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.versioningScheme == enum_ApiVersionSetContractPropertiesVersioningScheme[_]
    input.Body.properties.description == STRING
    input.Body.properties.versionQueryName == STRING
    input.Body.properties.versionHeaderName == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.versionSetId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiVersionSet_Delete

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

ApiVersionSet_Get

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

ApiVersionSet_GetEntityTag

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

ApiVersionSet_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiVersionSet_Update

enum_ApiVersionSetUpdateParametersPropertiesVersioningScheme := [ "Segment", "Query", "Header" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.versioningScheme == enum_ApiVersionSetUpdateParametersPropertiesVersioningScheme[_]
    input.Body.properties.description == STRING
    input.Body.properties.versionQueryName == STRING
    input.Body.properties.versionHeaderName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.versionSetId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiWiki_CreateOrUpdate

valid {
    input.Body.properties.documents[_].documentationId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiWiki_Delete

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

ApiWiki_Get

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

ApiWiki_GetEntityTag

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

ApiWiki_Update

valid {
    input.Body.properties.documents[_].documentationId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ApiWikis_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Api_CreateOrUpdate

enum_ApiContractPropertiesProtocols := [ "http", "https", "ws", "wss" ]
enum_ApiCreateOrUpdatePropertiesApiType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_ApiCreateOrUpdatePropertiesFormat := [ "wadl-xml", "wadl-link-json", "swagger-json", "swagger-link-json", "wsdl", "wsdl-link", "openapi", "openapi+json", "openapi-link", "openapi+json-link", "graphql-link", "odata", "odata-link", "grpc", "grpc-link" ]
enum_ApiCreateOrUpdatePropertiesTranslateRequiredQueryParameters := [ "template", "query" ]
enum_ApiEntityBaseContractType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_ApiVersionSetContractDetailsVersioningScheme := [ "Segment", "Query", "Header" ]
enum_BearerTokenSendingMethodsContract := [ "authorizationHeader", "query" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_ApiCreateOrUpdatePropertiesFormat[_]
    input.Body.properties.wsdlSelector.wsdlServiceName == STRING
    input.Body.properties.wsdlSelector.wsdlEndpointName == STRING
    input.Body.properties.apiType == enum_ApiCreateOrUpdatePropertiesApiType[_]
    input.Body.properties.translateRequiredQueryParameters == enum_ApiCreateOrUpdatePropertiesTranslateRequiredQueryParameters[_]
    input.Body.properties.sourceApiId == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.serviceUrl == STRING
    input.Body.properties.path == STRING
    input.Body.properties.protocols[_] == enum_ApiContractPropertiesProtocols[_]
    input.Body.properties.apiVersionSet.id == STRING
    input.Body.properties.apiVersionSet.name == STRING
    input.Body.properties.apiVersionSet.description == STRING
    input.Body.properties.apiVersionSet.versioningScheme == enum_ApiVersionSetContractDetailsVersioningScheme[_]
    input.Body.properties.apiVersionSet.versionQueryName == STRING
    input.Body.properties.apiVersionSet.versionHeaderName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.authenticationSettings.oAuth2.authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2.scope == STRING
    input.Body.properties.authenticationSettings.openid.openidProviderId == STRING
    input.Body.properties.authenticationSettings.openid.bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].scope == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].openidProviderId == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.subscriptionKeyParameterNames.header == STRING
    input.Body.properties.subscriptionKeyParameterNames.query == STRING
    input.Body.properties.type == enum_ApiEntityBaseContractType[_]
    input.Body.properties.apiRevision == STRING
    input.Body.properties.apiVersion == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.properties.apiRevisionDescription == STRING
    input.Body.properties.apiVersionDescription == STRING
    input.Body.properties.apiVersionSetId == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.termsOfServiceUrl == STRING
    input.Body.properties.contact.name == STRING
    input.Body.properties.contact.url == STRING
    input.Body.properties.contact.email == STRING
    input.Body.properties.license.name == STRING
    input.Body.properties.license.url == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Api_Delete

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

Api_Get

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

Api_GetEntityTag

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

Api_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.tags == STRING
    input.Qs.expandApiVersionSet == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Api_ListByTags

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.includeNotTaggedApis == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Api_Update

enum_ApiContractUpdatePropertiesProtocols := [ "http", "https", "ws", "wss" ]
enum_ApiEntityBaseContractType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_BearerTokenSendingMethodsContract := [ "authorizationHeader", "query" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.serviceUrl == STRING
    input.Body.properties.path == STRING
    input.Body.properties.protocols[_] == enum_ApiContractUpdatePropertiesProtocols[_]
    input.Body.properties.description == STRING
    input.Body.properties.authenticationSettings.oAuth2.authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2.scope == STRING
    input.Body.properties.authenticationSettings.openid.openidProviderId == STRING
    input.Body.properties.authenticationSettings.openid.bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].scope == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].openidProviderId == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.subscriptionKeyParameterNames.header == STRING
    input.Body.properties.subscriptionKeyParameterNames.query == STRING
    input.Body.properties.type == enum_ApiEntityBaseContractType[_]
    input.Body.properties.apiRevision == STRING
    input.Body.properties.apiVersion == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.properties.apiRevisionDescription == STRING
    input.Body.properties.apiVersionDescription == STRING
    input.Body.properties.apiVersionSetId == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.termsOfServiceUrl == STRING
    input.Body.properties.contact.name == STRING
    input.Body.properties.contact.url == STRING
    input.Body.properties.contact.email == STRING
    input.Body.properties.license.name == STRING
    input.Body.properties.license.url == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Apis_Export

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

AuthorizationAccessPolicy_CreateOrUpdate

valid {
    input.Body.properties.appIds[_] == STRING
    input.Body.properties.tenantId == STRING
    input.Body.properties.objectId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.authorizationId == STRING
    input.ReqMap.authorizationAccessPolicyId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationAccessPolicy_Delete

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

AuthorizationAccessPolicy_Get

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

AuthorizationAccessPolicy_ListByAuthorization

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.authorizationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationLoginLinks_Post

valid {
    input.Body.postLoginRedirectUrl == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.authorizationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationProvider_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.identityProvider == STRING
    input.Body.properties.oauth2.redirectUrl == STRING
    input.Body.properties.oauth2.grantTypes.authorizationCode.STRING == STRING
    input.Body.properties.oauth2.grantTypes.clientCredentials.STRING == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationProvider_Delete

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

AuthorizationProvider_Get

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

AuthorizationProvider_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationServer_CreateOrUpdate

enum_AuthorizationServerContractBasePropertiesAuthorizationMethods := [ "HEAD", "OPTIONS", "TRACE", "GET", "POST", "PUT", "PATCH", "DELETE" ]
enum_AuthorizationServerContractBasePropertiesBearerTokenSendingMethods := [ "authorizationHeader", "query" ]
enum_AuthorizationServerContractBasePropertiesClientAuthenticationMethod := [ "Basic", "Body" ]
enum_AuthorizationServerContractPropertiesGrantTypes := [ "authorizationCode", "implicit", "resourceOwnerPassword", "clientCredentials" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.useInTestConsole == BOOLEAN
    input.Body.properties.useInApiDocumentation == BOOLEAN
    input.Body.properties.clientRegistrationEndpoint == STRING
    input.Body.properties.authorizationEndpoint == STRING
    input.Body.properties.grantTypes[_] == enum_AuthorizationServerContractPropertiesGrantTypes[_]
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.description == STRING
    input.Body.properties.authorizationMethods[_] == enum_AuthorizationServerContractBasePropertiesAuthorizationMethods[_]
    input.Body.properties.clientAuthenticationMethod[_] == enum_AuthorizationServerContractBasePropertiesClientAuthenticationMethod[_]
    input.Body.properties.tokenBodyParameters[_].name == STRING
    input.Body.properties.tokenBodyParameters[_].value == STRING
    input.Body.properties.tokenEndpoint == STRING
    input.Body.properties.supportState == BOOLEAN
    input.Body.properties.defaultScope == STRING
    input.Body.properties.bearerTokenSendingMethods[_] == enum_AuthorizationServerContractBasePropertiesBearerTokenSendingMethods[_]
    input.Body.properties.resourceOwnerUsername == STRING
    input.Body.properties.resourceOwnerPassword == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authsid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationServer_Delete

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

AuthorizationServer_Get

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

AuthorizationServer_GetEntityTag

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

AuthorizationServer_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AuthorizationServer_ListSecrets

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

AuthorizationServer_Update

enum_AuthorizationServerContractBasePropertiesAuthorizationMethods := [ "HEAD", "OPTIONS", "TRACE", "GET", "POST", "PUT", "PATCH", "DELETE" ]
enum_AuthorizationServerContractBasePropertiesBearerTokenSendingMethods := [ "authorizationHeader", "query" ]
enum_AuthorizationServerContractBasePropertiesClientAuthenticationMethod := [ "Basic", "Body" ]
enum_AuthorizationServerUpdateContractPropertiesGrantTypes := [ "authorizationCode", "implicit", "resourceOwnerPassword", "clientCredentials" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.useInTestConsole == BOOLEAN
    input.Body.properties.useInApiDocumentation == BOOLEAN
    input.Body.properties.clientRegistrationEndpoint == STRING
    input.Body.properties.authorizationEndpoint == STRING
    input.Body.properties.grantTypes[_] == enum_AuthorizationServerUpdateContractPropertiesGrantTypes[_]
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.description == STRING
    input.Body.properties.authorizationMethods[_] == enum_AuthorizationServerContractBasePropertiesAuthorizationMethods[_]
    input.Body.properties.clientAuthenticationMethod[_] == enum_AuthorizationServerContractBasePropertiesClientAuthenticationMethod[_]
    input.Body.properties.tokenBodyParameters[_].name == STRING
    input.Body.properties.tokenBodyParameters[_].value == STRING
    input.Body.properties.tokenEndpoint == STRING
    input.Body.properties.supportState == BOOLEAN
    input.Body.properties.defaultScope == STRING
    input.Body.properties.bearerTokenSendingMethods[_] == enum_AuthorizationServerContractBasePropertiesBearerTokenSendingMethods[_]
    input.Body.properties.resourceOwnerUsername == STRING
    input.Body.properties.resourceOwnerPassword == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authsid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Authorization_ConfirmConsentCode

valid {
    input.Body.consentCode == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.authorizationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Authorization_CreateOrUpdate

enum_AuthorizationContractPropertiesAuthorizationType := [ "OAuth2" ]
enum_AuthorizationContractPropertiesOauth2grantType := [ "AuthorizationCode", "ClientCredentials" ]

valid {
    input.Body.properties.authorizationType == enum_AuthorizationContractPropertiesAuthorizationType[_]
    input.Body.properties.oauth2grantType == enum_AuthorizationContractPropertiesOauth2grantType[_]
    input.Body.properties.parameters.STRING == STRING
    input.Body.properties.error.code == STRING
    input.Body.properties.error.message == STRING
    input.Body.properties.status == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.authorizationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Authorization_Delete

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

Authorization_Get

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

Authorization_ListByAuthorizationProvider

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.authorizationProviderId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Backend_CreateOrUpdate

enum_BackendBaseParametersType := [ "Single", "Pool" ]
enum_BackendContractPropertiesProtocol := [ "http", "soap" ]

valid {
    input.Body.properties.url == STRING
    input.Body.properties.protocol == enum_BackendContractPropertiesProtocol[_]
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.resourceId == STRING
    input.Body.properties.properties.serviceFabricCluster.clientCertificateId == STRING
    input.Body.properties.properties.serviceFabricCluster.clientCertificatethumbprint == STRING
    input.Body.properties.properties.serviceFabricCluster.maxPartitionResolutionRetries == INTEGER
    input.Body.properties.properties.serviceFabricCluster.managementEndpoints[_] == STRING
    input.Body.properties.properties.serviceFabricCluster.serverCertificateThumbprints[_] == STRING
    input.Body.properties.properties.serviceFabricCluster.serverX509Names[_].name == STRING
    input.Body.properties.properties.serviceFabricCluster.serverX509Names[_].issuerCertificateThumbprint == STRING
    input.Body.properties.credentials.certificateIds[_] == STRING
    input.Body.properties.credentials.certificate[_] == STRING
    input.Body.properties.credentials.query.STRING[_] == STRING
    input.Body.properties.credentials.header.STRING[_] == STRING
    input.Body.properties.credentials.authorization.scheme == STRING
    input.Body.properties.credentials.authorization.parameter == STRING
    input.Body.properties.proxy.url == STRING
    input.Body.properties.proxy.username == STRING
    input.Body.properties.proxy.password == STRING
    input.Body.properties.tls.validateCertificateChain == BOOLEAN
    input.Body.properties.tls.validateCertificateName == BOOLEAN
    input.Body.properties.circuitBreaker.rules[_].name == STRING
    input.Body.properties.circuitBreaker.rules[_].failureCondition.count == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.percentage == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.interval == STRING
    input.Body.properties.circuitBreaker.rules[_].failureCondition.statusCodeRanges[_].min == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.statusCodeRanges[_].max == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.errorReasons[_] == STRING
    input.Body.properties.circuitBreaker.rules[_].tripDuration == STRING
    input.Body.properties.pool.services[_].id == STRING
    input.Body.properties.type == enum_BackendBaseParametersType[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.backendId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Backend_Delete

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

Backend_Get

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

Backend_GetEntityTag

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

Backend_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Backend_Reconnect

valid {
    input.Body.properties.after == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.backendId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Backend_Update

enum_BackendBaseParametersType := [ "Single", "Pool" ]
enum_BackendUpdateParameterPropertiesProtocol := [ "http", "soap" ]

valid {
    input.Body.properties.url == STRING
    input.Body.properties.protocol == enum_BackendUpdateParameterPropertiesProtocol[_]
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.resourceId == STRING
    input.Body.properties.properties.serviceFabricCluster.clientCertificateId == STRING
    input.Body.properties.properties.serviceFabricCluster.clientCertificatethumbprint == STRING
    input.Body.properties.properties.serviceFabricCluster.maxPartitionResolutionRetries == INTEGER
    input.Body.properties.properties.serviceFabricCluster.managementEndpoints[_] == STRING
    input.Body.properties.properties.serviceFabricCluster.serverCertificateThumbprints[_] == STRING
    input.Body.properties.properties.serviceFabricCluster.serverX509Names[_].name == STRING
    input.Body.properties.properties.serviceFabricCluster.serverX509Names[_].issuerCertificateThumbprint == STRING
    input.Body.properties.credentials.certificateIds[_] == STRING
    input.Body.properties.credentials.certificate[_] == STRING
    input.Body.properties.credentials.query.STRING[_] == STRING
    input.Body.properties.credentials.header.STRING[_] == STRING
    input.Body.properties.credentials.authorization.scheme == STRING
    input.Body.properties.credentials.authorization.parameter == STRING
    input.Body.properties.proxy.url == STRING
    input.Body.properties.proxy.username == STRING
    input.Body.properties.proxy.password == STRING
    input.Body.properties.tls.validateCertificateChain == BOOLEAN
    input.Body.properties.tls.validateCertificateName == BOOLEAN
    input.Body.properties.circuitBreaker.rules[_].name == STRING
    input.Body.properties.circuitBreaker.rules[_].failureCondition.count == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.percentage == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.interval == STRING
    input.Body.properties.circuitBreaker.rules[_].failureCondition.statusCodeRanges[_].min == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.statusCodeRanges[_].max == INTEGER
    input.Body.properties.circuitBreaker.rules[_].failureCondition.errorReasons[_] == STRING
    input.Body.properties.circuitBreaker.rules[_].tripDuration == STRING
    input.Body.properties.pool.services[_].id == STRING
    input.Body.properties.type == enum_BackendBaseParametersType[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.backendId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Cache_CreateOrUpdate

valid {
    input.Body.properties.description == STRING
    input.Body.properties.connectionString == STRING
    input.Body.properties.useFromLocation == STRING
    input.Body.properties.resourceId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.cacheId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Cache_Delete

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

Cache_Get

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

Cache_GetEntityTag

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

Cache_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Cache_Update

valid {
    input.Body.properties.description == STRING
    input.Body.properties.connectionString == STRING
    input.Body.properties.useFromLocation == STRING
    input.Body.properties.resourceId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.cacheId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Certificate_CreateOrUpdate

valid {
    input.Body.properties.data == STRING
    input.Body.properties.password == STRING
    input.Body.properties.keyVault.secretIdentifier == STRING
    input.Body.properties.keyVault.identityClientId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.certificateId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Certificate_Delete

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

Certificate_Get

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

Certificate_GetEntityTag

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

Certificate_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.isKeyVaultRefreshFailed == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Certificate_RefreshSecret

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

ContentItem_CreateOrUpdate

valid {
    input.Body.properties == {}
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.contentTypeId == STRING
    input.ReqMap.contentItemId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ContentItem_Delete

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

ContentItem_Get

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

ContentItem_GetEntityTag

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

ContentItem_ListByService

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

ContentType_CreateOrUpdate

valid {
    input.Body.properties.id == STRING
    input.Body.properties.name == STRING
    input.Body.properties.description == STRING
    input.Body.properties.schema.STRING == STRING
    input.Body.properties.version == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.contentTypeId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ContentType_Delete

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

ContentType_Get

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

ContentType_GetEntityTag

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

ContentType_ListByService

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

DelegationSettings_CreateOrUpdate

valid {
    input.Body.properties.url == STRING
    input.Body.properties.validationKey == STRING
    input.Body.properties.subscriptions.enabled == BOOLEAN
    input.Body.properties.userRegistration.enabled == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DelegationSettings_Get

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

DelegationSettings_GetEntityTag

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

DelegationSettings_ListSecrets

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

DelegationSettings_Update

valid {
    input.Body.properties.url == STRING
    input.Body.properties.validationKey == STRING
    input.Body.properties.subscriptions.enabled == BOOLEAN
    input.Body.properties.userRegistration.enabled == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

DeletedServices_GetByName

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

DeletedServices_ListBySubscription

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

DeletedServices_Purge

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

DiagnosticLogger_CheckEntityExists

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

DiagnosticLogger_CreateOrUpdate

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

DiagnosticLogger_Delete

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

DiagnosticLogger_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.diagnosticId == STRING
    input.Qs.api-version == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Diagnostic_CreateOrUpdate

enum_DataMaskingEntityMode := [ "Mask", "Hide" ]
enum_DiagnosticContractPropertiesAlwaysLog := [ "allErrors" ]
enum_DiagnosticContractPropertiesHttpCorrelationProtocol := [ "None", "Legacy", "W3C" ]
enum_DiagnosticContractPropertiesOperationNameFormat := [ "Name", "Url" ]
enum_DiagnosticContractPropertiesVerbosity := [ "verbose", "information", "error" ]
enum_SamplingSettingsSamplingType := [ "fixed" ]

valid {
    input.Body.properties.alwaysLog == enum_DiagnosticContractPropertiesAlwaysLog[_]
    input.Body.properties.loggerId == STRING
    input.Body.properties.sampling.samplingType == enum_SamplingSettingsSamplingType[_]
    input.Body.properties.sampling.percentage == NUMBER
    input.Body.properties.frontend.request.headers[_] == STRING
    input.Body.properties.frontend.request.body.bytes == INTEGER
    input.Body.properties.frontend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.headers[_] == STRING
    input.Body.properties.frontend.response.body.bytes == INTEGER
    input.Body.properties.frontend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.headers[_] == STRING
    input.Body.properties.backend.request.body.bytes == INTEGER
    input.Body.properties.backend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.headers[_] == STRING
    input.Body.properties.backend.response.body.bytes == INTEGER
    input.Body.properties.backend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.logClientIp == BOOLEAN
    input.Body.properties.httpCorrelationProtocol == enum_DiagnosticContractPropertiesHttpCorrelationProtocol[_]
    input.Body.properties.verbosity == enum_DiagnosticContractPropertiesVerbosity[_]
    input.Body.properties.operationNameFormat == enum_DiagnosticContractPropertiesOperationNameFormat[_]
    input.Body.properties.metrics == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.diagnosticId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Diagnostic_Delete

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

Diagnostic_Get

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

Diagnostic_GetEntityTag

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

Diagnostic_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Diagnostic_Update

enum_DataMaskingEntityMode := [ "Mask", "Hide" ]
enum_DiagnosticContractPropertiesAlwaysLog := [ "allErrors" ]
enum_DiagnosticContractPropertiesHttpCorrelationProtocol := [ "None", "Legacy", "W3C" ]
enum_DiagnosticContractPropertiesOperationNameFormat := [ "Name", "Url" ]
enum_DiagnosticContractPropertiesVerbosity := [ "verbose", "information", "error" ]
enum_SamplingSettingsSamplingType := [ "fixed" ]

valid {
    input.Body.properties.alwaysLog == enum_DiagnosticContractPropertiesAlwaysLog[_]
    input.Body.properties.loggerId == STRING
    input.Body.properties.sampling.samplingType == enum_SamplingSettingsSamplingType[_]
    input.Body.properties.sampling.percentage == NUMBER
    input.Body.properties.frontend.request.headers[_] == STRING
    input.Body.properties.frontend.request.body.bytes == INTEGER
    input.Body.properties.frontend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.headers[_] == STRING
    input.Body.properties.frontend.response.body.bytes == INTEGER
    input.Body.properties.frontend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.frontend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.frontend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.headers[_] == STRING
    input.Body.properties.backend.request.body.bytes == INTEGER
    input.Body.properties.backend.request.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.request.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.request.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.request.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.headers[_] == STRING
    input.Body.properties.backend.response.body.bytes == INTEGER
    input.Body.properties.backend.response.dataMasking.queryParams[_].value == STRING
    input.Body.properties.backend.response.dataMasking.queryParams[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.backend.response.dataMasking.headers[_].value == STRING
    input.Body.properties.backend.response.dataMasking.headers[_].mode == enum_DataMaskingEntityMode[_]
    input.Body.properties.logClientIp == BOOLEAN
    input.Body.properties.httpCorrelationProtocol == enum_DiagnosticContractPropertiesHttpCorrelationProtocol[_]
    input.Body.properties.verbosity == enum_DiagnosticContractPropertiesVerbosity[_]
    input.Body.properties.operationNameFormat == enum_DiagnosticContractPropertiesOperationNameFormat[_]
    input.Body.properties.metrics == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.diagnosticId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Documentation_CreateOrUpdate

valid {
    input.Body.properties.title == STRING
    input.Body.properties.content == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.documentationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Documentation_Delete

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

Documentation_Get

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

Documentation_GetEntityTag

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

Documentation_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Documentation_Update

valid {
    input.Body.properties.title == STRING
    input.Body.properties.content == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.documentationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_CreateOrUpdate

enum_TemplateNameParameter := [ "applicationApprovedNotificationMessage", "accountClosedDeveloper", "quotaLimitApproachingDeveloperNotificationMessage", "newDeveloperNotificationMessage", "emailChangeIdentityDefault", "inviteUserNotificationMessage", "newCommentNotificationMessage", "confirmSignUpIdentityDefault", "newIssueNotificationMessage", "purchaseDeveloperNotificationMessage", "passwordResetIdentityDefault", "passwordResetByAdminNotificationMessage", "rejectDeveloperNotificationMessage", "requestDeveloperNotificationMessage" ]

valid {
    input.Body.properties.subject == STRING
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.body == STRING
    input.Body.properties.parameters[_].name == STRING
    input.Body.properties.parameters[_].title == STRING
    input.Body.properties.parameters[_].description == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.templateName == enum_TemplateNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_Delete

enum_TemplateNameParameter := [ "applicationApprovedNotificationMessage", "accountClosedDeveloper", "quotaLimitApproachingDeveloperNotificationMessage", "newDeveloperNotificationMessage", "emailChangeIdentityDefault", "inviteUserNotificationMessage", "newCommentNotificationMessage", "confirmSignUpIdentityDefault", "newIssueNotificationMessage", "purchaseDeveloperNotificationMessage", "passwordResetIdentityDefault", "passwordResetByAdminNotificationMessage", "rejectDeveloperNotificationMessage", "requestDeveloperNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.templateName == enum_TemplateNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_Get

enum_TemplateNameParameter := [ "applicationApprovedNotificationMessage", "accountClosedDeveloper", "quotaLimitApproachingDeveloperNotificationMessage", "newDeveloperNotificationMessage", "emailChangeIdentityDefault", "inviteUserNotificationMessage", "newCommentNotificationMessage", "confirmSignUpIdentityDefault", "newIssueNotificationMessage", "purchaseDeveloperNotificationMessage", "passwordResetIdentityDefault", "passwordResetByAdminNotificationMessage", "rejectDeveloperNotificationMessage", "requestDeveloperNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.templateName == enum_TemplateNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_GetEntityTag

enum_TemplateNameParameter := [ "applicationApprovedNotificationMessage", "accountClosedDeveloper", "quotaLimitApproachingDeveloperNotificationMessage", "newDeveloperNotificationMessage", "emailChangeIdentityDefault", "inviteUserNotificationMessage", "newCommentNotificationMessage", "confirmSignUpIdentityDefault", "newIssueNotificationMessage", "purchaseDeveloperNotificationMessage", "passwordResetIdentityDefault", "passwordResetByAdminNotificationMessage", "rejectDeveloperNotificationMessage", "requestDeveloperNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.templateName == enum_TemplateNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

EmailTemplate_Update

enum_TemplateNameParameter := [ "applicationApprovedNotificationMessage", "accountClosedDeveloper", "quotaLimitApproachingDeveloperNotificationMessage", "newDeveloperNotificationMessage", "emailChangeIdentityDefault", "inviteUserNotificationMessage", "newCommentNotificationMessage", "confirmSignUpIdentityDefault", "newIssueNotificationMessage", "purchaseDeveloperNotificationMessage", "passwordResetIdentityDefault", "passwordResetByAdminNotificationMessage", "rejectDeveloperNotificationMessage", "requestDeveloperNotificationMessage" ]

valid {
    input.Body.properties.subject == STRING
    input.Body.properties.title == STRING
    input.Body.properties.description == STRING
    input.Body.properties.body == STRING
    input.Body.properties.parameters[_].name == STRING
    input.Body.properties.parameters[_].title == STRING
    input.Body.properties.parameters[_].description == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.templateName == enum_TemplateNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayApi_CreateOrUpdate

enum_AssociationContractPropertiesProvisioningState := [ "created" ]

valid {
    input.Body.properties.provisioningState == enum_AssociationContractPropertiesProvisioningState[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayApi_Delete

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

GatewayApi_GetEntityTag

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

GatewayApi_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayCertificateAuthority_CreateOrUpdate

valid {
    input.Body.properties.isTrusted == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.certificateId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayCertificateAuthority_Delete

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

GatewayCertificateAuthority_Get

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

GatewayCertificateAuthority_GetEntityTag

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

GatewayCertificateAuthority_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayHostnameConfiguration_CreateOrUpdate

valid {
    input.Body.properties.hostname == STRING
    input.Body.properties.certificateId == STRING
    input.Body.properties.negotiateClientCertificate == BOOLEAN
    input.Body.properties.tls10Enabled == BOOLEAN
    input.Body.properties.tls11Enabled == BOOLEAN
    input.Body.properties.http2Enabled == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.hcId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GatewayHostnameConfiguration_Delete

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

GatewayHostnameConfiguration_Get

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

GatewayHostnameConfiguration_GetEntityTag

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

GatewayHostnameConfiguration_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_CreateOrUpdate

valid {
    input.Body.properties.locationData.name == STRING
    input.Body.properties.locationData.city == STRING
    input.Body.properties.locationData.district == STRING
    input.Body.properties.locationData.countryOrRegion == STRING
    input.Body.properties.description == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_Delete

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

Gateway_GenerateToken

enum_GatewayTokenRequestContractKeyType := [ "primary", "secondary" ]

valid {
    input.Body.keyType == enum_GatewayTokenRequestContractKeyType[_]
    input.Body.expiry == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_Get

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

Gateway_GetEntityTag

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

Gateway_InvalidateDebugCredentials

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

Gateway_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_ListDebugCredentials

enum_GatewayListDebugCredentialsContractPurposes := [ "tracing" ]

valid {
    input.Body.credentialsExpireAfter == STRING
    input.Body.purposes[_] == enum_GatewayListDebugCredentialsContractPurposes[_]
    input.Body.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_ListKeys

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

Gateway_ListTrace

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

Gateway_RegenerateKey

enum_GatewayKeyRegenerationRequestContractKeyType := [ "primary", "secondary" ]

valid {
    input.Body.keyType == enum_GatewayKeyRegenerationRequestContractKeyType[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Gateway_Update

valid {
    input.Body.properties.locationData.name == STRING
    input.Body.properties.locationData.city == STRING
    input.Body.properties.locationData.district == STRING
    input.Body.properties.locationData.countryOrRegion == STRING
    input.Body.properties.description == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.gatewayId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GlobalSchema_CreateOrUpdate

enum_GlobalSchemaContractPropertiesSchemaType := [ "xml", "json" ]

valid {
    input.Body.properties.schemaType == enum_GlobalSchemaContractPropertiesSchemaType[_]
    input.Body.properties.description == STRING
    input.Body.properties.value == {}
    input.Body.properties.document.STRING == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GlobalSchema_Delete

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

GlobalSchema_Get

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

GlobalSchema_GetEntityTag

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

GlobalSchema_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolverPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolverPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolverPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolverPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolverPolicy_ListByResolver

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

GraphQLApiResolver_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.path == STRING
    input.Body.properties.description == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolver_Delete

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

GraphQLApiResolver_Get

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

GraphQLApiResolver_GetEntityTag

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

GraphQLApiResolver_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GraphQLApiResolver_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.path == STRING
    input.Body.properties.description == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.resolverId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

GroupUser_CheckEntityExists

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

GroupUser_Create

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

GroupUser_Delete

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

GroupUser_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Group_CreateOrUpdate

enum_GroupCreateParametersPropertiesType := [ "custom", "system", "external" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.type == enum_GroupCreateParametersPropertiesType[_]
    input.Body.properties.externalId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Group_Delete

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

Group_Get

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

Group_GetEntityTag

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

Group_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Group_Update

enum_GroupUpdateParametersPropertiesType := [ "custom", "system", "external" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.type == enum_GroupUpdateParametersPropertiesType[_]
    input.Body.properties.externalId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_CreateOrUpdate

enum_IdentityProviderBaseParametersType := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]
enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.type == enum_IdentityProviderBaseParametersType[_]
    input.Body.properties.signinTenant == STRING
    input.Body.properties.allowedTenants[_] == STRING
    input.Body.properties.authority == STRING
    input.Body.properties.signupPolicyName == STRING
    input.Body.properties.signinPolicyName == STRING
    input.Body.properties.profileEditingPolicyName == STRING
    input.Body.properties.passwordResetPolicyName == STRING
    input.Body.properties.clientLibrary == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_Delete

enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_Get

enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_GetEntityTag

enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_ListByService

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

IdentityProvider_ListSecrets

enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

IdentityProvider_Update

enum_IdentityProviderBaseParametersType := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]
enum_IdentityProviderNameParameter := [ "facebook", "google", "microsoft", "twitter", "aad", "aadB2C" ]

valid {
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.type == enum_IdentityProviderBaseParametersType[_]
    input.Body.properties.signinTenant == STRING
    input.Body.properties.allowedTenants[_] == STRING
    input.Body.properties.authority == STRING
    input.Body.properties.signupPolicyName == STRING
    input.Body.properties.signinPolicyName == STRING
    input.Body.properties.profileEditingPolicyName == STRING
    input.Body.properties.passwordResetPolicyName == STRING
    input.Body.properties.clientLibrary == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.identityProviderName == enum_IdentityProviderNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Issue_Get

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

Issue_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Logger_CreateOrUpdate

enum_LoggerContractPropertiesLoggerType := [ "azureEventHub", "applicationInsights", "azureMonitor" ]

valid {
    input.Body.properties.loggerType == enum_LoggerContractPropertiesLoggerType[_]
    input.Body.properties.description == STRING
    input.Body.properties.credentials.STRING == STRING
    input.Body.properties.isBuffered == BOOLEAN
    input.Body.properties.resourceId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.loggerId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Logger_Delete

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

Logger_Get

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

Logger_GetEntityTag

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

Logger_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Logger_Update

enum_LoggerUpdateParametersLoggerType := [ "azureEventHub", "applicationInsights", "azureMonitor" ]

valid {
    input.Body.properties.loggerType == enum_LoggerUpdateParametersLoggerType[_]
    input.Body.properties.description == STRING
    input.Body.properties.credentials.STRING == STRING
    input.Body.properties.isBuffered == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.loggerId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NamedValue_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.keyVault.secretIdentifier == STRING
    input.Body.properties.keyVault.identityClientId == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.namedValueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NamedValue_Delete

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

NamedValue_Get

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

NamedValue_GetEntityTag

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

NamedValue_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.isKeyVaultRefreshFailed == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NamedValue_ListValue

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

NamedValue_RefreshSecret

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

NamedValue_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.keyVault.secretIdentifier == STRING
    input.Body.properties.keyVault.identityClientId == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.namedValueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NetworkStatus_ListByLocation

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

NetworkStatus_ListByService

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

NotificationRecipientEmail_CheckEntityExists

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientEmail_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientEmail_Delete

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientEmail_ListByNotification

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientUser_CheckEntityExists

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientUser_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientUser_Delete

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

NotificationRecipientUser_ListByNotification

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Notification_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Notification_Get

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Notification_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

OpenIdConnectProvider_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.metadataEndpoint == STRING
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.useInTestConsole == BOOLEAN
    input.Body.properties.useInApiDocumentation == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.opid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

OpenIdConnectProvider_Delete

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

OpenIdConnectProvider_Get

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

OpenIdConnectProvider_GetEntityTag

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

OpenIdConnectProvider_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

OpenIdConnectProvider_ListSecrets

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

OpenIdConnectProvider_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.metadataEndpoint == STRING
    input.Body.properties.clientId == STRING
    input.Body.properties.clientSecret == STRING
    input.Body.properties.useInTestConsole == BOOLEAN
    input.Body.properties.useInApiDocumentation == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.opid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Operation_ListByTags

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.includeNotTaggedOperations == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

OutboundNetworkDependenciesEndpoints_ListByService

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

PerformConnectivityCheckAsync

enum_ConnectivityCheckRequestPreferredIPVersion := [ "IPv4" ]
enum_ConnectivityCheckRequestProtocol := [ "TCP", "HTTP", "HTTPS" ]
enum_ConnectivityCheckRequestProtocolConfigurationHTTPConfigurationMethod := [ "GET", "POST" ]

valid {
    input.Body.source.region == STRING
    input.Body.source.instance == INTEGER
    input.Body.destination.address == STRING
    input.Body.destination.port == INTEGER
    input.Body.preferredIPVersion == enum_ConnectivityCheckRequestPreferredIPVersion[_]
    input.Body.protocol == enum_ConnectivityCheckRequestProtocol[_]
    input.Body.protocolConfiguration.HTTPConfiguration.method == enum_ConnectivityCheckRequestProtocolConfigurationHTTPConfigurationMethod[_]
    input.Body.protocolConfiguration.HTTPConfiguration.validStatusCodes[_] == INTEGER
    input.Body.protocolConfiguration.HTTPConfiguration.headers[_].name == STRING
    input.Body.protocolConfiguration.HTTPConfiguration.headers[_].value == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyDescription_ListByService

enum_ScopeParameter := [ "Tenant", "Product", "Api", "Operation", "All" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.scope == enum_ScopeParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyFragment_CreateOrUpdate

enum_PolicyFragmentContractPropertiesFormat := [ "xml", "rawxml" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.description == STRING
    input.Body.properties.format == enum_PolicyFragmentContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyFragment_Delete

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

PolicyFragment_Get

enum_PolicyFragmentContentFormat := [ "xml", "rawxml" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.format == enum_PolicyFragmentContentFormat[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyFragment_GetEntityTag

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

PolicyFragment_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$filter == STRING
    input.Qs.$orderby == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyFragment_ListReferences

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyRestrictionValidations_ByService

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

PolicyRestriction_CreateOrUpdate

enum_PolicyRestrictionContractPropertiesRequireBase := [ "true", "false" ]

valid {
    input.Body.properties.scope == STRING
    input.Body.properties.requireBase == enum_PolicyRestrictionContractPropertiesRequireBase[_]
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyRestrictionId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicyRestriction_Delete

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

PolicyRestriction_Get

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

PolicyRestriction_GetEntityTag

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

PolicyRestriction_ListByService

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

PolicyRestriction_Update

enum_PolicyRestrictionContractPropertiesRequireBase := [ "true", "false" ]

valid {
    input.Body.properties.scope == STRING
    input.Body.properties.requireBase == enum_PolicyRestrictionContractPropertiesRequireBase[_]
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyRestrictionId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PolicySnippet_ListByService

enum_ScopeParameter := [ "Tenant", "Product", "Api", "Operation", "All" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.scope == enum_ScopeParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Policy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Policy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Policy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Policy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Policy_ListByService

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

PortalConfig_CreateOrUpdate

enum_PortalConfigCspPropertiesMode := [ "enabled", "disabled", "reportOnly" ]

valid {
    input.Body.properties.enableBasicAuth == BOOLEAN
    input.Body.properties.signin.require == BOOLEAN
    input.Body.properties.signup.termsOfService.text == STRING
    input.Body.properties.signup.termsOfService.requireConsent == BOOLEAN
    input.Body.properties.delegation.delegateRegistration == BOOLEAN
    input.Body.properties.delegation.delegateSubscription == BOOLEAN
    input.Body.properties.delegation.delegationUrl == STRING
    input.Body.properties.delegation.validationKey == STRING
    input.Body.properties.cors.allowedOrigins[_] == STRING
    input.Body.properties.csp.mode == enum_PortalConfigCspPropertiesMode[_]
    input.Body.properties.csp.reportUri[_] == STRING
    input.Body.properties.csp.allowedSources[_] == STRING
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.portalConfigId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PortalConfig_Get

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

PortalConfig_GetEntityTag

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

PortalConfig_ListByService

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

PortalConfig_Update

enum_PortalConfigCspPropertiesMode := [ "enabled", "disabled", "reportOnly" ]

valid {
    input.Body.properties.enableBasicAuth == BOOLEAN
    input.Body.properties.signin.require == BOOLEAN
    input.Body.properties.signup.termsOfService.text == STRING
    input.Body.properties.signup.termsOfService.requireConsent == BOOLEAN
    input.Body.properties.delegation.delegateRegistration == BOOLEAN
    input.Body.properties.delegation.delegateSubscription == BOOLEAN
    input.Body.properties.delegation.delegationUrl == STRING
    input.Body.properties.delegation.validationKey == STRING
    input.Body.properties.cors.allowedOrigins[_] == STRING
    input.Body.properties.csp.mode == enum_PortalConfigCspPropertiesMode[_]
    input.Body.properties.csp.reportUri[_] == STRING
    input.Body.properties.csp.allowedSources[_] == STRING
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.portalConfigId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PortalRevision_CreateOrUpdate

valid {
    input.Body.properties.description == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.portalRevisionId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PortalRevision_Get

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

PortalRevision_GetEntityTag

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

PortalRevision_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PortalRevision_Update

valid {
    input.Body.properties.description == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.portalRevisionId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PortalSettings_ListByService

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

PrivateEndpointConnection_CreateOrUpdate

enum_PrivateEndpointServiceConnectionStatus := [ "Pending", "Approved", "Rejected" ]

valid {
    input.Body.id == STRING
    input.Body.properties.privateLinkServiceConnectionState.status == enum_PrivateEndpointServiceConnectionStatus[_]
    input.Body.properties.privateLinkServiceConnectionState.description == STRING
    input.Body.properties.privateLinkServiceConnectionState.actionsRequired == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.privateEndpointConnectionName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

PrivateEndpointConnection_Delete

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

PrivateEndpointConnection_GetByName

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

PrivateEndpointConnection_GetPrivateLinkResource

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

PrivateEndpointConnection_ListByService

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

PrivateEndpointConnection_ListPrivateLinkResources

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

ProductApiLink_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.apiLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductApiLink_Delete

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

ProductApiLink_Get

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

ProductApiLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductApi_CheckEntityExists

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

ProductApi_CreateOrUpdate

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

ProductApi_Delete

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

ProductApi_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductGroupLink_CreateOrUpdate

valid {
    input.Body.properties.groupId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.groupLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductGroupLink_Delete

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

ProductGroupLink_Get

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

ProductGroupLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductGroup_CheckEntityExists

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

ProductGroup_CreateOrUpdate

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

ProductGroup_Delete

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

ProductGroup_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductPolicy_ListByProduct

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

ProductSubscriptions_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductWiki_CreateOrUpdate

valid {
    input.Body.properties.documents[_].documentationId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductWiki_Delete

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

ProductWiki_Get

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

ProductWiki_GetEntityTag

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

ProductWiki_Update

valid {
    input.Body.properties.documents[_].documentationId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ProductWikis_list

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Product_CreateOrUpdate

enum_ProductEntityBaseParametersState := [ "notPublished", "published" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.terms == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.approvalRequired == BOOLEAN
    input.Body.properties.subscriptionsLimit == INTEGER
    input.Body.properties.state == enum_ProductEntityBaseParametersState[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Product_Delete

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

Product_Get

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

Product_GetEntityTag

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

Product_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.expandGroups == BOOLEAN
    input.Qs.tags == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Product_ListByTags

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.includeNotTaggedProducts == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Product_Update

enum_ProductEntityBaseParametersState := [ "notPublished", "published" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.terms == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.approvalRequired == BOOLEAN
    input.Body.properties.subscriptionsLimit == INTEGER
    input.Body.properties.state == enum_ProductEntityBaseParametersState[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Property_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.propId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Property_Delete

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

Property_Get

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

Property_GetEntityTag

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

Property_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Property_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.propId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

QuotaByCounterKeys_ListByService

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

QuotaByCounterKeys_Update

valid {
    input.Body.properties.callsCount == INTEGER
    input.Body.properties.kbTransferred == NUMBER
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.quotaCounterKey == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

QuotaByPeriodKeys_Get

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

QuotaByPeriodKeys_Update

valid {
    input.Body.properties.callsCount == INTEGER
    input.Body.properties.kbTransferred == NUMBER
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.quotaCounterKey == STRING
    input.ReqMap.quotaPeriodKey == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Region_ListByService

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

Reports_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByGeo

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByOperation

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByRequest

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByService

enum_AggregationParameter := [ "byApi", "byGeo", "byOperation", "byProduct", "bySubscription", "byTime", "byUser" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.aggregation == enum_AggregationParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.interval == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListBySubscription

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByTime

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.interval == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Reports_ListByUser

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.$orderby == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SignInSettings_CreateOrUpdate

valid {
    input.Body.properties.enabled == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SignInSettings_Get

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

SignInSettings_GetEntityTag

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

SignInSettings_Update

valid {
    input.Body.properties.enabled == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SignUpSettings_CreateOrUpdate

valid {
    input.Body.properties.enabled == BOOLEAN
    input.Body.properties.termsOfService.text == STRING
    input.Body.properties.termsOfService.enabled == BOOLEAN
    input.Body.properties.termsOfService.consentRequired == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SignUpSettings_Get

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

SignUpSettings_GetEntityTag

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

SignUpSettings_Update

valid {
    input.Body.properties.enabled == BOOLEAN
    input.Body.properties.termsOfService.text == STRING
    input.Body.properties.termsOfService.enabled == BOOLEAN
    input.Body.properties.termsOfService.consentRequired == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Subscription_CreateOrUpdate

enum_AppTypeParameter := [ "portal", "developerPortal" ]
enum_SubscriptionCreateParameterPropertiesState := [ "suspended", "active", "expired", "submitted", "rejected", "cancelled" ]

valid {
    input.Body.properties.ownerId == STRING
    input.Body.properties.scope == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.Body.properties.state == enum_SubscriptionCreateParameterPropertiesState[_]
    input.Body.properties.allowTracing == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.sid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Subscription_Delete

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

Subscription_Get

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

Subscription_GetEntityTag

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

Subscription_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Subscription_ListSecrets

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

Subscription_RegeneratePrimaryKey

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

Subscription_RegenerateSecondaryKey

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

Subscription_Update

enum_AppTypeParameter := [ "portal", "developerPortal" ]
enum_SubscriptionUpdateParameterPropertiesState := [ "suspended", "active", "expired", "submitted", "rejected", "cancelled" ]

valid {
    input.Body.properties.ownerId == STRING
    input.Body.properties.scope == STRING
    input.Body.properties.expirationDate == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.Body.properties.state == enum_SubscriptionUpdateParameterPropertiesState[_]
    input.Body.properties.stateComment == STRING
    input.Body.properties.allowTracing == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.sid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagApiLink_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.apiLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagApiLink_Delete

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

TagApiLink_Get

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

TagApiLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagOperationLink_CreateOrUpdate

valid {
    input.Body.properties.operationId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.operationLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagOperationLink_Delete

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

TagOperationLink_Get

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

TagOperationLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagProductLink_CreateOrUpdate

valid {
    input.Body.properties.productId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.productLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagProductLink_Delete

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

TagProductLink_Get

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

TagProductLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagResource_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_AssignToApi

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

Tag_AssignToOperation

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

Tag_AssignToProduct

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

Tag_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_Delete

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

Tag_DetachFromApi

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

Tag_DetachFromOperation

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

Tag_DetachFromProduct

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

Tag_Get

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

Tag_GetByApi

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

Tag_GetByOperation

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

Tag_GetByProduct

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

Tag_GetEntityState

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

Tag_GetEntityStateByApi

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

Tag_GetEntityStateByOperation

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

Tag_GetEntityStateByProduct

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

Tag_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_ListByOperation

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.scope == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Tag_Update

valid {
    input.Body.properties.displayName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccessGit_Get

enum_AccessParameter := [ "access" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccessGit_ListSecrets

enum_AccessParameter := [ "access" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccessGit_RegeneratePrimaryKey

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccessGit_RegenerateSecondaryKey

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_Create

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.Body.properties.principalId == STRING
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.Body.properties.enabled == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_Get

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_GetEntityTag

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_ListByService

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

TenantAccess_ListSecrets

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_RegeneratePrimaryKey

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_RegenerateSecondaryKey

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantAccess_Update

enum_AccessParameter := [ "access", "gitAccess" ]

valid {
    input.Body.properties.enabled == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.accessName == enum_AccessParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantConfigurationSyncState_Get

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

TenantConfiguration_Deploy

enum_ConfigurationParameter := [ "configuration" ]

valid {
    input.Body.properties.branch == STRING
    input.Body.properties.force == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantConfiguration_GetSyncState

enum_ConfigurationParameter := [ "configuration" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantConfiguration_Save

enum_ConfigurationParameter := [ "configuration" ]

valid {
    input.Body.properties.branch == STRING
    input.Body.properties.force == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantConfiguration_Validate

enum_ConfigurationParameter := [ "configuration" ]

valid {
    input.Body.properties.branch == STRING
    input.Body.properties.force == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantPolicy_CreateOrUpdate

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

TenantPolicy_Delete

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

TenantPolicy_Get

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

TenantSettings_Get

enum_SettingsParameter := [ "public" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.settingsType == enum_SettingsParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TenantSettings_ListByService

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

UserConfirmationPassword_Send

enum_AppTypeParameter := [ "portal", "developerPortal" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

UserGroup_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

UserIdentities_List

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

UserSubscription_Get

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

UserSubscription_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

User_CreateOrUpdate

enum_UserCreateParameterPropertiesAppType := [ "portal", "developerPortal" ]
enum_UserCreateParameterPropertiesConfirmation := [ "signup", "invite" ]
enum_UserEntityBaseParametersState := [ "active", "blocked", "pending", "deleted" ]

valid {
    input.Body.properties.email == STRING
    input.Body.properties.firstName == STRING
    input.Body.properties.lastName == STRING
    input.Body.properties.password == STRING
    input.Body.properties.appType == enum_UserCreateParameterPropertiesAppType[_]
    input.Body.properties.confirmation == enum_UserCreateParameterPropertiesConfirmation[_]
    input.Body.properties.state == enum_UserEntityBaseParametersState[_]
    input.Body.properties.note == STRING
    input.Body.properties.identities[_].provider == STRING
    input.Body.properties.identities[_].id == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

User_Delete

enum_AppTypeParameter := [ "portal", "developerPortal" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.deleteSubscriptions == BOOLEAN
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

User_GenerateSsoUrl

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

User_Get

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

User_GetEntityTag

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

User_GetIdentity

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

User_GetSharedAccessToken

enum_UserTokenParameterPropertiesKeyType := [ "primary", "secondary" ]

valid {
    input.Body.properties.keyType == enum_UserTokenParameterPropertiesKeyType[_]
    input.Body.properties.expiry == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

User_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.expandGroups == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

User_Update

enum_UserEntityBaseParametersState := [ "active", "blocked", "pending", "deleted" ]

valid {
    input.Body.properties.email == STRING
    input.Body.properties.password == STRING
    input.Body.properties.firstName == STRING
    input.Body.properties.lastName == STRING
    input.Body.properties.state == enum_UserEntityBaseParametersState[_]
    input.Body.properties.note == STRING
    input.Body.properties.identities[_].provider == STRING
    input.Body.properties.identities[_].id == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiExport_Get

enum_ExportParameter := [ "true" ]
enum_FormatParameter := [ "swagger-link", "wadl-link", "wsdl-link", "openapi-link", "openapi+json-link" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_FormatParameter[_]
    input.Qs.export == enum_ExportParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperationPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperationPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperationPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperationPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperationPolicy_ListByOperation

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

WorkspaceApiOperation_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.method == STRING
    input.Body.properties.urlTemplate == STRING
    input.Body.properties.templateParameters[_].name == STRING
    input.Body.properties.templateParameters[_].description == STRING
    input.Body.properties.templateParameters[_].type == STRING
    input.Body.properties.templateParameters[_].defaultValue == STRING
    input.Body.properties.templateParameters[_].required == BOOLEAN
    input.Body.properties.templateParameters[_].values[_] == STRING
    input.Body.properties.templateParameters[_].schemaId == STRING
    input.Body.properties.templateParameters[_].typeName == STRING
    input.Body.properties.templateParameters[_].examples.STRING.summary == STRING
    input.Body.properties.templateParameters[_].examples.STRING.description == STRING
    input.Body.properties.templateParameters[_].examples.STRING.value == {}
    input.Body.properties.templateParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.description == STRING
    input.Body.properties.request.description == STRING
    input.Body.properties.request.queryParameters[_].name == STRING
    input.Body.properties.request.queryParameters[_].description == STRING
    input.Body.properties.request.queryParameters[_].type == STRING
    input.Body.properties.request.queryParameters[_].defaultValue == STRING
    input.Body.properties.request.queryParameters[_].required == BOOLEAN
    input.Body.properties.request.queryParameters[_].values[_] == STRING
    input.Body.properties.request.queryParameters[_].schemaId == STRING
    input.Body.properties.request.queryParameters[_].typeName == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.value == {}
    input.Body.properties.request.queryParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.headers[_].name == STRING
    input.Body.properties.request.headers[_].description == STRING
    input.Body.properties.request.headers[_].type == STRING
    input.Body.properties.request.headers[_].defaultValue == STRING
    input.Body.properties.request.headers[_].required == BOOLEAN
    input.Body.properties.request.headers[_].values[_] == STRING
    input.Body.properties.request.headers[_].schemaId == STRING
    input.Body.properties.request.headers[_].typeName == STRING
    input.Body.properties.request.headers[_].examples.STRING.summary == STRING
    input.Body.properties.request.headers[_].examples.STRING.description == STRING
    input.Body.properties.request.headers[_].examples.STRING.value == {}
    input.Body.properties.request.headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].contentType == STRING
    input.Body.properties.request.representations[_].schemaId == STRING
    input.Body.properties.request.representations[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].name == STRING
    input.Body.properties.request.representations[_].formParameters[_].description == STRING
    input.Body.properties.request.representations[_].formParameters[_].type == STRING
    input.Body.properties.request.representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.request.representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.request.representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.request.representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.request.representations[_].formParameters[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].statusCode == INTEGER
    input.Body.properties.responses[_].description == STRING
    input.Body.properties.responses[_].representations[_].contentType == STRING
    input.Body.properties.responses[_].representations[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].name == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].type == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.responses[_].representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].headers[_].name == STRING
    input.Body.properties.responses[_].headers[_].description == STRING
    input.Body.properties.responses[_].headers[_].type == STRING
    input.Body.properties.responses[_].headers[_].defaultValue == STRING
    input.Body.properties.responses[_].headers[_].required == BOOLEAN
    input.Body.properties.responses[_].headers[_].values[_] == STRING
    input.Body.properties.responses[_].headers[_].schemaId == STRING
    input.Body.properties.responses[_].headers[_].typeName == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.value == {}
    input.Body.properties.responses[_].headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.policies == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperation_Delete

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

WorkspaceApiOperation_Get

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

WorkspaceApiOperation_GetEntityTag

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

WorkspaceApiOperation_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.tags == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiOperation_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.method == STRING
    input.Body.properties.urlTemplate == STRING
    input.Body.properties.templateParameters[_].name == STRING
    input.Body.properties.templateParameters[_].description == STRING
    input.Body.properties.templateParameters[_].type == STRING
    input.Body.properties.templateParameters[_].defaultValue == STRING
    input.Body.properties.templateParameters[_].required == BOOLEAN
    input.Body.properties.templateParameters[_].values[_] == STRING
    input.Body.properties.templateParameters[_].schemaId == STRING
    input.Body.properties.templateParameters[_].typeName == STRING
    input.Body.properties.templateParameters[_].examples.STRING.summary == STRING
    input.Body.properties.templateParameters[_].examples.STRING.description == STRING
    input.Body.properties.templateParameters[_].examples.STRING.value == {}
    input.Body.properties.templateParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.description == STRING
    input.Body.properties.request.description == STRING
    input.Body.properties.request.queryParameters[_].name == STRING
    input.Body.properties.request.queryParameters[_].description == STRING
    input.Body.properties.request.queryParameters[_].type == STRING
    input.Body.properties.request.queryParameters[_].defaultValue == STRING
    input.Body.properties.request.queryParameters[_].required == BOOLEAN
    input.Body.properties.request.queryParameters[_].values[_] == STRING
    input.Body.properties.request.queryParameters[_].schemaId == STRING
    input.Body.properties.request.queryParameters[_].typeName == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.queryParameters[_].examples.STRING.value == {}
    input.Body.properties.request.queryParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.headers[_].name == STRING
    input.Body.properties.request.headers[_].description == STRING
    input.Body.properties.request.headers[_].type == STRING
    input.Body.properties.request.headers[_].defaultValue == STRING
    input.Body.properties.request.headers[_].required == BOOLEAN
    input.Body.properties.request.headers[_].values[_] == STRING
    input.Body.properties.request.headers[_].schemaId == STRING
    input.Body.properties.request.headers[_].typeName == STRING
    input.Body.properties.request.headers[_].examples.STRING.summary == STRING
    input.Body.properties.request.headers[_].examples.STRING.description == STRING
    input.Body.properties.request.headers[_].examples.STRING.value == {}
    input.Body.properties.request.headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].contentType == STRING
    input.Body.properties.request.representations[_].schemaId == STRING
    input.Body.properties.request.representations[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].name == STRING
    input.Body.properties.request.representations[_].formParameters[_].description == STRING
    input.Body.properties.request.representations[_].formParameters[_].type == STRING
    input.Body.properties.request.representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.request.representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.request.representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.request.representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.request.representations[_].formParameters[_].typeName == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.request.representations[_].examples.STRING.summary == STRING
    input.Body.properties.request.representations[_].examples.STRING.description == STRING
    input.Body.properties.request.representations[_].examples.STRING.value == {}
    input.Body.properties.request.representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].statusCode == INTEGER
    input.Body.properties.responses[_].description == STRING
    input.Body.properties.responses[_].representations[_].contentType == STRING
    input.Body.properties.responses[_].representations[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].name == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].type == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].defaultValue == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].required == BOOLEAN
    input.Body.properties.responses[_].representations[_].formParameters[_].values[_] == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].schemaId == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].typeName == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].formParameters[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].representations[_].examples.STRING.value == {}
    input.Body.properties.responses[_].representations[_].examples.STRING.externalValue == STRING
    input.Body.properties.responses[_].headers[_].name == STRING
    input.Body.properties.responses[_].headers[_].description == STRING
    input.Body.properties.responses[_].headers[_].type == STRING
    input.Body.properties.responses[_].headers[_].defaultValue == STRING
    input.Body.properties.responses[_].headers[_].required == BOOLEAN
    input.Body.properties.responses[_].headers[_].values[_] == STRING
    input.Body.properties.responses[_].headers[_].schemaId == STRING
    input.Body.properties.responses[_].headers[_].typeName == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.summary == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.description == STRING
    input.Body.properties.responses[_].headers[_].examples.STRING.value == {}
    input.Body.properties.responses[_].headers[_].examples.STRING.externalValue == STRING
    input.Body.properties.policies == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.operationId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiPolicy_ListByApi

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

WorkspaceApiRelease_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.properties.notes == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.releaseId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiRelease_Delete

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

WorkspaceApiRelease_Get

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

WorkspaceApiRelease_GetEntityTag

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

WorkspaceApiRelease_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiRelease_Update

valid {
    input.Body.properties.apiId == STRING
    input.Body.properties.notes == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.releaseId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiRevision_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiSchema_CreateOrUpdate

valid {
    input.Body.properties.contentType == STRING
    input.Body.properties.document.value == STRING
    input.Body.properties.document.definitions.STRING == STRING
    input.Body.properties.document.components.STRING == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiSchema_Delete

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.force == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiSchema_Get

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

WorkspaceApiSchema_GetEntityTag

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

WorkspaceApiSchema_ListByApi

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiVersionSet_CreateOrUpdate

enum_ApiVersionSetContractPropertiesVersioningScheme := [ "Segment", "Query", "Header" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.versioningScheme == enum_ApiVersionSetContractPropertiesVersioningScheme[_]
    input.Body.properties.description == STRING
    input.Body.properties.versionQueryName == STRING
    input.Body.properties.versionHeaderName == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.versionSetId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiVersionSet_Delete

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

WorkspaceApiVersionSet_Get

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

WorkspaceApiVersionSet_GetEntityTag

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

WorkspaceApiVersionSet_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApiVersionSet_Update

enum_ApiVersionSetUpdateParametersPropertiesVersioningScheme := [ "Segment", "Query", "Header" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.versioningScheme == enum_ApiVersionSetUpdateParametersPropertiesVersioningScheme[_]
    input.Body.properties.description == STRING
    input.Body.properties.versionQueryName == STRING
    input.Body.properties.versionHeaderName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.versionSetId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApi_CreateOrUpdate

enum_ApiContractPropertiesProtocols := [ "http", "https", "ws", "wss" ]
enum_ApiCreateOrUpdatePropertiesApiType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_ApiCreateOrUpdatePropertiesFormat := [ "wadl-xml", "wadl-link-json", "swagger-json", "swagger-link-json", "wsdl", "wsdl-link", "openapi", "openapi+json", "openapi-link", "openapi+json-link", "graphql-link", "odata", "odata-link", "grpc", "grpc-link" ]
enum_ApiCreateOrUpdatePropertiesTranslateRequiredQueryParameters := [ "template", "query" ]
enum_ApiEntityBaseContractType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_ApiVersionSetContractDetailsVersioningScheme := [ "Segment", "Query", "Header" ]
enum_BearerTokenSendingMethodsContract := [ "authorizationHeader", "query" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_ApiCreateOrUpdatePropertiesFormat[_]
    input.Body.properties.wsdlSelector.wsdlServiceName == STRING
    input.Body.properties.wsdlSelector.wsdlEndpointName == STRING
    input.Body.properties.apiType == enum_ApiCreateOrUpdatePropertiesApiType[_]
    input.Body.properties.translateRequiredQueryParameters == enum_ApiCreateOrUpdatePropertiesTranslateRequiredQueryParameters[_]
    input.Body.properties.sourceApiId == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.serviceUrl == STRING
    input.Body.properties.path == STRING
    input.Body.properties.protocols[_] == enum_ApiContractPropertiesProtocols[_]
    input.Body.properties.apiVersionSet.id == STRING
    input.Body.properties.apiVersionSet.name == STRING
    input.Body.properties.apiVersionSet.description == STRING
    input.Body.properties.apiVersionSet.versioningScheme == enum_ApiVersionSetContractDetailsVersioningScheme[_]
    input.Body.properties.apiVersionSet.versionQueryName == STRING
    input.Body.properties.apiVersionSet.versionHeaderName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.authenticationSettings.oAuth2.authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2.scope == STRING
    input.Body.properties.authenticationSettings.openid.openidProviderId == STRING
    input.Body.properties.authenticationSettings.openid.bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].scope == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].openidProviderId == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.subscriptionKeyParameterNames.header == STRING
    input.Body.properties.subscriptionKeyParameterNames.query == STRING
    input.Body.properties.type == enum_ApiEntityBaseContractType[_]
    input.Body.properties.apiRevision == STRING
    input.Body.properties.apiVersion == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.properties.apiRevisionDescription == STRING
    input.Body.properties.apiVersionDescription == STRING
    input.Body.properties.apiVersionSetId == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.termsOfServiceUrl == STRING
    input.Body.properties.contact.name == STRING
    input.Body.properties.contact.url == STRING
    input.Body.properties.contact.email == STRING
    input.Body.properties.license.name == STRING
    input.Body.properties.license.url == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApi_Delete

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.deleteRevisions == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApi_Get

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

WorkspaceApi_GetEntityTag

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

WorkspaceApi_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.tags == STRING
    input.Qs.expandApiVersionSet == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceApi_Update

enum_ApiContractUpdatePropertiesProtocols := [ "http", "https", "ws", "wss" ]
enum_ApiEntityBaseContractType := [ "http", "soap", "websocket", "graphql", "odata", "grpc" ]
enum_BearerTokenSendingMethodsContract := [ "authorizationHeader", "query" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.serviceUrl == STRING
    input.Body.properties.path == STRING
    input.Body.properties.protocols[_] == enum_ApiContractUpdatePropertiesProtocols[_]
    input.Body.properties.description == STRING
    input.Body.properties.authenticationSettings.oAuth2.authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2.scope == STRING
    input.Body.properties.authenticationSettings.openid.openidProviderId == STRING
    input.Body.properties.authenticationSettings.openid.bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].authorizationServerId == STRING
    input.Body.properties.authenticationSettings.oAuth2AuthenticationSettings[_].scope == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].openidProviderId == STRING
    input.Body.properties.authenticationSettings.openidAuthenticationSettings[_].bearerTokenSendingMethods[_] == enum_BearerTokenSendingMethodsContract[_]
    input.Body.properties.subscriptionKeyParameterNames.header == STRING
    input.Body.properties.subscriptionKeyParameterNames.query == STRING
    input.Body.properties.type == enum_ApiEntityBaseContractType[_]
    input.Body.properties.apiRevision == STRING
    input.Body.properties.apiVersion == STRING
    input.Body.properties.isCurrent == BOOLEAN
    input.Body.properties.apiRevisionDescription == STRING
    input.Body.properties.apiVersionDescription == STRING
    input.Body.properties.apiVersionSetId == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.termsOfServiceUrl == STRING
    input.Body.properties.contact.name == STRING
    input.Body.properties.contact.url == STRING
    input.Body.properties.contact.email == STRING
    input.Body.properties.license.name == STRING
    input.Body.properties.license.url == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.apiId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGlobalSchema_CreateOrUpdate

enum_GlobalSchemaContractPropertiesSchemaType := [ "xml", "json" ]

valid {
    input.Body.properties.schemaType == enum_GlobalSchemaContractPropertiesSchemaType[_]
    input.Body.properties.description == STRING
    input.Body.properties.value == {}
    input.Body.properties.document.STRING == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.schemaId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGlobalSchema_Delete

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

WorkspaceGlobalSchema_Get

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

WorkspaceGlobalSchema_GetEntityTag

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

WorkspaceGlobalSchema_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGroupUser_CheckEntityExists

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

WorkspaceGroupUser_Create

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

WorkspaceGroupUser_Delete

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

WorkspaceGroupUser_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGroup_CreateOrUpdate

enum_GroupCreateParametersPropertiesType := [ "custom", "system", "external" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.type == enum_GroupCreateParametersPropertiesType[_]
    input.Body.properties.externalId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGroup_Delete

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

WorkspaceGroup_Get

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

WorkspaceGroup_GetEntityTag

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

WorkspaceGroup_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceGroup_Update

enum_GroupUpdateParametersPropertiesType := [ "custom", "system", "external" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.type == enum_GroupUpdateParametersPropertiesType[_]
    input.Body.properties.externalId == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNamedValue_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.keyVault.secretIdentifier == STRING
    input.Body.properties.keyVault.identityClientId == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.namedValueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNamedValue_Delete

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

WorkspaceNamedValue_Get

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

WorkspaceNamedValue_GetEntityTag

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

WorkspaceNamedValue_ListByService

enum_IsKeyVaultRefreshFailedParameter := [ "true", "false" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.isKeyVaultRefreshFailed == enum_IsKeyVaultRefreshFailedParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNamedValue_ListValue

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

WorkspaceNamedValue_RefreshSecret

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

WorkspaceNamedValue_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.value == STRING
    input.Body.properties.keyVault.secretIdentifier == STRING
    input.Body.properties.keyVault.identityClientId == STRING
    input.Body.properties.tags[_] == STRING
    input.Body.properties.secret == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.namedValueId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientEmail_CheckEntityExists

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientEmail_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientEmail_Delete

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.email == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientEmail_ListByNotification

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientUser_CheckEntityExists

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientUser_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientUser_Delete

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.userId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotificationRecipientUser_ListByNotification

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotification_CreateOrUpdate

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotification_Get

enum_NotificationNameParameter := [ "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", "QuotaLimitApproachingPublisherNotificationMessage" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.notificationName == enum_NotificationNameParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceNotification_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicyFragment_CreateOrUpdate

enum_PolicyFragmentContractPropertiesFormat := [ "xml", "rawxml" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.description == STRING
    input.Body.properties.format == enum_PolicyFragmentContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicyFragment_Delete

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

WorkspacePolicyFragment_Get

enum_PolicyFragmentContentFormat := [ "xml", "rawxml" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.format == enum_PolicyFragmentContentFormat[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicyFragment_GetEntityTag

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

WorkspacePolicyFragment_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$filter == STRING
    input.Qs.$orderby == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicyFragment_ListReferences

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.id == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspacePolicy_ListByApi

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

WorkspaceProductApiLink_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.apiLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductApiLink_Delete

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

WorkspaceProductApiLink_Get

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

WorkspaceProductApiLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductGroupLink_CreateOrUpdate

valid {
    input.Body.properties.groupId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.groupLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductGroupLink_Delete

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

WorkspaceProductGroupLink_Get

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

WorkspaceProductGroupLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductPolicy_CreateOrUpdate

enum_PolicyContractPropertiesFormat := [ "xml", "xml-link", "rawxml", "rawxml-link" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.Body.properties.value == STRING
    input.Body.properties.format == enum_PolicyContractPropertiesFormat[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductPolicy_Delete

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductPolicy_Get

enum_PolicyExportFormat := [ "xml", "rawxml" ]
enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.format == enum_PolicyExportFormat[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductPolicy_GetEntityTag

enum_PolicyIdParameter := [ "policy" ]

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.policyId == enum_PolicyIdParameter[_]
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProductPolicy_ListByProduct

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

WorkspaceProduct_CreateOrUpdate

enum_ProductEntityBaseParametersState := [ "notPublished", "published" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.terms == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.approvalRequired == BOOLEAN
    input.Body.properties.subscriptionsLimit == INTEGER
    input.Body.properties.state == enum_ProductEntityBaseParametersState[_]
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProduct_Delete

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.deleteSubscriptions == BOOLEAN
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProduct_Get

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

WorkspaceProduct_GetEntityTag

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

WorkspaceProduct_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.expandGroups == BOOLEAN
    input.Qs.tags == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceProduct_Update

enum_ProductEntityBaseParametersState := [ "notPublished", "published" ]

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.properties.terms == STRING
    input.Body.properties.subscriptionRequired == BOOLEAN
    input.Body.properties.approvalRequired == BOOLEAN
    input.Body.properties.subscriptionsLimit == INTEGER
    input.Body.properties.state == enum_ProductEntityBaseParametersState[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.productId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceSubscription_CreateOrUpdate

enum_AppTypeParameter := [ "portal", "developerPortal" ]
enum_SubscriptionCreateParameterPropertiesState := [ "suspended", "active", "expired", "submitted", "rejected", "cancelled" ]

valid {
    input.Body.properties.ownerId == STRING
    input.Body.properties.scope == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.Body.properties.state == enum_SubscriptionCreateParameterPropertiesState[_]
    input.Body.properties.allowTracing == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.sid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceSubscription_Delete

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

WorkspaceSubscription_Get

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

WorkspaceSubscription_GetEntityTag

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

WorkspaceSubscription_List

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceSubscription_ListSecrets

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

WorkspaceSubscription_RegeneratePrimaryKey

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

WorkspaceSubscription_RegenerateSecondaryKey

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

WorkspaceSubscription_Update

enum_AppTypeParameter := [ "portal", "developerPortal" ]
enum_SubscriptionUpdateParameterPropertiesState := [ "suspended", "active", "expired", "submitted", "rejected", "cancelled" ]

valid {
    input.Body.properties.ownerId == STRING
    input.Body.properties.scope == STRING
    input.Body.properties.expirationDate == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.primaryKey == STRING
    input.Body.properties.secondaryKey == STRING
    input.Body.properties.state == enum_SubscriptionUpdateParameterPropertiesState[_]
    input.Body.properties.stateComment == STRING
    input.Body.properties.allowTracing == BOOLEAN
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.sid == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.notify == BOOLEAN
    input.Qs.api-version == STRING
    input.Qs.appType == enum_AppTypeParameter[_]
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagApiLink_CreateOrUpdate

valid {
    input.Body.properties.apiId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.apiLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagApiLink_Delete

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

WorkspaceTagApiLink_Get

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

WorkspaceTagApiLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagOperationLink_CreateOrUpdate

valid {
    input.Body.properties.operationId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.operationLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagOperationLink_Delete

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

WorkspaceTagOperationLink_Get

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

WorkspaceTagOperationLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagProductLink_CreateOrUpdate

valid {
    input.Body.properties.productId == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.productLinkId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTagProductLink_Delete

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

WorkspaceTagProductLink_Get

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

WorkspaceTagProductLink_ListByProduct

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTag_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTag_Delete

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

WorkspaceTag_Get

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

WorkspaceTag_GetEntityState

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

WorkspaceTag_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.scope == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

WorkspaceTag_Update

valid {
    input.Body.properties.displayName == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.tagId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Workspace_CreateOrUpdate

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Workspace_Delete

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

Workspace_Get

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

Workspace_GetEntityTag

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

Workspace_ListByService

valid {
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skip == INTEGER
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Workspace_Update

valid {
    input.Body.properties.displayName == STRING
    input.Body.properties.description == STRING
    input.Body.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.serviceName == STRING
    input.ReqMap.workspaceId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}