v1beta1

package
v0.30.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	ConnectivityTest_Kind             = "ConnectivityTest"
	ConnectivityTest_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ConnectivityTest_Kind}.String()
	ConnectivityTest_KindAPIVersion   = ConnectivityTest_Kind + "." + CRDGroupVersion.String()
	ConnectivityTest_GroupVersionKind = CRDGroupVersion.WithKind(ConnectivityTest_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 ConnectivityTest

type ConnectivityTest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ConnectivityTestSpec   `json:"spec"`
	Status            ConnectivityTestStatus `json:"status,omitempty"`
}

ConnectivityTest is the Schema for the ConnectivityTests API. A connectivity test are a static analysis of your resource configurations that enables you to evaluate connectivity to and from Google Cloud resources in your Virtual Private Cloud (VPC) network. +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 (*ConnectivityTest) DeepCopy

func (in *ConnectivityTest) DeepCopy() *ConnectivityTest

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

func (*ConnectivityTest) DeepCopyInto

func (in *ConnectivityTest) DeepCopyInto(out *ConnectivityTest)

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

func (*ConnectivityTest) DeepCopyObject

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

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

func (*ConnectivityTest) GetCondition

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

GetCondition of this ConnectivityTest.

func (*ConnectivityTest) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ConnectivityTest

func (*ConnectivityTest) GetDeletionPolicy

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

GetDeletionPolicy of this ConnectivityTest.

func (*ConnectivityTest) GetID

func (tr *ConnectivityTest) GetID() string

GetID returns ID of underlying Terraform resource of this ConnectivityTest

func (*ConnectivityTest) GetObservation

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

GetObservation of this ConnectivityTest

func (*ConnectivityTest) GetParameters

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

GetParameters of this ConnectivityTest

func (*ConnectivityTest) GetProviderConfigReference

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

GetProviderConfigReference of this ConnectivityTest.

func (*ConnectivityTest) GetProviderReference

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

GetProviderReference of this ConnectivityTest. Deprecated: Use GetProviderConfigReference.

func (*ConnectivityTest) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ConnectivityTest.

func (*ConnectivityTest) GetTerraformResourceType

func (mg *ConnectivityTest) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ConnectivityTest

func (*ConnectivityTest) GetTerraformSchemaVersion

func (tr *ConnectivityTest) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ConnectivityTest) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ConnectivityTest.

func (*ConnectivityTest) LateInitialize

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

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

func (*ConnectivityTest) ResolveReferences

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

ResolveReferences of this ConnectivityTest.

func (*ConnectivityTest) SetConditions

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

SetConditions of this ConnectivityTest.

func (*ConnectivityTest) SetDeletionPolicy

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

SetDeletionPolicy of this ConnectivityTest.

func (*ConnectivityTest) SetObservation

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

SetObservation for this ConnectivityTest

func (*ConnectivityTest) SetParameters

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

SetParameters for this ConnectivityTest

func (*ConnectivityTest) SetProviderConfigReference

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

SetProviderConfigReference of this ConnectivityTest.

func (*ConnectivityTest) SetProviderReference

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

SetProviderReference of this ConnectivityTest. Deprecated: Use SetProviderConfigReference.

func (*ConnectivityTest) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ConnectivityTest.

func (*ConnectivityTest) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ConnectivityTest.

type ConnectivityTestList

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

ConnectivityTestList contains a list of ConnectivityTests

func (*ConnectivityTestList) DeepCopy

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

func (*ConnectivityTestList) DeepCopyInto

func (in *ConnectivityTestList) DeepCopyInto(out *ConnectivityTestList)

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

func (*ConnectivityTestList) DeepCopyObject

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

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

func (*ConnectivityTestList) GetItems

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

GetItems of this ConnectivityTestList.

type ConnectivityTestObservation

