v1beta1

package
v0.0.0-...-67ec6ba Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the azure v1beta1 API group +kubebuilder:object:generate=true +groupName=azure.microsoft.com

Index

Constants

View Source
const (
	SqlDatabaseEditionBasic          = DBEdition(0)
	SqlDatabaseEditionDataWarehouse  = DBEdition(3)
	SqlDatabaseEditionFree           = DBEdition(4)
	SqlDatabaseEditionGeneralPurpose = DBEdition(5)
	SqlDatabaseEditionHyperscale     = DBEdition(6)
	SqlDatabaseEditionPremium        = DBEdition(7)
	SqlDatabaseEditionStandard       = DBEdition(9)
	SqlDatabaseEditionStretch        = DBEdition(10)
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "azure.microsoft.com", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ASOStatus

type ASOStatus struct {
	Provisioning       bool                `json:"provisioning,omitempty"`
	Provisioned        bool                `json:"provisioned,omitempty"`
	State              string              `json:"state,omitempty"`
	Message            string              `json:"message,omitempty"`
	ResourceId         string              `json:"resourceId,omitempty"`
	PollingURL         string              `json:"pollingUrl,omitempty"`
	PollingURLKind     *api.PollingURLKind `json:"pollingUrlKind,omitempty"`
	SpecHash           string              `json:"specHash,omitempty"`
	ContainsUpdate     bool                `json:"containsUpdate,omitempty"` // TODO: Unused, remove in future version
	RequestedAt        *metav1.Time        `json:"requested,omitempty"`
	CompletedAt        *metav1.Time        `json:"completed,omitempty"`
	FailedProvisioning bool                `json:"failedProvisioning,omitempty"`
	FlattenedSecrets   bool                `json:"flattenedSecrets,omitempty"`
	Output             string              `json:"output,omitempty"`
}

ASOStatus (AzureServiceOperatorsStatus) defines the observed state of resource actions

func (*ASOStatus) ClearPollingURL

func (s *ASOStatus) ClearPollingURL()

func (*ASOStatus) DeepCopy

func (in *ASOStatus) DeepCopy() *ASOStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASOStatus.

func (*ASOStatus) DeepCopyInto

func (in *ASOStatus) DeepCopyInto(out *ASOStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ASOStatus) SetFailedProvisioning

func (s *ASOStatus) SetFailedProvisioning(msg string)

func (*ASOStatus) SetPollingURL

func (s *ASOStatus) SetPollingURL(url string, kind api.PollingURLKind)

func (*ASOStatus) SetProvisioned

func (s *ASOStatus) SetProvisioned(msg string)

func (*ASOStatus) SetProvisioning

func (s *ASOStatus) SetProvisioning(msg string)

type AzureSqlDatabase

type AzureSqlDatabase struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureSqlDatabaseSpec `json:"spec,omitempty"`
	Status ASOStatus            `json:"status,omitempty"`
}

AzureSqlDatabase is the Schema for the azuresqldatabases API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:resource:shortName=asqldb +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"

func (*AzureSqlDatabase) DeepCopy

func (in *AzureSqlDatabase) DeepCopy() *AzureSqlDatabase

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlDatabase.

func (*AzureSqlDatabase) DeepCopyInto

func (in *AzureSqlDatabase) DeepCopyInto(out *AzureSqlDatabase)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlDatabase) DeepCopyObject

func (in *AzureSqlDatabase) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureSqlDatabase) HasFinalizer

func (s *AzureSqlDatabase) HasFinalizer(finalizerName string) bool

func (*AzureSqlDatabase) Hub

func (*AzureSqlDatabase) Hub()

func (*AzureSqlDatabase) IsSubmitted

func (s *AzureSqlDatabase) IsSubmitted() bool

type AzureSqlDatabaseList

type AzureSqlDatabaseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureSqlDatabase `json:"items"`
}

AzureSqlDatabaseList contains a list of AzureSqlDatabase

