v1alpha1

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "user.pagerduty.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	ContactMethod_Kind             = "ContactMethod"
	ContactMethod_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ContactMethod_Kind}.String()
	ContactMethod_KindAPIVersion   = ContactMethod_Kind + "." + CRDGroupVersion.String()
	ContactMethod_GroupVersionKind = CRDGroupVersion.WithKind(ContactMethod_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
)
View Source
var (
	HandoffNotificationRule_Kind             = "HandoffNotificationRule"
	HandoffNotificationRule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: HandoffNotificationRule_Kind}.String()
	HandoffNotificationRule_KindAPIVersion   = HandoffNotificationRule_Kind + "." + CRDGroupVersion.String()
	HandoffNotificationRule_GroupVersionKind = CRDGroupVersion.WithKind(HandoffNotificationRule_Kind)
)

Repository type metadata.

View Source
var (
	NotificationRule_Kind             = "NotificationRule"
	NotificationRule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: NotificationRule_Kind}.String()
	NotificationRule_KindAPIVersion   = NotificationRule_Kind + "." + CRDGroupVersion.String()
	NotificationRule_GroupVersionKind = CRDGroupVersion.WithKind(NotificationRule_Kind)
)

Repository type metadata.

View Source
var (
	User_Kind             = "User"
	User_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: User_Kind}.String()
	User_KindAPIVersion   = User_Kind + "." + CRDGroupVersion.String()
	User_GroupVersionKind = CRDGroupVersion.WithKind(User_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ContactMethod

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

ContactMethod is the Schema for the ContactMethods API. Creates and manages contact methods for a user in PagerDuty. +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,pagerduty}

func (*ContactMethod) DeepCopy

func (in *ContactMethod) DeepCopy() *ContactMethod

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

func (*ContactMethod) DeepCopyInto

func (in *ContactMethod) DeepCopyInto(out *ContactMethod)

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

func (*ContactMethod) DeepCopyObject

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

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

func (*ContactMethod) GetCondition

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

GetCondition of this ContactMethod.

func (*ContactMethod) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ContactMethod

func (*ContactMethod) GetDeletionPolicy

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

GetDeletionPolicy of this ContactMethod.

func (*ContactMethod) GetID

func (tr *ContactMethod) GetID() string

GetID returns ID of underlying Terraform resource of this ContactMethod

func (*ContactMethod) GetInitParameters added in v0.5.0

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

GetInitParameters of this ContactMethod

func (*ContactMethod) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this ContactMethod.

func (*ContactMethod) GetMergedParameters added in v0.8.0

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

GetInitParameters of this ContactMethod

func (*ContactMethod) GetObservation

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

GetObservation of this ContactMethod

func (*ContactMethod) GetParameters

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

GetParameters of this ContactMethod

func (*ContactMethod) GetProviderConfigReference

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

GetProviderConfigReference of this ContactMethod.

func (*ContactMethod) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ContactMethod.

func (*ContactMethod) GetTerraformResourceType

func (mg *ContactMethod) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ContactMethod

func (*ContactMethod) GetTerraformSchemaVersion

func (tr *ContactMethod) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ContactMethod) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ContactMethod.

func (*ContactMethod) Hub added in v0.8.0

func (tr *ContactMethod) Hub()

Hub marks this type as a conversion hub.

func (*ContactMethod) LateInitialize

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

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

func (*ContactMethod) ResolveReferences

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

ResolveReferences of this ContactMethod.

func (*ContactMethod) SetConditions

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

SetConditions of this ContactMethod.

func (*ContactMethod) SetDeletionPolicy

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

SetDeletionPolicy of this ContactMethod.

func (*ContactMethod) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this ContactMethod.

func (*ContactMethod) SetObservation

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

SetObservation for this ContactMethod

func (*ContactMethod) SetParameters

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

SetParameters for this ContactMethod

func (*ContactMethod) SetProviderConfigReference

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

SetProviderConfigReference of this ContactMethod.

func (*ContactMethod) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ContactMethod.

func (*ContactMethod) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ContactMethod.

type ContactMethodInitParameters added in v0.5.0

