MICROSOFT.POWERBIDEDICATED

AutoScaleVCores_Create

enum_AutoScaleVCoreSkuTier := [ "AutoScale" ]
enum_IdentityType := [ "User", "Application", "ManagedIdentity", "Key" ]

valid {
    input.Body.sku.name == STRING
    input.Body.sku.tier == enum_AutoScaleVCoreSkuTier[_]
    input.Body.sku.capacity == INTEGER
    input.Body.properties.capacityObjectId == STRING
    input.Body.properties.capacityLimit == INTEGER
    input.Body.location == STRING
    input.Body.tags.STRING == STRING
    input.Body.systemData.createdBy == STRING
    input.Body.systemData.createdByType == enum_IdentityType[_]
    input.Body.systemData.createdAt == STRING
    input.Body.systemData.lastModifiedBy == STRING
    input.Body.systemData.lastModifiedByType == enum_IdentityType[_]
    input.Body.systemData.lastModifiedAt == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.vcoreName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

AutoScaleVCores_Delete

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

AutoScaleVCores_Get

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

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

AutoScaleVCores_ListBySubscription

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

AutoScaleVCores_Update

enum_AutoScaleVCoreSkuTier := [ "AutoScale" ]

valid {
    input.Body.sku.name == STRING
    input.Body.sku.tier == enum_AutoScaleVCoreSkuTier[_]
    input.Body.sku.capacity == INTEGER
    input.Body.tags.STRING == STRING
    input.Body.properties.capacityLimit == INTEGER
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.vcoreName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Capacities_CheckNameAvailability

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

Capacities_Create

enum_CapacitySkuTier := [ "PBIE_Azure", "Premium", "AutoPremiumHost" ]
enum_DedicatedCapacityMutablePropertiesMode := [ "Gen1", "Gen2" ]
enum_IdentityType := [ "User", "Application", "ManagedIdentity", "Key" ]

valid {
    input.Body.sku.name == STRING
    input.Body.sku.tier == enum_CapacitySkuTier[_]
    input.Body.sku.capacity == INTEGER
    input.Body.properties.administration.members[_] == STRING
    input.Body.properties.mode == enum_DedicatedCapacityMutablePropertiesMode[_]
    input.Body.location == STRING
    input.Body.tags.STRING == STRING
    input.Body.systemData.createdBy == STRING
    input.Body.systemData.createdByType == enum_IdentityType[_]
    input.Body.systemData.createdAt == STRING
    input.Body.systemData.lastModifiedBy == STRING
    input.Body.systemData.lastModifiedByType == enum_IdentityType[_]
    input.Body.systemData.lastModifiedAt == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dedicatedCapacityName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Capacities_Delete

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

Capacities_GetDetails

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

Capacities_List

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

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

Capacities_ListSkus

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

Capacities_ListSkusForCapacity

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

Capacities_Resume

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

Capacities_Suspend

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

Capacities_Update

enum_CapacitySkuTier := [ "PBIE_Azure", "Premium", "AutoPremiumHost" ]
enum_DedicatedCapacityMutablePropertiesMode := [ "Gen1", "Gen2" ]

valid {
    input.Body.sku.name == STRING
    input.Body.sku.tier == enum_CapacitySkuTier[_]
    input.Body.sku.capacity == INTEGER
    input.Body.tags.STRING == STRING
    input.Body.properties.administration.members[_] == STRING
    input.Body.properties.mode == enum_DedicatedCapacityMutablePropertiesMode[_]
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.dedicatedCapacityName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Operations_List

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