This commit is contained in:
Jim Minter 2020-12-02 12:08:45 -06:00
Родитель c19f4111cd
Коммит 184f35e3b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 0730CBDA10D1A2D3
31 изменённых файлов: 171 добавлений и 1545 удалений

Просмотреть файл

@ -1 +1,2 @@
d2e11a7924d0cbb70672fb0dd6b1a387ccaec8b97a6968adf5a1516d325374eb swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json
2f52e1bc8b90c095ed57470cf057ee3c6e1a60873749986192ba94ca7b714d4f swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json

Просмотреть файл

@ -22,7 +22,7 @@ clean:
find python -type d -name __pycache__ -delete
client: generate
hack/build-client.sh 2021-01-31-preview
hack/build-client.sh 2020-04-30 2021-01-31-preview
generate:
go generate ./...

Просмотреть файл

@ -1,9 +1,8 @@
#!/bin/bash
#!/bin/bash -e
function clean() {
local API_VERSION=$1
rm .sha256sum
local FOLDER=$2
rm -rf pkg/client/services/redhatopenshift/mgmt/"$API_VERSION"
mkdir pkg/client/services/redhatopenshift/mgmt/"$API_VERSION"
@ -13,21 +12,25 @@ function clean() {
}
function checksum() {
sha256sum swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/"$1"/redhatopenshift.json >> .sha256sum
local API_VERSION=$1
local FOLDER=$2
sha256sum swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json >> .sha256sum
}
function generate_golang() {
local API_VERSION=$1
local FOLDER=$2
sudo docker run \
--rm \
-v ${PWD}/pkg/client:/github.com/Azure/ARO-RP/pkg/client:z \
-v ${PWD}/swagger:/swagger:z \
-v $PWD/pkg/client:/github.com/Azure/ARO-RP/pkg/client:z \
-v $PWD/swagger:/swagger:z \
azuresdk/autorest \
--go \
--license-header=MICROSOFT_APACHE_NO_VERSION \
--namespace=redhatopenshift \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/"$API_VERSION"/redhatopenshift.json \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--output-folder=/github.com/Azure/ARO-RP/pkg/client/services/redhatopenshift/mgmt/"$API_VERSION"/redhatopenshift
sudo chown -R $(id -un):$(id -gn) pkg/client
@ -37,18 +40,19 @@ function generate_golang() {
function generate_python() {
local API_VERSION=$1
local FOLDER=$2
sudo docker run \
--rm \
-v ${PWD}/python/client:/python/client:z \
-v ${PWD}/swagger:/swagger:z \
-v $PWD/python/client:/python/client:z \
-v $PWD/swagger:/swagger:z \
azuresdk/autorest \
--use=@microsoft.azure/autorest.python@4.0.70 \
--python \
--azure-arm \
--license-header=MICROSOFT_APACHE_NO_VERSION \
--namespace=azure.mgmt.redhatopenshift.v"${API_VERSION//-/_}" \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/"$API_VERSION"/redhatopenshift.json \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--output-folder=/python/client
sudo chown -R $(id -un):$(id -gn) python/client
@ -57,10 +61,17 @@ function generate_python() {
}
for API in "$@"
rm -f .sha256sum
for API_VERSION in "$@"
do
clean "${API}"
checksum "${API}"
generate_golang "${API}"
generate_python "${API}"
FOLDER=stable
if [[ "$API_VERSION" =~ .*preview ]]; then
FOLDER=preview
fi
clean "$API_VERSION" "$FOLDER"
checksum "$API_VERSION" "$FOLDER"
generate_golang "$API_VERSION" "$FOLDER"
generate_python "$API_VERSION" "$FOLDER"
done

Просмотреть файл

@ -10,7 +10,7 @@ import (
)
func main() {
if err := swagger.Run(os.Args[1]); err != nil {
if err := swagger.Run(os.Args[1], os.Args[2]); err != nil {
panic(err)
}
}

Просмотреть файл

@ -0,0 +1,6 @@
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20200430 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2020-04-30
package v20200430
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
//go:generate go run ../../../hack/swagger ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20210131preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-01-31-preview
package v20210131preview

Просмотреть файл

@ -1,6 +1,6 @@
// Package redhatopenshift implements the Azure ARM Redhatopenshift service API version 2020-04-30.
//
// Rest API for Azure Red Hat OpenShift
// Rest API for Azure Red Hat OpenShift 4
package redhatopenshift
// Copyright (c) Microsoft and contributors. All rights reserved.

Просмотреть файл

@ -33,11 +33,11 @@ const fqdn = "github.com/Azure/ARO-RP/pkg/client/services/redhatopenshift/mgmt/2
// APIServerProfile aPIServerProfile represents an API server profile.
type APIServerProfile struct {
// Visibility - API server visibility (immutable). Possible values include: 'Private', 'Public'
// Visibility - API server visibility. Possible values include: 'Private', 'Public'
Visibility Visibility `json:"visibility,omitempty"`
// URL - The URL to access the cluster API server (immutable).
// URL - The URL to access the cluster API server.
URL *string `json:"url,omitempty"`
// IP - The IP of the cluster API server (immutable).
// IP - The IP of the cluster API server.
IP *string `json:"ip,omitempty"`
}
@ -73,19 +73,19 @@ type CloudErrorBody struct {
// ClusterProfile clusterProfile represents a cluster profile.
type ClusterProfile struct {
// PullSecret - The pull secret for the cluster (immutable).
// PullSecret - The pull secret for the cluster.
PullSecret *string `json:"pullSecret,omitempty"`
// Domain - The domain for the cluster (immutable).
// Domain - The domain for the cluster.
Domain *string `json:"domain,omitempty"`
// Version - The version of the cluster (immutable).
// Version - The version of the cluster.
Version *string `json:"version,omitempty"`
// ResourceGroupID - The ID of the cluster resource group (immutable).
// ResourceGroupID - The ID of the cluster resource group.
ResourceGroupID *string `json:"resourceGroupId,omitempty"`
}
// ConsoleProfile consoleProfile represents a console profile.
type ConsoleProfile struct {
// URL - The URL to access the cluster console (immutable).
// URL - The URL to access the cluster console.
URL *string `json:"url,omitempty"`
}
@ -103,27 +103,27 @@ type Display struct {
// IngressProfile ingressProfile represents an ingress profile.
type IngressProfile struct {
// Name - The ingress profile name. Must be "default" (immutable).
// Name - The ingress profile name.
Name *string `json:"name,omitempty"`
// Visibility - Ingress visibility (immutable). Possible values include: 'Visibility1Private', 'Visibility1Public'
// Visibility - Ingress visibility. Possible values include: 'Visibility1Private', 'Visibility1Public'
Visibility Visibility1 `json:"visibility,omitempty"`
// IP - The IP of the ingress (immutable).
// IP - The IP of the ingress.
IP *string `json:"ip,omitempty"`
}
// MasterProfile masterProfile represents a master profile.
type MasterProfile struct {
// VMSize - The size of the master VMs (immutable). Possible values include: 'StandardD16asV4', 'StandardD16sV3', 'StandardD2sV3', 'StandardD32asV4', 'StandardD32sV3', 'StandardD4asV4', 'StandardD4sV3', 'StandardD8asV4', 'StandardD8sV3', 'StandardE16sV3', 'StandardE32sV3', 'StandardE4sV3', 'StandardE8sV3', 'StandardF16sV2', 'StandardF32sV2', 'StandardF4sV2', 'StandardF8sV2'
// VMSize - The size of the master VMs. Possible values include: 'StandardD16asV4', 'StandardD16sV3', 'StandardD2sV3', 'StandardD32asV4', 'StandardD32sV3', 'StandardD4asV4', 'StandardD4sV3', 'StandardD8asV4', 'StandardD8sV3', 'StandardE16sV3', 'StandardE32sV3', 'StandardE4sV3', 'StandardE8sV3', 'StandardF16sV2', 'StandardF32sV2', 'StandardF4sV2', 'StandardF8sV2'
VMSize VMSize `json:"vmSize,omitempty"`
// SubnetID - The Azure resource ID of the master subnet (immutable).
// SubnetID - The Azure resource ID of the master subnet.
SubnetID *string `json:"subnetId,omitempty"`
}
// NetworkProfile networkProfile represents a network profile.
type NetworkProfile struct {
// PodCidr - The CIDR used for OpenShift/Kubernetes Pods (immutable).
// PodCidr - The CIDR used for OpenShift/Kubernetes Pods.
PodCidr *string `json:"podCidr,omitempty"`
// ServiceCidr - The CIDR used for OpenShift/Kubernetes Services (immutable).
// ServiceCidr - The CIDR used for OpenShift/Kubernetes Services.
ServiceCidr *string `json:"serviceCidr,omitempty"`
}
@ -228,12 +228,12 @@ func (osc *OpenShiftCluster) UnmarshalJSON(body []byte) error {
return nil
}
// OpenShiftClusterCredentials openShiftClusterCredentials represents an OpenShift cluster's credentials
// OpenShiftClusterCredentials openShiftClusterCredentials represents an OpenShift cluster's credentials.
type OpenShiftClusterCredentials struct {
autorest.Response `json:"-"`
// KubeadminUsername - The username for the kubeadmin user
// KubeadminUsername - The username for the kubeadmin user.
KubeadminUsername *string `json:"kubeadminUsername,omitempty"`
// KubeadminPassword - The password for the kubeadmin user
// KubeadminPassword - The password for the kubeadmin user.
KubeadminPassword *string `json:"kubeadminPassword,omitempty"`
}
@ -398,7 +398,7 @@ func NewOpenShiftClusterListPage(cur OpenShiftClusterList, getNextPage func(cont
// OpenShiftClusterProperties openShiftClusterProperties represents an OpenShift cluster's properties.
type OpenShiftClusterProperties struct {
// ProvisioningState - The cluster provisioning state (immutable). Possible values include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded', 'Updating'
// ProvisioningState - The cluster provisioning state. Possible values include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded', 'Updating'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ClusterProfile - The cluster profile.
ClusterProfile *ClusterProfile `json:"clusterProfile,omitempty"`
@ -744,9 +744,9 @@ type Resource struct {
// ServicePrincipalProfile servicePrincipalProfile represents a service principal profile.
type ServicePrincipalProfile struct {
// ClientID - The client ID used for the cluster (immutable).
// ClientID - The client ID used for the cluster.
ClientID *string `json:"clientId,omitempty"`
// ClientSecret - The client secret used for the cluster (immutable).
// ClientSecret - The client secret used for the cluster.
ClientSecret *string `json:"clientSecret,omitempty"`
}
@ -778,13 +778,13 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) {
// WorkerProfile workerProfile represents a worker profile.
type WorkerProfile struct {
// Name - The worker profile name. Must be "worker" (immutable).
// Name - The worker profile name.
Name *string `json:"name,omitempty"`
// VMSize - The size of the worker VMs (immutable). Possible values include: 'VMSize1StandardD16asV4', 'VMSize1StandardD16sV3', 'VMSize1StandardD2sV3', 'VMSize1StandardD32asV4', 'VMSize1StandardD32sV3', 'VMSize1StandardD4asV4', 'VMSize1StandardD4sV3', 'VMSize1StandardD8asV4', 'VMSize1StandardD8sV3', 'VMSize1StandardE16sV3', 'VMSize1StandardE32sV3', 'VMSize1StandardE4sV3', 'VMSize1StandardE8sV3', 'VMSize1StandardF16sV2', 'VMSize1StandardF32sV2', 'VMSize1StandardF4sV2', 'VMSize1StandardF8sV2'
// VMSize - The size of the worker VMs. Possible values include: 'VMSize1StandardD16asV4', 'VMSize1StandardD16sV3', 'VMSize1StandardD2sV3', 'VMSize1StandardD32asV4', 'VMSize1StandardD32sV3', 'VMSize1StandardD4asV4', 'VMSize1StandardD4sV3', 'VMSize1StandardD8asV4', 'VMSize1StandardD8sV3', 'VMSize1StandardE16sV3', 'VMSize1StandardE32sV3', 'VMSize1StandardE4sV3', 'VMSize1StandardE8sV3', 'VMSize1StandardF16sV2', 'VMSize1StandardF32sV2', 'VMSize1StandardF4sV2', 'VMSize1StandardF8sV2'
VMSize VMSize1 `json:"vmSize,omitempty"`
// DiskSizeGB - The disk size of the worker VMs. Must be 128 or greater (immutable).
// DiskSizeGB - The disk size of the worker VMs.
DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
// SubnetID - The Azure resource ID of the worker subnet (immutable).
// SubnetID - The Azure resource ID of the worker subnet.
SubnetID *string `json:"subnetId,omitempty"`
// Count - The number of worker VMs.
Count *int32 `json:"count,omitempty"`

Просмотреть файл

@ -27,7 +27,7 @@ import (
"github.com/Azure/go-autorest/tracing"
)
// OpenShiftClustersClient is the rest API for Azure Red Hat OpenShift
// OpenShiftClustersClient is the rest API for Azure Red Hat OpenShift 4
type OpenShiftClustersClient struct {
BaseClient
}
@ -44,8 +44,7 @@ func NewOpenShiftClustersClientWithBaseURI(baseURI string, subscriptionID string
return OpenShiftClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates a OpenShift cluster with the specified subscription, resource group and resource
// name. The operation returns properties of a OpenShift cluster.
// CreateOrUpdate the operation returns properties of a OpenShift cluster.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
// resourceName - the name of the OpenShift cluster resource.
@ -133,8 +132,7 @@ func (client OpenShiftClustersClient) CreateOrUpdateResponder(resp *http.Respons
return
}
// Delete deletes a OpenShift cluster with the specified subscription, resource group and resource name. The operation
// returns nothing.
// Delete the operation returns nothing.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
// resourceName - the name of the OpenShift cluster resource.
@ -218,8 +216,7 @@ func (client OpenShiftClustersClient) DeleteResponder(resp *http.Response) (resu
return
}
// Get gets a OpenShift cluster with the specified subscription, resource group and resource name. The operation
// returns properties of a OpenShift cluster.
// Get the operation returns properties of a OpenShift cluster.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
// resourceName - the name of the OpenShift cluster resource.
@ -304,8 +301,7 @@ func (client OpenShiftClustersClient) GetResponder(resp *http.Response) (result
return
}
// List lists OpenShift clusters in the specified subscription. The operation returns properties of each OpenShift
// cluster.
// List the operation returns properties of each OpenShift cluster.
func (client OpenShiftClustersClient) List(ctx context.Context) (result OpenShiftClusterListPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftClustersClient.List")
@ -422,8 +418,7 @@ func (client OpenShiftClustersClient) ListComplete(ctx context.Context) (result
return
}
// ListByResourceGroup lists OpenShift clusters in the specified subscription and resource group. The operation
// returns properties of each OpenShift cluster.
// ListByResourceGroup the operation returns properties of each OpenShift cluster.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
func (client OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result OpenShiftClusterListPage, err error) {
@ -547,8 +542,7 @@ func (client OpenShiftClustersClient) ListByResourceGroupComplete(ctx context.Co
return
}
// ListCredentials lists credentials of an OpenShift cluster with the specified subscription, resource group and
// resource name. The operation returns the credentials.
// ListCredentials the operation returns the credentials.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
// resourceName - the name of the OpenShift cluster resource.
@ -633,8 +627,7 @@ func (client OpenShiftClustersClient) ListCredentialsResponder(resp *http.Respon
return
}
// Update creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.
// The operation returns properties of a OpenShift cluster.
// Update the operation returns properties of a OpenShift cluster.
// Parameters:
// resourceGroupName - the name of the resource group. The name is case insensitive.
// resourceName - the name of the OpenShift cluster resource.

Просмотреть файл

@ -26,7 +26,7 @@ import (
"github.com/Azure/go-autorest/tracing"
)
// OperationsClient is the rest API for Azure Red Hat OpenShift
// OperationsClient is the rest API for Azure Red Hat OpenShift 4
type OperationsClient struct {
BaseClient
}
@ -42,7 +42,7 @@ func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) Opera
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// List lists all of the available RP operations. The operation returns the RP operations.
// List the operation returns the RP operations.
func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")

Просмотреть файл

@ -12,7 +12,7 @@ import (
"github.com/Azure/ARO-RP/pkg/util/stringutils"
)
func Run(outputDir string) error {
func Run(api, outputDir string) error {
s := &Swagger{
Swagger: "2.0",
Info: &Info{
@ -71,11 +71,13 @@ func Run(outputDir string) error {
populateExamples(s.Paths)
xmsEnumList := map[string]ModelAsString{
"VMSize": true,
xmsEnumList := map[string]struct{}{}
if api != "github.com/Azure/ARO-RP/pkg/api/v20200430" {
xmsEnumList["VMSize"] = struct{}{}
}
err := define(s.Definitions, "github.com/Azure/ARO-RP/pkg/api/v20200430", xmsEnumList, "OpenShiftClusterList", "OpenShiftClusterCredentials")
err := define(s.Definitions, api, xmsEnumList, "OpenShiftClusterList", "OpenShiftClusterCredentials")
if err != nil {
return err
}

Просмотреть файл

@ -22,10 +22,10 @@ type ModelAsString bool
type typeWalker struct {
pkg *packages.Package
enums map[types.Type][]interface{}
xmsEnumList map[string]ModelAsString
xmsEnumList map[string]struct{}
}
func newTypeWalker(pkgname string, xmsEnumList map[string]ModelAsString) (*typeWalker, error) {
func newTypeWalker(pkgname string, xmsEnumList map[string]struct{}) (*typeWalker, error) {
pkgs, err := packages.Load(&packages.Config{Mode: packages.NeedSyntax | packages.NeedTypes | packages.NeedTypesInfo}, pkgname)
if err != nil {
return nil, err
@ -161,7 +161,7 @@ func (tw *typeWalker) _define(definitions Definitions, t *types.Named) {
name := c[(len(c) - 1)]
if _, ok := tw.xmsEnumList[name]; ok {
s.XMSEnum = &XMSEnum{
ModelAsString: bool(tw.xmsEnumList[name]),
ModelAsString: true,
Name: name,
}
}
@ -183,7 +183,7 @@ func (tw *typeWalker) define(definitions Definitions, name string) {
}
// define adds a Definition for the named types in the given package
func define(definitions Definitions, pkgname string, xmsEnumList map[string]ModelAsString, names ...string) error {
func define(definitions Definitions, pkgname string, xmsEnumList map[string]struct{}, names ...string) error {
th, err := newTypeWalker(pkgname, xmsEnumList)
if err != nil {
return err

Просмотреть файл

@ -41,8 +41,8 @@ func NewOperationsClient(environment *azure.Environment, subscriptionID string,
client = redhatopenshift.NewOperationsClientWithBaseURI(environment.ResourceManagerEndpoint, subscriptionID)
client.Authorizer = authorizer
}
return &operationsClient{
OperationsClient: client,
}
}

Просмотреть файл

@ -29,7 +29,7 @@ from . import models
class AzureRedHatOpenShiftClient(SDKClient):
"""Rest API for Azure Red Hat OpenShift
"""Rest API for Azure Red Hat OpenShift 4
:ivar config: Configuration for client.
:vartype config: AzureRedHatOpenShiftClientConfiguration

Просмотреть файл

@ -26,13 +26,13 @@ from msrest.exceptions import HttpOperationError
class APIServerProfile(Model):
"""APIServerProfile represents an API server profile.
:param visibility: API server visibility (immutable). Possible values
include: 'Private', 'Public'
:param visibility: API server visibility. Possible values include:
'Private', 'Public'
:type visibility: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param url: The URL to access the cluster API server (immutable).
:param url: The URL to access the cluster API server.
:type url: str
:param ip: The IP of the cluster API server (immutable).
:param ip: The IP of the cluster API server.
:type ip: str
"""
@ -185,14 +185,13 @@ class CloudErrorBody(Model):
class ClusterProfile(Model):
"""ClusterProfile represents a cluster profile.
:param pull_secret: The pull secret for the cluster (immutable).
:param pull_secret: The pull secret for the cluster.
:type pull_secret: str
:param domain: The domain for the cluster (immutable).
:param domain: The domain for the cluster.
:type domain: str
:param version: The version of the cluster (immutable).
:param version: The version of the cluster.
:type version: str
:param resource_group_id: The ID of the cluster resource group
(immutable).
:param resource_group_id: The ID of the cluster resource group.
:type resource_group_id: str
"""
@ -214,7 +213,7 @@ class ClusterProfile(Model):
class ConsoleProfile(Model):
"""ConsoleProfile represents a console profile.
:param url: The URL to access the cluster console (immutable).
:param url: The URL to access the cluster console.
:type url: str
"""
@ -259,13 +258,13 @@ class Display(Model):
class IngressProfile(Model):
"""IngressProfile represents an ingress profile.
:param name: The ingress profile name. Must be "default" (immutable).
:param name: The ingress profile name.
:type name: str
:param visibility: Ingress visibility (immutable). Possible values
include: 'Private', 'Public'
:param visibility: Ingress visibility. Possible values include: 'Private',
'Public'
:type visibility: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param ip: The IP of the ingress (immutable).
:param ip: The IP of the ingress.
:type ip: str
"""
@ -285,15 +284,15 @@ class IngressProfile(Model):
class MasterProfile(Model):
"""MasterProfile represents a master profile.
:param vm_size: The size of the master VMs (immutable). Possible values
include: 'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
:param vm_size: The size of the master VMs. Possible values include:
'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
'Standard_D32as_v4', 'Standard_D32s_v3', 'Standard_D4as_v4',
'Standard_D4s_v3', 'Standard_D8as_v4', 'Standard_D8s_v3',
'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E4s_v3',
'Standard_E8s_v3', 'Standard_F16s_v2', 'Standard_F32s_v2',
'Standard_F4s_v2', 'Standard_F8s_v2'
:type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param subnet_id: The Azure resource ID of the master subnet (immutable).
:param subnet_id: The Azure resource ID of the master subnet.
:type subnet_id: str
"""
@ -311,10 +310,9 @@ class MasterProfile(Model):
class NetworkProfile(Model):
"""NetworkProfile represents a network profile.
:param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable).
:param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods.
:type pod_cidr: str
:param service_cidr: The CIDR used for OpenShift/Kubernetes Services
(immutable).
:param service_cidr: The CIDR used for OpenShift/Kubernetes Services.
:type service_cidr: str
"""
@ -392,9 +390,9 @@ class OpenShiftCluster(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives
:type location: str
:param provisioning_state: The cluster provisioning state (immutable).
Possible values include: 'AdminUpdating', 'Creating', 'Deleting',
'Failed', 'Succeeded', 'Updating'
:param provisioning_state: The cluster provisioning state. Possible values
include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded',
'Updating'
:type provisioning_state: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param cluster_profile: The cluster profile.
@ -463,9 +461,9 @@ class OpenShiftCluster(TrackedResource):
class OpenShiftClusterCredentials(Model):
"""OpenShiftClusterCredentials represents an OpenShift cluster's credentials.
:param kubeadmin_username: The username for the kubeadmin user
:param kubeadmin_username: The username for the kubeadmin user.
:type kubeadmin_username: str
:param kubeadmin_password: The password for the kubeadmin user
:param kubeadmin_password: The password for the kubeadmin user.
:type kubeadmin_password: str
"""
@ -485,9 +483,9 @@ class OpenShiftClusterUpdate(Model):
:param tags: The resource tags.
:type tags: dict[str, str]
:param provisioning_state: The cluster provisioning state (immutable).
Possible values include: 'AdminUpdating', 'Creating', 'Deleting',
'Failed', 'Succeeded', 'Updating'
:param provisioning_state: The cluster provisioning state. Possible values
include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded',
'Updating'
:type provisioning_state: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param cluster_profile: The cluster profile.
@ -604,9 +602,9 @@ class ProxyResource(Resource):
class ServicePrincipalProfile(Model):
"""ServicePrincipalProfile represents a service principal profile.
:param client_id: The client ID used for the cluster (immutable).
:param client_id: The client ID used for the cluster.
:type client_id: str
:param client_secret: The client secret used for the cluster (immutable).
:param client_secret: The client secret used for the cluster.
:type client_secret: str
"""
@ -624,20 +622,19 @@ class ServicePrincipalProfile(Model):
class WorkerProfile(Model):
"""WorkerProfile represents a worker profile.
:param name: The worker profile name. Must be "worker" (immutable).
:param name: The worker profile name.
:type name: str
:param vm_size: The size of the worker VMs (immutable). Possible values
include: 'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
:param vm_size: The size of the worker VMs. Possible values include:
'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
'Standard_D32as_v4', 'Standard_D32s_v3', 'Standard_D4as_v4',
'Standard_D4s_v3', 'Standard_D8as_v4', 'Standard_D8s_v3',
'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E4s_v3',
'Standard_E8s_v3', 'Standard_F16s_v2', 'Standard_F32s_v2',
'Standard_F4s_v2', 'Standard_F8s_v2'
:type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param disk_size_gb: The disk size of the worker VMs. Must be 128 or
greater (immutable).
:param disk_size_gb: The disk size of the worker VMs.
:type disk_size_gb: int
:param subnet_id: The Azure resource ID of the worker subnet (immutable).
:param subnet_id: The Azure resource ID of the worker subnet.
:type subnet_id: str
:param count: The number of worker VMs.
:type count: int

Просмотреть файл

@ -26,13 +26,13 @@ from msrest.exceptions import HttpOperationError
class APIServerProfile(Model):
"""APIServerProfile represents an API server profile.
:param visibility: API server visibility (immutable). Possible values
include: 'Private', 'Public'
:param visibility: API server visibility. Possible values include:
'Private', 'Public'
:type visibility: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param url: The URL to access the cluster API server (immutable).
:param url: The URL to access the cluster API server.
:type url: str
:param ip: The IP of the cluster API server (immutable).
:param ip: The IP of the cluster API server.
:type ip: str
"""
@ -185,14 +185,13 @@ class CloudErrorBody(Model):
class ClusterProfile(Model):
"""ClusterProfile represents a cluster profile.
:param pull_secret: The pull secret for the cluster (immutable).
:param pull_secret: The pull secret for the cluster.
:type pull_secret: str
:param domain: The domain for the cluster (immutable).
:param domain: The domain for the cluster.
:type domain: str
:param version: The version of the cluster (immutable).
:param version: The version of the cluster.
:type version: str
:param resource_group_id: The ID of the cluster resource group
(immutable).
:param resource_group_id: The ID of the cluster resource group.
:type resource_group_id: str
"""
@ -214,7 +213,7 @@ class ClusterProfile(Model):
class ConsoleProfile(Model):
"""ConsoleProfile represents a console profile.
:param url: The URL to access the cluster console (immutable).
:param url: The URL to access the cluster console.
:type url: str
"""
@ -259,13 +258,13 @@ class Display(Model):
class IngressProfile(Model):
"""IngressProfile represents an ingress profile.
:param name: The ingress profile name. Must be "default" (immutable).
:param name: The ingress profile name.
:type name: str
:param visibility: Ingress visibility (immutable). Possible values
include: 'Private', 'Public'
:param visibility: Ingress visibility. Possible values include: 'Private',
'Public'
:type visibility: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param ip: The IP of the ingress (immutable).
:param ip: The IP of the ingress.
:type ip: str
"""
@ -285,15 +284,15 @@ class IngressProfile(Model):
class MasterProfile(Model):
"""MasterProfile represents a master profile.
:param vm_size: The size of the master VMs (immutable). Possible values
include: 'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
:param vm_size: The size of the master VMs. Possible values include:
'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
'Standard_D32as_v4', 'Standard_D32s_v3', 'Standard_D4as_v4',
'Standard_D4s_v3', 'Standard_D8as_v4', 'Standard_D8s_v3',
'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E4s_v3',
'Standard_E8s_v3', 'Standard_F16s_v2', 'Standard_F32s_v2',
'Standard_F4s_v2', 'Standard_F8s_v2'
:type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param subnet_id: The Azure resource ID of the master subnet (immutable).
:param subnet_id: The Azure resource ID of the master subnet.
:type subnet_id: str
"""
@ -311,10 +310,9 @@ class MasterProfile(Model):
class NetworkProfile(Model):
"""NetworkProfile represents a network profile.
:param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable).
:param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods.
:type pod_cidr: str
:param service_cidr: The CIDR used for OpenShift/Kubernetes Services
(immutable).
:param service_cidr: The CIDR used for OpenShift/Kubernetes Services.
:type service_cidr: str
"""
@ -392,9 +390,9 @@ class OpenShiftCluster(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives
:type location: str
:param provisioning_state: The cluster provisioning state (immutable).
Possible values include: 'AdminUpdating', 'Creating', 'Deleting',
'Failed', 'Succeeded', 'Updating'
:param provisioning_state: The cluster provisioning state. Possible values
include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded',
'Updating'
:type provisioning_state: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param cluster_profile: The cluster profile.
@ -463,9 +461,9 @@ class OpenShiftCluster(TrackedResource):
class OpenShiftClusterCredentials(Model):
"""OpenShiftClusterCredentials represents an OpenShift cluster's credentials.
:param kubeadmin_username: The username for the kubeadmin user
:param kubeadmin_username: The username for the kubeadmin user.
:type kubeadmin_username: str
:param kubeadmin_password: The password for the kubeadmin user
:param kubeadmin_password: The password for the kubeadmin user.
:type kubeadmin_password: str
"""
@ -485,9 +483,9 @@ class OpenShiftClusterUpdate(Model):
:param tags: The resource tags.
:type tags: dict[str, str]
:param provisioning_state: The cluster provisioning state (immutable).
Possible values include: 'AdminUpdating', 'Creating', 'Deleting',
'Failed', 'Succeeded', 'Updating'
:param provisioning_state: The cluster provisioning state. Possible values
include: 'AdminUpdating', 'Creating', 'Deleting', 'Failed', 'Succeeded',
'Updating'
:type provisioning_state: str or
~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param cluster_profile: The cluster profile.
@ -604,9 +602,9 @@ class ProxyResource(Resource):
class ServicePrincipalProfile(Model):
"""ServicePrincipalProfile represents a service principal profile.
:param client_id: The client ID used for the cluster (immutable).
:param client_id: The client ID used for the cluster.
:type client_id: str
:param client_secret: The client secret used for the cluster (immutable).
:param client_secret: The client secret used for the cluster.
:type client_secret: str
"""
@ -624,20 +622,19 @@ class ServicePrincipalProfile(Model):
class WorkerProfile(Model):
"""WorkerProfile represents a worker profile.
:param name: The worker profile name. Must be "worker" (immutable).
:param name: The worker profile name.
:type name: str
:param vm_size: The size of the worker VMs (immutable). Possible values
include: 'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
:param vm_size: The size of the worker VMs. Possible values include:
'Standard_D16as_v4', 'Standard_D16s_v3', 'Standard_D2s_v3',
'Standard_D32as_v4', 'Standard_D32s_v3', 'Standard_D4as_v4',
'Standard_D4s_v3', 'Standard_D8as_v4', 'Standard_D8s_v3',
'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E4s_v3',
'Standard_E8s_v3', 'Standard_F16s_v2', 'Standard_F32s_v2',
'Standard_F4s_v2', 'Standard_F8s_v2'
:type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.enum
:param disk_size_gb: The disk size of the worker VMs. Must be 128 or
greater (immutable).
:param disk_size_gb: The disk size of the worker VMs.
:type disk_size_gb: int
:param subnet_id: The Azure resource ID of the worker subnet (immutable).
:param subnet_id: The Azure resource ID of the worker subnet.
:type subnet_id: str
:param count: The number of worker VMs.
:type count: int

Просмотреть файл

@ -55,8 +55,7 @@ class OpenShiftClustersOperations(object):
self, custom_headers=None, raw=False, **operation_config):
"""Lists OpenShift clusters in the specified subscription.
Lists OpenShift clusters in the specified subscription. The operation
returns properties of each OpenShift cluster.
The operation returns properties of each OpenShift cluster.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@ -125,8 +124,7 @@ class OpenShiftClustersOperations(object):
"""Lists OpenShift clusters in the specified subscription and resource
group.
Lists OpenShift clusters in the specified subscription and resource
group. The operation returns properties of each OpenShift cluster.
The operation returns properties of each OpenShift cluster.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
@ -199,9 +197,7 @@ class OpenShiftClustersOperations(object):
"""Gets a OpenShift cluster with the specified subscription, resource
group and resource name.
Gets a OpenShift cluster with the specified subscription, resource
group and resource name. The operation returns properties of a
OpenShift cluster.
The operation returns properties of a OpenShift cluster.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
@ -319,9 +315,7 @@ class OpenShiftClustersOperations(object):
"""Creates or updates a OpenShift cluster with the specified subscription,
resource group and resource name.
Creates or updates a OpenShift cluster with the specified subscription,
resource group and resource name. The operation returns properties of
a OpenShift cluster.
The operation returns properties of a OpenShift cluster.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
@ -414,8 +408,7 @@ class OpenShiftClustersOperations(object):
"""Deletes a OpenShift cluster with the specified subscription, resource
group and resource name.
Deletes a OpenShift cluster with the specified subscription, resource
group and resource name. The operation returns nothing.
The operation returns nothing.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
@ -512,9 +505,7 @@ class OpenShiftClustersOperations(object):
"""Creates or updates a OpenShift cluster with the specified subscription,
resource group and resource name.
Creates or updates a OpenShift cluster with the specified subscription,
resource group and resource name. The operation returns properties of
a OpenShift cluster.
The operation returns properties of a OpenShift cluster.
:param resource_group_name: The name of the resource group. The name
is case insensitive.
@ -569,9 +560,7 @@ class OpenShiftClustersOperations(object):
"""Lists credentials of an OpenShift cluster with the specified
subscription, resource group and resource name.
Lists credentials of an OpenShift cluster with the specified
subscription, resource group and resource name. The operation returns
the credentials.
The operation returns the credentials.
:param resource_group_name: The name of the resource group. The name
is case insensitive.

Просмотреть файл

@ -53,8 +53,7 @@ class Operations(object):
self, custom_headers=None, raw=False, **operation_config):
"""Lists all of the available RP operations.
Lists all of the available RP operations. The operation returns the RP
operations.
The operation returns the RP operations.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the

Просмотреть файл

@ -735,11 +735,7 @@
"Standard_F4s_v2",
"Standard_F8s_v2"
],
"type": "string",
"x-ms-enum": {
"name": "VMSize",
"modelAsString": true
}
"type": "string"
},
"Visibility": {
"description": "Visibility represents visibility.",

Просмотреть файл

@ -1,162 +0,0 @@
{
"parameters": {
"api-version": "2020-10-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"
}
]
}
}
}
}
}

Просмотреть файл

@ -1,12 +0,0 @@
{
"parameters": {
"api-version": "2020-10-31-preview",
"subscriptionId": "subscriptionId",
"resourceGroupName": "resourceGroup",
"resourceName": "resourceName"
},
"responses": {
"202": {},
"204": {}
}
}

Просмотреть файл

@ -1,64 +0,0 @@
{
"parameters": {
"api-version": "2020-10-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"
}
]
}
}
}
}
}

Просмотреть файл

@ -1,66 +0,0 @@
{
"parameters": {
"api-version": "2020-10-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"
}
]
}
}
]
}
}
}
}

Просмотреть файл

@ -1,67 +0,0 @@
{
"parameters": {
"api-version": "2020-10-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"
}
]
}
}
]
}
}
}
}