type ContactMethodInitParameters struct {

	// The "address" to deliver to: email, phone number, etc., depending on the type.
	Address *string `json:"address,omitempty" tf:"address,omitempty"`

	// The 1-to-3 digit country calling code. Required when using phone_contact_method or sms_contact_method.
	CountryCode *float64 `json:"countryCode,omitempty" tf:"country_code,omitempty"`

	// The label (e.g., "Work", "Mobile", etc.).
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// Send an abbreviated email message instead of the standard email output.
	SendShortEmail *bool `json:"sendShortEmail,omitempty" tf:"send_short_email,omitempty"`

	// The contact method type. May be (email_contact_method, phone_contact_method, sms_contact_method, push_notification_contact_method).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// The ID of the user.
	// +crossplane:generate:reference:type=User
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDRef *v1.Reference `json:"userIdRef,omitempty" tf:"-"`

	// Selector for a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDSelector *v1.Selector `json:"userIdSelector,omitempty" tf:"-"`
}

func (*ContactMethodInitParameters) DeepCopy added in v0.5.0

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

func (*ContactMethodInitParameters) DeepCopyInto added in v0.5.0

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

type ContactMethodList

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

ContactMethodList contains a list of ContactMethods

func (*ContactMethodList) DeepCopy

func (in *ContactMethodList) DeepCopy() *ContactMethodList

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

func (*ContactMethodList) DeepCopyInto

func (in *ContactMethodList) DeepCopyInto(out *ContactMethodList)

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

func (*ContactMethodList) DeepCopyObject

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

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

func (*ContactMethodList) GetItems

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

GetItems of this ContactMethodList.

type ContactMethodObservation

type ContactMethodObservation struct {

	// The "address" to deliver to: email, phone number, etc., depending on the type.
	Address *string `json:"address,omitempty" tf:"address,omitempty"`

	// If true, this phone has been blacklisted by PagerDuty and no messages will be sent to it.
	Blacklisted *bool `json:"blacklisted,omitempty" tf:"blacklisted,omitempty"`

	// The 1-to-3 digit country calling code. Required when using phone_contact_method or sms_contact_method.
	CountryCode *float64 `json:"countryCode,omitempty" tf:"country_code,omitempty"`

	// If true, this phone is capable of receiving SMS messages.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

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

	// The label (e.g., "Work", "Mobile", etc.).
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// Send an abbreviated email message instead of the standard email output.
	SendShortEmail *bool `json:"sendShortEmail,omitempty" tf:"send_short_email,omitempty"`

	// The contact method type. May be (email_contact_method, phone_contact_method, sms_contact_method, push_notification_contact_method).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// The ID of the user.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*ContactMethodObservation) DeepCopy

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

func (*ContactMethodObservation) DeepCopyInto

func (in *ContactMethodObservation) DeepCopyInto(out *ContactMethodObservation)

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

type ContactMethodParameters

type ContactMethodParameters struct {

	// The "address" to deliver to: email, phone number, etc., depending on the type.
	// +kubebuilder:validation:Optional
	Address *string `json:"address,omitempty" tf:"address,omitempty"`

	// The 1-to-3 digit country calling code. Required when using phone_contact_method or sms_contact_method.
	// +kubebuilder:validation:Optional
	CountryCode *float64 `json:"countryCode,omitempty" tf:"country_code,omitempty"`

	// The label (e.g., "Work", "Mobile", etc.).
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// Send an abbreviated email message instead of the standard email output.
	// +kubebuilder:validation:Optional
	SendShortEmail *bool `json:"sendShortEmail,omitempty" tf:"send_short_email,omitempty"`

	// The contact method type. May be (email_contact_method, phone_contact_method, sms_contact_method, push_notification_contact_method).
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// The ID of the user.
	// +crossplane:generate:reference:type=User
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDRef *v1.Reference `json:"userIdRef,omitempty" tf:"-"`

	// Selector for a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDSelector *v1.Selector `json:"userIdSelector,omitempty" tf:"-"`
}

func (*ContactMethodParameters) DeepCopy

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

func (*ContactMethodParameters) DeepCopyInto

func (in *ContactMethodParameters) DeepCopyInto(out *ContactMethodParameters)

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

type ContactMethodSpec

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

ContactMethodSpec defines the desired state of ContactMethod

func (*ContactMethodSpec) DeepCopy

func (in *ContactMethodSpec) DeepCopy() *ContactMethodSpec

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

func (*ContactMethodSpec) DeepCopyInto

func (in *ContactMethodSpec) DeepCopyInto(out *ContactMethodSpec)

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

type ContactMethodStatus

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

ContactMethodStatus defines the observed state of ContactMethod.

func (*ContactMethodStatus) DeepCopy

func (in *ContactMethodStatus) DeepCopy() *ContactMethodStatus

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

func (*ContactMethodStatus) DeepCopyInto

func (in *ContactMethodStatus) DeepCopyInto(out *ContactMethodStatus)

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

type HandoffNotificationRule added in v0.10.0

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

HandoffNotificationRule is the Schema for the HandoffNotificationRules API. Creates and manages an user handoff notification rule in PagerDuty. +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,pagerduty}