type ConnectivityTestObservation struct {

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

func (*ConnectivityTestObservation) DeepCopy

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

func (*ConnectivityTestObservation) DeepCopyInto

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

type ConnectivityTestParameters

type ConnectivityTestParameters struct {

	// The user-supplied description of the Connectivity Test.
	// Maximum of 512 characters.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Required. Destination specification of the Connectivity Test.
	// You can use a combination of destination IP address, Compute
	// Engine VM instance, or VPC network to uniquely identify the
	// destination location.
	// Even if the destination IP address is not unique, the source IP
	// location is unique. Usually, the analysis can infer the destination
	// endpoint from route information.
	// If the destination you specify is a VM instance and the instance has
	// multiple network interfaces, then you must also specify either a
	// destination IP address or VPC network to identify the destination
	// interface.
	// A reachability analysis proceeds even if the destination location
	// is ambiguous. However, the result can include endpoints that you
	// don't intend to test.
	// Structure is documented below.
	// +kubebuilder:validation:Required
	Destination []DestinationParameters `json:"destination" tf:"destination,omitempty"`

	// Resource labels to represent user-provided metadata.
	// +kubebuilder:validation:Optional
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// Unique name for the connectivity test.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,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"`

	// IP Protocol of the test. When not provided, "TCP" is assumed.
	// +kubebuilder:validation:Optional
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`

	// Other projects that may be relevant for reachability analysis.
	// This is applicable to scenarios where a test can cross project
	// boundaries.
	// +kubebuilder:validation:Optional
	RelatedProjects []*string `json:"relatedProjects,omitempty" tf:"related_projects,omitempty"`

	// Required. Source specification of the Connectivity Test.
	// You can use a combination of source IP address, virtual machine
	// (VM) instance, or Compute Engine network to uniquely identify the
	// source location.
	// Examples: If the source IP address is an internal IP address within
	// a Google Cloud Virtual Private Cloud (VPC) network, then you must
	// also specify the VPC network. Otherwise, specify the VM instance,
	// which already contains its internal IP address and VPC network
	// information.
	// If the source of the test is within an on-premises network, then
	// you must provide the destination VPC network.
	// If the source endpoint is a Compute Engine VM instance with multiple
	// network interfaces, the instance itself is not sufficient to
	// identify the endpoint. So, you must also specify the source IP
	// address or VPC network.
	// A reachability analysis proceeds even if the source location is
	// ambiguous. However, the test result may include endpoints that
	// you don't intend to test.
	// Structure is documented below.
	// +kubebuilder:validation:Required
	Source []SourceParameters `json:"source" tf:"source,omitempty"`
}

func (*ConnectivityTestParameters) DeepCopy

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

func (*ConnectivityTestParameters) DeepCopyInto

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

type ConnectivityTestSpec

type ConnectivityTestSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ConnectivityTestParameters `json:"forProvider"`
}

ConnectivityTestSpec defines the desired state of ConnectivityTest

func (*ConnectivityTestSpec) DeepCopy

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

func (*ConnectivityTestSpec) DeepCopyInto

func (in *ConnectivityTestSpec) DeepCopyInto(out *ConnectivityTestSpec)

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

type ConnectivityTestStatus

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

ConnectivityTestStatus defines the observed state of ConnectivityTest.

func (*ConnectivityTestStatus) DeepCopy

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

func (*ConnectivityTestStatus) DeepCopyInto

func (in *ConnectivityTestStatus) DeepCopyInto(out *ConnectivityTestStatus)

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

type DestinationObservation

type DestinationObservation struct {
}

func (*DestinationObservation) DeepCopy

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

func (*DestinationObservation) DeepCopyInto

func (in *DestinationObservation) DeepCopyInto(out *DestinationObservation)

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

type DestinationParameters

type DestinationParameters struct {

	// The IP address of the endpoint, which can be an external or
	// internal IP. An IPv6 address is only allowed when the test's
	// destination is a global load balancer VIP.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Address
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("address",false)
	// +kubebuilder:validation:Optional
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// Reference to a Address in compute to populate ipAddress.
	// +kubebuilder:validation:Optional
	IPAddressRef *v1.Reference `json:"ipAddressRef,omitempty" tf:"-"`

	// Selector for a Address in compute to populate ipAddress.
	// +kubebuilder:validation:Optional
	IPAddressSelector *v1.Selector `json:"ipAddressSelector,omitempty" tf:"-"`

	// A Compute Engine instance URI.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Instance
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	Instance *string `json:"instance,omitempty" tf:"instance,omitempty"`

	// Reference to a Instance in compute to populate instance.
	// +kubebuilder:validation:Optional
	InstanceRef *v1.Reference `json:"instanceRef,omitempty" tf:"-"`

	// Selector for a Instance in compute to populate instance.
	// +kubebuilder:validation:Optional
	InstanceSelector *v1.Selector `json:"instanceSelector,omitempty" tf:"-"`

	// A Compute Engine network URI.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
	// +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 IP protocol port of the endpoint. Only applicable when
	// protocol is TCP or UDP.
	// +kubebuilder:validation:Optional
	Port *float64 `json:"port,omitempty" tf:"port,omitempty"`

	// Project ID where the endpoint is located. The Project ID can be
	// derived from the URI if you provide a VM instance or network URI.
	// The following are two cases where you must provide the project ID:
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Address
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("project",false)
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

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

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

func (*DestinationParameters) DeepCopy

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

func (*DestinationParameters) DeepCopyInto

func (in *DestinationParameters) DeepCopyInto(out *DestinationParameters)

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

type SourceObservation

type SourceObservation struct {
}

func (*SourceObservation) DeepCopy

func (in *SourceObservation) DeepCopy() *SourceObservation

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

func (*SourceObservation) DeepCopyInto

func (in *SourceObservation) DeepCopyInto(out *SourceObservation)

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

type SourceParameters

type SourceParameters struct {

	// The IP address of the endpoint, which can be an external or
	// internal IP. An IPv6 address is only allowed when the test's
	// destination is a global load balancer VIP.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Address
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("address",false)
	// +kubebuilder:validation:Optional
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// Reference to a Address in compute to populate ipAddress.
	// +kubebuilder:validation:Optional
	IPAddressRef *v1.Reference `json:"ipAddressRef,omitempty" tf:"-"`

	// Selector for a Address in compute to populate ipAddress.
	// +kubebuilder:validation:Optional
	IPAddressSelector *v1.Selector `json:"ipAddressSelector,omitempty" tf:"-"`

	// A Compute Engine instance URI.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Instance
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
	// +kubebuilder:validation:Optional
	Instance *string `json:"instance,omitempty" tf:"instance,omitempty"`

	// Reference to a Instance in compute to populate instance.
	// +kubebuilder:validation:Optional
	InstanceRef *v1.Reference `json:"instanceRef,omitempty" tf:"-"`

	// Selector for a Instance in compute to populate instance.
	// +kubebuilder:validation:Optional
	InstanceSelector *v1.Selector `json:"instanceSelector,omitempty" tf:"-"`

	// A Compute Engine network URI.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
	// +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:"-"`

	// Type of the network where the endpoint is located.
	// Possible values are GCP_NETWORK and NON_GCP_NETWORK.
	// +kubebuilder:validation:Optional
	NetworkType *string `json:"networkType,omitempty" tf:"network_type,omitempty"`

	// The IP protocol port of the endpoint. Only applicable when
	// protocol is TCP or UDP.
	// +kubebuilder:validation:Optional
	Port *float64 `json:"port,omitempty" tf:"port,omitempty"`

	// Project ID where the endpoint is located. The Project ID can be
	// derived from the URI if you provide a VM instance or network URI.
	// The following are two cases where you must provide the project ID:
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Address
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("project",false)
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

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

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

func (*SourceParameters) DeepCopy

func (in *SourceParameters) DeepCopy() *SourceParameters

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

func (*SourceParameters) DeepCopyInto

func (in *SourceParameters) DeepCopyInto(out *SourceParameters)

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