v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	ContentSharingPolicy_Kind             = "ContentSharingPolicy"
	ContentSharingPolicy_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ContentSharingPolicy_Kind}.String()
	ContentSharingPolicy_KindAPIVersion   = ContentSharingPolicy_Kind + "." + CRDGroupVersion.String()
	ContentSharingPolicy_GroupVersionKind = CRDGroupVersion.WithKind(ContentSharingPolicy_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 ContentSharingPolicy

type ContentSharingPolicy 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   ContentSharingPolicySpec   `json:"spec"`
	Status ContentSharingPolicyStatus `json:"status,omitempty"`
}

ContentSharingPolicy is the Schema for the ContentSharingPolicys API. <no value> +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,vra}

func (*ContentSharingPolicy) DeepCopy

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

func (*ContentSharingPolicy) DeepCopyInto

func (in *ContentSharingPolicy) DeepCopyInto(out *ContentSharingPolicy)

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

func (*ContentSharingPolicy) DeepCopyObject

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

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

func (*ContentSharingPolicy) GetCondition

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

GetCondition of this ContentSharingPolicy.

func (*ContentSharingPolicy) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ContentSharingPolicy

func (*ContentSharingPolicy) GetDeletionPolicy

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

GetDeletionPolicy of this ContentSharingPolicy.

func (*ContentSharingPolicy) GetID

func (tr *ContentSharingPolicy) GetID() string

GetID returns ID of underlying Terraform resource of this ContentSharingPolicy

func (*ContentSharingPolicy) GetInitParameters

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

GetInitParameters of this ContentSharingPolicy

func (*ContentSharingPolicy) GetManagementPolicies

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

GetManagementPolicies of this ContentSharingPolicy.

func (*ContentSharingPolicy) GetMergedParameters

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

GetInitParameters of this ContentSharingPolicy

func (*ContentSharingPolicy) GetObservation

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

GetObservation of this ContentSharingPolicy

func (*ContentSharingPolicy) GetParameters

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

GetParameters of this ContentSharingPolicy

func (*ContentSharingPolicy) GetProviderConfigReference

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

GetProviderConfigReference of this ContentSharingPolicy.

func (*ContentSharingPolicy) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ContentSharingPolicy.

func (*ContentSharingPolicy) GetTerraformResourceType

func (mg *ContentSharingPolicy) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ContentSharingPolicy

func (*ContentSharingPolicy) GetTerraformSchemaVersion

func (tr *ContentSharingPolicy) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ContentSharingPolicy) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ContentSharingPolicy.

func (*ContentSharingPolicy) Hub

func (tr *ContentSharingPolicy) Hub()

Hub marks this type as a conversion hub.

func (*ContentSharingPolicy) LateInitialize

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

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

func (*ContentSharingPolicy) ResolveReferences

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

ResolveReferences of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetConditions

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

SetConditions of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetDeletionPolicy

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

SetDeletionPolicy of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetManagementPolicies

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

SetManagementPolicies of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetObservation

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

SetObservation for this ContentSharingPolicy

func (*ContentSharingPolicy) SetParameters

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

SetParameters for this ContentSharingPolicy

func (*ContentSharingPolicy) SetProviderConfigReference

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

SetProviderConfigReference of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ContentSharingPolicy.

func (*ContentSharingPolicy) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ContentSharingPolicy.

type ContentSharingPolicyInitParameters

type ContentSharingPolicyInitParameters struct {

	// List of catalog item ids to share.
	// +listType=set
	CatalogItemIds []*string `json:"catalogItemIds,omitempty" tf:"catalog_item_ids,omitempty"`

	// List of catalog source ids to share.
	// +listType=set
	CatalogSourceIds []*string `json:"catalogSourceIds,omitempty" tf:"catalog_source_ids,omitempty"`

	// The policy description.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

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

	// The ID of the project to which the policy belongs.
	// +crossplane:generate:reference:type=github.com/avarei/provider-vra/apis/project/v1alpha1.Project
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Reference to a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`

	// Selector for a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`
}

func (*ContentSharingPolicyInitParameters) DeepCopy

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

func (*ContentSharingPolicyInitParameters) DeepCopyInto

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

type ContentSharingPolicyList

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

ContentSharingPolicyList contains a list of ContentSharingPolicys

func (*ContentSharingPolicyList) DeepCopy

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

func (*ContentSharingPolicyList) DeepCopyInto

func (in *ContentSharingPolicyList) DeepCopyInto(out *ContentSharingPolicyList)

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

func (*ContentSharingPolicyList) DeepCopyObject

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

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

func (*ContentSharingPolicyList) GetItems

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

GetItems of this ContentSharingPolicyList.

type ContentSharingPolicyObservation

type ContentSharingPolicyObservation struct {

	// List of catalog item ids to share.
	// +listType=set
	CatalogItemIds []*string `json:"catalogItemIds,omitempty" tf:"catalog_item_ids,omitempty"`

	// List of catalog source ids to share.
	// +listType=set
	CatalogSourceIds []*string `json:"catalogSourceIds,omitempty" tf:"catalog_source_ids,omitempty"`

	// Policy creation timestamp.
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// Policy author.
	CreatedBy *string `json:"createdBy,omitempty" tf:"created_by,omitempty"`

	// The policy description.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Most recent policy update timestamp.
	LastUpdatedAt *string `json:"lastUpdatedAt,omitempty" tf:"last_updated_at,omitempty"`

	// Most recent policy editor..
	LastUpdatedBy *string `json:"lastUpdatedBy,omitempty" tf:"last_updated_by,omitempty"`

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

	// The ID of the organization to which the policy belongs.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// The ID of the project to which the policy belongs.
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*ContentSharingPolicyObservation) DeepCopy

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

func (*ContentSharingPolicyObservation) DeepCopyInto

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

type ContentSharingPolicyParameters

type ContentSharingPolicyParameters struct {

	// List of catalog item ids to share.
	// +kubebuilder:validation:Optional
	// +listType=set
	CatalogItemIds []*string `json:"catalogItemIds,omitempty" tf:"catalog_item_ids,omitempty"`

	// List of catalog source ids to share.
	// +kubebuilder:validation:Optional
	// +listType=set
	CatalogSourceIds []*string `json:"catalogSourceIds,omitempty" tf:"catalog_source_ids,omitempty"`

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

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

	// The ID of the project to which the policy belongs.
	// +crossplane:generate:reference:type=github.com/avarei/provider-vra/apis/project/v1alpha1.Project
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Reference to a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`

	// Selector for a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`
}

func (*ContentSharingPolicyParameters) DeepCopy

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

func (*ContentSharingPolicyParameters) DeepCopyInto

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

type ContentSharingPolicySpec

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

ContentSharingPolicySpec defines the desired state of ContentSharingPolicy

func (*ContentSharingPolicySpec) DeepCopy

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

func (*ContentSharingPolicySpec) DeepCopyInto

func (in *ContentSharingPolicySpec) DeepCopyInto(out *ContentSharingPolicySpec)

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

type ContentSharingPolicyStatus

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

ContentSharingPolicyStatus defines the observed state of ContentSharingPolicy.

func (*ContentSharingPolicyStatus) DeepCopy

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

func (*ContentSharingPolicyStatus) DeepCopyInto

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