Skip to content

Commit

Permalink
Adding 2019-04-01 API version for Microsoft.DevSpaces RP (#5713)
Browse files Browse the repository at this point in the history
* Adding old spec and examples

* Adding 2019-04-01 API version

* Fix readmes for SDK

* Add missing response code in swagger example
  • Loading branch information
sanar-microsoft authored and shahabhijeet committed Apr 24, 2019
1 parent 9ecab14 commit 244a827
Show file tree
Hide file tree
Showing 12 changed files with 1,083 additions and 6 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"location": "eastus",
"containerHostMapping": {
"containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
},
"responses": {
"200": {
"body": {
"containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster",
"mappedControllerResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myController"
}
},
"204": { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"name": "myControllerResource",
"controller": {
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"targetContainerHostCredentialsBase64": "QmFzZTY0IEVuY29kZWQgVmFsdWUK",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"hostSuffix": "suffix.azds.io",
"dataPlaneFqdn": "dataplane.azds.io",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Creating",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"name": "myControllerResource"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevSpaces/operationresults/00000000-0000-0000-0000-000000000000"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"name": "myControllerResource"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"hostSuffix": "suffix.azds.io",
"dataPlaneFqdn": "dataplane.azds.io",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"hostSuffix": "suffix.azds.io",
"dataPlaneFqdn": "dataplane.azds.io",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"name": "myControllerResource",
"listConnectionDetailsParameters": {
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
},
"responses": {
"200": {
"body": {
"connectionDetailsList": [
{
"orchestratorSpecificConnectionDetails": {
"instanceType": "Kubernetes",
"kubeConfig": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"hostSuffix": "suffix.azds.io",
"dataPlaneFqdn": "dataplane.azds.io",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"name": "myControllerResource",
"controllerUpdateParameters": {
"tags": {
"key": "value"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource",
"name": "myControllerResource",
"type": "Microsoft.DevSpaces/controllers",
"location": "eastus",
"tags": {
"key": "value"
},
"sku": {
"name": "S1",
"tier": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"hostSuffix": "suffix.azds.io",
"dataPlaneFqdn": "dataplane.azds.io",
"targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
}
}
}
}
20 changes: 15 additions & 5 deletions specification/devspaces/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-06-01-preview
- tag: package-2019-04-01
- tag: package-2019-01-01-preview
- tag: package-2018-06-01-preview
```
### Tag: package-2018-06-01-preview and go
### Tag: package-2019-01-01-preview and go
These settings apply only when `--tag=package-2018-06-01-preview --go` is specified on the command line.
These settings apply only when `--tag=package-2019-04-01 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-06-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-06-01-preview/$(namespace)
``` yaml $(tag) == 'package-2019-04-01' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-04-01/$(namespace)
```

### Tag: package-2019-01-01-preview and go
Expand All @@ -33,4 +34,13 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s

``` yaml $(tag) == 'package-2019-01-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-01-01-preview/$(namespace)
```

### Tag: package-2018-06-01-preview and go

These settings apply only when `--tag=package-2018-06-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-06-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-06-01-preview/$(namespace)
```
11 changes: 10 additions & 1 deletion specification/devspaces/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ These are the global settings for the DevSpaces API.
title: DevSpacesManagementClient
description: Dev Spaces Client
openapi-type: arm
tag: package-2019-01-01-preview
tag: package-2019-04-01
```
### Tag: package-2019-04-01
These settings apply only when `--tag=package-2019-04-01` is specified on the command line.

``` yaml $(tag) == 'package-2019-04-01'
input-file:
- Microsoft.DevSpaces/stable/2019-04-01/devspaces.json
```

### Tag: package-2019-01-01-preview
Expand Down
2 changes: 2 additions & 0 deletions specification/devspaces/resource-manager/readme.nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ nodejs:
generate-license-txt: true
generate-package-json: true
generate-readme-md: true
input-file:
- Microsoft.DevSpaces/stable/2019-04-01/devspaces.json
```

0 comments on commit 244a827

Please sign in to comment.