v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=maintenance.pagerduty.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "maintenance.pagerduty.crossplane.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 (
	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="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.endTime) || (has(self.initProvider) && has(self.initProvider.endTime))",message="spec.forProvider.endTime is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.startTime) || (has(self.initProvider) && has(self.initProvider.startTime))",message="spec.forProvider.startTime is a required parameter"
	Spec   WindowSpec   `json:"spec"`
	Status WindowStatus `json:"status,omitempty"`
}

Window is the Schema for the Windows API. Creates and manages a maintenance window in PagerDuty. +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:resource:scope=Cluster,categories={crossplane,managed,pagerduty}

func (*Window) DeepCopy

func (in *Window) DeepCopy() *Window

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

func (*Window) DeepCopyInto

func (in *Window) DeepCopyInto(out *Window)

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

func (*Window) DeepCopyObject

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

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

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

GetConnectionDetailsMapping for this Window

func (*Window) GetDeletionPolicy

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

GetDeletionPolicy of this Window.

func (*Window) GetID

func (tr *Window) GetID() string

GetID returns ID of underlying Terraform resource of this Window

func (*Window) GetInitParameters added in v0.5.0

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

GetInitParameters of this Window

func (*Window) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this Window.

func (*Window) GetMergedParameters added in v0.8.0

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

GetInitParameters of this Window

func (*Window) GetObservation

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

GetObservation of this Window

func (*Window) GetParameters

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

GetParameters of this Window

func (*Window) GetProviderConfigReference

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

GetProviderConfigReference of this Window.

func (*Window) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Window.

func (*Window) GetTerraformResourceType

func (mg *Window) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Window

func (*Window) GetTerraformSchemaVersion

func (tr *Window) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Window) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Window.

func (*Window) Hub added in v0.8.0

func (tr *Window) Hub()

Hub marks this type as a conversion hub.

func (*Window) LateInitialize

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

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

func (*Window) ResolveReferences

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

ResolveReferences of this Window.

func (*Window) SetConditions

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

SetConditions of this Window.

func (*Window) SetDeletionPolicy

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

SetDeletionPolicy of this Window.

func (*Window) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this Window.

func (*Window) SetObservation

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

SetObservation for this Window

func (*Window) SetParameters

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

SetParameters for this Window

func (*Window) SetProviderConfigReference

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

SetProviderConfigReference of this Window.

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

type WindowInitParameters struct {

	// A description for the maintenance window.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the start_time.
	EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`

	// References to Service in service to populate services.
	// +kubebuilder:validation:Optional
	ServiceRefs []v1.Reference `json:"serviceRefs,omitempty" tf:"-"`

	// Selector for a list of Service in service to populate services.
	// +kubebuilder:validation:Optional
	ServiceSelector *v1.Selector `json:"serviceSelector,omitempty" tf:"-"`

	// A list of service IDs to include in the maintenance window.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/service/v1alpha1.Service
	// +crossplane:generate:reference:refFieldName=ServiceRefs
	// +crossplane:generate:reference:selectorFieldName=ServiceSelector
	// +listType=set
	Services []*string `json:"services,omitempty" tf:"services,omitempty"`

	// The maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time.
	StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}

func (*WindowInitParameters) DeepCopy added in v0.5.0

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

func (*WindowInitParameters) DeepCopyInto added in v0.5.0

func (in *WindowInitParameters) DeepCopyInto(out *WindowInitParameters)

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

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 {

	// A description for the maintenance window.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the start_time.
	EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`

	// The ID of the maintenance window.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A list of service IDs to include in the maintenance window.
	// +listType=set
	Services []*string `json:"services,omitempty" tf:"services,omitempty"`

	// The maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time.
	StartTime *string `json:"startTime,omitempty" tf:"start_time,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 {

	// A description for the maintenance window.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the start_time.
	// +kubebuilder:validation:Optional
	EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`

	// References to Service in service to populate services.
	// +kubebuilder:validation:Optional
	ServiceRefs []v1.Reference `json:"serviceRefs,omitempty" tf:"-"`

	// Selector for a list of Service in service to populate services.
	// +kubebuilder:validation:Optional
	ServiceSelector *v1.Selector `json:"serviceSelector,omitempty" tf:"-"`

	// A list of service IDs to include in the maintenance window.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/service/v1alpha1.Service
	// +crossplane:generate:reference:refFieldName=ServiceRefs
	// +crossplane:generate:reference:selectorFieldName=ServiceSelector
	// +kubebuilder:validation:Optional
	// +listType=set
	Services []*string `json:"services,omitempty" tf:"services,omitempty"`

	// The maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time.
	// +kubebuilder:validation:Optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time,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"`
	// 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 WindowInitParameters `json:"initProvider,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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