MICROSOFT.MARKETPLACE

EdgeZonesProducts_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.location == STRING
    input.ReqMap.edgeZone == STRING
    input.Qs.language == STRING
    input.Qs.market == STRING
    input.Qs.$select == STRING
    input.Qs.$skipToken == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Operations_List

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

PrivateStoreCollectionOffer_CreateOrUpdate

enum_PlanAccessibility := [ "Unknown", "Public", "PrivateTenantOnLevel", "PrivateSubscriptionOnLevel" ]

valid {
    input.Body.properties.eTag == STRING
    input.Body.properties.specificPlanIdsLimitation[_] == STRING
    input.Body.properties.updateSuppressedDueIdempotence == BOOLEAN
    input.Body.properties.iconFileUris.STRING == STRING
    input.Body.properties.plans[_].accessibility == enum_PlanAccessibility[_]
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_Delete

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_Get

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_List

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_ListByContexts

valid {
    input.Body.properties.subscriptionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_Post

enum_PrivateStoreOperation := [ "DeletePrivateStoreOffer", "DeletePrivateStoreCollection", "DeletePrivateStoreCollectionOffer", "Ping" ]

valid {
    input.Body == enum_PrivateStoreOperation[_]
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollectionOffer_UpsertOfferWithMultiContext

valid {
    input.Body.properties.offerId == STRING
    input.Body.properties.eTag == STRING
    input.Body.properties.plansContext[_].context == STRING
    input.Body.properties.plansContext[_].planIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_ApproveAllItems

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_CreateOrUpdate

valid {
    input.Body.properties.collectionName == STRING
    input.Body.properties.claim == STRING
    input.Body.properties.allSubscriptions == BOOLEAN
    input.Body.properties.subscriptionsList[_] == STRING
    input.Body.properties.enabled == BOOLEAN
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_Delete

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_DisableApproveAllItems

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_Get

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_List

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_Post

enum_PrivateStoreOperation := [ "DeletePrivateStoreOffer", "DeletePrivateStoreCollection", "DeletePrivateStoreCollectionOffer", "Ping" ]

valid {
    input.Body == enum_PrivateStoreOperation[_]
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreCollection_TransferOffers

valid {
    input.Body.properties.targetCollections[_] == STRING
    input.Body.properties.operation == STRING
    input.Body.properties.offerIdsList[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStoreOffer_CreateOrUpdate

enum_PlanAccessibility := [ "Unknown", "Public", "PrivateTenantOnLevel", "PrivateSubscriptionOnLevel" ]

valid {
    input.Body.properties.eTag == STRING
    input.Body.properties.specificPlanIdsLimitation[_] == STRING
    input.Body.properties.updateSuppressedDueIdempotence == BOOLEAN
    input.Body.properties.iconFileUris.STRING == STRING
    input.Body.properties.plans[_].accessibility == enum_PlanAccessibility[_]
    input.ProviderMetadata.Region == STRING
}

PrivateStoreOffer_Delete

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStoreOffer_Get

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStoreOffer_Post

enum_PrivateStoreOperation := [ "DeletePrivateStoreOffer", "Ping" ]

valid {
    input.Body == enum_PrivateStoreOperation[_]
    input.ProviderMetadata.Region == STRING
}

PrivateStoreOffers_List

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStorePrivateOffer_CreateOrUpdate

enum_PlanAccessibility := [ "Unknown", "Public", "PrivateTenantOnLevel", "PrivateSubscriptionOnLevel" ]

valid {
    input.Body.properties.eTag == STRING
    input.Body.properties.specificPlanIdsLimitation[_] == STRING
    input.Body.properties.updateSuppressedDueIdempotence == BOOLEAN
    input.Body.properties.iconFileUris.STRING == STRING
    input.Body.properties.plans[_].accessibility == enum_PlanAccessibility[_]
    input.ProviderMetadata.Region == STRING
}

PrivateStorePrivateOffer_Get

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStorePrivateOffers_List

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStore_AcknowledgeOfferNotification

valid {
    input.Body.properties.acknowledge == BOOLEAN
    input.Body.properties.dismiss == BOOLEAN
    input.Body.properties.removeOffer == BOOLEAN
    input.Body.properties.addPlans[_] == STRING
    input.Body.properties.removePlans[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.offerId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_AdminRequestApprovalsList

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_AnyExistingOffersInTheCollections

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_BillingAccounts

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_BulkCollectionsAction

valid {
    input.Body.properties.collectionIds[_] == STRING
    input.Body.properties.action == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_CollectionsToSubscriptionsMapping

valid {
    input.Body.properties.subscriptionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_CreateApprovalRequest

valid {
    input.Body.properties.offerId == STRING
    input.Body.properties.publisherId == STRING
    input.Body.properties.plansDetails[_].planId == STRING
    input.Body.properties.plansDetails[_].justification == STRING
    input.Body.properties.plansDetails[_].subscriptionId == STRING
    input.Body.properties.plansDetails[_].subscriptionName == STRING
    input.Body.properties.messageCode == INTEGER
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.requestApprovalId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_CreateOrUpdate

enum_PrivateStorePropertiesAvailability := [ "enabled", "disabled" ]

valid {
    input.Body.properties.availability == enum_PrivateStorePropertiesAvailability[_]
    input.Body.properties.eTag == STRING
    input.Body.properties.privateStoreName == STRING
    input.Body.properties.tenantId == STRING
    input.Body.properties.isGov == BOOLEAN
    input.Body.properties.branding.STRING == STRING
    input.Body.properties.notificationsSettings.recipients[_].principalId == STRING
    input.Body.properties.notificationsSettings.sendToAllMarketplaceAdmins == BOOLEAN
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_Delete

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_FetchAllSubscriptionsInTenant

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_Get

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_GetAdminRequestApproval

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.adminRequestApprovalId == STRING
    input.Qs.publisherId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_GetApprovalRequestsList

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_GetRequestApproval

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.requestApprovalId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_List

valid {
    input.ProviderMetadata.Region == STRING
}

PrivateStore_ListNewPlansNotifications

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_ListStopSellOffersPlansNotifications

valid {
    input.Body.subscriptions[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_ListSubscriptionsContext

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_QueryApprovedPlans

valid {
    input.Body.properties.offerId == STRING
    input.Body.properties.planIds[_] == STRING
    input.Body.properties.subscriptionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_QueryNotificationsState

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_QueryOffers

valid {
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_QueryRequestApproval

valid {
    input.Body.properties.publisherId == STRING
    input.Body.properties.planIds[_] == STRING
    input.Body.properties.subscriptionId == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.requestApprovalId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_QueryUserOffers

valid {
    input.Body.properties.offerIds[_] == STRING
    input.Body.properties.subscriptionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_UpdateAdminRequestApproval

enum_AdminRequestApprovalPropertiesAdminAction := [ "Approved", "Rejected" ]

valid {
    input.Body.properties.offerId == STRING
    input.Body.properties.publisherId == STRING
    input.Body.properties.adminAction == enum_AdminRequestApprovalPropertiesAdminAction[_]
    input.Body.properties.approvedPlans[_] == STRING
    input.Body.properties.comment == STRING
    input.Body.properties.administrator == STRING
    input.Body.properties.collectionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.adminRequestApprovalId == STRING
    input.ProviderMetadata.Region == STRING
}

PrivateStore_WithdrawPlan

valid {
    input.Body.properties.planId == STRING
    input.Body.properties.publisherId == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.requestApprovalId == STRING
    input.ProviderMetadata.Region == STRING
}

QueryRules

valid {
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}

QueryUserRules

valid {
    input.Body.properties.subscriptionIds[_] == STRING
    input.ReqMap.privateStoreId == STRING
    input.ProviderMetadata.Region == STRING
}

SetCollectionRules

enum_RuleType := [ "PrivateProducts", "TermsAndCondition" ]

valid {
    input.Body.value[_].type == enum_RuleType[_]
    input.Body.value[_].value[_] == STRING
    input.Body.nextLink == STRING
    input.ReqMap.privateStoreId == STRING
    input.ReqMap.collectionId == STRING
    input.ProviderMetadata.Region == STRING
}