Skip to content

Commit

Permalink
Create a new version for Microsoft.ObjectStore swagger (#4776)
Browse files Browse the repository at this point in the history
* Remove 202 response from Microsoft.ObjectStore swagger

* Add new API Version 2021-09-01-preview

Add new API Version 2021-09-01-preview

* Update the new version in the swagger spec and examples

* Update ListByResourceGroup.json

* Addressed ARM feedback

* Update objectstore.json

* Update objectstore.json

* Add required properties to Operation

* Minor Fix for example json
  • Loading branch information
angogada authored Sep 10, 2021
1 parent c42e7f5 commit 1bf7720
Show file tree
Hide file tree
Showing 10 changed files with 777 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "resourceId",
"name": "sampleOSNamespaceResource",
"type": "Microsoft.ObjectStore/OSNamespaces",
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
],
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ObjectStore/OSNamespaces?api-version=2021-09-01-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "resourceId",
"name": "sampleOSNamespaceResource",
"type": "Microsoft.ObjectStore/OSNamespaces",
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
],
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ObjectStore/OSNamespaces?api-version=2021-09-01-preview&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2021-09-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ObjectStore/OSNamespaces/write",
"display": {
"provider": "Microsoft.ObjectStore",
"resource": "OSNamespaces",
"operation": "Write OSNamespace",
"description": "Write any OSNamespaces"
}
},
{
"name": "Microsoft.ObjectStore/OSNamespaces/read",
"display": {
"provider": "Microsoft.ObjectStore",
"resource": "OSNamespaces",
"operation": "Read OSNamespace",
"description": "Read any OSNamespaces"
}
},
{
"name": "Microsoft.ObjectStore/OSNamespaces/delete",
"display": {
"provider": "Microsoft.ObjectStore",
"resource": "OSNamespaces",
"operation": "Delete OSNamespace",
"description": "Delete any OSNamespaces"
}
},
{
"name": "Microsoft.ObjectStore/register/action",
"display": {
"provider": "Microsoft.ObjectStore",
"resource": "Microsoft.ObjectStore",
"operation": "Register the Microsoft.ObjectStore",
"description": "Register the Microsoft.ObjectStore"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"osNamespace": "sampleNamespaceResource",
"resourceGroupName": "rg1",
"api-version": "2021-09-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"osNamespace": "sampleOSNamespaceResource",
"resourceGroupName": "objectstoreClient",
"api-version": "2021-09-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"id": "resourceId",
"name": "sampleOSNamespaceResource",
"type": "Microsoft.ObjectStore/OSNamespaces",
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"osNamespace": "sampleNamespaceResource",
"resourceGroupName": "rg1",
"api-version": "2021-09-01-preview",
"subscriptionId": "subid",
"OSNamespaceParameters": {
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ObjectStore/OSNamespaces/sampleNamespaceResource",
"name": "sampleNamespaceResource",
"type": "Microsoft.ObjectStore/OSNamespaces",
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"osNamespace": "sampleNamespaceResource",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ObjectStore/OSNamespaces/sampleNamespaceResource",
"name": "sampleNamespaceResource",
"properties": {
"osNamespaceName": "sampleNamespaceName"
}
}
}
}
}
Loading

0 comments on commit 1bf7720

Please sign in to comment.