func (*AzureSqlDatabaseList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlDatabaseList.

func (*AzureSqlDatabaseList) DeepCopyInto

func (in *AzureSqlDatabaseList) DeepCopyInto(out *AzureSqlDatabaseList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlDatabaseList) DeepCopyObject

func (in *AzureSqlDatabaseList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureSqlDatabaseSpec

type AzureSqlDatabaseSpec struct {

	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Location string `json:"location"`

	// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ResourceGroup string `json:"resourceGroup"`

	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Server string `json:"server"`

	// +kubebuilder:validation:Optional
	SubscriptionID           string                               `json:"subscriptionId,omitempty"`
	Edition                  DBEdition                            `json:"edition"`       // TODO: Remove this in v1beta2
	Sku                      *SqlDatabaseSku                      `json:"sku,omitempty"` // TODO: make this required in v1beta2
	MaxSize                  *resource.Quantity                   `json:"maxSize,omitempty"`
	DbName                   string                               `json:"dbName,omitempty"`
	WeeklyRetention          string                               `json:"weeklyRetention,omitempty"`
	MonthlyRetention         string                               `json:"monthlyRetention,omitempty"`
	YearlyRetention          string                               `json:"yearlyRetention,omitempty"`
	WeekOfYear               int32                                `json:"weekOfYear,omitempty"`
	ShortTermRetentionPolicy *SQLDatabaseShortTermRetentionPolicy `json:"shortTermRetentionPolicy,omitempty"`
	ElasticPoolID            string                               `json:"elasticPoolId,omitempty"`
}

AzureSqlDatabaseSpec defines the desired state of AzureSqlDatabase

func (*AzureSqlDatabaseSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlDatabaseSpec.

func (*AzureSqlDatabaseSpec) DeepCopyInto

func (in *AzureSqlDatabaseSpec) DeepCopyInto(out *AzureSqlDatabaseSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureSqlFailoverGroup

type AzureSqlFailoverGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureSqlFailoverGroupSpec `json:"spec,omitempty"`
	Status ASOStatus                 `json:"status,omitempty"`
}

AzureSqlFailoverGroup is the Schema for the azuresqlfailovergroups API +kubebuilder:resource:shortName=asqlfog +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"

func (*AzureSqlFailoverGroup) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFailoverGroup.

func (*AzureSqlFailoverGroup) DeepCopyInto

func (in *AzureSqlFailoverGroup) DeepCopyInto(out *AzureSqlFailoverGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlFailoverGroup) DeepCopyObject

func (in *AzureSqlFailoverGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureSqlFailoverGroup) Hub

func (*AzureSqlFailoverGroup) Hub()

func (*AzureSqlFailoverGroup) IsSubmitted

func (s *AzureSqlFailoverGroup) IsSubmitted() bool

type AzureSqlFailoverGroupList

type AzureSqlFailoverGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureSqlFailoverGroup `json:"items"`
}

AzureSqlFailoverGroupList contains a list of AzureSqlFailoverGroup

func (*AzureSqlFailoverGroupList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFailoverGroupList.

func (*AzureSqlFailoverGroupList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlFailoverGroupList) DeepCopyObject

func (in *AzureSqlFailoverGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureSqlFailoverGroupSpec

type AzureSqlFailoverGroupSpec struct {
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Location string `json:"location"`
	// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ResourceGroup string `json:"resourceGroup"`
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Server string `json:"server"`

	SubscriptionID string `json:"subscriptionId,omitempty"`

	FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy"`
	// TODO: This field should be a ptr as it must not be specified if the failover policy is Manual,
	// TODO: but is required when the policy is Automatic
	FailoverGracePeriod           int32    `json:"failoverGracePeriod"`
	SecondaryServer               string   `json:"secondaryServer"`
	SecondaryServerResourceGroup  string   `json:"secondaryServerResourceGroup"`
	SecondaryServerSubscriptionID string   `json:"SecondaryServerSubscriptionId,omitempty"`
	DatabaseList                  []string `json:"databaseList"`
	KeyVaultToStoreSecrets        string   `json:"keyVaultToStoreSecrets,omitempty"`
}

AzureSqlFailoverGroupSpec defines the desired state of AzureSqlFailoverGroup

func (*AzureSqlFailoverGroupSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFailoverGroupSpec.

func (*AzureSqlFailoverGroupSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureSqlFirewallRule

type AzureSqlFirewallRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureSqlFirewallRuleSpec `json:"spec,omitempty"`
	Status ASOStatus                `json:"status,omitempty"`
}

AzureSqlFirewallRule is the Schema for the azuresqlfirewallrules API +kubebuilder:resource:shortName=asqlfwr +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"

func NewAzureSQLFirewallRule

func NewAzureSQLFirewallRule(names types.NamespacedName, resourceGroup, server, from, to string) *AzureSqlFirewallRule

NewAzureSQLFirewallRule returns a filled struct prt

func (*AzureSqlFirewallRule) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFirewallRule.

func (*AzureSqlFirewallRule) DeepCopyInto

func (in *AzureSqlFirewallRule) DeepCopyInto(out *AzureSqlFirewallRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlFirewallRule) DeepCopyObject

func (in *AzureSqlFirewallRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureSqlFirewallRule) Hub

func (*AzureSqlFirewallRule) Hub()

func (*AzureSqlFirewallRule) IsSubmitted

func (s *AzureSqlFirewallRule) IsSubmitted() bool

IsSubmitted returns whether a particular firewallrule has been processed or is being processed

type AzureSqlFirewallRuleList

type AzureSqlFirewallRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureSqlFirewallRule `json:"items"`
}

AzureSqlFirewallRuleList contains a list of AzureSqlFirewallRule

func (*AzureSqlFirewallRuleList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFirewallRuleList.

func (*AzureSqlFirewallRuleList) DeepCopyInto

func (in *AzureSqlFirewallRuleList) DeepCopyInto(out *AzureSqlFirewallRuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlFirewallRuleList) DeepCopyObject

func (in *AzureSqlFirewallRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureSqlFirewallRuleSpec

type AzureSqlFirewallRuleSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ResourceGroup string `json:"resourceGroup"`
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Server         string `json:"server"`
	SubscriptionID string `json:"subscriptionID,omitempty"`
	StartIPAddress string `json:"startIpAddress,omitempty"`
	EndIPAddress   string `json:"endIpAddress,omitempty"`
}

AzureSqlFirewallRuleSpec defines the desired state of AzureSqlFirewallRule

func (*AzureSqlFirewallRuleSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlFirewallRuleSpec.

func (*AzureSqlFirewallRuleSpec) DeepCopyInto

func (in *AzureSqlFirewallRuleSpec) DeepCopyInto(out *AzureSqlFirewallRuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureSqlServer

type AzureSqlServer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureSqlServerSpec `json:"spec,omitempty"`
	Status ASOStatus          `json:"status,omitempty"`
}

AzureSqlServer is the Schema for the azuresqlservers API +kubebuilder:resource:shortName=asqls +kubebuilder:printcolumn:name="Provisioned",type="string",JSONPath=".status.provisioned" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message"

func NewAzureSQLServer

func NewAzureSQLServer(names types.NamespacedName, resourceGroup, region string) *AzureSqlServer

NewAzureSQLServer returns a simple server struct filled with passed in values

func (*AzureSqlServer) DeepCopy

func (in *AzureSqlServer) DeepCopy() *AzureSqlServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlServer.

func (*AzureSqlServer) DeepCopyInto

func (in *AzureSqlServer) DeepCopyInto(out *AzureSqlServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlServer) DeepCopyObject

func (in *AzureSqlServer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AzureSqlServer) Hub

func (*AzureSqlServer) Hub()

func (*AzureSqlServer) IsSubmitted

func (s *AzureSqlServer) IsSubmitted() bool

type AzureSqlServerList

type AzureSqlServerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AzureSqlServer `json:"items"`
}

AzureSqlServerList contains a list of AzureSqlServer

func (*AzureSqlServerList) DeepCopy

func (in *AzureSqlServerList) DeepCopy() *AzureSqlServerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlServerList.

func (*AzureSqlServerList) DeepCopyInto

func (in *AzureSqlServerList) DeepCopyInto(out *AzureSqlServerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AzureSqlServerList) DeepCopyObject

func (in *AzureSqlServerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureSqlServerSpec

type AzureSqlServerSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Location string `json:"location"`
	// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ResourceGroup string `json:"resourceGroup"`

	SubscriptionID string `json:"subscriptionId,omitempty"`

	KeyVaultToStoreSecrets string `json:"keyVaultToStoreSecrets,omitempty"`
}

AzureSqlServerSpec defines the desired state of AzureSqlServer

func (*AzureSqlServerSpec) DeepCopy

func (in *AzureSqlServerSpec) DeepCopy() *AzureSqlServerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSqlServerSpec.

func (*AzureSqlServerSpec) DeepCopyInto

func (in *AzureSqlServerSpec) DeepCopyInto(out *AzureSqlServerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DBEdition

type DBEdition byte

type GenericResource

type GenericResource struct {
	Spec GenericSpec `json:"spec,omitempty"`
}

GenericResource is a struct to help get a generic resource to extract keyvault name

func (*GenericResource) DeepCopy

func (in *GenericResource) DeepCopy() *GenericResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericResource.

func (*GenericResource) DeepCopyInto

func (in *GenericResource) DeepCopyInto(out *GenericResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericSpec

type GenericSpec struct {
	KeyVaultToStoreSecrets string `json:"keyVaultToStoreSecrets,omitempty"`
}

GenericSpec is a struct to help get the KeyVaultName from the Spec

func (*GenericSpec) DeepCopy

func (in *GenericSpec) DeepCopy() *GenericSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericSpec.

func (*GenericSpec) DeepCopyInto

func (in *GenericSpec) DeepCopyInto(out *GenericSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReadWriteEndpointFailoverPolicy

type ReadWriteEndpointFailoverPolicy string

ReadWriteEndpointFailoverPolicy - wraps https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#ReadWriteEndpointFailoverPolicy +kubebuilder:validation:Enum=Automatic;Manual

const (
	// Automatic ...
	FailoverPolicyAutomatic ReadWriteEndpointFailoverPolicy = "Automatic"
	// Manual ...
	FailoverPolicyManual ReadWriteEndpointFailoverPolicy = "Manual"
)

type SQLDatabaseShortTermRetentionPolicy

type SQLDatabaseShortTermRetentionPolicy struct {
	// RetentionDays is the backup retention period in days. This is how many days
	// Point-in-Time Restore will be supported.
	// +kubebuilder:validation:Required
	RetentionDays int32 `json:"retentionDays"`
}

func (*SQLDatabaseShortTermRetentionPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLDatabaseShortTermRetentionPolicy.

func (*SQLDatabaseShortTermRetentionPolicy) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SqlDatabaseSku

type SqlDatabaseSku struct {
	// Name - The name of the SKU, typically, a letter + Number code, e.g. P3.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// optional
	// Tier - The tier or edition of the particular SKU, e.g. Basic, Premium.
	Tier string `json:"tier,omitempty"`
	// Size - Size of the particular SKU
	Size string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family string `json:"family,omitempty"`
	// Capacity - Capacity of the particular SKU.
	Capacity *int32 `json:"capacity,omitempty"`
}

func (*SqlDatabaseSku) DeepCopy

func (in *SqlDatabaseSku) DeepCopy() *SqlDatabaseSku

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlDatabaseSku.

func (*SqlDatabaseSku) DeepCopyInto

func (in *SqlDatabaseSku) DeepCopyInto(out *SqlDatabaseSku)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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