-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Red Hat OpenShift 2021-09-01-preview (#15616)
* 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 * update swagger * update readme * drop breaking change * Add systemData * s/ListAdminKubeconfig/ListAdminCredentials * update systemData examples * add object type * swap variable to preview * Merge branch 'dev-redhatopenshift-Microsoft.RedHatOpenShift-2021-01-31-preview' of github.com:mjudeikis/azure-rest-api-specs into dev-redhatopenshift-Microsoft.RedHatOpenShift-2021-01-31-preview * Expand SDN & x-ms-secrets tag * revert int format * add x-ms-enum to Enryption and Visibility
- Loading branch information
Mangirdas Judeikis
authored
Sep 8, 2021
1 parent
771d318
commit b9e1a57
Showing
13 changed files
with
1,622 additions
and
3 deletions.
There are no files selected for viewing
178 changes: 178 additions & 0 deletions
178
...RedHatOpenShift/preview/2021-09-01-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,178 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-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", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-03T01:01:01.1075056Z" | ||
}, | ||
"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", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-03T01:01:01.1075056Z" | ||
}, | ||
"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-09-01-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-09-01-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
.../Microsoft.RedHatOpenShift/preview/2021-09-01-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,72 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-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", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-03T01:01:01.1075056Z" | ||
}, | ||
"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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...Microsoft.RedHatOpenShift/preview/2021-09-01-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,74 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-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", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-03T01:01:01.1075056Z" | ||
}, | ||
"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
...OpenShift/preview/2021-09-01-preview/examples/OpenShiftClusters_ListAdminCredentials.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-09-01-preview", | ||
"subscriptionId": "subscriptionId", | ||
"resourceGroupName": "resourceGroup", | ||
"resourceName": "resourceName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kubeconfig": "e30=" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.