func (*HandoffNotificationRule) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRule) DeepCopyInto added in v0.10.0

func (in *HandoffNotificationRule) DeepCopyInto(out *HandoffNotificationRule)

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

func (*HandoffNotificationRule) DeepCopyObject added in v0.10.0

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

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

func (*HandoffNotificationRule) GetCondition added in v0.10.0

GetCondition of this HandoffNotificationRule.

func (*HandoffNotificationRule) GetConnectionDetailsMapping added in v0.10.0

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

GetConnectionDetailsMapping for this HandoffNotificationRule

func (*HandoffNotificationRule) GetDeletionPolicy added in v0.10.0

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

GetDeletionPolicy of this HandoffNotificationRule.

func (*HandoffNotificationRule) GetID added in v0.10.0

func (tr *HandoffNotificationRule) GetID() string

GetID returns ID of underlying Terraform resource of this HandoffNotificationRule

func (*HandoffNotificationRule) GetInitParameters added in v0.10.0

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

GetInitParameters of this HandoffNotificationRule

func (*HandoffNotificationRule) GetManagementPolicies added in v0.10.0

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

GetManagementPolicies of this HandoffNotificationRule.

func (*HandoffNotificationRule) GetMergedParameters added in v0.10.0

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

GetInitParameters of this HandoffNotificationRule

func (*HandoffNotificationRule) GetObservation added in v0.10.0

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

GetObservation of this HandoffNotificationRule

func (*HandoffNotificationRule) GetParameters added in v0.10.0

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

GetParameters of this HandoffNotificationRule

func (*HandoffNotificationRule) GetProviderConfigReference added in v0.10.0

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

GetProviderConfigReference of this HandoffNotificationRule.

func (*HandoffNotificationRule) GetPublishConnectionDetailsTo added in v0.10.0

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

GetPublishConnectionDetailsTo of this HandoffNotificationRule.

func (*HandoffNotificationRule) GetTerraformResourceType added in v0.10.0

