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

Documentation

Overview

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

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	Connection_Kind             = "Connection"
	Connection_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Connection_Kind}.String()
	Connection_KindAPIVersion   = Connection_Kind + "." + CRDGroupVersion.String()
	Connection_GroupVersionKind = CRDGroupVersion.WithKind(Connection_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ConfigInitParameters added in v0.5.0

type ConfigInitParameters struct {

	// A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:
	Events []*string `json:"events,omitempty" tf:"events,omitempty"`

	// Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty_priority data source.
	Priorities []*string `json:"priorities,omitempty" tf:"priorities,omitempty"`

	// Allows you to filter events by urgency. Either high or low.
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`
}

func (*ConfigInitParameters) DeepCopy added in v0.5.0

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

func (*ConfigInitParameters) DeepCopyInto added in v0.5.0

func (in *ConfigInitParameters) DeepCopyInto(out *ConfigInitParameters)

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

type ConfigObservation

type ConfigObservation struct {

	// A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:
	Events []*string `json:"events,omitempty" tf:"events,omitempty"`

	// Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty_priority data source.
	Priorities []*string `json:"priorities,omitempty" tf:"priorities,omitempty"`

	// Allows you to filter events by urgency. Either high or low.
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`
}

func (*ConfigObservation) DeepCopy

func (in *ConfigObservation) DeepCopy() *ConfigObservation

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

func (*ConfigObservation) DeepCopyInto

func (in *ConfigObservation) DeepCopyInto(out *ConfigObservation)

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

type ConfigParameters

type ConfigParameters struct {

	// A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:
	// +kubebuilder:validation:Optional
	Events []*string `json:"events" tf:"events,omitempty"`

	// Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty_priority data source.
	// +kubebuilder:validation:Optional
	Priorities []*string `json:"priorities,omitempty" tf:"priorities,omitempty"`

	// Allows you to filter events by urgency. Either high or low.
	// +kubebuilder:validation:Optional
	Urgency *string `json:"urgency,omitempty" tf:"urgency,omitempty"`
}

func (*ConfigParameters) DeepCopy

func (in *ConfigParameters) DeepCopy() *ConfigParameters

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

func (*ConfigParameters) DeepCopyInto

func (in *ConfigParameters) DeepCopyInto(out *ConfigParameters)

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

type Connection

type Connection 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.channelId) || (has(self.initProvider) && has(self.initProvider.channelId))",message="spec.forProvider.channelId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.config) || (has(self.initProvider) && has(self.initProvider.config))",message="spec.forProvider.config is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.notificationType) || (has(self.initProvider) && has(self.initProvider.notificationType))",message="spec.forProvider.notificationType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceId) || (has(self.initProvider) && has(self.initProvider.sourceId))",message="spec.forProvider.sourceId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceType) || (has(self.initProvider) && has(self.initProvider.sourceType))",message="spec.forProvider.sourceType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.workspaceId) || (has(self.initProvider) && has(self.initProvider.workspaceId))",message="spec.forProvider.workspaceId is a required parameter"
	Spec   ConnectionSpec   `json:"spec"`
	Status ConnectionStatus `json:"status,omitempty"`
}

Connection is the Schema for the Connections API. Creates and manages a slack connection 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 (*Connection) DeepCopy

func (in *Connection) DeepCopy() *Connection

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

func (*Connection) DeepCopyInto

func (in *Connection) DeepCopyInto(out *Connection)

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

func (*Connection) DeepCopyObject

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

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

func (*Connection) GetCondition

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

GetCondition of this Connection.

func (*Connection) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Connection

func (*Connection) GetDeletionPolicy

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

GetDeletionPolicy of this Connection.

func (*Connection) GetID

func (tr *Connection) GetID() string

GetID returns ID of underlying Terraform resource of this Connection

func (*Connection) GetInitParameters added in v0.5.0

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

GetInitParameters of this Connection

func (*Connection) GetManagementPolicies added in v0.5.0

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

GetManagementPolicies of this Connection.

func (*Connection) GetMergedParameters added in v0.8.0

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

GetInitParameters of this Connection

func (*Connection) GetObservation

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

GetObservation of this Connection

func (*Connection) GetParameters

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

GetParameters of this Connection

func (*Connection) GetProviderConfigReference

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

GetProviderConfigReference of this Connection.

func (*Connection) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Connection.

func (*Connection) GetTerraformResourceType

func (mg *Connection) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Connection

func (*Connection) GetTerraformSchemaVersion

func (tr *Connection) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Connection) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Connection.

func (*Connection) Hub added in v0.8.0

func (tr *Connection) Hub()

Hub marks this type as a conversion hub.

func (*Connection) LateInitialize

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

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

func (*Connection) SetConditions

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

SetConditions of this Connection.

func (*Connection) SetDeletionPolicy

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

