Skip to content

Commit

Permalink
AVS 2020-07-17-preview (#10866)
Browse files Browse the repository at this point in the history
* feature: Storage Policies contact: David Becher @thinkdavid
 feature: NSX DHCP/Segments & Port Mirroring contacts: Christian Pomales & Weronika Zamlynny & Rebekah Hess
 feature: Credential Rotation, contact: Chenghao Liu @cliu78
 feature: Global Reach, contact: James Spearman @jspearman3
 feature: Private Cloud Addons, contact @leedouglas

* feature: NSX DHCP/Segments & Port Mirroring contacts: Christian Pomales & Weronika Zamlynny & Rebekah Hess
feature: Credential Rotation, contact: Chenghao Liu @cliu78
feature: Global Reach, contact: James Spearman @jspearman3
feature: Private Cloud Addons, contact @leedouglas

* adjusted readme files to reflect new 2020-07-17-preview api

* fixed spelling validation issues

* preview was not specified in path, should fix go sdk validation error

* -preview left of in readme

* typo of preview and spelling  validation fix

* prettier run fixes

* updated swagger because storage policy now will not have the same display around minHosts

* storage policy changed to string

* Update spec

* Add 200 back to nsx patches

* Added 200 back to nsx deletes

* Add provisioningState to nsx models with async operations

* remove arc from api

* remove x-ms-secret for PrivateClouds_ListAdminCredentials

* fix correctness for Operations_list

* pub back x-ms-secret in AdminCredentials

* x-ms-secret on password

* PrivateCloudUpdate can update the resource tags

* Add GETs for gateway and virtual machine resources

* Add virtual machine GET

* Add gateway GET

* minor fixes

* Fixed autorest warnings related to nsx apis

* npx prettier --write specification/vmware/**/*.json

* fixed R2066 name warning

* rename example files as well

Co-authored-by: Christian Pomales <chpomale@microsoft.com>
Co-authored-by: Cameron Taggart <cameron.taggart@microsoft.com>
leedouglas/azure-rest-api-specs#5

* different solution to PUT empty body of `{}`

* default for internet is Disabled

* put flatten back
just need to upgrade pythong autorest to 5.x

* add provisioningState to ManagementCluster

* add readOnly storagePolicy to ManagementCluster

* remove storage policy

* removed all mentions of storage policy

* removed from createor update

* npx prettier --write specification/vmware/**/*.json

Co-authored-by: David Becher <dabecher@microsoft.com>
Co-authored-by: Cameron Taggart <cameron.taggart@microsoft.com>

* remove examples/DefaultStoragePolicies_List.json

* add Credential Rotation back in

* fully qualified vmware.json

Co-authored-by: David Becher <dabecher@microsoft.com>
Co-authored-by: Christian Pomales <chpomale@microsoft.com>
Co-authored-by: david becher <dab4au@virginia.edu>
Co-authored-by: Cameron Taggart <cameron.taggart@microsoft.com>
Co-authored-by: Cameron Taggart <cameron.taggart@gmail.com>
Co-authored-by: Christian Pomales <12565983+ChristianPomales@users.noreply.github.com>
  • Loading branch information
7 people authored Nov 10, 2020
1 parent e6c2ffd commit 5f6e365
Show file tree
Hide file tree
Showing 56 changed files with 6,471 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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-07-17-preview",
"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,45 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"globalReachConnectionName": "connection1",
"globalReachConnection": {
"properties": {
"peerExpressRouteCircuit": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer",
"authorizationKey": "01010101-0101-0101-0101-010101010101"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1",
"name": "connection1",
"properties": {
"addressPrefix": "10.2.3.16/29",
"authorizationKey": "01010101-0101-0101-0101-010101010101",
"circuitConnectionStatus": "Connected",
"peerExpressRouteCircuit": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer",
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/globalReachConnections"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1",
"name": "connection1",
"properties": {
"addressPrefix": "10.2.3.16/29",
"authorizationKey": "01010101-0101-0101-0101-010101010101",
"circuitConnectionStatus": "Connected",
"peerExpressRouteCircuit": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer",
"provisioningState": "Updating"
},
"type": "Microsoft.AVS/privateClouds/globalReachConnections"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"globalReachConnectionName": "connection1"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"globalReachConnectionName": "connection1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1",
"name": "connection1",
"properties": {
"addressPrefix": "10.2.3.16/29",
"authorizationKey": "01010101-0101-0101-0101-010101010101",
"circuitConnectionStatus": "Connected",
"peerExpressRouteCircuit": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer",
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/globalReachConnections"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1",
"name": "connection1",
"properties": {
"addressPrefix": "10.2.3.16/29",
"authorizationKey": "01010101-0101-0101-0101-010101010101",
"circuitConnectionStatus": "Connected",
"peerExpressRouteCircuit": "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer",
"provisioningState": "Succeeded"
},
"type": "Microsoft.AVS/privateClouds/globalReachConnections"
}
]
}
}
}
Loading

0 comments on commit 5f6e365

Please sign in to comment.