azure-resource-manager-schemas/schemas/2021-06-01/Microsoft.Marketplace.json

759 строки
21 KiB
JSON

{
"id": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Marketplace.json#",
"title": "Microsoft.Marketplace",
"description": "Microsoft Marketplace Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"tenant_resourceDefinitions": {
"privateStores": {
"description": "Microsoft.Marketplace/privateStores",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The store ID - must use the tenant ID",
"type": "string"
},
"properties": {
"description": "The PrivateStore data structure.",
"oneOf": [
{
"$ref": "#/definitions/PrivateStoreProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"items": {
"oneOf": [
{
"$ref": "#/definitions/privateStores_collections_childResource"
},
{
"$ref": "#/definitions/privateStores_requestApprovals_childResource"
},
{
"$ref": "#/definitions/privateStores_adminRequestApprovals_childResource"
}
]
},
"type": "array"
},
"type": {
"enum": [
"Microsoft.Marketplace/privateStores"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_adminRequestApprovals": {
"description": "Microsoft.Marketplace/privateStores/adminRequestApprovals",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The admin request approval ID to get create or update",
"type": "string"
},
"properties": {
"description": "The privateStore admin Approval request data structure.",
"oneOf": [
{
"$ref": "#/definitions/AdminRequestApprovalProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Marketplace/privateStores/adminRequestApprovals"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_collections": {
"description": "Microsoft.Marketplace/privateStores/collections",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The collection ID",
"type": "string"
},
"properties": {
"description": "The collection data structure.",
"oneOf": [
{
"$ref": "#/definitions/CollectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"items": {
"oneOf": [
{
"$ref": "#/definitions/privateStores_collections_offers_childResource"
}
]
},
"type": "array"
},
"type": {
"enum": [
"Microsoft.Marketplace/privateStores/collections"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_collections_offers": {
"description": "Microsoft.Marketplace/privateStores/collections/offers",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The offer ID to update or delete",
"type": "string"
},
"properties": {
"description": "The privateStore offer data structure.",
"oneOf": [
{
"$ref": "#/definitions/OfferProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Marketplace/privateStores/collections/offers"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_requestApprovals": {
"description": "Microsoft.Marketplace/privateStores/requestApprovals",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The request approval ID to get create or update",
"type": "string"
},
"properties": {
"description": "The privateStore approval request data structure.",
"oneOf": [
{
"$ref": "#/definitions/RequestApprovalProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Marketplace/privateStores/requestApprovals"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"AdminRequestApprovalProperties": {
"description": "Admin approval request resource properties",
"properties": {
"adminAction": {
"description": "Gets or sets admin action",
"oneOf": [
{
"enum": [
"Approved",
"Rejected"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"administrator": {
"description": "Gets or sets admin details",
"type": "string"
},
"approvedPlans": {
"description": "Gets or sets Approved plans ids, empty in case of rejected",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"collectionIds": {
"description": "Gets or sets list of associated collection ids",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"comment": {
"description": "Gets or sets admin comment",
"type": "string"
},
"offerId": {
"description": "Gets or sets offer Id",
"type": "string"
},
"publisherId": {
"description": "Gets or sets publisher Id",
"type": "string"
}
},
"type": "object"
},
"CollectionProperties": {
"description": "The collection details",
"properties": {
"allSubscriptions": {
"description": "Indicating whether all subscriptions are selected (=true) or not (=false).",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"claim": {
"description": "Gets or sets the association with Commercial's Billing Account.",
"type": "string"
},
"collectionName": {
"description": "Gets or sets collection name.",
"type": "string"
},
"enabled": {
"description": "Indicating whether the collection is enabled or disabled.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"subscriptionsList": {
"description": "Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done, explicit list indicates the explicit selected subscriptions. On insert, null is considered as bad request",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"NotificationsSettingsProperties": {
"description": "Describes the json payload for notifications settings",
"properties": {
"recipients": {
"description": "Gets or sets list of notified recipients for new requests",
"oneOf": [
{
"items": {
"$ref": "#/definitions/Recipient"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"sendToAllMarketplaceAdmins": {
"description": "Gets or sets whether to send email to all marketplace admins for new requests",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"OfferProperties": {
"properties": {
"eTag": {
"description": "Identifier for purposes of race condition",
"type": "string"
},
"iconFileUris": {
"description": "Icon File Uris",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"plans": {
"description": "Offer plans",
"oneOf": [
{
"items": {
"$ref": "#/definitions/Plan"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"specificPlanIdsLimitation": {
"description": "Plan ids limitation for this offer",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"updateSuppressedDueIdempotence": {
"description": "Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Plan": {
"properties": {
"accessibility": {
"description": "Plan accessibility",
"oneOf": [
{
"enum": [
"Unknown",
"Public",
"PrivateTenantOnLevel",
"PrivateSubscriptionOnLevel"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"PlanDetails": {
"description": "Return plan with request details",
"properties": {
"justification": {
"description": "Gets or sets user's justification for the plan's request",
"type": "string"
},
"planId": {
"description": "Gets or sets Plan Id ",
"type": "string"
},
"subscriptionId": {
"description": "Gets or sets the subscription id that the user is requesting to add the plan to",
"type": "string"
},
"subscriptionName": {
"description": "Gets or sets the subscription name that the user is requesting to add the plan to",
"type": "string"
}
},
"type": "object"
},
"PrivateStoreProperties": {
"description": "Describes the json payload on whether or not the private store is enabled for a given tenant",
"properties": {
"availability": {
"description": "Indicates private store availability",
"oneOf": [
{
"enum": [
"enabled",
"disabled"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"branding": {
"description": "Gets or sets list of branding characteristics",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"eTag": {
"description": "Identifier for purposes of race condition",
"type": "string"
},
"isGov": {
"description": "Is government",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"notificationsSettings": {
"description": "Gets or sets notifications settings",
"oneOf": [
{
"$ref": "#/definitions/NotificationsSettingsProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"privateStoreName": {
"description": "Private Store Name",
"type": "string"
},
"tenantId": {
"description": "Tenant id",
"type": "string"
}
},
"type": "object"
},
"Recipient": {
"description": "Describes the json payload for a notified recipient for new requests",
"properties": {
"principalId": {
"description": "Principal ID",
"type": "string"
}
},
"type": "object"
},
"RequestApprovalProperties": {
"description": "Approval request resource properties",
"properties": {
"messageCode": {
"description": "Gets or sets the request approval message code",
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"offerId": {
"description": "Gets or sets unique offer id.",
"type": "string"
},
"plansDetails": {
"description": "Gets or sets the plans details",
"oneOf": [
{
"items": {
"$ref": "#/definitions/PlanDetails"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"publisherId": {
"description": "The offer's publisher id",
"type": "string"
}
},
"type": "object"
},
"privateStores_adminRequestApprovals_childResource": {
"description": "Microsoft.Marketplace/privateStores/adminRequestApprovals",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The admin request approval ID to get create or update",
"type": "string"
},
"properties": {
"description": "The privateStore admin Approval request data structure.",
"oneOf": [
{
"$ref": "#/definitions/AdminRequestApprovalProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"adminRequestApprovals"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_collections_childResource": {
"description": "Microsoft.Marketplace/privateStores/collections",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The collection ID",
"type": "string"
},
"properties": {
"description": "The collection data structure.",
"oneOf": [
{
"$ref": "#/definitions/CollectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"collections"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_collections_offers_childResource": {
"description": "Microsoft.Marketplace/privateStores/collections/offers",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The offer ID to update or delete",
"type": "string"
},
"properties": {
"description": "The privateStore offer data structure.",
"oneOf": [
{
"$ref": "#/definitions/OfferProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"offers"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"privateStores_requestApprovals_childResource": {
"description": "Microsoft.Marketplace/privateStores/requestApprovals",
"properties": {
"apiVersion": {
"enum": [
"2021-06-01"
],
"type": "string"
},
"name": {
"description": "The request approval ID to get create or update",
"type": "string"
},
"properties": {
"description": "The privateStore approval request data structure.",
"oneOf": [
{
"$ref": "#/definitions/RequestApprovalProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"requestApprovals"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
}
}