Skip to content

Commit

Permalink
Adding new ResourceType customerEnt to the Provider with new apiversi…
Browse files Browse the repository at this point in the history
…on (#5120)

* Add Readme files to support the update

Add Readme files

* Add new API changes to add new resourceType 

new resource tyep customerEnt is added similar to already existing cachenodes resourceType

* adding examples 1 file for new api

* adding examples for each Api call in new version

* swagger Lint Validtion fix for "CreateOperationAsyncResponseValidation"

* reverting previous commit in old api where there are no changes in prod

* swagger lint validation fix - for R4023 RPaasPutLongRunningOperation201Only

* Removing this in 201 in response for put call

* updating the example to support the put operation

* fixing the SpellChecks in Microsoft.ConnectedCache

fixing the SpellChecks in Microsoft.ConnectedCache

* Addressing review comments

Addressing review comments

* adding request body in patch example

adding request body in patch example

* updating Prettier Check tool changes in new API version

updating Prettier Check tool changes in new API version and also fixing the spellcheck conflict

* Update cSpell.json

* Fixing prettier checks in old api version and spell check fix

Fixing prettier checks in old api version and spell check fix

* adding missing parameters in example

adding missing parameters in example

* adding location as the new additional property

adding location as the new additional property

* update the patch example with tags

update the patch example with tags

* removing the location from the patch resource

* Addressing review comments to change the resource type name

Addressing review comments to change the resource type name
  • Loading branch information
Bharam-Msft authored Oct 27, 2021
1 parent 875bae7 commit 0a09c1d
Show file tree
Hide file tree
Showing 27 changed files with 1,642 additions and 203 deletions.
6 changes: 6 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,12 @@
"userassignedidentities",
"USERASSIGNEDIDENTITIES"
]
},
{
"filename": "**/specification/connectedcache/resource-manager/Microsoft.ConnectedCache/preview/2019-12-04-preview/ConnectedCache.json",
"words": [
"Createor"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@
}
},
"host": "management.azure.com",
"schemes": [ "https" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [ "user_impersonation" ]
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
Expand All @@ -31,7 +39,9 @@
"paths": {
"/providers/Microsoft.ConnectedCache/operations": {
"get": {
"tags": [ "Operations" ],
"tags": [
"Operations"
],
"operationId": "Operations_List",
"x-ms-examples": {
"ConnectedCacheOperationsList": {
Expand Down Expand Up @@ -148,12 +158,6 @@
"$ref": "#/definitions/ConnectedCache"
}
},
"201": {
"description": "The request was successful; response contains the updated Connected Cache node.",
"schema": {
"$ref": "#/definitions/ConnectedCache"
}
},
"default": {
"description": "Error response describing the reason for operation failure. 404 - NotFound (cacheNodes could not be created/updated)",
"schema": {
Expand All @@ -163,7 +167,9 @@
}
},
"delete": {
"tags": [ "cacheNodes" ],
"tags": [
"cacheNodes"
],
"summary": "Deletes a cache Nodes resource.",
"description": "Deletes an existing cache Node.",
"operationId": "cacheNode_Delete",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"cacheNodeName": "MCCTPTest2",
"api-version": "2019-12-04-preview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"cacheNodeName": "MCCTPTest2",
"api-version": "2019-12-04-preview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"cacheNodeName": "MCCTPTest3",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {},
"204": {}
}
}
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"cacheNodeName": "MCCTPTest3",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DoTest",
"cacheNodeName": "MccRPTest1",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MccRPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}

{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DoTest",
"cacheNodeName": "MccRPTest1",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MccRPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MCCTPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "DOTest",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MCCTPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MCCTPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"api-version": "2019-12-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest2",
"name": "MCCTPTest2",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/cacheNodes/MccRPTest1",
"name": "MCCTPTest1",
"type": "Microsoft.ConnectedCache/cacheNodes",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Loading

0 comments on commit 0a09c1d

Please sign in to comment.