From 142073ba452ae91dc2fd1698c329541001cc1082 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 3 Oct 2023 13:50:23 +0000 Subject: [PATCH] CodeGen from PR 25984 in Azure/azure-rest-api-specs Merge bd921bceec17d466e8a08a5168f50bc5bdeb6c83 into 7dc72e8b070d449d29e2d679c219914637cdbfa5 --- .../subscriptionDeploymentTemplate.json | 3 + schemas/2023-08-22/Microsoft.Confluent.json | 337 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 3 files changed, 343 insertions(+) create mode 100644 schemas/2023-08-22/Microsoft.Confluent.json diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json index b1c35eac49..cf3d87d837 100644 --- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json +++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json @@ -839,6 +839,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-12-01/Microsoft.Confluent.json#/subscription_resourceDefinitions/agreements" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-08-22/Microsoft.Confluent.json#/subscription_resourceDefinitions/agreements" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-12-30-preview/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" }, diff --git a/schemas/2023-08-22/Microsoft.Confluent.json b/schemas/2023-08-22/Microsoft.Confluent.json new file mode 100644 index 0000000000..9b916cbdfd --- /dev/null +++ b/schemas/2023-08-22/Microsoft.Confluent.json @@ -0,0 +1,337 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-08-22/Microsoft.Confluent.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Confluent", + "description": "Microsoft Confluent Resource Types", + "resourceDefinitions": { + "organizations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-08-22" + ] + }, + "location": { + "type": "string", + "description": "Location of Organization resource" + }, + "name": { + "type": "string", + "description": "Organization resource name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/OrganizationResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Organization resource property" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Organization resource tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Confluent/organizations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Confluent/organizations" + } + }, + "subscription_resourceDefinitions": { + "agreements": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-08-22" + ] + }, + "name": { + "type": "string", + "enum": [ + "default" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConfluentAgreementProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Terms properties for Marketplace and Confluent." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Confluent/agreements" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Confluent/agreements" + } + }, + "definitions": { + "ConfluentAgreementProperties": { + "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." + }, + "privacyPolicyLink": { + "type": "string", + "description": "Link to the privacy policy of the publisher." + }, + "product": { + "type": "string", + "description": "Product identifier string." + }, + "publisher": { + "type": "string", + "description": "Publisher identifier string." + }, + "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": "Terms properties for Marketplace and Confluent." + }, + "LinkOrganization": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "User auth token" + } + }, + "required": [ + "token" + ], + "description": "Link an existing Confluent organization" + }, + "OfferDetail": { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 50, + "description": "Offer Id" + }, + "planId": { + "type": "string", + "maxLength": 200, + "description": "Offer Plan Id" + }, + "planName": { + "type": "string", + "maxLength": 200, + "description": "Offer Plan Name" + }, + "privateOfferId": { + "type": "string", + "maxLength": 255, + "description": "Private Offer Id" + }, + "privateOfferIds": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Array of Private Offer Ids" + }, + "publisherId": { + "type": "string", + "maxLength": 50, + "description": "Publisher Id" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Started", + "PendingFulfillmentStart", + "InProgress", + "Subscribed", + "Suspended", + "Reinstated", + "Succeeded", + "Failed", + "Unsubscribed", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SaaS Offer Status." + }, + "termId": { + "type": "string", + "maxLength": 50, + "description": "Offer Plan Term Id" + }, + "termUnit": { + "type": "string", + "maxLength": 25, + "description": "Offer Plan Term unit" + } + }, + "required": [ + "id", + "planId", + "planName", + "publisherId", + "termUnit" + ], + "description": "Confluent Offer detail" + }, + "OrganizationResourceProperties": { + "type": "object", + "properties": { + "linkOrganization": { + "oneOf": [ + { + "$ref": "#/definitions/LinkOrganization" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Link an existing Confluent organization" + }, + "offerDetail": { + "oneOf": [ + { + "$ref": "#/definitions/OfferDetail" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Confluent Offer detail" + }, + "userDetail": { + "oneOf": [ + { + "$ref": "#/definitions/UserDetail" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Subscriber detail" + } + }, + "required": [ + "offerDetail", + "userDetail" + ], + "description": "Organization resource property" + }, + "UserDetail": { + "type": "object", + "properties": { + "aadEmail": { + "type": "string", + "description": "AAD email address" + }, + "emailAddress": { + "oneOf": [ + { + "type": "string", + "pattern": "^\\S+@\\S+\\.\\S+$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Email address" + }, + "firstName": { + "type": "string", + "maxLength": 50, + "description": "First name" + }, + "lastName": { + "type": "string", + "maxLength": 50, + "description": "Last name" + }, + "userPrincipalName": { + "type": "string", + "description": "User principal name" + } + }, + "required": [ + "emailAddress" + ], + "description": "Subscriber detail" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index f12fc41d9d..42c8cc2cbc 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -7441,6 +7441,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-12-01/Microsoft.Confluent.json#/resourceDefinitions/organizations" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-08-22/Microsoft.Confluent.json#/resourceDefinitions/organizations" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-10-01-preview/Microsoft.ConnectedVMwarevSphere.json#/resourceDefinitions/clusters" },