v1beta1

package
v0.29.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

+kubebuilder:object:generate=true +groupName=workflows.gcp.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "workflows.gcp.upbound.io"
	CRDVersion = "v1beta1"
)

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 (
	Workflow_Kind             = "Workflow"
	Workflow_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Workflow_Kind}.String()
	Workflow_KindAPIVersion   = Workflow_Kind + "." + CRDGroupVersion.String()
	Workflow_GroupVersionKind = CRDGroupVersion.WithKind(Workflow_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Workflow

type Workflow struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              WorkflowSpec   `json:"spec"`
	Status            WorkflowStatus `json:"status,omitempty"`
}

Workflow is the Schema for the Workflows API. Workflow program to be executed by Workflows. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*Workflow) DeepCopy

func (in *Workflow) DeepCopy() *Workflow

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

func (*Workflow) DeepCopyInto

func (in *Workflow) DeepCopyInto(out *Workflow)

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

func (*Workflow) DeepCopyObject

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

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

func (*Workflow) GetCondition

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

GetCondition of this Workflow.

func (*Workflow) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Workflow

func (*Workflow) GetDeletionPolicy

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

GetDeletionPolicy of this Workflow.

func (*Workflow) GetID

func (tr *Workflow) GetID() string

GetID returns ID of underlying Terraform resource of this Workflow

func (*Workflow) GetObservation

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

GetObservation of this Workflow

func (*Workflow) GetParameters

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

GetParameters of this Workflow

func (*Workflow) GetProviderConfigReference

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

GetProviderConfigReference of this Workflow.

func (*Workflow) GetProviderReference

func (mg *Workflow) GetProviderReference() *xpv1.Reference

GetProviderReference of this Workflow. Deprecated: Use GetProviderConfigReference.

func (*Workflow) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Workflow.

func (*Workflow) GetTerraformResourceType

func (mg *Workflow) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Workflow

func (*Workflow) GetTerraformSchemaVersion

func (tr *Workflow) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Workflow) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Workflow.

func (*Workflow) LateInitialize

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

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

func (*Workflow) ResolveReferences

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

ResolveReferences of this Workflow.

func (*Workflow) SetConditions

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

SetConditions of this Workflow.

func (*Workflow) SetDeletionPolicy

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

SetDeletionPolicy of this Workflow.

func (*Workflow) SetObservation

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

SetObservation for this Workflow

func (*Workflow) SetParameters

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

SetParameters for this Workflow

func (*Workflow) SetProviderConfigReference

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

SetProviderConfigReference of this Workflow.

func (*Workflow) SetProviderReference

func (mg *Workflow) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Workflow. Deprecated: Use SetProviderConfigReference.

func (*Workflow) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Workflow.

func (*Workflow) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Workflow.

type WorkflowList

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

WorkflowList contains a list of Workflows

func (*WorkflowList) DeepCopy

func (in *WorkflowList) DeepCopy() *WorkflowList

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

func (*WorkflowList) DeepCopyInto

func (in *WorkflowList) DeepCopyInto(out *WorkflowList)

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

func (*WorkflowList) DeepCopyObject

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

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

func (*WorkflowList) GetItems

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

GetItems of this WorkflowList.

type WorkflowObservation

type WorkflowObservation struct {

	// The timestamp of when the workflow was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	// an identifier for the resource with format projects/{{project}}/locations/{{region}}/workflows/{{name}}
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The revision of the workflow. A new one is generated if the service account or source contents is changed.
	RevisionID *string `json:"revisionId,omitempty" tf:"revision_id,omitempty"`

	// State of the workflow deployment.
	State *string `json:"state,omitempty" tf:"state,omitempty"`

	// The timestamp of when the workflow was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
	UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
}

func (*WorkflowObservation) DeepCopy

func (in *WorkflowObservation) DeepCopy() *WorkflowObservation

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

func (*WorkflowObservation) DeepCopyInto

func (in *WorkflowObservation) DeepCopyInto(out *WorkflowObservation)

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

type WorkflowParameters

type WorkflowParameters struct {

	// Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A set of key/value label pairs to assign to this Workflow.
	// +kubebuilder:validation:Optional
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

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

	// Creates a unique name beginning with the
	// specified prefix. If this and name are unspecified, a random value is chosen for the name.
	// +kubebuilder:validation:Optional
	NamePrefix *string `json:"namePrefix,omitempty" tf:"name_prefix,omitempty"`

	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	// +kubebuilder:validation:Optional
	Project *string `json:"project,omitempty" tf:"project,omitempty"`

	// The region of the workflow.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Name of the service account associated with the latest workflow version. This service
	// account represents the identity of the workflow and determines what permissions the workflow has.
	// Format: projects/{project}/serviceAccounts/{account}.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudplatform/v1beta1.ServiceAccount
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`

	// Reference to a ServiceAccount in cloudplatform to populate serviceAccount.
	// +kubebuilder:validation:Optional
	ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`

	// Selector for a ServiceAccount in cloudplatform to populate serviceAccount.
	// +kubebuilder:validation:Optional
	ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"`

	// Workflow code to be executed. The size limit is 32KB.
	// +kubebuilder:validation:Optional
	SourceContents *string `json:"sourceContents,omitempty" tf:"source_contents,omitempty"`
}

func (*WorkflowParameters) DeepCopy

func (in *WorkflowParameters) DeepCopy() *WorkflowParameters

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

func (*WorkflowParameters) DeepCopyInto

func (in *WorkflowParameters) DeepCopyInto(out *WorkflowParameters)

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

type WorkflowSpec

type WorkflowSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     WorkflowParameters `json:"forProvider"`
}

WorkflowSpec defines the desired state of Workflow

func (*WorkflowSpec) DeepCopy

func (in *WorkflowSpec) DeepCopy() *WorkflowSpec

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

func (*WorkflowSpec) DeepCopyInto

func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)

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

type WorkflowStatus

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

WorkflowStatus defines the observed state of Workflow.

func (*WorkflowStatus) DeepCopy

func (in *WorkflowStatus) DeepCopy() *WorkflowStatus

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

func (*WorkflowStatus) DeepCopyInto

func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)

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