v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=policy.boundary.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "policy.boundary.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Storage_Kind             = "Storage"
	Storage_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Storage_Kind}.String()
	Storage_KindAPIVersion   = Storage_Kind + "." + CRDGroupVersion.String()
	Storage_GroupVersionKind = CRDGroupVersion.WithKind(Storage_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scopeId) || (has(self.initProvider) && has(self.initProvider.scopeId))",message="spec.forProvider.scopeId is a required parameter"
	Spec   StorageSpec   `json:"spec"`
	Status StorageStatus `json:"status,omitempty"`
}

Storage is the Schema for the Storages API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,boundary}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

func (*Storage) DeepCopyObject

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

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

func (*Storage) GetCondition

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

GetCondition of this Storage.

func (*Storage) GetConnectionDetailsMapping

func (tr *Storage) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Storage

func (*Storage) GetDeletionPolicy

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

GetDeletionPolicy of this Storage.

func (*Storage) GetID

func (tr *Storage) GetID() string

GetID returns ID of underlying Terraform resource of this Storage

func (*Storage) GetInitParameters

func (tr *Storage) GetInitParameters() (map[string]any, error)

GetInitParameters of this Storage

func (*Storage) GetManagementPolicies

func (mg *Storage) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Storage.

func (*Storage) GetMergedParameters added in v1.1.0

func (tr *Storage) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Storage

func (*Storage) GetObservation

func (tr *Storage) GetObservation() (map[string]any, error)

GetObservation of this Storage

func (*Storage) GetParameters

func (tr *Storage) GetParameters() (map[string]any, error)

GetParameters of this Storage

func (*Storage) GetProviderConfigReference

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

GetProviderConfigReference of this Storage.

func (*Storage) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Storage.

func (*Storage) GetTerraformResourceType

func (mg *Storage) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Storage

func (*Storage) GetTerraformSchemaVersion

func (tr *Storage) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Storage) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Storage.

func (*Storage) Hub added in v1.1.0

func (tr *Storage) Hub()

Hub marks this type as a conversion hub.

func (*Storage) LateInitialize

func (tr *Storage) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Storage using its observed tfState. returns True if there are any spec changes for the resource.

func (*Storage) SetConditions

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

SetConditions of this Storage.

func (*Storage) SetDeletionPolicy

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

SetDeletionPolicy of this Storage.

func (*Storage) SetManagementPolicies

func (mg *Storage) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Storage.

func (*Storage) SetObservation

func (tr *Storage) SetObservation(obs map[string]any) error

SetObservation for this Storage

func (*Storage) SetParameters

func (tr *Storage) SetParameters(params map[string]any) error

SetParameters for this Storage

func (*Storage) SetProviderConfigReference

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

SetProviderConfigReference of this Storage.

func (*Storage) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Storage.

func (*Storage) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Storage.

type StorageInitParameters

type StorageInitParameters struct {

	// The number of days after which a session recording will be automatically deleted. Defaults to 0: never automatically delete. However, delete_after_days and retain_for_days cannot both be 0.
	DeleteAfterDays *float64 `json:"deleteAfterDays,omitempty" tf:"delete_after_days,omitempty"`

	// Whether or not the associated delete_after_days value can be overridden by org scopes. Note: if the associated delete_after_days value is 0, overridable is ignored
	DeleteAfterOverridable *bool `json:"deleteAfterOverridable,omitempty" tf:"delete_after_overridable,omitempty"`

	// The policy description.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The policy name. Defaults to the resource name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The number of days a session recording is required to be stored. Defaults to 0: allow deletions at any time. However, retain_for_days and delete_after_days cannot both be 0.
	RetainForDays *float64 `json:"retainForDays,omitempty" tf:"retain_for_days,omitempty"`

	// Whether or not the associated retain_for_days value can be overridden by org scopes. Note: if the associated retain_for_days value is 0, overridable is ignored.
	RetainForOverridable *bool `json:"retainForOverridable,omitempty" tf:"retain_for_overridable,omitempty"`

	// The scope for this policy.
	ScopeID *string `json:"scopeId,omitempty" tf:"scope_id,omitempty"`
}

func (*StorageInitParameters) DeepCopy

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

func (*StorageInitParameters) DeepCopyInto

func (in *StorageInitParameters) DeepCopyInto(out *StorageInitParameters)

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

type StorageList

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

StorageList contains a list of Storages

func (*StorageList) DeepCopy

