v20231122

package
v0.0.0-...-65499d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2023-11-22"

APIVersion contains a version string as it will be used by clients

Variables

This section is empty.

Functions

func ExampleMachinePoolListResponse

func ExampleMachinePoolListResponse() interface{}

func ExampleMachinePoolPatchParameter

func ExampleMachinePoolPatchParameter() interface{}

func ExampleMachinePoolPutParameter

func ExampleMachinePoolPutParameter() interface{}

func ExampleMachinePoolResponse

func ExampleMachinePoolResponse() interface{}

func ExampleOpenShiftClusterAdminKubeconfigResponse

func ExampleOpenShiftClusterAdminKubeconfigResponse() interface{}

ExampleOpenShiftClusterAdminKubeconfigResponse returns an example OpenShiftClusterAdminKubeconfig object that the RP might return to an end-user

func ExampleOpenShiftClusterCredentialsResponse

func ExampleOpenShiftClusterCredentialsResponse() interface{}

ExampleOpenShiftClusterCredentialsResponse returns an example OpenShiftClusterCredentials object that the RP might return to an end-user

func ExampleOpenShiftClusterGetResponse

func ExampleOpenShiftClusterGetResponse() interface{}

ExampleOpenShiftClusterResponse returns an example OpenShiftCluster object that the RP might return to an end-user in a GET response

func ExampleOpenShiftClusterListResponse

func ExampleOpenShiftClusterListResponse() interface{}

ExampleOpenShiftClusterListResponse returns an example OpenShiftClusterList object that the RP might return to an end-user

func ExampleOpenShiftClusterPatchParameter

func ExampleOpenShiftClusterPatchParameter() interface{}

ExampleOpenShiftClusterPatchParameter returns an example OpenShiftCluster object that an end-user might send to create a cluster in a PATCH request

func ExampleOpenShiftClusterPutOrPatchResponse

func ExampleOpenShiftClusterPutOrPatchResponse() interface{}

ExampleOpenShiftClusterResponse returns an example OpenShiftCluster object that the RP might return to an end-user in a PUT/PATCH response

func ExampleOpenShiftClusterPutParameter

func ExampleOpenShiftClusterPutParameter() interface{}

ExampleOpenShiftClusterPutParameter returns an example OpenShiftCluster object that an end-user might send to create a cluster in a PUT request

func ExampleOpenShiftVersionListResponse

func ExampleOpenShiftVersionListResponse() interface{}

func ExampleOpenShiftVersionResponse

func ExampleOpenShiftVersionResponse() interface{}

func ExampleSecretListResponse

func ExampleSecretListResponse() interface{}

func ExampleSecretPatchParameter

func ExampleSecretPatchParameter() interface{}

func ExampleSecretPutParameter

func ExampleSecretPutParameter() interface{}

func ExampleSecretResponse

func ExampleSecretResponse() interface{}

func ExampleSyncIdentityProviderListResponse

func ExampleSyncIdentityProviderListResponse() interface{}

func ExampleSyncIdentityProviderPatchParameter

func ExampleSyncIdentityProviderPatchParameter() interface{}

func ExampleSyncIdentityProviderPutParameter

func ExampleSyncIdentityProviderPutParameter() interface{}

func ExampleSyncIdentityProviderResponse

func ExampleSyncIdentityProviderResponse() interface{}

func ExampleSyncSetListResponse

func ExampleSyncSetListResponse() interface{}

func ExampleSyncSetPatchParameter

func ExampleSyncSetPatchParameter() interface{}

func ExampleSyncSetPutParameter

func ExampleSyncSetPutParameter() interface{}

func ExampleSyncSetResponse

func ExampleSyncSetResponse() interface{}

Types

type APIServerProfile

type APIServerProfile struct {
	// API server visibility.
	Visibility Visibility `json:"visibility,omitempty"`

	// The URL to access the cluster API server.
	URL string `json:"url,omitempty" swagger:"readOnly"`

	// The IP of the cluster API server.
	IP string `json:"ip,omitempty" swagger:"readOnly"`
}

