forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure Red Hat OpenShift 2021 01 31 preview API (Azure#12144)
* Adds base for updating Microsoft.RedHatOpenShift from version stable/2020-04-30 to version 2021-01-31-preview * Updates readme * Updates API version in new specs and examples * update ARO v2021-01-31-preview changes * Add azureresourceschema * systemData
- Loading branch information
Mangirdas Judeikis
authored
Jan 12, 2021
1 parent
fc3091f
commit 561bb28
Showing
14 changed files
with
1,533 additions
and
5 deletions.
There are no files selected for viewing
162 changes: 162 additions & 0 deletions
162
...RedHatOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName", | ||
"parameters": { | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"clusterProfile": { | ||
"pullSecret": "{\"auths\":{\"registry.connect.redhat.com\":{\"auth\":\"\"},\"registry.redhat.io\":{\"auth\":\"\"}}}", | ||
"domain": "cluster.location.aroapp.io", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": {}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId", | ||
"clientSecret": "clientSecret" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName", | ||
"name": "resourceName", | ||
"type": "Microsoft.RedHatOpenShift/OpenShiftClusters", | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterProfile": { | ||
"domain": "cluster.location.aroapp.io", | ||
"version": "4.3.0", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": { | ||
"url": "https://console-openshift-console.apps.cluster.location.aroapp.io/" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public", | ||
"url": "https://api.cluster.location.aroapp.io:6443/", | ||
"ip": "1.2.3.4" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public", | ||
"ip": "1.2.3.4" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName", | ||
"name": "resourceName", | ||
"type": "Microsoft.RedHatOpenShift/OpenShiftClusters", | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterProfile": { | ||
"domain": "cluster.location.aroapp.io", | ||
"version": "4.3.0", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": { | ||
"url": "https://console-openshift-console.apps.cluster.location.aroapp.io/" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public", | ||
"url": "https://api.cluster.location.aroapp.io:6443/", | ||
"ip": "1.2.3.4" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public", | ||
"ip": "1.2.3.4" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...crosoft.RedHatOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
.../Microsoft.RedHatOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName", | ||
"name": "resourceName", | ||
"type": "Microsoft.RedHatOpenShift/OpenShiftClusters", | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterProfile": { | ||
"domain": "cluster.location.aroapp.io", | ||
"version": "4.3.0", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": { | ||
"url": "https://console-openshift-console.apps.cluster.location.aroapp.io/" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public", | ||
"url": "https://api.cluster.location.aroapp.io:6443/", | ||
"ip": "1.2.3.4" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public", | ||
"ip": "1.2.3.4" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...Microsoft.RedHatOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName", | ||
"name": "resourceName", | ||
"type": "Microsoft.RedHatOpenShift/OpenShiftClusters", | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterProfile": { | ||
"domain": "cluster.location.aroapp.io", | ||
"version": "4.3.0", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": { | ||
"url": "https://console-openshift-console.apps.cluster.location.aroapp.io/" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public", | ||
"url": "https://api.cluster.location.aroapp.io:6443/", | ||
"ip": "1.2.3.4" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public", | ||
"ip": "1.2.3.4" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...tOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_ListAdminKubeconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kubeconfig": "e319" | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...tOpenShift/preview/2021-01-31-preview/examples/OpenShiftClusters_ListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-01-31-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName", | ||
"name": "resourceName", | ||
"type": "Microsoft.RedHatOpenShift/OpenShiftClusters", | ||
"location": "location", | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterProfile": { | ||
"domain": "cluster.location.aroapp.io", | ||
"version": "4.3.0", | ||
"resourceGroupId": "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup" | ||
}, | ||
"consoleProfile": { | ||
"url": "https://console-openshift-console.apps.cluster.location.aroapp.io/" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientId" | ||
}, | ||
"networkProfile": { | ||
"podCidr": "10.128.0.0/14", | ||
"serviceCidr": "172.30.0.0/16" | ||
}, | ||
"masterProfile": { | ||
"vmSize": "Standard_D8s_v3", | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master" | ||
}, | ||
"workerProfiles": [ | ||
{ | ||
"name": "worker", | ||
"vmSize": "Standard_D2s_v3", | ||
"diskSizeGB": 128, | ||
"subnetId": "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker", | ||
"count": 3 | ||
} | ||
], | ||
"apiserverProfile": { | ||
"visibility": "Public", | ||
"url": "https://api.cluster.location.aroapp.io:6443/", | ||
"ip": "1.2.3.4" | ||
}, | ||
"ingressProfiles": [ | ||
{ | ||
"name": "default", | ||
"visibility": "Public", | ||
"ip": "1.2.3.4" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.