Skip to content

Commit

Permalink
Added new endpoint for validation (#14090)
Browse files Browse the repository at this point in the history
* Added new endpoint for validation

* added example file

* rename to org validate

* update cspell.json
  • Loading branch information
alluri02 authored May 5, 2021
1 parent 4d3f29a commit 1e75ca2
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 2 deletions.
6 changes: 6 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,12 @@
"Guage"
]
},
{
"filename": "**/specification/confluent/resource-manager/Microsoft.Confluent/preview/2021-03-01-preview/confluent.json",
"words": [
"orgvalidate"
]
},
{
"filename": "**/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2021-02-10/service.json",
"words": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,63 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate": {
"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": {
Expand Down Expand Up @@ -740,8 +797,6 @@
"description": "Subscriber detail",
"type": "object",
"required": [
"firstName",
"lastName",
"emailAddress"
],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}

0 comments on commit 1e75ca2

Please sign in to comment.