APIServerProfile represents an API server profile.

type ClusterProfile

type ClusterProfile struct {
	// The pull secret for the cluster.
	PullSecret string `json:"pullSecret,omitempty"`

	// The domain for the cluster.
	Domain string `json:"domain,omitempty"`

	// The version of the cluster.
	Version string `json:"version,omitempty"`

	// The ID of the cluster resource group.
	ResourceGroupID string `json:"resourceGroupId,omitempty"`

	// If FIPS validated crypto modules are used
	FipsValidatedModules FipsValidatedModules `json:"fipsValidatedModules,omitempty"`
}

ClusterProfile represents a cluster profile.

type ConsoleProfile

type ConsoleProfile struct {
	// The URL to access the cluster console.
	URL string `json:"url,omitempty" swagger:"readOnly"`
}

ConsoleProfile represents a console profile.

type CreatedByType

type CreatedByType string

CreatedByType by defines user type, which executed the request

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

type EffectiveOutboundIP

type EffectiveOutboundIP ResourceReference

EffectiveOutboundIP represents an effective outbound IP resource of the cluster public load balancer.

type EncryptionAtHost

type EncryptionAtHost string

EncryptionAtHost represents encryption at host state

const (
	EncryptionAtHostEnabled  EncryptionAtHost = "Enabled"
	EncryptionAtHostDisabled EncryptionAtHost = "Disabled"
)

EncryptionAtHost constants

type FipsValidatedModules

type FipsValidatedModules string

FipsValidatedModules determines if FIPS is used.

const (
	FipsValidatedModulesEnabled  FipsValidatedModules = "Enabled"
	FipsValidatedModulesDisabled FipsValidatedModules = "Disabled"
)

FipsValidatedModules constants.

type IngressProfile

type IngressProfile struct {
	// The ingress profile name.
	Name string `json:"name,omitempty"`

	// Ingress visibility.
	Visibility Visibility `json:"visibility,omitempty"`

	// The IP of the ingress.
	IP string `json:"ip,omitempty" swagger:"readOnly"`
}

IngressProfile represents an ingress profile.

type LoadBalancerProfile

type LoadBalancerProfile struct {
	// The desired managed outbound IPs for the cluster public load balancer.
	ManagedOutboundIPs *ManagedOutboundIPs `json:"managedOutboundIps,omitempty" mutable:"true"`
	// The list of effective outbound IP addresses of the public load balancer.
	EffectiveOutboundIPs []EffectiveOutboundIP `json:"effectiveOutboundIps,omitempty" swagger:"readOnly"`
}

LoadBalancerProfile represents the profile of the cluster public load balancer.

type MachinePool

