v1alpha3

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha3 contains managed resources for Azure storage services such as containers and accounts. +kubebuilder:object:generate=true +groupName=storage.azure.crossplane.io +versionName=v1alpha3

Index

Constants

View Source
const (
	Group   = "storage.azure.crossplane.io"
	Version = "v1alpha3"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	AccountKind             = reflect.TypeOf(Account{}).Name()
	AccountGroupKind        = schema.GroupKind{Group: Group, Kind: AccountKind}.String()
	AccountKindAPIVersion   = AccountKind + "." + SchemeGroupVersion.String()
	AccountGroupVersionKind = SchemeGroupVersion.WithKind(AccountKind)
)

Account type metadata.

View Source
var (
	ContainerKind             = reflect.TypeOf(Container{}).Name()
	ContainerGroupKind        = schema.GroupKind{Group: Group, Kind: ContainerKind}.String()
	ContainerKindAPIVersion   = ContainerKind + "." + SchemeGroupVersion.String()
	ContainerGroupVersionKind = SchemeGroupVersion.WithKind(ContainerKind)
)

Container type metadata.

Functions

func ToStorageAccountCreate

func ToStorageAccountCreate(s *StorageAccountSpec) storage.AccountCreateParameters

ToStorageAccountCreate from StorageAccountSpec

func ToStorageAccountUpdate

func ToStorageAccountUpdate(s *StorageAccountSpec) storage.AccountUpdateParameters

ToStorageAccountUpdate from StorageAccountSpec

Types

type Account

type Account struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AccountSpec   `json:"spec"`
	Status            AccountStatus `json:"status,omitempty"`
}

An Account is a managed resource that represents an Azure Blob Service Account. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="RESOURCE_GROUP",type="string",JSONPath=".spec.resourceGroupName" +kubebuilder:printcolumn:name="ACCOUNT_NAME",type="string",JSONPath=".spec.storageAccountName" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}

func (*Account) DeepCopy

func (in *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject

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

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

func (*Account) GetCondition

func (mg *Account) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Account.

func (*Account) GetDeletionPolicy

func (mg *Account) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Account.

func (*Account) GetProviderConfigReference

func (mg *Account) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Account.

func (*Account) GetProviderReference

func (mg *Account) GetProviderReference() *xpv1.Reference

GetProviderReference of this Account. Deprecated: Use GetProviderConfigReference.

func (*Account) GetPublishConnectionDetailsTo

func (mg *Account) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Account.

func (*Account) GetWriteConnectionSecretToReference

func (mg *Account) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Account.

func (*Account) SetConditions

func (mg *Account) SetConditions(c ...xpv1.Condition)

SetConditions of this Account.

func (*Account) SetDeletionPolicy

func (mg *Account) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Account.

func (*Account) SetProviderConfigReference

func (mg *Account) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Account.

func (*Account) SetProviderReference

func (mg *Account) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Account. Deprecated: Use SetProviderConfigReference.

func (*Account) SetPublishConnectionDetailsTo

func (mg *Account) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Account.

func (*Account) SetWriteConnectionSecretToReference

func (mg *Account) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Account.

type AccountList

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

AccountList contains a list of Account.

func (*AccountList) DeepCopy

func (in *AccountList) DeepCopy() *AccountList

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

func (*AccountList) DeepCopyInto

func (in *AccountList) DeepCopyInto(out *AccountList)

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

func (*AccountList) DeepCopyObject

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

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

func (*AccountList) GetItems

func (l *AccountList) GetItems() []resource.Managed

GetItems of this AccountList.

type AccountParameters

type AccountParameters struct {
	// ResourceGroupName specifies the resource group for this Account.
	ResourceGroupName string `json:"resourceGroupName"`

	// StorageAccountSpec specifies the desired state of this Account.
	StorageAccountSpec *StorageAccountSpec `json:"storageAccountSpec"`
}

AccountParameters define the desired state of an Azure Blob Storage Account.

func (*AccountParameters) DeepCopy

func (in *AccountParameters) DeepCopy() *AccountParameters

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

func (*AccountParameters) DeepCopyInto

func (in *AccountParameters) DeepCopyInto(out *AccountParameters)

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

type AccountSpec

type AccountSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	AccountParameters `json:",inline"`
}

An AccountSpec defines the desired state of an Account.

func (*AccountSpec) DeepCopy

func (in *AccountSpec) DeepCopy() *AccountSpec

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

func (*AccountSpec) DeepCopyInto

func (in *AccountSpec) DeepCopyInto(out *AccountSpec)

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

