v1beta1

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

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

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	Connector_Kind             = "Connector"
	Connector_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Connector_Kind}.String()
	Connector_KindAPIVersion   = Connector_Kind + "." + CRDGroupVersion.String()
	Connector_GroupVersionKind = CRDGroupVersion.WithKind(Connector_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 Connector

type Connector struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ConnectorSpec   `json:"spec"`
	Status            ConnectorStatus `json:"status,omitempty"`
}

Connector is the Schema for the Connectors API. Serverless VPC Access connector resource. +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,gcp}

func (*Connector) ConvertFrom added in v1.2.0

func (tr *Connector) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the hub type to the Connector type.

func (*Connector) ConvertTo added in v1.2.0

func (tr *Connector) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this Connector to the hub type.

func (*Connector) DeepCopy

func (in *Connector) DeepCopy() *Connector

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

func (*Connector) DeepCopyInto

func (in *Connector) DeepCopyInto(out *Connector)

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

func (*Connector) DeepCopyObject

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

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

func (*Connector) GetCondition

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

GetCondition of this Connector.

func (*Connector) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Connector

func (*Connector) GetDeletionPolicy

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

GetDeletionPolicy of this Connector.

func (*Connector) GetID

func (tr *Connector) GetID() string

GetID returns ID of underlying Terraform resource of this Connector

func (*Connector) GetInitParameters

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

GetInitParameters of this Connector

func (*Connector) GetManagementPolicies

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

GetManagementPolicies of this Connector.

func (*Connector) GetMergedParameters added in v0.40.0

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

GetInitParameters of this Connector

func (*Connector) GetObservation

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

GetObservation of this Connector

func (*Connector) GetParameters

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

GetParameters of this Connector

func (*Connector) GetProviderConfigReference

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

GetProviderConfigReference of this Connector.

func (*Connector) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Connector.

func (*Connector) GetTerraformResourceType

func (mg *Connector) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Connector

func (*Connector) GetTerraformSchemaVersion

func (tr *Connector) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Connector) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Connector.

func (*Connector) LateInitialize

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

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

func (*Connector) ResolveReferences

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

func (*Connector) SetConditions

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

SetConditions of this Connector.

func (*Connector) SetDeletionPolicy

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

SetDeletionPolicy of this Connector.

func (*Connector) SetManagementPolicies

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

SetManagementPolicies of this Connector.

func (*Connector) SetObservation

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

SetObservation for this Connector

func (*Connector) SetParameters

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

SetParameters for this Connector

func (*Connector) SetProviderConfigReference

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

SetProviderConfigReference of this Connector.

func (*Connector) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Connector.

func (*Connector) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Connector.

type ConnectorInitParameters

type ConnectorInitParameters struct {

	// The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.
	IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"`

	// Machine type of VM Instance underlying connector. Default is e2-micro
	MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`

	// Maximum value of instances in autoscaling group underlying the connector.
	MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"`

	// Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.
	MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"`

	// Minimum value of instances in autoscaling group underlying the connector.
	MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"`

	// Minimum throughput of the connector in Mbps. Default and min is 200.
	MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"`

	// Name or self_link of the VPC network. Required if ip_cidr_range is set.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
	Network *string `json:"network,omitempty" tf:"network,omitempty"`

	// Reference to a Network in compute to populate network.
	// +kubebuilder:validation:Optional
	NetworkRef *v1.Reference `json:"networkRef,omitempty" tf:"-"`

	// Selector for a Network in compute to populate network.
	// +kubebuilder:validation:Optional
	NetworkSelector *v1.Selector `json:"networkSelector,omitempty" tf:"-"`

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

	// The subnet in which to house the connector
	// Structure is documented below.
	Subnet []SubnetInitParameters `json:"subnet,omitempty" tf:"subnet,omitempty"`
}

func (*ConnectorInitParameters) DeepCopy

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

func (*ConnectorInitParameters) DeepCopyInto

func (in *ConnectorInitParameters) DeepCopyInto(out *ConnectorInitParameters)

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

type ConnectorList

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

ConnectorList contains a list of Connectors

func (*ConnectorList) DeepCopy

func (in *ConnectorList) DeepCopy() *ConnectorList

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

func (*ConnectorList) DeepCopyInto

func (in *ConnectorList) DeepCopyInto(out *ConnectorList)

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

func (*ConnectorList) DeepCopyObject

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

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

func (*ConnectorList) GetItems

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

GetItems of this ConnectorList.

type ConnectorObservation

