Skip to content

Commit

Permalink
add Microsoft.AVS 2020-03-20 API spec (Azure#9859)
Browse files Browse the repository at this point in the history
* add Microsot.AVS 2020-03-20 API spec

* fix spelling

* prettier

* empty object {} passed in to create

* multi-api for Java & Go

* prettier

* review preview for go

* mark properties required

* add tags to PrivateCloudUpdate
  • Loading branch information
cataggar authored and 00Kai0 committed Oct 12, 2020
1 parent 9f3c473 commit da46e10
Show file tree
Hide file tree
Showing 27 changed files with 2,808 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"authorizationName": "authorization1",
"authorization": {}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1",
"name": "authorization1",
"properties": {
"provisioningState": "Succeeded",
"expressRouteAuthorizationId": "/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth",
"expressRouteAuthorizationKey": "37b0db3b-3b17-4c7b-bf76-bf13b01bcadc"
},
"type": "Microsoft.AVS/privateClouds/authorizations"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1",
"name": "authorization1",
"properties": {
"provisioningState": "Updating"
},
"type": "Microsoft.AVS/privateClouds/authorizations"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"authorizationName": "authorization1"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"authorizationName": "authorization1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1",
"name": "authorization1",
"properties": {
"provisioningState": "Succeeded",
"expressRouteAuthorizationId": "/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth",
"expressRouteAuthorizationKey": "37b0db3b-3b17-4c7b-bf76-bf13b01bcadc"
},
"type": "Microsoft.AVS/privateClouds/authorizations"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1",
"name": "authorization1",
"properties": {
"provisioningState": "Succeeded",
"expressRouteAuthorizationId": "/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth",
"expressRouteAuthorizationKey": "37b0db3b-3b17-4c7b-bf76-bf13b01bcadc"
},
"type": "Microsoft.AVS/privateClouds/authorizations"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1",
"cluster": {
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 3
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 3,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center"
],
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 3,
"provisioningState": "Updating"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 4,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center",
"fakehost25.nyc1.kubernetes.center"
],
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 3,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center"
],
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1",
"clusterUpdate": {
"properties": {
"clusterSize": 4
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 4,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center",
"fakehost25.nyc1.kubernetes.center"
],
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"sku": {
"name": "AV20"
},
"properties": {
"clusterSize": 4,
"provisioningState": "Updating"
},
"type": "Microsoft.AVS/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"hcxEnterpriseSiteName": "site1",
"hcxEnterpriseSite": {}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1",
"name": "site1",
"properties": {
"activationKey": "0276EF1A9A1749A5A362BF73EA9F8D0D",
"status": "Available"
},
"type": "Microsoft.AVS/privateClouds/hcxEnterpriseSites"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1",
"name": "site1",
"properties": {
"activationKey": "0276EF1A9A1749A5A362BF73EA9F8D0D",
"status": "Available"
},
"type": "Microsoft.AVS/privateClouds/hcxEnterpriseSites"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"hcxEnterpriseSiteName": "site1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"hcxEnterpriseSiteName": "site1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1",
"name": "site1",
"properties": {
"activationKey": "0276EF1A9A1749A5A362BF73EA9F8D0D",
"status": "Available"
},
"type": "Microsoft.AVS/privateClouds/hcxEnterpriseSites"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2020-03-20",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1",
"name": "site1",
"properties": {
"activationKey": "0276EF1A9A1749A5A362BF73EA9F8D0D",
"status": "Available"
},
"type": "Microsoft.AVS/privateClouds/hcxEnterpriseSites"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"api-version": "2020-03-20",
"location": "eastus"
},
"responses": {
"200": {
"body": {
"hostsRemaining": {
"AV20": 0,
"AV36": 999
},
"quotaEnabled": "Enabled"
}
}
}
}
Loading

0 comments on commit da46e10

Please sign in to comment.