type AccountStatus

type AccountStatus struct {
	xpv1.ResourceStatus `json:",inline"`

	*StorageAccountStatus `json:",inline"`
}

An AccountStatus represents the observed state of an Account.

func (*AccountStatus) DeepCopy

func (in *AccountStatus) DeepCopy() *AccountStatus

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

func (*AccountStatus) DeepCopyInto

func (in *AccountStatus) DeepCopyInto(out *AccountStatus)

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

type Container

type Container struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ContainerSpec   `json:"spec"`
	Status            ContainerStatus `json:"status,omitempty"`
}

A Container is a managed resource that represents an Azure Blob Storage Container. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="STORAGE_ACCOUNT",type="string",JSONPath=".spec.accountRef.name" +kubebuilder:printcolumn:name="PUBLIC_ACCESS_TYPE",type="string",JSONPath=".spec.publicAccessType" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

func (*Container) DeepCopyObject

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

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

func (*Container) GetCondition

func (mg *Container) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Container.

func (*Container) GetDeletionPolicy

func (mg *Container) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Container.

func (*Container) GetProviderConfigReference

func (mg *Container) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Container.

func (*Container) GetProviderReference

func (mg *Container) GetProviderReference() *xpv1.Reference

GetProviderReference of this Container. Deprecated: Use GetProviderConfigReference.

func (*Container) GetPublishConnectionDetailsTo

func (mg *Container) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Container.

func (*Container) GetWriteConnectionSecretToReference

func (mg *Container) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Container.

func (*Container) SetConditions

func (mg *Container) SetConditions(c ...xpv1.Condition)

SetConditions of this Container.

func (*Container) SetDeletionPolicy

func (mg *Container) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Container.

func (*Container) SetProviderConfigReference

func (mg *Container) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Container.

func (*Container) SetProviderReference

func (mg *Container) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Container. Deprecated: Use SetProviderConfigReference.

func (*Container) SetPublishConnectionDetailsTo

func (mg *Container) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Container.

func (*Container) SetWriteConnectionSecretToReference

func (mg *Container) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Container.

type ContainerList

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

ContainerList - list of the container objects

func (*ContainerList) DeepCopy

func (in *ContainerList) DeepCopy() *ContainerList

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

func (*ContainerList) DeepCopyInto

func (in *ContainerList) DeepCopyInto(out *ContainerList)

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

func (*ContainerList) DeepCopyObject

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

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

func (*ContainerList) GetItems

func (l *ContainerList) GetItems() []resource.Managed

GetItems of this ContainerList.

type ContainerParameters

type ContainerParameters struct {
	// Metadata for this Container.
	// +optional
	Metadata azblob.Metadata `json:"metadata,omitempty"`

	// PublicAccessType for this container; either "blob" or "container".
	// +optional
	PublicAccessType azblob.PublicAccessType `json:"publicAccessType,omitempty"`
}

ContainerParameters define the desired state of an Azure Blob Storage Container.

func (*ContainerParameters) DeepCopy

func (in *ContainerParameters) DeepCopy() *ContainerParameters

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

func (*ContainerParameters) DeepCopyInto

func (in *ContainerParameters) DeepCopyInto(out *ContainerParameters)

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

type ContainerSpec

type ContainerSpec struct {
	xpv1.ResourceSpec   `json:",inline"`
	ContainerParameters `json:",inline"`
}

A ContainerSpec defines the desired state of a Container.

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type ContainerStatus

type ContainerStatus struct {
	xpv1.ResourceStatus `json:",inline"`
}

A ContainerStatus represents the observed status of a Container.

func (*ContainerStatus) DeepCopy

func (in *ContainerStatus) DeepCopy() *ContainerStatus

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

func (*ContainerStatus) DeepCopyInto

func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus)

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

type CustomDomain

type CustomDomain struct {
	// Name - custom domain name assigned to the storage account. Name is the
	// CNAME source.
	// +optional
	Name string `json:"name,omitempty"`

	// UseSubDomainName - Indicates whether indirect CNAME validation is
	// enabled.
	// +optional
	UseSubDomainName bool `json:"useSubDomainName,omitempty"`
}

CustomDomain specifies the custom domain assigned to this storage account.

func (*CustomDomain) DeepCopy

func (in *CustomDomain) DeepCopy() *CustomDomain

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

func (*CustomDomain) DeepCopyInto

func (in *CustomDomain) DeepCopyInto(out *CustomDomain)

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

type EnabledEncryptionServices

