MICROSOFT.CUSTOMPROVIDERS

Associations_CreateOrUpdate

valid {
    input.Body.properties.targetResourceId == STRING
    input.ReqMap.scope == STRING
    input.ReqMap.associationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Associations_Delete

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

Associations_Get

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

Associations_ListAll

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

CustomResourceProvider_CreateOrUpdate

enum_CustomRPActionRouteDefinitionRoutingType := [ "Proxy" ]
enum_CustomRPResourceTypeRouteDefinitionRoutingType := [ "Proxy", "Proxy,Cache" ]
enum_CustomRPValidationsValidationType := [ "Swagger" ]

valid {
    input.Body.properties.actions[_].routingType == enum_CustomRPActionRouteDefinitionRoutingType[_]
    input.Body.properties.actions[_].name == STRING
    input.Body.properties.actions[_].endpoint == STRING
    input.Body.properties.resourceTypes[_].routingType == enum_CustomRPResourceTypeRouteDefinitionRoutingType[_]
    input.Body.properties.resourceTypes[_].name == STRING
    input.Body.properties.resourceTypes[_].endpoint == STRING
    input.Body.properties.validations[_].validationType == enum_CustomRPValidationsValidationType[_]
    input.Body.properties.validations[_].specification == STRING
    input.Body.location == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.resourceProviderName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

CustomResourceProvider_Delete

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

CustomResourceProvider_Get

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

CustomResourceProvider_ListByResourceGroup

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

CustomResourceProvider_ListBySubscription

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

CustomResourceProvider_Update

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

Operations_List

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