Skip to content

Commit

Permalink
VMware by Virtustream API 2019-08-09-preview (Azure#8296)
Browse files Browse the repository at this point in the history
* 2019-08-09-preview

* spell out networks

* username and credential needed to add an IdentitySource

* post listAdminCredentials

* standardize on username, password, nsxt and vcenter

* add nsxt to custom-words.txt

* default cluster does not have provisioningState

* it extends DefaultClusterProperties

* add Circuit expressRoutePrivatePeeringID

* back out some minor changes for sdk generation

* identitySources and Circuit authorizations are updateable

* add PrivateClouds_ListInSubscription

* Long running operation for Clusters_Delete (#1)

* npm run prettier

* location for all resources (Azure#2)

* Revert "location for all resources (Azure#2)" (Azure#3)

This reverts commit 432e37b.

* add description TODOs

* example is PrivateClouds_Update

* require body in PrivateClouds_Update

* replaced TODOs with descriptions

* spellcheck

* "x-ms-secret": true

* Revert ""x-ms-secret": true"

This reverts commit 3358dff.

Co-authored-by: Andrew Ulliani <aulliani@yahoo.com>
Co-authored-by: Eugene Tolmachev <e.tolmachev@gmail.com>
  • Loading branch information
3 people authored Feb 21, 2020
1 parent 5d0c51b commit f9af8f5
Show file tree
Hide file tree
Showing 18 changed files with 1,852 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,7 @@ notstarted
nouploadcache
nsdname
nsku
nsxt
ntext
ntlm
numrecords
Expand Down Expand Up @@ -1598,6 +1599,7 @@ vaultusages
vcenter
Vcore
Vcores
vcsa
Vertica
Vfyc
vhds
Expand All @@ -1610,6 +1612,7 @@ virtualmachines
virtualnetworkgateways
virtualnetworkrules
virtualnetworks
Virtustream
viruela
visualsearch
visualstudio
Expand All @@ -1621,6 +1624,7 @@ vmextension
VMILR
vmimage
vmname
vmotion
VMQS
vmsizes
VMSS
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1",
"cluster": {
"properties": {
"clusterSize": 3
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 3,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center"
],
"provisioningState": "Updating"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 3,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center"
],
"provisioningState": "Updating"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2019-08-09-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,28 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 4,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center",
"fakehost25.nyc1.kubernetes.center"
],
"provisioningState": "Updating"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 3,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center"
],
"provisioningState": "Succeeded"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"clusterName": "cluster1",
"cluster": {
"properties": {
"clusterSize": 4
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 4,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center",
"fakehost25.nyc1.kubernetes.center"
],
"provisioningState": "Updating"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1/clusters/cluster1",
"name": "cluster1",
"properties": {
"clusterSize": 4,
"hosts": [
"fakehost22.nyc1.kubernetes.center",
"fakehost23.nyc1.kubernetes.center",
"fakehost24.nyc1.kubernetes.center",
"fakehost25.nyc1.kubernetes.center"
],
"provisioningState": "Updating"
},
"type": "Microsoft.VMwareVirtustream/privateClouds/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2019-08-09-preview"
},
"responses": {
"200": {
"body": [
{
"display": {
"description": "Creates a private cloud",
"operation": "Create Private Cloud",
"provider": "VMware Solution by Virtustream",
"resource": "Private Cloud"
},
"name": "Microsoft.VMwareVirtustream/privateClouds/create",
"origin": "user,system"
}
],
"nextLink": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1",
"privateCloud": {
"location": "eastus2",
"properties": {
"cluster": {
"clusterSize": 4
}
},
"tags": {}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1",
"location": "eastus2",
"name": "cloud1",
"properties": {
"circuit": {
"authorizations": [],
"expressRouteID": "/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect",
"primarySubnet": "192.168.53.0/30",
"secondarySubnet": "192.168.53.4/30"
},
"cluster": {
"clusterId": 1,
"clusterSize": 4,
"hosts": [
"fakehost18.nyc1.kubernetes.center",
"fakehost19.nyc1.kubernetes.center",
"fakehost20.nyc1.kubernetes.center",
"fakehost21.nyc1.kubernetes.center"
]
},
"clusters": [],
"endpoints": {
"nsxtManager": "https://192.168.50.3/",
"vcsa": "https://192.168.50.2/"
},
"identitySources": [
{
"alias": "groupAlias",
"baseGroupDN": "ou=baseGroup",
"baseUserDN": "ou=baseUser",
"domain": "domain1",
"name": "group1",
"primaryServer": "ldaps://1.1.1.1:636/",
"secondaryServer": "ldaps://1.1.1.2:636/",
"ssl": "Enabled"
}
],
"internet": "Disabled",
"provisioningState": "Updating"
},
"tags": {},
"type": "Microsoft.VMwareVirtustream/privateClouds"
}
},
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.VMwareVirtustream/privateClouds/cloud1",
"location": "eastus2",
"name": "cloud1",
"properties": {
"circuit": {
"authorizations": [],
"expressRouteID": "/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect",
"primarySubnet": "192.168.53.0/30",
"secondarySubnet": "192.168.53.4/30",
"expressRoutePrivatePeeringID": "/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"
},
"cluster": {
"clusterId": 1,
"clusterSize": 4,
"hosts": [
"fakehost18.nyc1.kubernetes.center",
"fakehost19.nyc1.kubernetes.center",
"fakehost20.nyc1.kubernetes.center",
"fakehost21.nyc1.kubernetes.center"
]
},
"clusters": [],
"endpoints": {
"nsxtManager": "https://192.168.50.3/",
"vcsa": "https://192.168.50.2/"
},
"identitySources": [
{
"alias": "groupAlias",
"baseGroupDN": "ou=baseGroup",
"baseUserDN": "ou=baseUser",
"domain": "domain1",
"name": "group1",
"primaryServer": "ldaps://1.1.1.1:636/",
"secondaryServer": "ldaps://1.1.1.2:636/",
"ssl": "Enabled"
}
],
"internet": "Disabled",
"provisioningState": "Updating"
},
"tags": {},
"type": "Microsoft.VMwareVirtustream/privateClouds"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2019-08-09-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Loading

0 comments on commit f9af8f5

Please sign in to comment.