type EnabledEncryptionServices struct {
	// Blob - The encryption function of the blob storage service.
	Blob bool `json:"blob,omitempty"`

	// File - The encryption function of the file storage service.
	File bool `json:"file,omitempty"`
}

EnabledEncryptionServices a list of services that support encryption.

func (*EnabledEncryptionServices) DeepCopy

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

func (*EnabledEncryptionServices) DeepCopyInto

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

type Encryption

type Encryption struct {
	// Services - List of services which support encryption.
	Services *EnabledEncryptionServices `json:"services,omitempty"`

	// KeySource - The encryption keySource (provider).
	//
	// Possible values (case-insensitive):  Microsoft.Storage, Microsoft.Keyvault
	// +kubebuilder:validation:Enum=Microsoft.Storage;Microsoft.Keyvault
	KeySource storage.KeySource `json:"keySource,omitempty"`

	// KeyVaultProperties - Properties provided by key vault.
	KeyVaultProperties *KeyVaultProperties `json:"keyvaultproperties,omitempty"`
}

Encryption the encryption settings on the storage account.

func (*Encryption) DeepCopy

func (in *Encryption) DeepCopy() *Encryption

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

func (*Encryption) DeepCopyInto

func (in *Encryption) DeepCopyInto(out *Encryption)

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

type Endpoints

type Endpoints struct {
	// Blob - the blob endpoint.
	Blob string `json:"blob,omitempty"`
	// Queue - the queue endpoint.
	Queue string `json:"queue,omitempty"`
	// Table - the table endpoint.
	Table string `json:"table,omitempty"`
	// File - the file endpoint.
	File string `json:"file,omitempty"`
}

Endpoints the URIs that are used to perform a retrieval of a public blob, queue, or table object.

func (*Endpoints) DeepCopy

func (in *Endpoints) DeepCopy() *Endpoints

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

func (*Endpoints) DeepCopyInto

func (in *Endpoints) DeepCopyInto(out *Endpoints)

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

type IPRule

type IPRule struct {
	// IPAddressOrRange - Specifies the IP or IP range in CIDR format.
	// Only IPV4 address is allowed.
	IPAddressOrRange string `json:"value,omitempty"`

	// Action - The action of IP ACL rule. Possible values include: 'Allow'
	// +kubebuilder:validation:Enum=Allow
	Action storage.Action `json:"action,omitempty"`
}

IPRule IP rule with specific IP or IP range in CIDR format.

func (*IPRule) DeepCopy

func (in *IPRule) DeepCopy() *IPRule

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

func (*IPRule) DeepCopyInto

func (in *IPRule) DeepCopyInto(out *IPRule)

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

type Identity

type Identity struct {
	// PrincipalID - The principal ID of resource identity.
	PrincipalID string `json:"principalId,omitempty"`

	// TenantID - The tenant ID of resource.
	TenantID string `json:"tenantId,omitempty"`

	// Type - The identity type.
	Type string `json:"type,omitempty"`
}

Identity identity for the resource.

func (*Identity) DeepCopy

func (in *Identity) DeepCopy() *Identity

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

func (*Identity) DeepCopyInto

func (in *Identity) DeepCopyInto(out *Identity)

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

type KeyVaultProperties

type KeyVaultProperties struct {
	// KeyName - The name of KeyVault key.
	KeyName string `json:"keyname,omitempty"`

	// KeyVersion - The version of KeyVault key.
	KeyVersion string `json:"keyversion,omitempty"`

	// KeyVaultURI - The Uri of KeyVault.
	KeyVaultURI string `json:"keyvaulturi,omitempty"`
}

KeyVaultProperties properties of key vault.

func (*KeyVaultProperties) DeepCopy

func (in *KeyVaultProperties) DeepCopy() *KeyVaultProperties

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

func (*KeyVaultProperties) DeepCopyInto

func (in *KeyVaultProperties) DeepCopyInto(out *KeyVaultProperties)

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

type NetworkRuleSet