func (in *StorageList) DeepCopy() *StorageList

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

func (*StorageList) DeepCopyInto

func (in *StorageList) DeepCopyInto(out *StorageList)

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

func (*StorageList) DeepCopyObject

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

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

func (*StorageList) GetItems

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

GetItems of this StorageList.

type StorageObservation

type StorageObservation struct {

	// The number of days after which a session recording will be automatically deleted. Defaults to 0: never automatically delete. However, delete_after_days and retain_for_days cannot both be 0.
	DeleteAfterDays *float64 `json:"deleteAfterDays,omitempty" tf:"delete_after_days,omitempty"`

	// Whether or not the associated delete_after_days value can be overridden by org scopes. Note: if the associated delete_after_days value is 0, overridable is ignored
	DeleteAfterOverridable *bool `json:"deleteAfterOverridable,omitempty" tf:"delete_after_overridable,omitempty"`

	// The policy description.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The policy name. Defaults to the resource name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The number of days a session recording is required to be stored. Defaults to 0: allow deletions at any time. However, retain_for_days and delete_after_days cannot both be 0.
	RetainForDays *float64 `json:"retainForDays,omitempty" tf:"retain_for_days,omitempty"`

	// Whether or not the associated retain_for_days value can be overridden by org scopes. Note: if the associated retain_for_days value is 0, overridable is ignored.
	RetainForOverridable *bool `json:"retainForOverridable,omitempty" tf:"retain_for_overridable,omitempty"`

	// The scope for this policy.
	ScopeID *string `json:"scopeId,omitempty" tf:"scope_id,omitempty"`
}

func (*StorageObservation) DeepCopy

func (in *StorageObservation) DeepCopy() *StorageObservation

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

func (*StorageObservation) DeepCopyInto

func (in *StorageObservation) DeepCopyInto(out *StorageObservation)

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

type StorageParameters

type StorageParameters struct {

	// The number of days after which a session recording will be automatically deleted. Defaults to 0: never automatically delete. However, delete_after_days and retain_for_days cannot both be 0.
	// +kubebuilder:validation:Optional
	DeleteAfterDays *float64 `json:"deleteAfterDays,omitempty" tf:"delete_after_days,omitempty"`

	// Whether or not the associated delete_after_days value can be overridden by org scopes. Note: if the associated delete_after_days value is 0, overridable is ignored
	// +kubebuilder:validation:Optional
	DeleteAfterOverridable *bool `json:"deleteAfterOverridable,omitempty" tf:"delete_after_overridable,omitempty"`

	// The policy description.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The policy name. Defaults to the resource name.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The number of days a session recording is required to be stored. Defaults to 0: allow deletions at any time. However, retain_for_days and delete_after_days cannot both be 0.
	// +kubebuilder:validation:Optional
	RetainForDays *float64 `json:"retainForDays,omitempty" tf:"retain_for_days,omitempty"`

	// Whether or not the associated retain_for_days value can be overridden by org scopes. Note: if the associated retain_for_days value is 0, overridable is ignored.
	// +kubebuilder:validation:Optional
	RetainForOverridable *bool `json:"retainForOverridable,omitempty" tf:"retain_for_overridable,omitempty"`

	// The scope for this policy.
	// +kubebuilder:validation:Optional
	ScopeID *string `json:"scopeId,omitempty" tf:"scope_id,omitempty"`
}

func (*StorageParameters) DeepCopy

func (in *StorageParameters) DeepCopy() *StorageParameters

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

func (*StorageParameters) DeepCopyInto

func (in *StorageParameters) DeepCopyInto(out *StorageParameters)

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

type StorageSpec

type StorageSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StorageParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider StorageInitParameters `json:"initProvider,omitempty"`
}

StorageSpec defines the desired state of Storage

func (*StorageSpec) DeepCopy

func (in *StorageSpec) DeepCopy() *StorageSpec

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

func (*StorageSpec) DeepCopyInto

func (in *StorageSpec) DeepCopyInto(out *StorageSpec)

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

type StorageStatus

type StorageStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        StorageObservation `json:"atProvider,omitempty"`
}

StorageStatus defines the observed state of Storage.

func (*StorageStatus) DeepCopy

func (in *StorageStatus) DeepCopy() *StorageStatus

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

func (*StorageStatus) DeepCopyInto

func (in *StorageStatus) DeepCopyInto(out *StorageStatus)

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