v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/azure/database +k8s:defaulter-gen=TypeMeta +groupName=storage.azure.crossplane.io

Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/azure/storage +k8s:defaulter-gen=TypeMeta +groupName=storage.azure.crossplane.io

Index

Constants

View Source
const (
	Group      = "storage.azure.crossplane.io"
	Version    = "v1alpha1"
	APIVersion = Group + "/" + Version

	AccountKind           = "account"
	AccountKindAPIVersion = AccountKind + "." + APIVersion

	ContainerKind           = "container"
	ContainerKindAPIVersion = ContainerKind + "." + APIVersion
)

Kubernetes Group, Version, and Kind 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}
)

Functions

func ToStorageAccountCreate added in v0.2.0

func ToStorageAccountCreate(s *StorageAccountSpec) storage.AccountCreateParameters

ToStorageAccountCreate from StorageAccountSpec

func ToStorageAccountUpdate added in v0.2.0

func ToStorageAccountUpdate(s *StorageAccountSpec) storage.AccountUpdateParameters

ToStorageAccountUpdate from StorageAccountSpec

Types

type Account added in v0.2.0

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

Account is the Schema for the Account API +k8s:openapi-gen=true +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="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="RECLAIM_POLICY",type="string",JSONPath=".spec.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"

func (*Account) ConnectionSecret added in v0.2.0

func (a *Account) ConnectionSecret() *corev1.Secret

ConnectionSecret returns a connection secret for this account instance

func (*Account) ConnectionSecretName added in v0.2.0

func (a *Account) ConnectionSecretName() string

ConnectionSecretName returns a secret name from the reference

func (*Account) DeepCopy added in v0.2.0