type NetworkRuleSet struct {
	// Bypass - Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.
	// Possible values are any combination of Logging|Metrics|AzureServices
	// (For example, "Logging, Metrics"), or None to bypass none of those traffics.
	// Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'
	Bypass storage.Bypass `json:"bypass,omitempty"`

	// VirtualNetworkRules - Sets the virtual network rules
	VirtualNetworkRules []VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`

	// IPRules - Sets the IP ACL rules
	IPRules []IPRule `json:"ipRules,omitempty"`

	// DefaultAction - Specifies the default action of allow or deny when no other rules match.
	//
	// Possible values include: 'Allow', 'Deny'
	// +kubebuilder:validation:Enum=Allow;Deny
	DefaultAction storage.DefaultAction `json:"defaultAction,omitempty"`
}

NetworkRuleSet network rule set

func (*NetworkRuleSet) DeepCopy

func (in *NetworkRuleSet) DeepCopy() *NetworkRuleSet

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

func (*NetworkRuleSet) DeepCopyInto

func (in *NetworkRuleSet) DeepCopyInto(out *NetworkRuleSet)

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

type Sku

type Sku struct {
	// Capabilities - The capability information in the specified sku, including
	// file encryption, network acls, change notification, etc.
	Capabilities []skuCapability `json:"capabilities,omitempty"`

	// Kind - Indicates the type of storage account.
	//
	// Possible values include: 'Storage', 'BlobStorage'
	// +kubebuilder:validation:Enum=Storage;BlobStorage
	Kind storage.Kind `json:"kind,omitempty"`

	// Locations - The set of locations that the Sku is available.
	// This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).
	Locations []string `json:"locations,omitempty"`

	// Name - Gets or sets the sku name. Required for account creation; optional for update.
	// Note that in older versions, sku name was called accountType.
	//
	// Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
	// +kubebuilder:validation:Enum=Standard_LRS;Standard_GRS;Standard_RAGRS;Standard_ZRS;Premium_LRS
	Name storage.SkuName `json:"name"`

	// ResourceType - The type of the resource, usually it is 'storageAccounts'.
	ResourceType string `json:"resourceType,omitempty"`

	// Tier - Gets the sku tier. This is based on the Sku name.
	//
	// Possible values include: 'Standard', 'Premium'
	// +kubebuilder:validation:Enum=Standard;Premium
	Tier storage.SkuTier `json:"tier,omitempty"`
}

Sku of an Azure Blob Storage Account.

func (*Sku) DeepCopy

func (in *Sku) DeepCopy() *Sku

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

func (*Sku) DeepCopyInto

func (in *Sku) DeepCopyInto(out *Sku)

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

type StorageAccountSpec

type StorageAccountSpec struct {
	// Identity - The identity of the resource.
	// +optional
	Identity *Identity `json:"identity,omitempty"`

	// Kind - Indicates the type of storage account.
	// Possible values include: 'Storage', 'BlobStorage'
	// +kubebuilder:validation:Enum=Storage;BlobStorage
	Kind storage.Kind `json:"kind"`

	// Location - The location of the resource. This will be one of the
	// supported and registered Azure Geo Regions (e.g. West US, East US,
	// Southeast Asia, etc.).
	Location string `json:"location"`

	// Sku of the storage account.
	Sku *Sku `json:"sku"`

	// StorageAccountSpecProperties - The parameters used to create the storage
	// account.
	// +optional
	*StorageAccountSpecProperties `json:"properties,omitempty"`

	// Tags - A list of key value pairs that describe the resource. These tags
	// can be used for viewing and grouping this resource (across resource
	// groups). A maximum of 15 tags can be provided for a resource. Each tag
	// must have a key with a length no greater than 128 characters and a value
	// with a length no greater than 256 characters.
	// +optional
	Tags map[string]string `json:"tags,omitempty"`
}

A StorageAccountSpec defines the desired state of an Azure Blob Storage account.

func NewStorageAccountSpec

func NewStorageAccountSpec(a *storage.Account) *StorageAccountSpec

NewStorageAccountSpec from the storage Account

func (*StorageAccountSpec) DeepCopy

func (in *StorageAccountSpec) DeepCopy() *StorageAccountSpec

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

func (*StorageAccountSpec) DeepCopyInto

func (in *StorageAccountSpec) DeepCopyInto(out *StorageAccountSpec)

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

type StorageAccountSpecProperties

type StorageAccountSpecProperties struct {
	// AccessTier - Required for storage accounts where kind = BlobStorage.
	// The access tier used for billing.
	// Possible values include: 'Hot', 'Cool'
	// +kubebuilder:validation:Enum=Hot;Cool
	AccessTier storage.AccessTier `json:"accessTier,omitempty"`

	// CustomDomain - User domain assigned to the storage account.
	// Name is the CNAME source. Only one custom domain is supported per storage account at this time.
	// to clear the existing custom domain, use an empty string for the custom domain name property.
	CustomDomain *CustomDomain `json:"customDomain,omitempty"`

	// EnableHTTPSTrafficOnly - Allows https traffic only to storage service if sets to true.
	EnableHTTPSTrafficOnly bool `json:"supportsHttpsTrafficOnly,omitempty"`

	// Encryption - Provides the encryption settings on the account.
	// If left unspecified the account encryption settings will remain the same.
	// The default setting is unencrypted.
	Encryption *Encryption `json:"encryption,omitempty"`

	// NetworkRuleSet - Network rule set
	NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"`
}