type MachinePool struct {

	// The Resource ID.
	ID string `json:"id,omitempty"`

	// The resource name.
	Name string `json:"name,omitempty"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// SystemData metadata relating to this resource.
	SystemData *SystemData `json:"systemData,omitempty"`

	// The MachinePool Properties
	Properties MachinePoolProperties `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

MachinePool represents a MachinePool

type MachinePoolList

type MachinePoolList struct {
	// The list of Machine Pools.
	MachinePools []*MachinePool `json:"value"`

	// The link used to get the next page of operations.
	NextLink string `json:"nextLink,omitempty"`
}

MachinePoolList represents a list of MachinePools

type MachinePoolProperties

type MachinePoolProperties struct {
	Resources string `json:"resources,omitempty"`
}

MachinePoolProperties represents the properties of a MachinePool

type ManagedOutboundIPs

type ManagedOutboundIPs struct {
	// Count represents the desired number of IPv4 outbound IPs created and managed by Azure for the cluster public load balancer.  Allowed values are in the range of 1 - 20.  The default value is 1.
	Count int `json:"count,omitempty"`
}

ManagedOutboundIPs represents the desired managed outbound IPs for the cluster public load balancer.

type MasterProfile

type MasterProfile struct {
	// The size of the master VMs.
	VMSize VMSize `json:"vmSize,omitempty"`

	// The Azure resource ID of the master subnet.
	SubnetID string `json:"subnetId,omitempty"`

	// Whether master virtual machines are encrypted at host.
	EncryptionAtHost EncryptionAtHost `json:"encryptionAtHost,omitempty"`

	// The resource ID of an associated DiskEncryptionSet, if applicable.
	DiskEncryptionSetID string `json:"diskEncryptionSetId,omitempty"`
}

MasterProfile represents a master profile.

type NetworkProfile

type NetworkProfile struct {
	// The CIDR used for OpenShift/Kubernetes Pods.
	PodCIDR string `json:"podCidr,omitempty"`

	// The CIDR used for OpenShift/Kubernetes Services.
	ServiceCIDR string `json:"serviceCidr,omitempty"`

	// The OutboundType used for egress traffic.
	OutboundType OutboundType `json:"outboundType,omitempty"`

	// The cluster load balancer profile.
	LoadBalancerProfile *LoadBalancerProfile `json:"loadBalancerProfile,omitempty"`

	// Specifies whether subnets are pre-attached with an NSG
	PreconfiguredNSG PreconfiguredNSG `json:"preconfiguredNSG,omitempty"`
}

NetworkProfile represents a network profile.

type OpenShiftCluster

type OpenShiftCluster struct {
	// The resource ID.
	ID string `json:"id,omitempty" mutable:"case"`

	// The resource name.
	Name string `json:"name,omitempty" mutable:"case"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// The resource location.
	Location string `json:"location,omitempty"`

	// SystemData - The system metadata relating to this resource
	SystemData *SystemData `json:"systemData,omitempty" swagger:"readOnly"`

	// The resource tags.
	Tags Tags `json:"tags,omitempty" mutable:"true"`

	// The cluster properties.
	Properties OpenShiftClusterProperties `json:"properties,omitempty"`
}

OpenShiftCluster represents an Azure Red Hat OpenShift cluster.

type OpenShiftClusterAdminKubeconfig

type OpenShiftClusterAdminKubeconfig struct {
	// The base64-encoded kubeconfig file.
	Kubeconfig []byte `json:"kubeconfig,omitempty"`
}

OpenShiftClusterAdminKubeconfig represents an OpenShift cluster's admin kubeconfig.

type OpenShiftClusterCredentials

type OpenShiftClusterCredentials struct {
	// The username for the kubeadmin user.
	KubeadminUsername string `json:"kubeadminUsername,omitempty"`

	// The password for the kubeadmin user.
	KubeadminPassword string `json:"kubeadminPassword,omitempty"`
}

OpenShiftClusterCredentials represents an OpenShift cluster's credentials.

type OpenShiftClusterList

type OpenShiftClusterList struct {
	// The list of OpenShift clusters.
	OpenShiftClusters []*OpenShiftCluster `json:"value"`

	// The link used to get the next page of operations.
	NextLink string `json:"nextLink,omitempty"`
}

OpenShiftClusterList represents a list of OpenShift clusters.

type OpenShiftClusterProperties

type OpenShiftClusterProperties struct {
	// The cluster provisioning state.
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`

	// The cluster profile.
	ClusterProfile ClusterProfile `json:"clusterProfile,omitempty"`

	// The console profile.
	ConsoleProfile ConsoleProfile `json:"consoleProfile,omitempty"`

	// The cluster service principal profile.
	ServicePrincipalProfile *ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"`

	// The cluster network profile.
	NetworkProfile NetworkProfile `json:"networkProfile,omitempty"`

	// The cluster master profile.
	MasterProfile MasterProfile `json:"masterProfile,omitempty"`

	// The cluster worker profiles.
	WorkerProfiles []WorkerProfile `json:"workerProfiles,omitempty"`

	// The cluster worker profiles status.
	WorkerProfilesStatus []WorkerProfile `json:"workerProfilesStatus,omitempty" swagger:"readOnly"`

	// The cluster API server profile.
	APIServerProfile APIServerProfile `json:"apiserverProfile,omitempty"`

	// The cluster ingress profiles.
	IngressProfiles []IngressProfile `json:"ingressProfiles,omitempty"`
}

OpenShiftClusterProperties represents an OpenShift cluster's properties.

type OpenShiftVersion

type OpenShiftVersion struct {

	// The ID for the resource.
	ID string `json:"id,omitempty" mutable:"case"`

	// Name of the resource.
	Name string `json:"name,omitempty" mutable:"case"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// The properties for the OpenShiftVersion resource.
	Properties OpenShiftVersionProperties `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

OpenShiftVersion represents an OpenShift version that can be installed.

type OpenShiftVersionList

type OpenShiftVersionList struct {
	// The List of available versions.
	OpenShiftVersions []*OpenShiftVersion `json:"value"`

	// Next Link to next operation.
	NextLink string `json:"nextLink,omitempty"`
}

OpenShiftVersionList represents a List of available versions.

type OpenShiftVersionProperties

type OpenShiftVersionProperties struct {
	// Version represents the version to create the cluster at.
	Version string `json:"version,omitempty"`
}

OpenShiftVersionProperties represents the properties of an OpenShiftVersion.

type OutboundType

type OutboundType string

The outbound routing strategy used to provide your cluster egress to the internet.

const (
	OutboundTypeUserDefinedRouting OutboundType = "UserDefinedRouting"
	OutboundTypeLoadbalancer       OutboundType = "Loadbalancer"
)

OutboundType constants.

type PreconfiguredNSG

type PreconfiguredNSG string

PreconfiguredNSG represents whether customers want to use their own NSG attached to the subnets

const (
	PreconfiguredNSGEnabled  PreconfiguredNSG = "Enabled"
	PreconfiguredNSGDisabled PreconfiguredNSG = "Disabled"
)

PreconfiguredNSG constants

type ProvisioningState

type ProvisioningState string

ProvisioningState represents a provisioning state.

const (
	ProvisioningStateCreating      ProvisioningState = "Creating"
	ProvisioningStateUpdating      ProvisioningState = "Updating"
	ProvisioningStateCanceled      ProvisioningState = "Canceled"
	ProvisioningStateAdminUpdating ProvisioningState = "AdminUpdating"
	ProvisioningStateDeleting      ProvisioningState = "Deleting"
	ProvisioningStateSucceeded     ProvisioningState = "Succeeded"
	ProvisioningStateFailed        ProvisioningState = "Failed"
)

ProvisioningState constants. TODO: ProvisioningStateCanceled is included to pass upstream CI. It is currently unused in ARO.

type ResourceReference

type ResourceReference struct {
	// The fully qualified Azure resource id of an IP address resource.
	ID string `json:"id,omitempty"`
}

ResourceReference represents a reference to an Azure resource.

type Secret

type Secret struct {

	// The Resource ID.
	ID string `json:"id,omitempty"`

	// The resource name.
	Name string `json:"name,omitempty"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// SystemData metadata relating to this resource.
	SystemData *SystemData `json:"systemData,omitempty"`

	// The Secret Properties
	Properties SecretProperties `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

Secret represents a secret.

type SecretList

type SecretList struct {
	// The list of secrets.
	Secrets []*Secret `json:"value"`

	// The link used to get the next page of operations.
	NextLink string `json:"nextLink,omitempty"`
}

SecretList represents a list of Secrets

type SecretProperties

type SecretProperties struct {
	// The Secrets Resources.
	SecretResources string `json:"secretResources,omitempty"`
}

SecretProperties represents the properties of a Secret

type ServicePrincipalProfile

type ServicePrincipalProfile struct {
	// The client ID used for the cluster.
	ClientID string `json:"clientId,omitempty" mutable:"true"`

	// The client secret used for the cluster.
	ClientSecret string `json:"clientSecret,omitempty" mutable:"true"`
}

ServicePrincipalProfile represents a service principal profile.

type SyncIdentityProvider

type SyncIdentityProvider struct {

	// The Resource ID.
	ID string `json:"id,omitempty"`

	// The resource name.
	Name string `json:"name,omitempty"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// SystemData metadata relating to this resource.
	SystemData *SystemData `json:"systemData,omitempty"`

	// The SyncIdentityProvider Properties
	Properties SyncIdentityProviderProperties `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

SyncIdentityProvider represents a SyncIdentityProvider

type SyncIdentityProviderList

type SyncIdentityProviderList struct {
	// The list of sync identity providers
	SyncIdentityProviders []*SyncIdentityProvider `json:"value"`

	// The link used to get the next page of operations.
	NextLink string `json:"nextLink,omitempty"`
}

SyncSetList represents a list of SyncSets

type SyncIdentityProviderProperties

type SyncIdentityProviderProperties struct {
	Resources string `json:"resources,omitempty"`
}

SyncSetProperties represents the properties of a SyncSet

type SyncSet

type SyncSet struct {

	// The resource ID.
	ID string `json:"id,omitempty" mutable:"case"`

	// The resource name.
	Name string `json:"name,omitempty" mutable:"case"`

	// The resource type.
	Type string `json:"type,omitempty" mutable:"case"`

	// SystemData metadata relating to this resource.
	SystemData *SystemData `json:"systemData,omitempty"`

	// The Syncsets properties
	Properties SyncSetProperties `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster.

type SyncSetList

type SyncSetList struct {
	// The list of syncsets.
	SyncSets []*SyncSet `json:"value"`

	// The link used to get the next page of operations.
	NextLink string `json:"nextLink,omitempty"`
}

SyncSetList represents a list of SyncSets

type SyncSetProperties

type SyncSetProperties struct {
	// Resources represents the SyncSets configuration.
	Resources string `json:"resources,omitempty"`
}

SyncSetProperties represents the properties of a SyncSet

type SystemData

type SystemData struct {
	// The identity that created the resource.
	CreatedBy string `json:"createdBy,omitempty"`
	// The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
	CreatedByType CreatedByType `json:"createdByType,omitempty"`
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// The identity that last modified the resource.
	LastModifiedBy string `json:"lastModifiedBy,omitempty"`
	// The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
	LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
	// The type of identity that last modified the resource.
	LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type Tags

type Tags map[string]string

Tags represents an OpenShift cluster's tags.

func (*Tags) UnmarshalJSON

func (t *Tags) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals tags. We override this to ensure that PATCH behaviour overwrites an existing tags map rather than endlessly adding to it

type VMSize

type VMSize string

VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc.), pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/en-us/azure/openshift/support-policies-v4#supported-virtual-machine-sizes

type Visibility

type Visibility string

Visibility represents visibility.

const (
	VisibilityPublic  Visibility = "Public"
	VisibilityPrivate Visibility = "Private"
)

Visibility constants

type WorkerProfile

type WorkerProfile struct {
	// The worker profile name.
	Name string `json:"name,omitempty"`

	// The size of the worker VMs.
	VMSize VMSize `json:"vmSize,omitempty"`

	// The disk size of the worker VMs.
	DiskSizeGB int `json:"diskSizeGB,omitempty"`

	// The Azure resource ID of the worker subnet.
	SubnetID string `json:"subnetId,omitempty"`

	// The number of worker VMs.
	Count int `json:"count,omitempty"`

	// Whether master virtual machines are encrypted at host.
	EncryptionAtHost EncryptionAtHost `json:"encryptionAtHost,omitempty"`

	// The resource ID of an associated DiskEncryptionSet, if applicable.
	DiskEncryptionSetID string `json:"diskEncryptionSetId,omitempty"`
}

WorkerProfile represents a worker profile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL