v1alpha1

package
v0.0.0-...-faeb644 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=project.chelala.one +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "project.chelala.one"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Project_Kind             = "Project"
	Project_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Project_Kind}.String()
	Project_KindAPIVersion   = Project_Kind + "." + CRDGroupVersion.String()
	Project_GroupVersionKind = CRDGroupVersion.WithKind(Project_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Project

type Project 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.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   ProjectSpec   `json:"spec"`
	Status ProjectStatus `json:"status,omitempty"`
}

Project is the Schema for the Projects API. Manages a project within Azure DevOps organization. +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,azuredevops}

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

func (*Project) GetCondition

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

GetCondition of this Project.

func (*Project) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Project

func (*Project) GetDeletionPolicy

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

GetDeletionPolicy of this Project.

func (*Project) GetID

func (tr *Project) GetID() string

GetID returns ID of underlying Terraform resource of this Project

func (*Project) GetInitParameters

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

GetInitParameters of this Project

func (*Project) GetManagementPolicies

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

GetManagementPolicies of this Project.

func (*Project) GetMergedParameters

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

GetInitParameters of this Project

func (*Project) GetObservation

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

GetObservation of this Project

func (*Project) GetParameters

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

GetParameters of this Project

func (*Project) GetProviderConfigReference

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

GetProviderConfigReference of this Project.

func (*Project) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Project.

func (*Project) GetTerraformResourceType

func (mg *Project) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Project

func (*Project) GetTerraformSchemaVersion

func (tr *Project) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Project) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Project.

func (*Project) LateInitialize

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

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

func (*Project) SetConditions

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

SetConditions of this Project.

func (*Project) SetDeletionPolicy

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

SetDeletionPolicy of this Project.

func (*Project) SetManagementPolicies

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

SetManagementPolicies of this Project.

func (*Project) SetObservation

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

SetObservation for this Project

func (*Project) SetParameters

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

SetParameters for this Project

func (*Project) SetProviderConfigReference

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

SetProviderConfigReference of this Project.

func (*Project) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Project.

func (*Project) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Project.

type ProjectInitParameters

type ProjectInitParameters struct {

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

	// Defines the status (enabled, disabled) of the project features.
	// Valid features are boards, repositories, pipelines, testplans, artifacts
	Features map[string]*string `json:"features,omitempty" tf:"features,omitempty"`

	// The Project Name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.
	VersionControl *string `json:"versionControl,omitempty" tf:"version_control,omitempty"`

	// Specifies the visibility of the Project. Valid values: private or public. Defaults to private.
	Visibility *string `json:"visibility,omitempty" tf:"visibility,omitempty"`

	// Specifies the work item template. Valid values: Agile, Basic, CMMI, Scrum or a custom, pre-existing one. Defaults to Agile. An empty string will use the parent organization default.
	WorkItemTemplate *string `json:"workItemTemplate,omitempty" tf:"work_item_template,omitempty"`
}

func (*ProjectInitParameters) DeepCopy

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

func (*ProjectInitParameters) DeepCopyInto

func (in *ProjectInitParameters) DeepCopyInto(out *ProjectInitParameters)

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

type ProjectList

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

ProjectList contains a list of Projects

func (*ProjectList) DeepCopy

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject

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

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

func (*ProjectList) GetItems

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

GetItems of this ProjectList.

type ProjectObservation

type ProjectObservation struct {

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

	// Defines the status (enabled, disabled) of the project features.
	// Valid features are boards, repositories, pipelines, testplans, artifacts
	Features map[string]*string `json:"features,omitempty" tf:"features,omitempty"`

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

	// The Project Name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The Process Template ID used by the Project.
	ProcessTemplateID *string `json:"processTemplateId,omitempty" tf:"process_template_id,omitempty"`

	// Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.
	VersionControl *string `json:"versionControl,omitempty" tf:"version_control,omitempty"`

	// Specifies the visibility of the Project. Valid values: private or public. Defaults to private.
	Visibility *string `json:"visibility,omitempty" tf:"visibility,omitempty"`

	// Specifies the work item template. Valid values: Agile, Basic, CMMI, Scrum or a custom, pre-existing one. Defaults to Agile. An empty string will use the parent organization default.
	WorkItemTemplate *string `json:"workItemTemplate,omitempty" tf:"work_item_template,omitempty"`
}

func (*ProjectObservation) DeepCopy

func (in *ProjectObservation) DeepCopy() *ProjectObservation

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

func (*ProjectObservation) DeepCopyInto

func (in *ProjectObservation) DeepCopyInto(out *ProjectObservation)

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

type ProjectParameters

type ProjectParameters struct {

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

	// Defines the status (enabled, disabled) of the project features.
	// Valid features are boards, repositories, pipelines, testplans, artifacts
	// +kubebuilder:validation:Optional
	Features map[string]*string `json:"features,omitempty" tf:"features,omitempty"`

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

	// Specifies the version control system. Valid values: Git or Tfvc. Defaults to Git.
	// +kubebuilder:validation:Optional
	VersionControl *string `json:"versionControl,omitempty" tf:"version_control,omitempty"`

	// Specifies the visibility of the Project. Valid values: private or public. Defaults to private.
	// +kubebuilder:validation:Optional
	Visibility *string `json:"visibility,omitempty" tf:"visibility,omitempty"`

	// Specifies the work item template. Valid values: Agile, Basic, CMMI, Scrum or a custom, pre-existing one. Defaults to Agile. An empty string will use the parent organization default.
	// +kubebuilder:validation:Optional
	WorkItemTemplate *string `json:"workItemTemplate,omitempty" tf:"work_item_template,omitempty"`
}

func (*ProjectParameters) DeepCopy

func (in *ProjectParameters) DeepCopy() *ProjectParameters

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

func (*ProjectParameters) DeepCopyInto

func (in *ProjectParameters) DeepCopyInto(out *ProjectParameters)

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

type ProjectSpec

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

ProjectSpec defines the desired state of Project

func (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type ProjectStatus

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

ProjectStatus defines the observed state of Project.

func (*ProjectStatus) DeepCopy

func (in *ProjectStatus) DeepCopy() *ProjectStatus

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

func (*ProjectStatus) DeepCopyInto

func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)

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