v1alpha1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=backup.mongodbatlas.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "backup.mongodbatlas.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	CompliancePolicy_Kind             = "CompliancePolicy"
	CompliancePolicy_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: CompliancePolicy_Kind}.String()
	CompliancePolicy_KindAPIVersion   = CompliancePolicy_Kind + "." + CRDGroupVersion.String()
	CompliancePolicy_GroupVersionKind = CRDGroupVersion.WithKind(CompliancePolicy_Kind)
)

Repository type metadata.

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
)

Functions

This section is empty.

Types

type CompliancePolicy

type CompliancePolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CompliancePolicySpec   `json:"spec"`
	Status            CompliancePolicyStatus `json:"status,omitempty"`
}

CompliancePolicy is the Schema for the CompliancePolicys API. <no value> +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,mongodbatlas}

func (*CompliancePolicy) DeepCopy

func (in *CompliancePolicy) DeepCopy() *CompliancePolicy

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

func (*CompliancePolicy) DeepCopyInto

func (in *CompliancePolicy) DeepCopyInto(out *CompliancePolicy)

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

func (*CompliancePolicy) DeepCopyObject

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

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

func (*CompliancePolicy) GetCondition

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

GetCondition of this CompliancePolicy.

func (*CompliancePolicy) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this CompliancePolicy

func (*CompliancePolicy) GetDeletionPolicy

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

GetDeletionPolicy of this CompliancePolicy.

func (*CompliancePolicy) GetID

func (tr *CompliancePolicy) GetID() string

GetID returns ID of underlying Terraform resource of this CompliancePolicy

func (*CompliancePolicy) GetObservation

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

GetObservation of this CompliancePolicy

func (*CompliancePolicy) GetParameters

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

GetParameters of this CompliancePolicy

func (*CompliancePolicy) GetProviderConfigReference

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

GetProviderConfigReference of this CompliancePolicy.

func (*CompliancePolicy) GetProviderReference

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

GetProviderReference of this CompliancePolicy. Deprecated: Use GetProviderConfigReference.

func (*CompliancePolicy) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this CompliancePolicy.

func (*CompliancePolicy) GetTerraformResourceType

func (mg *CompliancePolicy) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this CompliancePolicy

func (*CompliancePolicy) GetTerraformSchemaVersion

func (tr *CompliancePolicy) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*CompliancePolicy) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this CompliancePolicy.

func (*CompliancePolicy) LateInitialize

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

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

func (*CompliancePolicy) ResolveReferences

func (mg *CompliancePolicy) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this CompliancePolicy.

func (*CompliancePolicy) SetConditions

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

SetConditions of this CompliancePolicy.

func (*CompliancePolicy) SetDeletionPolicy

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

SetDeletionPolicy of this CompliancePolicy.

func (*CompliancePolicy) SetObservation

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

SetObservation for this CompliancePolicy

func (*CompliancePolicy) SetParameters

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

SetParameters for this CompliancePolicy

func (*CompliancePolicy) SetProviderConfigReference

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

SetProviderConfigReference of this CompliancePolicy.

func (*CompliancePolicy) SetProviderReference

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

SetProviderReference of this CompliancePolicy. Deprecated: Use SetProviderConfigReference.

func (*CompliancePolicy) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this CompliancePolicy.

func (*CompliancePolicy) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this CompliancePolicy.

type CompliancePolicyList

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

CompliancePolicyList contains a list of CompliancePolicys

func (*CompliancePolicyList) DeepCopy

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

func (*CompliancePolicyList) DeepCopyInto

func (in *CompliancePolicyList) DeepCopyInto(out *CompliancePolicyList)

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

func (*CompliancePolicyList) DeepCopyObject

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

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

func (*CompliancePolicyList) GetItems

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

GetItems of this CompliancePolicyList.

type CompliancePolicyObservation

type CompliancePolicyObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// +kubebuilder:validation:Required
	OnDemandPolicyItem []OnDemandPolicyItemObservation `json:"onDemandPolicyItem,omitempty" tf:"on_demand_policy_item,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemDaily []PolicyItemDailyObservation `json:"policyItemDaily,omitempty" tf:"policy_item_daily,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemHourly []PolicyItemHourlyObservation `json:"policyItemHourly,omitempty" tf:"policy_item_hourly,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemMonthly []PolicyItemMonthlyObservation `json:"policyItemMonthly,omitempty" tf:"policy_item_monthly,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemWeekly []PolicyItemWeeklyObservation `json:"policyItemWeekly,omitempty" tf:"policy_item_weekly,omitempty"`

	State *string `json:"state,omitempty" tf:"state,omitempty"`

	UpdatedDate *string `json:"updatedDate,omitempty" tf:"updated_date,omitempty"`

	UpdatedUser *string `json:"updatedUser,omitempty" tf:"updated_user,omitempty"`
}

func (*CompliancePolicyObservation) DeepCopy

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

func (*CompliancePolicyObservation) DeepCopyInto

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

type CompliancePolicyParameters

type CompliancePolicyParameters struct {

	// +kubebuilder:validation:Required
	AuthorizedEmail *string `json:"authorizedEmail" tf:"authorized_email,omitempty"`

	// +kubebuilder:validation:Required
	CopyProtectionEnabled *bool `json:"copyProtectionEnabled" tf:"copy_protection_enabled,omitempty"`

	// +kubebuilder:validation:Required
	EncryptionAtRestEnabled *bool `json:"encryptionAtRestEnabled" tf:"encryption_at_rest_enabled,omitempty"`

	// +kubebuilder:validation:Required
	OnDemandPolicyItem []OnDemandPolicyItemParameters `json:"onDemandPolicyItem" tf:"on_demand_policy_item,omitempty"`

	// +kubebuilder:validation:Required
	PitEnabled *bool `json:"pitEnabled" tf:"pit_enabled,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemDaily []PolicyItemDailyParameters `json:"policyItemDaily,omitempty" tf:"policy_item_daily,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemHourly []PolicyItemHourlyParameters `json:"policyItemHourly,omitempty" tf:"policy_item_hourly,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemMonthly []PolicyItemMonthlyParameters `json:"policyItemMonthly,omitempty" tf:"policy_item_monthly,omitempty"`

	// +kubebuilder:validation:Optional
	PolicyItemWeekly []PolicyItemWeeklyParameters `json:"policyItemWeekly,omitempty" tf:"policy_item_weekly,omitempty"`

	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-mongodbatlas/apis/mongodbatlas/v1alpha1.Project
	// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-mongodbatlas/config/common.ExtractResourceID()
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Reference to a Project in mongodbatlas to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`

	// Selector for a Project in mongodbatlas to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	RestoreWindowDays *float64 `json:"restoreWindowDays,omitempty" tf:"restore_window_days,omitempty"`
}

func (*CompliancePolicyParameters) DeepCopy

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

func (*CompliancePolicyParameters) DeepCopyInto

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

type CompliancePolicySpec

type CompliancePolicySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     CompliancePolicyParameters `json:"forProvider"`
}

CompliancePolicySpec defines the desired state of CompliancePolicy

func (*CompliancePolicySpec) DeepCopy

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

func (*CompliancePolicySpec) DeepCopyInto

func (in *CompliancePolicySpec) DeepCopyInto(out *CompliancePolicySpec)

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

type CompliancePolicyStatus

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

CompliancePolicyStatus defines the observed state of CompliancePolicy.

func (*CompliancePolicyStatus) DeepCopy

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

func (*CompliancePolicyStatus) DeepCopyInto

func (in *CompliancePolicyStatus) DeepCopyInto(out *CompliancePolicyStatus)

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

type OnDemandPolicyItemObservation