Просмотреть файл

@ -1,16 +0,0 @@
{
"parameters": {
"api-version": "2020-10-31-preview",
"subscriptionId": "subscriptionId",
"resourceGroupName": "resourceGroup",
"resourceName": "resourceName"
},
"responses": {
"200": {
"body": {
"kubeadminUsername": "kubeadmin",
"kubeadminPassword": "password"
}
}
}
}

Просмотреть файл

@ -1,161 +0,0 @@
{
"parameters": {
"api-version": "2020-10-31-preview",
"subscriptionId": "subscriptionId",
"resourceGroupName": "resourceGroup",
"resourceName": "resourceName",
"parameters": {
"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"
}
]
}
}
}
}
}

Просмотреть файл

@ -1,21 +0,0 @@
{
"parameters": {
"api-version": "2020-10-31-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.RedHatOpenShift/openShiftClusters/read",
"display": {
"provider": "Azure Red Hat OpenShift",
"resource": "openShiftClusters",
"operation": "Read OpenShift cluster"
}
}
]
}
}
}
}

Просмотреть файл

@ -1,796 +0,0 @@
{
"swagger": "2.0",
"info": {
"title": "Azure Red Hat OpenShift Client",
"description": "Rest API for Azure Red Hat OpenShift 4",
"version": "2020-10-31-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/providers/Microsoft.RedHatOpenShift/operations": {
"get": {
"tags": [
"Operations"
],
"summary": "Lists all of the available RP operations.",
"description": "The operation returns the RP operations.",
"operationId": "Operations_List",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationList"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Lists all of the available RP operations.": {
"$ref": "./examples/Operations_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters": {
"get": {
"tags": [
"OpenShiftClusters"
],
"summary": "Lists OpenShift clusters in the specified subscription.",
"description": "The operation returns properties of each OpenShift cluster.",
"operationId": "OpenShiftClusters_List",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftClusterList"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Lists OpenShift clusters in the specified subscription.": {
"$ref": "./examples/OpenShiftClusters_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters": {
"get": {
"tags": [
"OpenShiftClusters"
],
"summary": "Lists OpenShift clusters in the specified subscription and resource group.",
"description": "The operation returns properties of each OpenShift cluster.",
"operationId": "OpenShiftClusters_ListByResourceGroup",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftClusterList"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Lists OpenShift clusters in the specified subscription and resource group.": {
"$ref": "./examples/OpenShiftClusters_ListByResourceGroup.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}": {
"get": {
"tags": [
"OpenShiftClusters"
],
"summary": "Gets a OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "The operation returns properties of a OpenShift cluster.",
"operationId": "OpenShiftClusters_Get",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "The name of the OpenShift cluster resource.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Gets a OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_Get.json"
}
}
},
"put": {
"tags": [
"OpenShiftClusters"
],
"summary": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "The operation returns properties of a OpenShift cluster.",
"operationId": "OpenShiftClusters_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "The name of the OpenShift cluster resource.",
"required": true,
"type": "string"
},
{
"name": "parameters",
"in": "body",
"description": "The OpenShift cluster resource.",
"required": true,
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_CreateOrUpdate.json"
}
}
},
"delete": {
"tags": [
"OpenShiftClusters"
],
"summary": "Deletes a OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "The operation returns nothing.",
"operationId": "OpenShiftClusters_Delete",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "The name of the OpenShift cluster resource.",
"required": true,
"type": "string"
}
],
"responses": {
"202": {
"description": "Accepted"
},
"204": {
"description": "No Content"
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Deletes a OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_Delete.json"
}
}
},
"patch": {
"tags": [
"OpenShiftClusters"
],
"summary": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "The operation returns properties of a OpenShift cluster.",
"operationId": "OpenShiftClusters_Update",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "The name of the OpenShift cluster resource.",
"required": true,
"type": "string"
},
{
"name": "parameters",
"in": "body",
"description": "The OpenShift cluster resource.",
"required": true,
"schema": {
"$ref": "#/definitions/OpenShiftClusterUpdate"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_Update.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials": {
"post": {
"tags": [
"OpenShiftClusters"
],
"summary": "Lists credentials of an OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "The operation returns the credentials.",
"operationId": "OpenShiftClusters_ListCredentials",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "The name of the OpenShift cluster resource.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OpenShiftClusterCredentials"
}
},
"default": {
"description": "Error response describing why the operation failed. If the resource doesn't exist, 404 (Not Found) is returned. If any of the input parameters is wrong, 400 (Bad Request) is returned.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Lists credentials of an OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_ListCredentials.json"
}
}
}
}
},
"definitions": {
"APIServerProfile": {
"description": "APIServerProfile represents an API server profile.",
"properties": {
"visibility": {
"$ref": "#/definitions/Visibility",
"description": "API server visibility."
},
"url": {
"description": "The URL to access the cluster API server.",
"type": "string"
},
"ip": {
"description": "The IP of the cluster API server.",
"type": "string"
}
}
},
"CloudError": {
"description": "CloudError represents a cloud error.",
"properties": {
"error": {
"$ref": "#/definitions/CloudErrorBody",
"description": "An error response from the service."
}
}
},
"CloudErrorBody": {
"description": "CloudErrorBody represents the body of a cloud error.",
"properties": {
"code": {
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
"type": "string"
},
"message": {
"description": "A message describing the error, intended to be suitable for display in a user interface.",
"type": "string"
},
"target": {
"description": "The target of the particular error. For example, the name of the property in error.",
"type": "string"
},
"details": {
"description": "A list of additional details about the error.",
"type": "array",
"items": {
"$ref": "#/definitions/CloudErrorBody"
}
}
}
},
"ClusterProfile": {
"description": "ClusterProfile represents a cluster profile.",
"properties": {
"pullSecret": {
"description": "The pull secret for the cluster.",
"type": "string"
},
"domain": {
"description": "The domain for the cluster.",
"type": "string"
},
"version": {
"description": "The version of the cluster.",
"type": "string"
},
"resourceGroupId": {
"description": "The ID of the cluster resource group.",
"type": "string"
}
}
},
"ConsoleProfile": {
"description": "ConsoleProfile represents a console profile.",
"properties": {
"url": {
"description": "The URL to access the cluster console.",
"type": "string"
}
}
},
"Display": {
"description": "Display represents the display details of an operation.",
"properties": {
"provider": {
"description": "Friendly name of the resource provider.",
"type": "string"
},
"resource": {
"description": "Resource type on which the operation is performed.",
"type": "string"
},
"operation": {
"description": "Operation type: read, write, delete, listKeys/action, etc.",
"type": "string"
},
"description": {
"description": "Friendly name of the operation.",
"type": "string"
}
}
},
"IngressProfile": {
"description": "IngressProfile represents an ingress profile.",
"properties": {
"name": {
"description": "The ingress profile name.",
"type": "string"
},
"visibility": {
"$ref": "#/definitions/Visibility",
"description": "Ingress visibility."
},
"ip": {
"description": "The IP of the ingress.",
"type": "string"
}
}
},
"MasterProfile": {
"description": "MasterProfile represents a master profile.",
"properties": {
"vmSize": {
"$ref": "#/definitions/VMSize",
"description": "The size of the master VMs."
},
"subnetId": {
"description": "The Azure resource ID of the master subnet.",
"type": "string"
}
}
},
"NetworkProfile": {
"description": "NetworkProfile represents a network profile.",
"properties": {
"podCidr": {
"description": "The CIDR used for OpenShift/Kubernetes Pods.",
"type": "string"
},
"serviceCidr": {
"description": "The CIDR used for OpenShift/Kubernetes Services.",
"type": "string"
}
}
},
"OpenShiftCluster": {
"description": "OpenShiftCluster represents an Azure Red Hat OpenShift cluster.",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/OpenShiftClusterProperties",
"description": "The cluster properties.",
"x-ms-client-flatten": true
}
}
},
"OpenShiftClusterCredentials": {
"description": "OpenShiftClusterCredentials represents an OpenShift cluster's credentials.",
"properties": {
"kubeadminUsername": {
"description": "The username for the kubeadmin user.",
"type": "string"
},
"kubeadminPassword": {
"description": "The password for the kubeadmin user.",
"type": "string"
}
}
},
"OpenShiftClusterList": {
"description": "OpenShiftClusterList represents a list of OpenShift clusters.",
"properties": {
"value": {
"description": "The list of OpenShift clusters.",
"type": "array",
"items": {
"$ref": "#/definitions/OpenShiftCluster"
}
},
"nextLink": {
"description": "The link used to get the next page of operations.",
"type": "string"
}
}
},
"OpenShiftClusterProperties": {
"description": "OpenShiftClusterProperties represents an OpenShift cluster's properties.",
"properties": {
"provisioningState": {
"$ref": "#/definitions/ProvisioningState",
"description": "The cluster provisioning state."
},
"clusterProfile": {
"$ref": "#/definitions/ClusterProfile",
"description": "The cluster profile."
},
"consoleProfile": {
"$ref": "#/definitions/ConsoleProfile",
"description": "The console profile."
},
"servicePrincipalProfile": {
"$ref": "#/definitions/ServicePrincipalProfile",
"description": "The cluster service principal profile."
},
"networkProfile": {
"$ref": "#/definitions/NetworkProfile",
"description": "The cluster network profile."
},
"masterProfile": {
"$ref": "#/definitions/MasterProfile",
"description": "The cluster master profile."
},
"workerProfiles": {
"description": "The cluster worker profiles.",
"type": "array",
"items": {
"$ref": "#/definitions/WorkerProfile"
}
},
"apiserverProfile": {
"$ref": "#/definitions/APIServerProfile",
"description": "The cluster API server profile."
},
"ingressProfiles": {
"description": "The cluster ingress profiles.",
"type": "array",
"items": {
"$ref": "#/definitions/IngressProfile"
}
}
}
},
"OpenShiftClusterUpdate": {
"description": "OpenShiftCluster represents an Azure Red Hat OpenShift cluster.",
"properties": {
"tags": {
"$ref": "#/definitions/Tags",
"description": "The resource tags."
},
"properties": {
"$ref": "#/definitions/OpenShiftClusterProperties",
"description": "The cluster properties.",
"x-ms-client-flatten": true
}
}
},
"Operation": {
"description": "Operation represents an RP operation.",
"properties": {
"name": {
"description": "Operation name: {provider}/{resource}/{operation}.",
"type": "string"
},
"display": {
"$ref": "#/definitions/Display",
"description": "The object that describes the operation."
},
"origin": {
"description": "Sources of requests to this operation. Comma separated list with valid values user or system, e.g. \"user,system\".",
"type": "string"
}
}
},
"OperationList": {
"description": "OperationList represents an RP operation list.",
"properties": {
"value": {
"description": "List of operations supported by the resource provider.",
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
}
},
"nextLink": {
"description": "The link used to get the next page of operations.",
"type": "string"
}
}
},
"ProvisioningState": {
"description": "ProvisioningState represents a provisioning state.",
"enum": [
"AdminUpdating",
"Creating",
"Deleting",
"Failed",
"Succeeded",
"Updating"
],
"type": "string"
},
"ServicePrincipalProfile": {
"description": "ServicePrincipalProfile represents a service principal profile.",
"properties": {
"clientId": {
"description": "The client ID used for the cluster.",
"type": "string"
},
"clientSecret": {
"description": "The client secret used for the cluster.",
"type": "string"
}
}
},
"Tags": {
"description": "Tags represents an OpenShift cluster's tags.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"VMSize": {
"description": "VMSize represents a VM size.",
"enum": [
"Standard_D16as_v4",
"Standard_D16s_v3",
"Standard_D2s_v3",
"Standard_D32as_v4",
"Standard_D32s_v3",
"Standard_D4as_v4",
"Standard_D4s_v3",
"Standard_D8as_v4",
"Standard_D8s_v3",
"Standard_E16s_v3",
"Standard_E32s_v3",
"Standard_E4s_v3",
"Standard_E8s_v3",
"Standard_F16s_v2",
"Standard_F32s_v2",
"Standard_F4s_v2",
"Standard_F8s_v2"
],
"type": "string",
"x-ms-enum": {
"name": "VMSize",
"modelAsString": true
}
},
"Visibility": {
"description": "Visibility represents visibility.",
"enum": [
"Private",
"Public"
],
"type": "string"
},
"WorkerProfile": {
"description": "WorkerProfile represents a worker profile.",
"properties": {
"name": {
"description": "The worker profile name.",
"type": "string"
},
"vmSize": {
"$ref": "#/definitions/VMSize",
"description": "The size of the worker VMs."
},
"diskSizeGB": {
"description": "The disk size of the worker VMs.",
"type": "integer"
},
"subnetId": {
"description": "The Azure resource ID of the worker subnet.",
"type": "string"
},
"count": {
"description": "The number of worker VMs.",
"type": "integer"
}
}
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}

Просмотреть файл

@ -14,7 +14,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-04-30
- tag: package-2021-01-31
- tag: package-2021-01-31-preview
```
### Tag: package-2020-04-30 and go
@ -26,11 +26,11 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-30/$(namespace)
```
### Tag: package-2021-01-31 and go
### Tag: package-2021-01-31-preview and go
These settings apply only when `--tag=package-2021-01-31 --go` is specified on the command line.
These settings apply only when `--tag=package-2021-01-31-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
``` yaml $(tag) == 'package-2021-01-31' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-01-31/$(namespace)
``` yaml $(tag) == 'package-2021-01-31-preview' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-01-31-preview/$(namespace)
```

Просмотреть файл

@ -42,7 +42,7 @@ input-file:
These settings apply only when `--tag=package-2021-01-31-preview` is specified on the command line.
``` yaml $(tag) == 'package-2021-01-31'
``` yaml $(tag) == 'package-2021-01-31-preview'
input-file:
- Microsoft.RedHatOpenShift/preview/2021-01-31-preview/redhatopenshift.json
```

Просмотреть файл

@ -19,7 +19,7 @@ Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
batch:
- tag: package-2020-04-30
- tag: package-2020-01-31
- tag: package-2021-01-31-preview
```
### Tag: package-2020-04-30 and python
@ -33,13 +33,13 @@ python:
output-folder: $(python-sdks-folder)/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30
```
### Tag: package-2021-01-31 and python
### Tag: package-2021-01-31-preview and python
These settings apply only when `--tag=package-2021-01-31 --python` is specified on the command line.
These settings apply only when `--tag=package-2021-01-31-preview --python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
``` yaml $(tag) == 'package-2021-01-31' && $(python)
``` yaml $(tag) == 'package-2021-01-31-preview' && $(python)
python:
namespace: azure.mgmt.redhatopenshift.v2021_01_31
output-folder: $(python-sdks-folder)/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_01_31
namespace: azure.mgmt.redhatopenshift.v2021_01_31_preview
output-folder: $(python-sdks-folder)/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_01_31_preview
```