StorageAccountSpecProperties the parameters used to create the storage account.

func (*StorageAccountSpecProperties) DeepCopy

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

func (*StorageAccountSpecProperties) DeepCopyInto

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

type StorageAccountStatus

type StorageAccountStatus struct {
	// ID of this Account.
	ID string `json:"id,omitempty"`

	// Name of this Account.
	Name string `json:"name,omitempty"`

	// Type of this Account.
	Type string `json:"type,omitempty"`

	// Properties of this Account.
	*StorageAccountStatusProperties `json:"properties,omitempty"`
}

A StorageAccountStatus represents the observed status of an Account.

func NewStorageAccountStatus

func NewStorageAccountStatus(a *storage.Account) *StorageAccountStatus

NewStorageAccountStatus from the storage Account

func (*StorageAccountStatus) DeepCopy

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

func (*StorageAccountStatus) DeepCopyInto

func (in *StorageAccountStatus) DeepCopyInto(out *StorageAccountStatus)

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

type StorageAccountStatusProperties

type StorageAccountStatusProperties struct {

	// CreationTime - the creation date and time of the storage account in UTC.
	CreationTime *metav1.Time `json:"creationTime,omitempty"`

	// LastGeoFailoverTime - the timestamp of the most recent instance of a
	// failover to the secondary location. Only the most recent timestamp is retained.
	// This element is not returned if there has never been a failover instance.
	// Only available if the accountType is Standard_GRS or Standard_RAGRS.
	LastGeoFailoverTime *metav1.Time `json:"lastGeoFailoverTime,omitempty"`

	// PrimaryEndpoints - the URLs that are used to perform a retrieval of a public blob, queue, or table object.
	// Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.
	PrimaryEndpoints *Endpoints `json:"primaryEndpoints,omitempty"`

	// PrimaryLocation - the location of the primary data center for the storage account.
	PrimaryLocation string `json:"primaryLocation,omitempty"`

	// ProvisioningState - the status of the storage account at the time the operation was called.
	// Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'
	// +kubebuilder:validation:Enum=Creating;ResolvingDNS;Succeeded
	ProvisioningState storage.ProvisioningState `json:"provisioningState,omitempty"`

	// SecondaryEndpoints - the URLs that are used to perform a retrieval of a
	// public blob, queue, or table object from the secondary location of the
	// storage account. Only available if the Sku name is Standard_RAGRS.
	SecondaryEndpoints *Endpoints `json:"secondaryEndpoints,omitempty"`

	// SecondaryLocation - the location of the geo-replicated secondary for the
	// storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.
	SecondaryLocation string `json:"secondaryLocation,omitempty"`

	// StatusOfPrimary - the status indicating whether the primary location
	// of the storage account is available or unavailable.
	// Possible values include: 'Available', 'Unavailable'
	StatusOfPrimary storage.AccountStatus `json:"statusOfPrimary,omitempty"`

	// StatusOfSecondary - the status indicating whether the secondary location
	// of the storage account is available or unavailable.
	// Only available if the Sku name is Standard_GRS or Standard_RAGRS.
	// Possible values include: 'Available', 'Unavailable'
	// +kubebuilder:validation:Enum=Available;Unavailable
	StatusOfSecondary storage.AccountStatus `json:"statusOfSecondary,omitempty"`
}

StorageAccountStatusProperties represent the observed state of an Account.

func (*StorageAccountStatusProperties) DeepCopy

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

func (*StorageAccountStatusProperties) DeepCopyInto

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

type VirtualNetworkRule

type VirtualNetworkRule struct {
	// VirtualNetworkResourceID - Resource ID of a subnet,
	// for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
	VirtualNetworkResourceID string `json:"id,omitempty"`

	// Action - The action of virtual network rule. Possible values include: 'Allow'
	// +kubebuilder:validation:Enum=Allow
	Action storage.Action `json:"action,omitempty"`
}

VirtualNetworkRule virtual Network rule.

func (*VirtualNetworkRule) DeepCopy

func (in *VirtualNetworkRule) DeepCopy() *VirtualNetworkRule

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

func (*VirtualNetworkRule) DeepCopyInto

func (in *VirtualNetworkRule) DeepCopyInto(out *VirtualNetworkRule)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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