type ConnectorObservation struct {

	// List of projects using the connector.
	ConnectedProjects []*string `json:"connectedProjects,omitempty" tf:"connected_projects,omitempty"`

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

	// The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.
	IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"`

	// Machine type of VM Instance underlying connector. Default is e2-micro
	MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`

	// Maximum value of instances in autoscaling group underlying the connector.
	MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"`

	// Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.
	MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"`

	// Minimum value of instances in autoscaling group underlying the connector.
	MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"`

	// Minimum throughput of the connector in Mbps. Default and min is 200.
	MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"`

	// Name or self_link of the VPC network. Required if ip_cidr_range is set.
	Network *string `json:"network,omitempty" tf:"network,omitempty"`

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

	// Region where the VPC Access connector resides. If it is not provided, the provider region is used.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The fully qualified name of this VPC connector
	SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"`

	// State of the VPC access connector.
	State *string `json:"state,omitempty" tf:"state,omitempty"`

	// The subnet in which to house the connector
	// Structure is documented below.
	Subnet []SubnetObservation `json:"subnet,omitempty" tf:"subnet,omitempty"`
}

func (*ConnectorObservation) DeepCopy

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

func (*ConnectorObservation) DeepCopyInto

func (in *ConnectorObservation) DeepCopyInto(out *ConnectorObservation)

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

type ConnectorParameters

type ConnectorParameters struct {

	// The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.
	// +kubebuilder:validation:Optional
	IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"`

	// Machine type of VM Instance underlying connector. Default is e2-micro
	// +kubebuilder:validation:Optional
	MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`

	// Maximum value of instances in autoscaling group underlying the connector.
	// +kubebuilder:validation:Optional
	MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"`

	// Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.
	// +kubebuilder:validation:Optional
	MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"`

	// Minimum value of instances in autoscaling group underlying the connector.
	// +kubebuilder:validation:Optional
	MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"`

	// Minimum throughput of the connector in Mbps. Default and min is 200.
	// +kubebuilder:validation:Optional
	MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"`

	// Name or self_link of the VPC network. Required if ip_cidr_range is set.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
	// +kubebuilder:validation:Optional
	Network *string `json:"network,omitempty" tf:"network,omitempty"`

	// Reference to a Network in compute to populate network.
	// +kubebuilder:validation:Optional
	NetworkRef *v1.Reference `json:"networkRef,omitempty" tf:"-"`

	// Selector for a Network in compute to populate network.
	// +kubebuilder:validation:Optional
	NetworkSelector *v1.Selector `json:"networkSelector,omitempty" tf:"-"`

	// 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"`

	// Region where the VPC Access connector resides. If it is not provided, the provider region is used.
	// +kubebuilder:validation:Required
	Region *string `json:"region" tf:"region,omitempty"`

	// The subnet in which to house the connector
	// Structure is documented below.
	// +kubebuilder:validation:Optional
	Subnet []SubnetParameters `json:"subnet,omitempty" tf:"subnet,omitempty"`
}

func (*ConnectorParameters) DeepCopy

func (in *ConnectorParameters) DeepCopy() *ConnectorParameters

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

func (*ConnectorParameters) DeepCopyInto

func (in *ConnectorParameters) DeepCopyInto(out *ConnectorParameters)

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

type ConnectorSpec

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

ConnectorSpec defines the desired state of Connector

func (*ConnectorSpec) DeepCopy

func (in *ConnectorSpec) DeepCopy() *ConnectorSpec

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

func (*ConnectorSpec) DeepCopyInto

func (in *ConnectorSpec) DeepCopyInto(out *ConnectorSpec)

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

type ConnectorStatus

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

ConnectorStatus defines the observed state of Connector.

func (*ConnectorStatus) DeepCopy

func (in *ConnectorStatus) DeepCopy() *ConnectorStatus

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

func (*ConnectorStatus) DeepCopyInto

func (in *ConnectorStatus) DeepCopyInto(out *ConnectorStatus)

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

type SubnetInitParameters

type SubnetInitParameters struct {

	// Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
	// https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Subnetwork
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Reference to a Subnetwork in compute to populate name.
	// +kubebuilder:validation:Optional
	NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`

	// Selector for a Subnetwork in compute to populate name.
	// +kubebuilder:validation:Optional
	NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`

	// Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*SubnetInitParameters) DeepCopy

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

func (*SubnetInitParameters) DeepCopyInto

func (in *SubnetInitParameters) DeepCopyInto(out *SubnetInitParameters)

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

type SubnetObservation

type SubnetObservation struct {

	// Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
	// https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*SubnetObservation) DeepCopy

func (in *SubnetObservation) DeepCopy() *SubnetObservation

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

func (*SubnetObservation) DeepCopyInto

func (in *SubnetObservation) DeepCopyInto(out *SubnetObservation)

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

type SubnetParameters

type SubnetParameters struct {

	// Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
	// https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Subnetwork
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Reference to a Subnetwork in compute to populate name.
	// +kubebuilder:validation:Optional
	NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`

	// Selector for a Subnetwork in compute to populate name.
	// +kubebuilder:validation:Optional
	NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`

	// Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*SubnetParameters) DeepCopy

func (in *SubnetParameters) DeepCopy() *SubnetParameters

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

func (*SubnetParameters) DeepCopyInto

func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters)

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