From cf1cc1fd724d095a3211f2008429ded7f4e6c98f Mon Sep 17 00:00:00 2001 From: Srinivas Date: Fri, 23 Apr 2021 12:36:31 +0530 Subject: [PATCH 1/4] Added new endpoint for validation --- .../preview/2021-03-01-preview/confluent.json | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json index 1b757cc1367e..525eb003666c 100644 --- a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json @@ -463,6 +463,63 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/validate": { + "post": { + "tags": [ + "Validations" + ], + "summary": "Organization Validate proxy resource", + "operationId": "Validations_ValidateOrganization", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/OrganizationResourceNameParameter" + }, + { + "in": "body", + "name": "body", + "required": true, + "description": "Organization resource model", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "#/definitions/ResourceProviderDefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Validations_ValidateOrganizations": { + "$ref": "./examples/Validations_ValidateOrganizations.json" + } + } + } } }, "definitions": { @@ -740,8 +797,6 @@ "description": "Subscriber detail", "type": "object", "required": [ - "firstName", - "lastName", "emailAddress" ], "properties": { From 61e931d047d5aedd9cc57159902f2d60aeeedf9b Mon Sep 17 00:00:00 2001 From: Srinivas Date: Fri, 23 Apr 2021 12:39:11 +0530 Subject: [PATCH 2/4] added example file --- .../Validations_ValidateOrganizations.json | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/examples/Validations_ValidateOrganizations.json diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/examples/Validations_ValidateOrganizations.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/examples/Validations_ValidateOrganizations.json new file mode 100644 index 000000000000..5a5fe44f966d --- /dev/null +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/examples/Validations_ValidateOrganizations.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2021-03-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "organizationName": "myOrganization", + "body": { + "properties": { + "offerDetail": { + "publisherId": "string", + "id": "string", + "planId": "string", + "planName": "string", + "termUnit": "string" + }, + "userDetail": { + "firstName": "string", + "lastName": "string", + "emailAddress": "abc@microsoft.com" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganization", + "name": "myOrganization", + "type": "Microsoft.Confluent/organizations", + "properties": { + "createdTime": "2020-05-09T14:28:47.284Z", + "provisioningState": "Succeeded", + "organizationId": "string", + "ssoUrl": "string", + "offerDetail": { + "publisherId": "string", + "id": "string", + "planId": "string", + "planName": "string", + "termUnit": "string", + "status": "Started" + }, + "userDetail": { + "firstName": "string", + "lastName": "string", + "emailAddress": "abc@microsoft.com" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} From 6d0e6ed6e8c622d65ad4e3516622261b6773411c Mon Sep 17 00:00:00 2001 From: Srinivas Date: Thu, 29 Apr 2021 04:00:21 +0530 Subject: [PATCH 3/4] rename to org validate --- .../preview/2021-03-01-preview/confluent.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json index 525eb003666c..4d5f7093dada 100644 --- a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json @@ -464,7 +464,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/validate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate": { "post": { "tags": [ "Validations" From 852551ac08105e6f1dcb82dfcea98fbc3d338cd8 Mon Sep 17 00:00:00 2001 From: Srinivas Date: Thu, 29 Apr 2021 04:02:00 +0530 Subject: [PATCH 4/4] update cspell.json --- cSpell.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cSpell.json b/cSpell.json index db51e987dec6..ee25a89345ec 100644 --- a/cSpell.json +++ b/cSpell.json @@ -824,6 +824,12 @@ "words": [ "Guage" ] + }, + { + "filename": "**/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json", + "words": [ + "orgvalidate" + ] } ] }