type OnDemandPolicyItemObservation struct {
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type,omitempty"`

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

func (*OnDemandPolicyItemObservation) DeepCopy

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

func (*OnDemandPolicyItemObservation) DeepCopyInto

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

type OnDemandPolicyItemParameters

type OnDemandPolicyItemParameters struct {

	// +kubebuilder:validation:Required
	FrequencyInterval *float64 `json:"frequencyInterval" tf:"frequency_interval,omitempty"`

	// +kubebuilder:validation:Required
	RetentionUnit *string `json:"retentionUnit" tf:"retention_unit,omitempty"`

	// +kubebuilder:validation:Required
	RetentionValue *float64 `json:"retentionValue" tf:"retention_value,omitempty"`
}

func (*OnDemandPolicyItemParameters) DeepCopy

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

func (*OnDemandPolicyItemParameters) DeepCopyInto

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

type PolicyItemDailyObservation

type PolicyItemDailyObservation struct {
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type,omitempty"`

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

func (*PolicyItemDailyObservation) DeepCopy

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

func (*PolicyItemDailyObservation) DeepCopyInto

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

type PolicyItemDailyParameters

type PolicyItemDailyParameters struct {

	// +kubebuilder:validation:Required
	FrequencyInterval *float64 `json:"frequencyInterval" tf:"frequency_interval,omitempty"`

	// +kubebuilder:validation:Required
	RetentionUnit *string `json:"retentionUnit" tf:"retention_unit,omitempty"`

	// +kubebuilder:validation:Required
	RetentionValue *float64 `json:"retentionValue" tf:"retention_value,omitempty"`
}

func (*PolicyItemDailyParameters) DeepCopy

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

func (*PolicyItemDailyParameters) DeepCopyInto

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

type PolicyItemHourlyObservation

type PolicyItemHourlyObservation struct {
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type,omitempty"`

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

func (*PolicyItemHourlyObservation) DeepCopy

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

func (*PolicyItemHourlyObservation) DeepCopyInto

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

type PolicyItemHourlyParameters

type PolicyItemHourlyParameters struct {

	// +kubebuilder:validation:Required
	FrequencyInterval *float64 `json:"frequencyInterval" tf:"frequency_interval,omitempty"`

	// +kubebuilder:validation:Required
	RetentionUnit *string `json:"retentionUnit" tf:"retention_unit,omitempty"`

	// +kubebuilder:validation:Required
	RetentionValue *float64 `json:"retentionValue" tf:"retention_value,omitempty"`
}

func (*PolicyItemHourlyParameters) DeepCopy

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

func (*PolicyItemHourlyParameters) DeepCopyInto

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

type PolicyItemMonthlyObservation

type PolicyItemMonthlyObservation struct {
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type,omitempty"`

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

func (*PolicyItemMonthlyObservation) DeepCopy

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

func (*PolicyItemMonthlyObservation) DeepCopyInto

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

type PolicyItemMonthlyParameters

type PolicyItemMonthlyParameters struct {

	// +kubebuilder:validation:Required
	FrequencyInterval *float64 `json:"frequencyInterval" tf:"frequency_interval,omitempty"`

	// +kubebuilder:validation:Required
	RetentionUnit *string `json:"retentionUnit" tf:"retention_unit,omitempty"`

	// +kubebuilder:validation:Required
	RetentionValue *float64 `json:"retentionValue" tf:"retention_value,omitempty"`
}

func (*PolicyItemMonthlyParameters) DeepCopy

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

func (*PolicyItemMonthlyParameters) DeepCopyInto

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

type PolicyItemWeeklyObservation

type PolicyItemWeeklyObservation struct {
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type,omitempty"`

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

func (*PolicyItemWeeklyObservation) DeepCopy

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

func (*PolicyItemWeeklyObservation) DeepCopyInto

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

type PolicyItemWeeklyParameters

type PolicyItemWeeklyParameters struct {

	// +kubebuilder:validation:Required
	FrequencyInterval *float64 `json:"frequencyInterval" tf:"frequency_interval,omitempty"`

	// +kubebuilder:validation:Required
	RetentionUnit *string `json:"retentionUnit" tf:"retention_unit,omitempty"`

	// +kubebuilder:validation:Required
	RetentionValue *float64 `json:"retentionValue" tf:"retention_value,omitempty"`
}

func (*PolicyItemWeeklyParameters) DeepCopy

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

func (*PolicyItemWeeklyParameters) DeepCopyInto

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