Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=maintenance.mongodbatlas.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Window
- func (in *Window) DeepCopy() *Window
- func (in *Window) DeepCopyInto(out *Window)
- func (in *Window) DeepCopyObject() runtime.Object
- func (mg *Window) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Window) GetConnectionDetailsMapping() map[string]string
- func (mg *Window) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Window) GetID() string
- func (mg *Window) GetManagementPolicy() xpv1.ManagementPolicy
- func (tr *Window) GetObservation() (map[string]any, error)
- func (tr *Window) GetParameters() (map[string]any, error)
- func (mg *Window) GetProviderConfigReference() *xpv1.Reference
- func (mg *Window) GetProviderReference() *xpv1.Reference
- func (mg *Window) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Window) GetTerraformResourceType() string
- func (tr *Window) GetTerraformSchemaVersion() int
- func (mg *Window) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Window) LateInitialize(attrs []byte) (bool, error)
- func (mg *Window) SetConditions(c ...xpv1.Condition)
- func (mg *Window) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Window) SetManagementPolicy(r xpv1.ManagementPolicy)
- func (tr *Window) SetObservation(obs map[string]any) error
- func (tr *Window) SetParameters(params map[string]any) error
- func (mg *Window) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Window) SetProviderReference(r *xpv1.Reference)
- func (mg *Window) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Window) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type WindowList
- type WindowObservation
- type WindowParameters
- type WindowSpec
- type WindowStatus
Constants ¶
const ( CRDGroup = "maintenance.mongodbatlas.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( Window_Kind = "Window" Window_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Window_Kind}.String() Window_KindAPIVersion = Window_Kind + "." + CRDGroupVersion.String() Window_GroupVersionKind = CRDGroupVersion.WithKind(Window_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.projectId)",message="projectId is a required parameter" Spec WindowSpec `json:"spec"` Status WindowStatus `json:"status,omitempty"` }
Window is the Schema for the Windows API. Provides an Maintenance Window resource. +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 (*Window) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Window.
func (*Window) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Window) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Window) GetCondition ¶
func (mg *Window) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Window.
func (*Window) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Window
func (*Window) GetDeletionPolicy ¶
func (mg *Window) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Window.
func (*Window) GetManagementPolicy ¶
func (mg *Window) GetManagementPolicy() xpv1.ManagementPolicy
GetManagementPolicy of this Window.
func (*Window) GetObservation ¶
GetObservation of this Window
func (*Window) GetParameters ¶
GetParameters of this Window
func (*Window) GetProviderConfigReference ¶
GetProviderConfigReference of this Window.
func (*Window) GetProviderReference ¶
GetProviderReference of this Window. Deprecated: Use GetProviderConfigReference.
func (*Window) GetPublishConnectionDetailsTo ¶
func (mg *Window) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Window.
func (*Window) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Window
func (*Window) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Window) GetWriteConnectionSecretToReference ¶
func (mg *Window) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Window.
func (*Window) LateInitialize ¶
LateInitialize this Window using its observed tfState. returns True if there are any spec changes for the resource.
func (*Window) SetConditions ¶
SetConditions of this Window.
func (*Window) SetDeletionPolicy ¶
func (mg *Window) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Window.
func (*Window) SetManagementPolicy ¶
func (mg *Window) SetManagementPolicy(r xpv1.ManagementPolicy)
SetManagementPolicy of this Window.
func (*Window) SetObservation ¶
SetObservation for this Window
func (*Window) SetParameters ¶
SetParameters for this Window
func (*Window) SetProviderConfigReference ¶
SetProviderConfigReference of this Window.
func (*Window) SetProviderReference ¶
SetProviderReference of this Window. Deprecated: Use SetProviderConfigReference.
func (*Window) SetPublishConnectionDetailsTo ¶
func (mg *Window) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Window.
func (*Window) SetWriteConnectionSecretToReference ¶
func (mg *Window) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Window.
type WindowList ¶
type WindowList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Window `json:"items"` }
WindowList contains a list of Windows
func (*WindowList) DeepCopy ¶
func (in *WindowList) DeepCopy() *WindowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowList.
func (*WindowList) DeepCopyInto ¶
func (in *WindowList) DeepCopyInto(out *WindowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WindowList) DeepCopyObject ¶
func (in *WindowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WindowList) GetItems ¶
func (l *WindowList) GetItems() []resource.Managed
GetItems of this WindowList.
type WindowObservation ¶
type WindowObservation struct { // Defer any scheduled maintenance for the given project for one week. AutoDefer *bool `json:"autoDefer,omitempty" tf:"auto_defer,omitempty"` // Flag that indicates whether you want to defer all maintenance windows one week they would be triggered. AutoDeferOnceEnabled *bool `json:"autoDeferOnceEnabled,omitempty" tf:"auto_defer_once_enabled,omitempty"` // Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7. DayOfWeek *float64 `json:"dayOfWeek,omitempty" tf:"day_of_week,omitempty"` // Defer the next scheduled maintenance for the given project for one week. Defer *bool `json:"defer,omitempty" tf:"defer,omitempty"` // Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC). HourOfDay *float64 `json:"hourOfDay,omitempty" tf:"hour_of_day,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals. NumberOfDeferrals *float64 `json:"numberOfDeferrals,omitempty" tf:"number_of_deferrals,omitempty"` // The unique identifier of the project for the Maintenance Window. ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` // Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes. StartAsap *bool `json:"startAsap,omitempty" tf:"start_asap,omitempty"` }
func (*WindowObservation) DeepCopy ¶
func (in *WindowObservation) DeepCopy() *WindowObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowObservation.
func (*WindowObservation) DeepCopyInto ¶
func (in *WindowObservation) DeepCopyInto(out *WindowObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WindowParameters ¶
type WindowParameters struct { // Defer any scheduled maintenance for the given project for one week. // +kubebuilder:validation:Optional AutoDefer *bool `json:"autoDefer,omitempty" tf:"auto_defer,omitempty"` // Flag that indicates whether you want to defer all maintenance windows one week they would be triggered. // +kubebuilder:validation:Optional AutoDeferOnceEnabled *bool `json:"autoDeferOnceEnabled,omitempty" tf:"auto_defer_once_enabled,omitempty"` // Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7. // +kubebuilder:validation:Optional DayOfWeek *float64 `json:"dayOfWeek,omitempty" tf:"day_of_week,omitempty"` // Defer the next scheduled maintenance for the given project for one week. // +kubebuilder:validation:Optional Defer *bool `json:"defer,omitempty" tf:"defer,omitempty"` // Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC). // +kubebuilder:validation:Optional HourOfDay *float64 `json:"hourOfDay,omitempty" tf:"hour_of_day,omitempty"` // Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals. // +kubebuilder:validation:Optional NumberOfDeferrals *float64 `json:"numberOfDeferrals,omitempty" tf:"number_of_deferrals,omitempty"` // The unique identifier of the project for the Maintenance Window. // +kubebuilder:validation:Optional ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` }
func (*WindowParameters) DeepCopy ¶
func (in *WindowParameters) DeepCopy() *WindowParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowParameters.
func (*WindowParameters) DeepCopyInto ¶
func (in *WindowParameters) DeepCopyInto(out *WindowParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WindowSpec ¶
type WindowSpec struct { v1.ResourceSpec `json:",inline"` ForProvider WindowParameters `json:"forProvider"` }
WindowSpec defines the desired state of Window
func (*WindowSpec) DeepCopy ¶
func (in *WindowSpec) DeepCopy() *WindowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowSpec.
func (*WindowSpec) DeepCopyInto ¶
func (in *WindowSpec) DeepCopyInto(out *WindowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WindowStatus ¶
type WindowStatus struct { v1.ResourceStatus `json:",inline"` AtProvider WindowObservation `json:"atProvider,omitempty"` }
WindowStatus defines the observed state of Window.
func (*WindowStatus) DeepCopy ¶
func (in *WindowStatus) DeepCopy() *WindowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowStatus.
func (*WindowStatus) DeepCopyInto ¶
func (in *WindowStatus) DeepCopyInto(out *WindowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.