func (a *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto added in v0.2.0

func (a *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject added in v0.2.0

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

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

func (*Account) IsAvailable added in v0.2.0

func (a *Account) IsAvailable() bool

IsAvailable for usage/binding

func (*Account) IsBound added in v0.2.0

func (a *Account) IsBound() bool

IsBound determines if the resource is in a bound binding state

func (*Account) ObjectReference added in v0.2.0

func (a *Account) ObjectReference() *corev1.ObjectReference

ObjectReference to this resource instance

func (*Account) OwnerReference added in v0.2.0

func (a *Account) OwnerReference() metav1.OwnerReference

OwnerReference to use this instance as an owner

func (*Account) SetBound added in v0.2.0

func (a *Account) SetBound(state bool)

SetBound sets the binding state of this resource

type AccountList added in v0.2.0

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

AccountList contains a list of AzureBuckets

func (*AccountList) DeepCopy added in v0.2.0

func (in *AccountList) DeepCopy() *AccountList

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

func (*AccountList) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

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

type AccountSpec added in v0.2.0

type AccountSpec struct {
	// ResourceGroupName azure group name
	ResourceGroupName string `json:"resourceGroupName"`

	// StorageAccountName for azure blob storage
	// +kubebuilder:validation:MaxLength=24
	StorageAccountName string `json:"storageAccountName"`

	// StorageAccountSpec the parameters used when creating a storage account.
	StorageAccountSpec *StorageAccountSpec `json:"storageAccountSpec"`

	// ConnectionSecretNameOverride to generate connection secret with specific name
	ConnectionSecretNameOverride string `json:"connectionSecretNameOverride,omitempty"`

	ProviderRef corev1.LocalObjectReference `json:"providerRef"`
	ClaimRef    *corev1.ObjectReference     `json:"claimRef,omitempty"`
	ClassRef    *corev1.ObjectReference     `json:"classRef,omitempty"`

	// ReclaimPolicy identifies how to handle the cloud resource after the deletion of this type
	ReclaimPolicy corev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"`
}

AccountSpec is the schema for Account object

func ParseAccountSpec added in v0.2.0

func ParseAccountSpec(p map[string]string) *AccountSpec

ParseAccountSpec from properties map key/values

func (*AccountSpec) DeepCopy added in v0.2.0

func (in *AccountSpec) DeepCopy() *AccountSpec

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

func (*AccountSpec) DeepCopyInto added in v0.2.0

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 added in v0.2.0

type AccountStatus struct {
	*StorageAccountStatus `json:"accountStatus,inline"`

	corev1alpha1.ConditionedStatus
	corev1alpha1.BindingStatusPhase
	ConnectionSecretRef corev1.LocalObjectReference `json:"connectionSecretRef,omitempty"`
}

AccountStatus defines the observed state of StorageAccountStatus

func (*AccountStatus) DeepCopy added in v0.2.0

func (in *AccountStatus) DeepCopy() *AccountStatus

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

func (*AccountStatus) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

Container is the Schema for the Container +k8s:openapi-gen=true +kubebuilder:subresource: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="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="RECLAIM_POLICY",type="string",JSONPath=".spec.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"

func (*Container) ConnectionSecretName added in v0.2.0

func (c *Container) ConnectionSecretName() string

ConnectionSecretName returns a secret name from the reference

func (*Container) DeepCopy added in v0.2.0

func (c *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto added in v0.2.0

func (c *Container) DeepCopyInto(out *Container)

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

func (*Container) DeepCopyObject added in v0.2.0

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

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

func (*Container) GetContainerName added in v0.2.0

func (c *Container) GetContainerName() string

GetContainerName based on the NameFormat spec value, If name format is not provided, container name defaults to UID If name format provided with '%s' value, container name will result in formatted string + UID,

NOTE: only single %s substitution is supported

If name format does not contain '%s' substitution, i.e. a constant string, the constant string value is returned back

Examples:

For all examples assume "UID" = "test-uid"
1. NameFormat = "", ContainerName = "test-uid"
2. NameFormat = "%s", ContainerName = "test-uid"
3. NameFormat = "foo", ContainerName = "foo"
4. NameFormat = "foo-%s", ContainerName = "foo-test-uid"
5. NameFormat = "foo-%s-bar-%s", ContainerName = "foo-test-uid-bar-%!s(MISSING)"

func (*Container) IsAvailable added in v0.2.0

func (c *Container) IsAvailable() bool

IsAvailable for usage/binding

func (*Container) IsBound added in v0.2.0

func (c *Container) IsBound() bool

IsBound determines if the resource is in a bound binding state

func (*Container) ObjectReference added in v0.2.0

func (c *Container) ObjectReference() *corev1.ObjectReference

ObjectReference to this resource instance

func (*Container) OwnerReference added in v0.2.0

func (c *Container) OwnerReference() metav1.OwnerReference

OwnerReference to use this instance as an owner

func (*Container) SetBound added in v0.2.0

func (c *Container) SetBound(state bool)

SetBound sets the binding state of this resource

type ContainerList added in v0.2.0

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 added in v0.2.0

func (in *ContainerList) DeepCopy() *ContainerList

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

func (*ContainerList) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

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

type ContainerSpec added in v0.2.0

type ContainerSpec struct {
	// NameFormat to format container name passing it a object UID
	// If not provided, defaults to "%s", i.e. UID value
	NameFormat string `json:"nameFormat,omitempty"`

	// Container metadata
	Metadata azblob.Metadata `json:"metadata,omitempty"`

	// PublicAccessType
	PublicAccessType azblob.PublicAccessType `json:"publicAccessType,omitempty"`

	// AccountRef reference to azure storage account object
	AccountRef corev1.LocalObjectReference `json:"accountRef"`

	// ConnectionSecretNameOverride to generate connection secret with specific name
	ConnectionSecretNameOverride string `json:"connectionSecretNameOverride,omitempty"`

	ClaimRef *corev1.ObjectReference `json:"claimRef,omitempty"`
	ClassRef *corev1.ObjectReference `json:"classRef,omitempty"`

	// ReclaimPolicy identifies how to handle the cloud resource after the deletion of this type
	ReclaimPolicy corev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"`
}

ContainerSpec is the schema for ContainerSpec object

func ParseContainerSpec added in v0.2.0

func ParseContainerSpec(p map[string]string) *ContainerSpec

ParseContainerSpec from properties map key/values

func (*ContainerSpec) DeepCopy added in v0.2.0

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto added in v0.2.0

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 added in v0.2.0

type ContainerStatus struct {
	corev1alpha1.ConditionedStatus
	corev1alpha1.BindingStatusPhase
	ConnectionSecretRef corev1.LocalObjectReference `json:"connectionSecretRef,omitempty"`
	Name                string                      `json:"name,omitempty"`
}

ContainerStatus sub-resource for Container object

func (*ContainerStatus) DeepCopy added in v0.2.0

func (in *ContainerStatus) DeepCopy() *ContainerStatus

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

func (*ContainerStatus) DeepCopyInto added in v0.2.0

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 added in v0.2.0

type CustomDomain struct {
	// Name - custom domain name assigned to the storage account. Name is the CNAME source.
	Name string `json:"name,omitempty"`
	// UseSubDomainName - Indicates whether indirect CName validation is enabled.
	UseSubDomainName bool `json:"useSubDomainName,omitempty"`
}

CustomDomain the custom domain assigned to this storage account.

func (*CustomDomain) DeepCopy added in v0.2.0

func (in *CustomDomain) DeepCopy() *CustomDomain

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

func (*CustomDomain) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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"`

	// Table - The encryption function of the table storage service.
	Table bool `json:"table,omitempty"`

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

EnabledEncryptionServices a list of services that support encryption.

func (*EnabledEncryptionServices) DeepCopy added in v0.2.0

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

func (*EnabledEncryptionServices) DeepCopyInto added in v0.2.0

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

type Encryption added in v0.2.0

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 added in v0.2.0

func (in *Encryption) DeepCopy() *Encryption

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

func (*Encryption) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (in *Endpoints) DeepCopy() *Endpoints

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

func (*Endpoints) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (in *IPRule) DeepCopy() *IPRule

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

func (*IPRule) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (in *Identity) DeepCopy() *Identity

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

func (*Identity) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (in *KeyVaultProperties) DeepCopy() *KeyVaultProperties

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

func (*KeyVaultProperties) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (in *NetworkRuleSet) DeepCopy() *NetworkRuleSet

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

func (*NetworkRuleSet) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 the Sku of the storage account.

func (*Sku) DeepCopy added in v0.2.0

func (in *Sku) DeepCopy() *Sku

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

func (*Sku) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

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

	// Location - Required. Gets or sets 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.).
	// The geo region of a resource cannot be changed once it is created,
	// but if an identical geo region is specified on update, the request will succeed.
	// NOTE: not updatable
	Location string `json:"location,omitempty"`

	// Sku - Required. Gets or sets the sku name.
	Sku *Sku `json:"sku,omitempty"`

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

	// Tags - Gets or sets 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.
	Tags map[string]string `json:"tags,omitempty"`
}

StorageAccountSpec the parameters used when creating or updating a storage account.

func NewStorageAccountSpec added in v0.2.0

func NewStorageAccountSpec(a *storage.Account) *StorageAccountSpec

NewStorageAccountSpec from the storage Account

func (*StorageAccountSpec) DeepCopy added in v0.2.0

func (in *StorageAccountSpec) DeepCopy() *StorageAccountSpec

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

func (*StorageAccountSpec) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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

func (*StorageAccountSpecProperties) DeepCopyInto added in v0.2.0

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

type StorageAccountStatus added in v0.2.0

type StorageAccountStatus struct {
	// ID - Resource Id
	ID string `json:"id,omitempty"`

	// Name - Resource name
	Name string `json:"name,omitempty"`

	// Type - Resource type
	Type string `json:"type,omitempty"`

	*StorageAccountStatusProperties `json:"properties,omitempty"`
}

StorageAccountStatus the storage account.

func NewStorageAccountStatus added in v0.2.0

func NewStorageAccountStatus(a *storage.Account) *StorageAccountStatus

NewStorageAccountStatus from the storage Account

func (*StorageAccountStatus) DeepCopy added in v0.2.0

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

func (*StorageAccountStatus) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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 - account status properties of the storage account.

func (*StorageAccountStatusProperties) DeepCopy added in v0.2.0

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

func (*StorageAccountStatusProperties) DeepCopyInto added in v0.2.0

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

type VirtualNetworkRule added in v0.2.0

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 added in v0.2.0

func (in *VirtualNetworkRule) DeepCopy() *VirtualNetworkRule

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

func (*VirtualNetworkRule) DeepCopyInto added in v0.2.0

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