diff --git a/schemas/2015-06-01/Microsoft.MarketplaceOrdering.json b/schemas/2015-06-01/Microsoft.MarketplaceOrdering.json new file mode 100644 index 0000000000..bf7f9044e1 --- /dev/null +++ b/schemas/2015-06-01/Microsoft.MarketplaceOrdering.json @@ -0,0 +1,103 @@ +{ + "id": "https://schema.management.azure.com/schemas/2015-06-01/Microsoft.MarketplaceOrdering.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.MarketplaceOrdering", + "description": "Microsoft MarketplaceOrdering Resource Types", + "resourceDefinitions": {}, + "subscription_resourceDefinitions": { + "offerTypes_publishers_offers_plans_agreements": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-06-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/current$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AgreementProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Agreement Terms definition" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.MarketplaceOrdering/offerTypes/publishers/offers/plans/agreements" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.MarketplaceOrdering/offerTypes/publishers/offers/plans/agreements" + } + }, + "definitions": { + "AgreementProperties": { + "type": "object", + "properties": { + "accepted": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If any version of the terms have been accepted, otherwise false." + }, + "licenseTextLink": { + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." + }, + "plan": { + "type": "string", + "description": "Plan identifier string of image being deployed." + }, + "privacyPolicyLink": { + "type": "string", + "description": "Link to the privacy policy of the publisher." + }, + "product": { + "type": "string", + "description": "Offer identifier string of image being deployed." + }, + "publisher": { + "type": "string", + "description": "Publisher identifier string of image being deployed." + }, + "retrieveDatetime": { + "type": "string", + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." + }, + "signature": { + "type": "string", + "description": "Terms signature." + } + }, + "description": "Agreement Terms definition" + } + } +} diff --git a/schemas/2021-01-01/Microsoft.MarketplaceOrdering.json b/schemas/2021-01-01/Microsoft.MarketplaceOrdering.json new file mode 100644 index 0000000000..88556eb10c --- /dev/null +++ b/schemas/2021-01-01/Microsoft.MarketplaceOrdering.json @@ -0,0 +1,107 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.MarketplaceOrdering.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.MarketplaceOrdering", + "description": "Microsoft MarketplaceOrdering Resource Types", + "resourceDefinitions": {}, + "subscription_resourceDefinitions": { + "offerTypes_publishers_offers_plans_agreements": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-01-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/current$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AgreementProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Agreement Terms definition" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.MarketplaceOrdering/offerTypes/publishers/offers/plans/agreements" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.MarketplaceOrdering/offerTypes/publishers/offers/plans/agreements" + } + }, + "definitions": { + "AgreementProperties": { + "type": "object", + "properties": { + "accepted": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If any version of the terms have been accepted, otherwise false." + }, + "licenseTextLink": { + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." + }, + "marketplaceTermsLink": { + "type": "string", + "description": "Link to HTML with Azure Marketplace terms." + }, + "plan": { + "type": "string", + "description": "Plan identifier string of image being deployed." + }, + "privacyPolicyLink": { + "type": "string", + "description": "Link to the privacy policy of the publisher." + }, + "product": { + "type": "string", + "description": "Offer identifier string of image being deployed." + }, + "publisher": { + "type": "string", + "description": "Publisher identifier string of image being deployed." + }, + "retrieveDatetime": { + "type": "string", + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." + }, + "signature": { + "type": "string", + "description": "Terms signature." + } + }, + "description": "Agreement Terms definition" + } + } +}