SetDeletionPolicy of this Connection.

func (*Connection) SetManagementPolicies added in v0.5.0

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

SetManagementPolicies of this Connection.

func (*Connection) SetObservation

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

SetObservation for this Connection

func (*Connection) SetParameters

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

SetParameters for this Connection

func (*Connection) SetProviderConfigReference

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

SetProviderConfigReference of this Connection.

func (*Connection) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Connection.

func (*Connection) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Connection.

type ConnectionInitParameters added in v0.5.0

type ConnectionInitParameters struct {

	// The ID of a Slack channel in the workspace.
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// Configuration options for the Slack connection that provide options to filter events.
	Config []ConfigInitParameters `json:"config,omitempty" tf:"config,omitempty"`

	// Type of notification. Either responder or stakeholder.
	NotificationType *string `json:"notificationType,omitempty" tf:"notification_type,omitempty"`

	// The ID of the source in PagerDuty. Valid sources are services or teams.
	SourceID *string `json:"sourceId,omitempty" tf:"source_id,omitempty"`

	// The type of the source. Either team_reference or service_reference.
	SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`

	// The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
	WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"`
}

func (*ConnectionInitParameters) DeepCopy added in v0.5.0

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

func (*ConnectionInitParameters) DeepCopyInto added in v0.5.0

func (in *ConnectionInitParameters) DeepCopyInto(out *ConnectionInitParameters)

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

type ConnectionList

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

ConnectionList contains a list of Connections

func (*ConnectionList) DeepCopy

func (in *ConnectionList) DeepCopy() *ConnectionList

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

func (*ConnectionList) DeepCopyInto

func (in *ConnectionList) DeepCopyInto(out *ConnectionList)

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

func (*ConnectionList) DeepCopyObject

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

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

func (*ConnectionList) GetItems

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

GetItems of this ConnectionList.

type ConnectionObservation

type ConnectionObservation struct {

	// The ID of a Slack channel in the workspace.
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// Name of the Slack channel in Slack connection.
	ChannelName *string `json:"channelName,omitempty" tf:"channel_name,omitempty"`

	// Configuration options for the Slack connection that provide options to filter events.
	Config []ConfigObservation `json:"config,omitempty" tf:"config,omitempty"`

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

	// Type of notification. Either responder or stakeholder.
	NotificationType *string `json:"notificationType,omitempty" tf:"notification_type,omitempty"`

	// The ID of the source in PagerDuty. Valid sources are services or teams.
	SourceID *string `json:"sourceId,omitempty" tf:"source_id,omitempty"`

	// Name of the source (team or service) in Slack connection.
	SourceName *string `json:"sourceName,omitempty" tf:"source_name,omitempty"`

	// The type of the source. Either team_reference or service_reference.
	SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`

	// The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
	WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"`
}

func (*ConnectionObservation) DeepCopy

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

func (*ConnectionObservation) DeepCopyInto

func (in *ConnectionObservation) DeepCopyInto(out *ConnectionObservation)

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

type ConnectionParameters

type ConnectionParameters struct {

	// The ID of a Slack channel in the workspace.
	// +kubebuilder:validation:Optional
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// Configuration options for the Slack connection that provide options to filter events.
	// +kubebuilder:validation:Optional
	Config []ConfigParameters `json:"config,omitempty" tf:"config,omitempty"`

	// Type of notification. Either responder or stakeholder.
	// +kubebuilder:validation:Optional
	NotificationType *string `json:"notificationType,omitempty" tf:"notification_type,omitempty"`

	// The ID of the source in PagerDuty. Valid sources are services or teams.
	// +kubebuilder:validation:Optional
	SourceID *string `json:"sourceId,omitempty" tf:"source_id,omitempty"`

	// The type of the source. Either team_reference or service_reference.
	// +kubebuilder:validation:Optional
	SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`

	// The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
	// +kubebuilder:validation:Optional
	WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"`
}

func (*ConnectionParameters) DeepCopy

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

func (*ConnectionParameters) DeepCopyInto

func (in *ConnectionParameters) DeepCopyInto(out *ConnectionParameters)

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

type ConnectionSpec

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

ConnectionSpec defines the desired state of Connection

func (*ConnectionSpec) DeepCopy

func (in *ConnectionSpec) DeepCopy() *ConnectionSpec

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

func (*ConnectionSpec) DeepCopyInto

func (in *ConnectionSpec) DeepCopyInto(out *ConnectionSpec)

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

type ConnectionStatus

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

ConnectionStatus defines the observed state of Connection.

func (*ConnectionStatus) DeepCopy

func (in *ConnectionStatus) DeepCopy() *ConnectionStatus

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

func (*ConnectionStatus) DeepCopyInto

func (in *ConnectionStatus) DeepCopyInto(out *ConnectionStatus)

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