func (mg *HandoffNotificationRule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this HandoffNotificationRule

func (*HandoffNotificationRule) GetTerraformSchemaVersion added in v0.10.0

func (tr *HandoffNotificationRule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*HandoffNotificationRule) GetWriteConnectionSecretToReference added in v0.10.0

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

GetWriteConnectionSecretToReference of this HandoffNotificationRule.

func (*HandoffNotificationRule) Hub added in v0.10.0

func (tr *HandoffNotificationRule) Hub()

Hub marks this type as a conversion hub.

func (*HandoffNotificationRule) LateInitialize added in v0.10.0

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

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

func (*HandoffNotificationRule) SetConditions added in v0.10.0

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

SetConditions of this HandoffNotificationRule.

func (*HandoffNotificationRule) SetDeletionPolicy added in v0.10.0

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

SetDeletionPolicy of this HandoffNotificationRule.

func (*HandoffNotificationRule) SetManagementPolicies added in v0.10.0

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

SetManagementPolicies of this HandoffNotificationRule.

func (*HandoffNotificationRule) SetObservation added in v0.10.0

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

SetObservation for this HandoffNotificationRule

func (*HandoffNotificationRule) SetParameters added in v0.10.0

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

SetParameters for this HandoffNotificationRule

func (*HandoffNotificationRule) SetProviderConfigReference added in v0.10.0

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

SetProviderConfigReference of this HandoffNotificationRule.

func (*HandoffNotificationRule) SetPublishConnectionDetailsTo added in v0.10.0

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

SetPublishConnectionDetailsTo of this HandoffNotificationRule.

func (*HandoffNotificationRule) SetWriteConnectionSecretToReference added in v0.10.0

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

SetWriteConnectionSecretToReference of this HandoffNotificationRule.

type HandoffNotificationRuleContactMethodInitParameters added in v0.10.0

type HandoffNotificationRuleContactMethodInitParameters struct {

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

	// The type of the contact method. May be (email_contact_method, email_contact_method_reference, phone_contact_method, phone_contact_method_reference, push_notification_contact_method, push_notification_contact_method_reference, sms_contact_method, sms_contact_method_reference).
	// The type of contact method to notify for. Possible values are 'email_contact_method', 'email_contact_method_reference', 'phone_contact_method', 'phone_contact_method_reference', 'push_notification_contact_method', 'push_notification_contact_method_reference', 'sms_contact_method', 'sms_contact_method_reference'.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*HandoffNotificationRuleContactMethodInitParameters) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleContactMethodInitParameters) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleContactMethodObservation added in v0.10.0

type HandoffNotificationRuleContactMethodObservation struct {

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

	// The type of the contact method. May be (email_contact_method, email_contact_method_reference, phone_contact_method, phone_contact_method_reference, push_notification_contact_method, push_notification_contact_method_reference, sms_contact_method, sms_contact_method_reference).
	// The type of contact method to notify for. Possible values are 'email_contact_method', 'email_contact_method_reference', 'phone_contact_method', 'phone_contact_method_reference', 'push_notification_contact_method', 'push_notification_contact_method_reference', 'sms_contact_method', 'sms_contact_method_reference'.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*HandoffNotificationRuleContactMethodObservation) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleContactMethodObservation) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleContactMethodParameters added in v0.10.0

type HandoffNotificationRuleContactMethodParameters struct {

	// The ID of the contact method.
	// +kubebuilder:validation:Optional
	ID *string `json:"id" tf:"id,omitempty"`

	// The type of the contact method. May be (email_contact_method, email_contact_method_reference, phone_contact_method, phone_contact_method_reference, push_notification_contact_method, push_notification_contact_method_reference, sms_contact_method, sms_contact_method_reference).
	// The type of contact method to notify for. Possible values are 'email_contact_method', 'email_contact_method_reference', 'phone_contact_method', 'phone_contact_method_reference', 'push_notification_contact_method', 'push_notification_contact_method_reference', 'sms_contact_method', 'sms_contact_method_reference'.
	// +kubebuilder:validation:Optional
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*HandoffNotificationRuleContactMethodParameters) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleContactMethodParameters) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleInitParameters added in v0.10.0

type HandoffNotificationRuleInitParameters struct {

	// The contact method to notify the user. Contact method documented below.
	// The contact method to notify for the user handoff notification rule.
	ContactMethod []HandoffNotificationRuleContactMethodInitParameters `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

	// The type of handoff to notify the user about. Possible values are oncall, offcall, both.
	// The type of handoff to notify for. Possible values are 'both', 'oncall', 'offcall'.
	HandoffType *string `json:"handoffType,omitempty" tf:"handoff_type,omitempty"`

	// The number of minutes before the handoff that the user should be notified. Must be a positive integer greater than or equal to 0.
	// The number of minutes before the handoff to notify the user. Must be greater than or equal to 0.
	NotifyAdvanceInMinutes *float64 `json:"notifyAdvanceInMinutes,omitempty" tf:"notify_advance_in_minutes,omitempty"`

	// The ID of the user.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*HandoffNotificationRuleInitParameters) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleInitParameters) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleList added in v0.10.0

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

HandoffNotificationRuleList contains a list of HandoffNotificationRules

func (*HandoffNotificationRuleList) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleList) DeepCopyInto added in v0.10.0

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

func (*HandoffNotificationRuleList) DeepCopyObject added in v0.10.0

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

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

func (*HandoffNotificationRuleList) GetItems added in v0.10.0

GetItems of this HandoffNotificationRuleList.

type HandoffNotificationRuleObservation added in v0.10.0

type HandoffNotificationRuleObservation struct {

	// The contact method to notify the user. Contact method documented below.
	// The contact method to notify for the user handoff notification rule.
	ContactMethod []HandoffNotificationRuleContactMethodObservation `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

	// The type of handoff to notify the user about. Possible values are oncall, offcall, both.
	// The type of handoff to notify for. Possible values are 'both', 'oncall', 'offcall'.
	HandoffType *string `json:"handoffType,omitempty" tf:"handoff_type,omitempty"`

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

	// The number of minutes before the handoff that the user should be notified. Must be a positive integer greater than or equal to 0.
	// The number of minutes before the handoff to notify the user. Must be greater than or equal to 0.
	NotifyAdvanceInMinutes *float64 `json:"notifyAdvanceInMinutes,omitempty" tf:"notify_advance_in_minutes,omitempty"`

	// The ID of the user.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*HandoffNotificationRuleObservation) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleObservation) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleParameters added in v0.10.0

type HandoffNotificationRuleParameters struct {

	// The contact method to notify the user. Contact method documented below.
	// The contact method to notify for the user handoff notification rule.
	// +kubebuilder:validation:Optional
	ContactMethod []HandoffNotificationRuleContactMethodParameters `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

	// The type of handoff to notify the user about. Possible values are oncall, offcall, both.
	// The type of handoff to notify for. Possible values are 'both', 'oncall', 'offcall'.
	// +kubebuilder:validation:Optional
	HandoffType *string `json:"handoffType,omitempty" tf:"handoff_type,omitempty"`

	// The number of minutes before the handoff that the user should be notified. Must be a positive integer greater than or equal to 0.
	// The number of minutes before the handoff to notify the user. Must be greater than or equal to 0.
	// +kubebuilder:validation:Optional
	NotifyAdvanceInMinutes *float64 `json:"notifyAdvanceInMinutes,omitempty" tf:"notify_advance_in_minutes,omitempty"`

	// The ID of the user.
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*HandoffNotificationRuleParameters) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleParameters) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleSpec added in v0.10.0

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

HandoffNotificationRuleSpec defines the desired state of HandoffNotificationRule

func (*HandoffNotificationRuleSpec) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleSpec) DeepCopyInto added in v0.10.0

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

type HandoffNotificationRuleStatus added in v0.10.0

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

HandoffNotificationRuleStatus defines the observed state of HandoffNotificationRule.

func (*HandoffNotificationRuleStatus) DeepCopy added in v0.10.0

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

func (*HandoffNotificationRuleStatus) DeepCopyInto added in v0.10.0

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

type NotificationRule

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

NotificationRule is the Schema for the NotificationRules API. Creates and manages notification rules for a user in PagerDuty. +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,pagerduty}

func (*NotificationRule) DeepCopy

func (in *NotificationRule) DeepCopy() *NotificationRule

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

func (*NotificationRule) DeepCopyInto

func (in *NotificationRule) DeepCopyInto(out *NotificationRule)

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

func (*NotificationRule) DeepCopyObject

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

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

func (*NotificationRule) GetCondition

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

GetCondition of this NotificationRule.

func (*NotificationRule) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this NotificationRule

func (*NotificationRule) GetDeletionPolicy

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

GetDeletionPolicy of this NotificationRule.

func (*NotificationRule) GetID

func (tr *NotificationRule) GetID() string

GetID returns ID of underlying Terraform resource of this NotificationRule

func (*NotificationRule) GetInitParameters added in v0.5.0

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

GetInitParameters of this NotificationRule

func (*NotificationRule) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this NotificationRule.

func (*NotificationRule) GetMergedParameters added in v0.8.0

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

GetInitParameters of this NotificationRule

func (*NotificationRule) GetObservation

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

GetObservation of this NotificationRule

func (*NotificationRule) GetParameters

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

GetParameters of this NotificationRule

func (*NotificationRule) GetProviderConfigReference

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

GetProviderConfigReference of this NotificationRule.

func (*NotificationRule) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this NotificationRule.

func (*NotificationRule) GetTerraformResourceType

func (mg *NotificationRule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this NotificationRule

func (*NotificationRule) GetTerraformSchemaVersion

func (tr *NotificationRule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*NotificationRule) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this NotificationRule.

func (*NotificationRule) Hub added in v0.8.0

func (tr *NotificationRule) Hub()

Hub marks this type as a conversion hub.

func (*NotificationRule) LateInitialize

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

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

func (*NotificationRule) ResolveReferences

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

ResolveReferences of this NotificationRule.

func (*NotificationRule) SetConditions

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

SetConditions of this NotificationRule.

func (*NotificationRule) SetDeletionPolicy

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

SetDeletionPolicy of this NotificationRule.

func (*NotificationRule) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this NotificationRule.

func (*NotificationRule) SetObservation

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

SetObservation for this NotificationRule

func (*NotificationRule) SetParameters

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

SetParameters for this NotificationRule

func (*NotificationRule) SetProviderConfigReference

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

SetProviderConfigReference of this NotificationRule.

func (*NotificationRule) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this NotificationRule.

func (*NotificationRule) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this NotificationRule.

type NotificationRuleInitParameters added in v0.5.0

type NotificationRuleInitParameters struct {

	// A contact method block, configured as a block described below.
	// +mapType=granular
	ContactMethod map[string]*string `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

	// The delay before firing the rule, in minutes.
	StartDelayInMinutes *float64 `json:"startDelayInMinutes,omitempty" tf:"start_delay_in_minutes,omitempty"`

	// Which incident urgency this rule is used for. Account must have the urgencies ability to have a low urgency notification rule. Can be high or low.
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`

	// The ID of the user.
	// +crossplane:generate:reference:type=User
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDRef *v1.Reference `json:"userIdRef,omitempty" tf:"-"`

	// Selector for a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDSelector *v1.Selector `json:"userIdSelector,omitempty" tf:"-"`
}

func (*NotificationRuleInitParameters) DeepCopy added in v0.5.0

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

func (*NotificationRuleInitParameters) DeepCopyInto added in v0.5.0

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

type NotificationRuleList

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

NotificationRuleList contains a list of NotificationRules

func (*NotificationRuleList) DeepCopy

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

func (*NotificationRuleList) DeepCopyInto

func (in *NotificationRuleList) DeepCopyInto(out *NotificationRuleList)

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

func (*NotificationRuleList) DeepCopyObject

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

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

func (*NotificationRuleList) GetItems

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

GetItems of this NotificationRuleList.

type NotificationRuleObservation

type NotificationRuleObservation struct {

	// A contact method block, configured as a block described below.
	// +mapType=granular
	ContactMethod map[string]*string `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

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

	// The delay before firing the rule, in minutes.
	StartDelayInMinutes *float64 `json:"startDelayInMinutes,omitempty" tf:"start_delay_in_minutes,omitempty"`

	// Which incident urgency this rule is used for. Account must have the urgencies ability to have a low urgency notification rule. Can be high or low.
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`

	// The ID of the user.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*NotificationRuleObservation) DeepCopy

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

func (*NotificationRuleObservation) DeepCopyInto

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

type NotificationRuleParameters

type NotificationRuleParameters struct {

	// A contact method block, configured as a block described below.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	ContactMethod map[string]*string `json:"contactMethod,omitempty" tf:"contact_method,omitempty"`

	// The delay before firing the rule, in minutes.
	// +kubebuilder:validation:Optional
	StartDelayInMinutes *float64 `json:"startDelayInMinutes,omitempty" tf:"start_delay_in_minutes,omitempty"`

	// Which incident urgency this rule is used for. Account must have the urgencies ability to have a low urgency notification rule. Can be high or low.
	// +kubebuilder:validation:Optional
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`

	// The ID of the user.
	// +crossplane:generate:reference:type=User
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDRef *v1.Reference `json:"userIdRef,omitempty" tf:"-"`

	// Selector for a User to populate userId.
	// +kubebuilder:validation:Optional
	UserIDSelector *v1.Selector `json:"userIdSelector,omitempty" tf:"-"`
}

func (*NotificationRuleParameters) DeepCopy

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

func (*NotificationRuleParameters) DeepCopyInto

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

type NotificationRuleSpec

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

NotificationRuleSpec defines the desired state of NotificationRule

func (*NotificationRuleSpec) DeepCopy

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

func (*NotificationRuleSpec) DeepCopyInto

func (in *NotificationRuleSpec) DeepCopyInto(out *NotificationRuleSpec)

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

type NotificationRuleStatus

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

NotificationRuleStatus defines the observed state of NotificationRule.

func (*NotificationRuleStatus) DeepCopy

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

func (*NotificationRuleStatus) DeepCopyInto

func (in *NotificationRuleStatus) DeepCopyInto(out *NotificationRuleStatus)

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

type User

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

User is the Schema for the Users API. Creates and manages a user in PagerDuty. +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,pagerduty}

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

func (*User) GetCondition

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

GetCondition of this User.

func (*User) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this User

func (*User) GetDeletionPolicy

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

GetDeletionPolicy of this User.

func (*User) GetID

func (tr *User) GetID() string

GetID returns ID of underlying Terraform resource of this User

func (*User) GetInitParameters added in v0.5.0

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

GetInitParameters of this User

func (*User) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this User.

func (*User) GetMergedParameters added in v0.8.0

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

GetInitParameters of this User

func (*User) GetObservation

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

GetObservation of this User

func (*User) GetParameters

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

GetParameters of this User

func (*User) GetProviderConfigReference

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

GetProviderConfigReference of this User.

func (*User) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this User.

func (*User) GetTerraformResourceType

func (mg *User) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this User

func (*User) GetTerraformSchemaVersion

func (tr *User) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*User) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this User.

func (*User) Hub added in v0.8.0

func (tr *User) Hub()

Hub marks this type as a conversion hub.

func (*User) LateInitialize

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

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

func (*User) SetConditions

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

SetConditions of this User.

func (*User) SetDeletionPolicy

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

SetDeletionPolicy of this User.

func (*User) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this User.

func (*User) SetObservation

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

SetObservation for this User

func (*User) SetParameters

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

SetParameters for this User

func (*User) SetProviderConfigReference

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

SetProviderConfigReference of this User.

func (*User) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this User.

func (*User) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this User.

type UserInitParameters added in v0.5.0

type UserInitParameters struct {

	// The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// A human-friendly description of the user.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The user's email address.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// The user's title.
	JobTitle *string `json:"jobTitle,omitempty" tf:"job_title,omitempty"`

	// The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty_licenses data source.
	License *string `json:"license,omitempty" tf:"license,omitempty"`

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

	// The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user.
	// Notes:
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// The time zone of the user. Default is account default timezone.
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*UserInitParameters) DeepCopy added in v0.5.0

func (in *UserInitParameters) DeepCopy() *UserInitParameters

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

func (*UserInitParameters) DeepCopyInto added in v0.5.0

func (in *UserInitParameters) DeepCopyInto(out *UserInitParameters)

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

type UserList

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

UserList contains a list of Users

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

func (*UserList) GetItems

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

GetItems of this UserList.

type UserObservation

type UserObservation struct {

	// The URL of the user's avatar.
	AvatarURL *string `json:"avatarUrl,omitempty" tf:"avatar_url,omitempty"`

	// The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// A human-friendly description of the user.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The user's email address.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// URL at which the entity is uniquely displayed in the Web app
	HTMLURL *string `json:"htmlUrl,omitempty" tf:"html_url,omitempty"`

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

	// If true, the user has an outstanding invitation.
	InvitationSent *bool `json:"invitationSent,omitempty" tf:"invitation_sent,omitempty"`

	// The user's title.
	JobTitle *string `json:"jobTitle,omitempty" tf:"job_title,omitempty"`

	// The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty_licenses data source.
	License *string `json:"license,omitempty" tf:"license,omitempty"`

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

	// The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user.
	// Notes:
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// A list of teams the user should belong to. Please use pagerduty_team_membership instead.
	// +listType=set
	Teams []*string `json:"teams,omitempty" tf:"teams,omitempty"`

	// The time zone of the user. Default is account default timezone.
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*UserObservation) DeepCopy

func (in *UserObservation) DeepCopy() *UserObservation

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

func (*UserObservation) DeepCopyInto

func (in *UserObservation) DeepCopyInto(out *UserObservation)

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

type UserParameters

type UserParameters struct {

	// The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
	// +kubebuilder:validation:Optional
	Color *string `json:"color,omitempty" tf:"color,omitempty"`

	// A human-friendly description of the user.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The user's email address.
	// +kubebuilder:validation:Optional
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// The user's title.
	// +kubebuilder:validation:Optional
	JobTitle *string `json:"jobTitle,omitempty" tf:"job_title,omitempty"`

	// The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty_licenses data source.
	// +kubebuilder:validation:Optional
	License *string `json:"license,omitempty" tf:"license,omitempty"`

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

	// The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user.
	// Notes:
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// The time zone of the user. Default is account default timezone.
	// +kubebuilder:validation:Optional
	TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}

func (*UserParameters) DeepCopy

func (in *UserParameters) DeepCopy() *UserParameters

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

func (*UserParameters) DeepCopyInto

func (in *UserParameters) DeepCopyInto(out *UserParameters)

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

type UserSpec

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

UserSpec defines the desired state of User

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserStatus

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

UserStatus defines the observed state of User.

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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