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: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "schedule.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 (
	Schedule_Kind             = "Schedule"
	Schedule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Schedule_Kind}.String()
	Schedule_KindAPIVersion   = Schedule_Kind + "." + CRDGroupVersion.String()
	Schedule_GroupVersionKind = CRDGroupVersion.WithKind(Schedule_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type FinalScheduleInitParameters added in v0.5.0

type FinalScheduleInitParameters struct {
}

func (*FinalScheduleInitParameters) DeepCopy added in v0.5.0

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

func (*FinalScheduleInitParameters) DeepCopyInto added in v0.5.0

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

type FinalScheduleObservation

type FinalScheduleObservation struct {

	// The name of the schedule.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	RenderedCoveragePercentage *string `json:"renderedCoveragePercentage,omitempty" tf:"rendered_coverage_percentage,omitempty"`
}

func (*FinalScheduleObservation) DeepCopy

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

func (*FinalScheduleObservation) DeepCopyInto

func (in *FinalScheduleObservation) DeepCopyInto(out *FinalScheduleObservation)

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

type FinalScheduleParameters

type FinalScheduleParameters struct {
}

func (*FinalScheduleParameters) DeepCopy

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

func (*FinalScheduleParameters) DeepCopyInto

func (in *FinalScheduleParameters) DeepCopyInto(out *FinalScheduleParameters)

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

type LayerInitParameters added in v0.5.0

type LayerInitParameters struct {

	// The end time of the schedule layer. If not specified, the layer does not end.
	End *string `json:"end,omitempty" tf:"end,omitempty"`

	// The name of the schedule.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// A schedule layer restriction block. Restriction blocks documented below.
	Restriction []RestrictionInitParameters `json:"restriction,omitempty" tf:"restriction,omitempty"`

	// The duration of each on-call shift in seconds.
	RotationTurnLengthSeconds *float64 `json:"rotationTurnLengthSeconds,omitempty" tf:"rotation_turn_length_seconds,omitempty"`

	// The effective start time of the schedule layer. This can be before the start time of the schedule.
	RotationVirtualStart *string `json:"rotationVirtualStart,omitempty" tf:"rotation_virtual_start,omitempty"`

	// The start time of the schedule layer.
	Start *string `json:"start,omitempty" tf:"start,omitempty"`

	// References to User in user to populate users.
	// +kubebuilder:validation:Optional
	UserRefs []v1.Reference `json:"userRefs,omitempty" tf:"-"`

	// Selector for a list of User in user to populate users.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`

	// The ordered list of users on this layer. The position of the user on the list determines their order in the layer.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/user/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRefs
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`
}

func (*LayerInitParameters) DeepCopy added in v0.5.0

func (in *LayerInitParameters) DeepCopy() *LayerInitParameters

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

func (*LayerInitParameters) DeepCopyInto added in v0.5.0

func (in *LayerInitParameters) DeepCopyInto(out *LayerInitParameters)

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

type LayerObservation

type LayerObservation struct {

	// The end time of the schedule layer. If not specified, the layer does not end.
	End *string `json:"end,omitempty" tf:"end,omitempty"`

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

	// The name of the schedule.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	RenderedCoveragePercentage *string `json:"renderedCoveragePercentage,omitempty" tf:"rendered_coverage_percentage,omitempty"`

	// A schedule layer restriction block. Restriction blocks documented below.
	Restriction []RestrictionObservation `json:"restriction,omitempty" tf:"restriction,omitempty"`

	// The duration of each on-call shift in seconds.
	RotationTurnLengthSeconds *float64 `json:"rotationTurnLengthSeconds,omitempty" tf:"rotation_turn_length_seconds,omitempty"`

	// The effective start time of the schedule layer. This can be before the start time of the schedule.
	RotationVirtualStart *string `json:"rotationVirtualStart,omitempty" tf:"rotation_virtual_start,omitempty"`

	// The start time of the schedule layer.
	Start *string `json:"start,omitempty" tf:"start,omitempty"`

	// The ordered list of users on this layer. The position of the user on the list determines their order in the layer.
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`
}

func (*LayerObservation) DeepCopy

func (in *LayerObservation) DeepCopy() *LayerObservation

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

func (*LayerObservation) DeepCopyInto

func (in *LayerObservation) DeepCopyInto(out *LayerObservation)

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

type LayerParameters

type LayerParameters struct {

	// The end time of the schedule layer. If not specified, the layer does not end.
	// +kubebuilder:validation:Optional
	End *string `json:"end,omitempty" tf:"end,omitempty"`

	// The name of the schedule.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// A schedule layer restriction block. Restriction blocks documented below.
	// +kubebuilder:validation:Optional
	Restriction []RestrictionParameters `json:"restriction,omitempty" tf:"restriction,omitempty"`

	// The duration of each on-call shift in seconds.
	// +kubebuilder:validation:Optional
	RotationTurnLengthSeconds *float64 `json:"rotationTurnLengthSeconds" tf:"rotation_turn_length_seconds,omitempty"`

	// The effective start time of the schedule layer. This can be before the start time of the schedule.
	// +kubebuilder:validation:Optional
	RotationVirtualStart *string `json:"rotationVirtualStart" tf:"rotation_virtual_start,omitempty"`

	// The start time of the schedule layer.
	// +kubebuilder:validation:Optional
	Start *string `json:"start" tf:"start,omitempty"`

	// References to User in user to populate users.
	// +kubebuilder:validation:Optional
	UserRefs []v1.Reference `json:"userRefs,omitempty" tf:"-"`

	// Selector for a list of User in user to populate users.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`

	// The ordered list of users on this layer. The position of the user on the list determines their order in the layer.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/user/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRefs
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	// +kubebuilder:validation:Optional
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`
}

func (*LayerParameters) DeepCopy

func (in *LayerParameters) DeepCopy() *LayerParameters

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

func (*LayerParameters) DeepCopyInto

func (in *LayerParameters) DeepCopyInto(out *LayerParameters)

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

type RestrictionInitParameters added in v0.5.0

type RestrictionInitParameters struct {

	// The duration of the restriction in seconds.
	DurationSeconds *float64 `json:"durationSeconds,omitempty" tf:"duration_seconds,omitempty"`

	// Number of the day when restriction starts. From 1 to 7 where 1 is Monday and 7 is Sunday.
	StartDayOfWeek *float64 `json:"startDayOfWeek,omitempty" tf:"start_day_of_week,omitempty"`

	// The start time in HH:mm:ss format.
	StartTimeOfDay *string `json:"startTimeOfDay,omitempty" tf:"start_time_of_day,omitempty"`

	// Can be daily_restriction or weekly_restriction.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*RestrictionInitParameters) DeepCopy added in v0.5.0

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

func (*RestrictionInitParameters) DeepCopyInto added in v0.5.0

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

type RestrictionObservation

type RestrictionObservation struct {

	// The duration of the restriction in seconds.
	DurationSeconds *float64 `json:"durationSeconds,omitempty" tf:"duration_seconds,omitempty"`

	// Number of the day when restriction starts. From 1 to 7 where 1 is Monday and 7 is Sunday.
	StartDayOfWeek *float64 `json:"startDayOfWeek,omitempty" tf:"start_day_of_week,omitempty"`

	// The start time in HH:mm:ss format.
	StartTimeOfDay *string `json:"startTimeOfDay,omitempty" tf:"start_time_of_day,omitempty"`

	// Can be daily_restriction or weekly_restriction.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*RestrictionObservation) DeepCopy

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

func (*RestrictionObservation) DeepCopyInto

func (in *RestrictionObservation) DeepCopyInto(out *RestrictionObservation)

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

type RestrictionParameters

type RestrictionParameters struct {

	// The duration of the restriction in seconds.
	// +kubebuilder:validation:Optional
	DurationSeconds *float64 `json:"durationSeconds" tf:"duration_seconds,omitempty"`

	// Number of the day when restriction starts. From 1 to 7 where 1 is Monday and 7 is Sunday.
	// +kubebuilder:validation:Optional
	StartDayOfWeek *float64 `json:"startDayOfWeek,omitempty" tf:"start_day_of_week,omitempty"`

	// The start time in HH:mm:ss format.
	// +kubebuilder:validation:Optional
	StartTimeOfDay *string `json:"startTimeOfDay" tf:"start_time_of_day,omitempty"`

	// Can be daily_restriction or weekly_restriction.
	// +kubebuilder:validation:Optional
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*RestrictionParameters) DeepCopy

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

func (*RestrictionParameters) DeepCopyInto

func (in *RestrictionParameters) DeepCopyInto(out *RestrictionParameters)

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

type Schedule

type Schedule 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.layer) || (has(self.initProvider) && has(self.initProvider.layer))",message="spec.forProvider.layer is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.timeZone) || (has(self.initProvider) && has(self.initProvider.timeZone))",message="spec.forProvider.timeZone is a required parameter"
	Spec   ScheduleSpec   `json:"spec"`
	Status ScheduleStatus `json:"status,omitempty"`
}

Schedule is the Schema for the Schedules API. Creates and manages a schedule 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 (*Schedule) DeepCopy

func (in *Schedule) DeepCopy() *Schedule

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

func (*Schedule) DeepCopyInto

func (in *Schedule) DeepCopyInto(out *Schedule)

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

func (*Schedule) DeepCopyObject

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

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

func (*Schedule) GetCondition

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

GetCondition of this Schedule.

func (*Schedule) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Schedule

func (*Schedule) GetDeletionPolicy

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

GetDeletionPolicy of this Schedule.

func (*Schedule) GetID

func (tr *Schedule) GetID() string

GetID returns ID of underlying Terraform resource of this Schedule

func (*Schedule) GetInitParameters added in v0.5.0

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

GetInitParameters of this Schedule

func (*Schedule) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this Schedule.

func (*Schedule) GetMergedParameters added in v0.8.0

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

GetInitParameters of this Schedule

func (*Schedule) GetObservation

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

GetObservation of this Schedule

func (*Schedule) GetParameters

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

GetParameters of this Schedule

func (*Schedule) GetProviderConfigReference

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

GetProviderConfigReference of this Schedule.

func (*Schedule) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Schedule.

func (*Schedule) GetTerraformResourceType

func (mg *Schedule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Schedule

func (*Schedule) GetTerraformSchemaVersion

func (tr *Schedule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Schedule) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Schedule.

func (*Schedule) Hub added in v0.8.0

func (tr *Schedule) Hub()

Hub marks this type as a conversion hub.

func (*Schedule) LateInitialize

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

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

func (*Schedule) ResolveReferences

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

ResolveReferences of this Schedule.

func (*Schedule) SetConditions

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

SetConditions of this Schedule.

func (*Schedule) SetDeletionPolicy

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

SetDeletionPolicy of this Schedule.

func (*Schedule) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this Schedule.

func (*Schedule) SetObservation

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

SetObservation for this Schedule

func (*Schedule) SetParameters

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

SetParameters for this Schedule

func (*Schedule) SetProviderConfigReference

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

SetProviderConfigReference of this Schedule.

func (*Schedule) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Schedule.

func (*Schedule) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Schedule.

type ScheduleInitParameters added in v0.5.0

type ScheduleInitParameters struct {

	// The description of the schedule.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A schedule layer block. Schedule layers documented below.
	Layer []LayerInitParameters `json:"layer,omitempty" tf:"layer,omitempty"`

	// The name of the schedule.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Any on-call schedule entries that pass the date range bounds will be truncated at the bounds, unless the parameter overflow is passed. For instance, if your schedule is a rotation that changes daily at midnight UTC, and your date range is from 2011-06-01T10:00:00Z to 2011-06-01T14:00:00Z:
	// If you don't pass the overflow=true parameter, you will get one schedule entry returned with a start of 2011-06-01T10:00:00Z and end of 2011-06-01T14:00:00Z.
	// If you do pass the overflow parameter, you will get one schedule entry returned with a start of 2011-06-01T00:00:00Z and end of 2011-06-02T00:00:00Z.
	Overflow *bool `json:"overflow,omitempty" tf:"overflow,omitempty"`

	// References to Team in team to populate teams.
	// +kubebuilder:validation:Optional
	TeamRefs []v1.Reference `json:"teamRefs,omitempty" tf:"-"`

	// Selector for a list of Team in team to populate teams.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// Teams associated with the schedule.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/team/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRefs
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	Teams []*string `json:"teams,omitempty" tf:"teams,omitempty"`

	// The time zone of the schedule (e.g. Europe/Berlin).
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*ScheduleInitParameters) DeepCopy added in v0.5.0

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

func (*ScheduleInitParameters) DeepCopyInto added in v0.5.0

func (in *ScheduleInitParameters) DeepCopyInto(out *ScheduleInitParameters)

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

type ScheduleList

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

ScheduleList contains a list of Schedules

func (*ScheduleList) DeepCopy

func (in *ScheduleList) DeepCopy() *ScheduleList

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

func (*ScheduleList) DeepCopyInto

func (in *ScheduleList) DeepCopyInto(out *ScheduleList)

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

func (*ScheduleList) DeepCopyObject

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

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

func (*ScheduleList) GetItems

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

GetItems of this ScheduleList.

type ScheduleObservation

type ScheduleObservation struct {

	// The description of the schedule.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	FinalSchedule []FinalScheduleObservation `json:"finalSchedule,omitempty" tf:"final_schedule,omitempty"`

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

	// A schedule layer block. Schedule layers documented below.
	Layer []LayerObservation `json:"layer,omitempty" tf:"layer,omitempty"`

	// The name of the schedule.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Any on-call schedule entries that pass the date range bounds will be truncated at the bounds, unless the parameter overflow is passed. For instance, if your schedule is a rotation that changes daily at midnight UTC, and your date range is from 2011-06-01T10:00:00Z to 2011-06-01T14:00:00Z:
	// If you don't pass the overflow=true parameter, you will get one schedule entry returned with a start of 2011-06-01T10:00:00Z and end of 2011-06-01T14:00:00Z.
	// If you do pass the overflow parameter, you will get one schedule entry returned with a start of 2011-06-01T00:00:00Z and end of 2011-06-02T00:00:00Z.
	Overflow *bool `json:"overflow,omitempty" tf:"overflow,omitempty"`

	// Teams associated with the schedule.
	Teams []*string `json:"teams,omitempty" tf:"teams,omitempty"`

	// The time zone of the schedule (e.g. Europe/Berlin).
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*ScheduleObservation) DeepCopy

func (in *ScheduleObservation) DeepCopy() *ScheduleObservation

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

func (*ScheduleObservation) DeepCopyInto

func (in *ScheduleObservation) DeepCopyInto(out *ScheduleObservation)

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

type ScheduleParameters

type ScheduleParameters struct {

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

	// A schedule layer block. Schedule layers documented below.
	// +kubebuilder:validation:Optional
	Layer []LayerParameters `json:"layer,omitempty" tf:"layer,omitempty"`

	// The name of the schedule.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Any on-call schedule entries that pass the date range bounds will be truncated at the bounds, unless the parameter overflow is passed. For instance, if your schedule is a rotation that changes daily at midnight UTC, and your date range is from 2011-06-01T10:00:00Z to 2011-06-01T14:00:00Z:
	// If you don't pass the overflow=true parameter, you will get one schedule entry returned with a start of 2011-06-01T10:00:00Z and end of 2011-06-01T14:00:00Z.
	// If you do pass the overflow parameter, you will get one schedule entry returned with a start of 2011-06-01T00:00:00Z and end of 2011-06-02T00:00:00Z.
	// +kubebuilder:validation:Optional
	Overflow *bool `json:"overflow,omitempty" tf:"overflow,omitempty"`

	// References to Team in team to populate teams.
	// +kubebuilder:validation:Optional
	TeamRefs []v1.Reference `json:"teamRefs,omitempty" tf:"-"`

	// Selector for a list of Team in team to populate teams.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// Teams associated with the schedule.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-pagerduty/apis/team/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRefs
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	// +kubebuilder:validation:Optional
	Teams []*string `json:"teams,omitempty" tf:"teams,omitempty"`

	// The time zone of the schedule (e.g. Europe/Berlin).
	// +kubebuilder:validation:Optional
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*ScheduleParameters) DeepCopy

func (in *ScheduleParameters) DeepCopy() *ScheduleParameters

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

func (*ScheduleParameters) DeepCopyInto

func (in *ScheduleParameters) DeepCopyInto(out *ScheduleParameters)

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

type ScheduleSpec

type ScheduleSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ScheduleParameters `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 ScheduleInitParameters `json:"initProvider,omitempty"`
}

ScheduleSpec defines the desired state of Schedule

func (*ScheduleSpec) DeepCopy

func (in *ScheduleSpec) DeepCopy() *ScheduleSpec

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

func (*ScheduleSpec) DeepCopyInto

func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec)

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

type ScheduleStatus

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

ScheduleStatus defines the observed state of Schedule.

func (*ScheduleStatus) DeepCopy

func (in *ScheduleStatus) DeepCopy() *ScheduleStatus

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

func (*ScheduleStatus) DeepCopyInto

func (in *ScheduleStatus) DeepCopyInto(out *ScheduleStatus)

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