v1alpha1

package
v1.122.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the networkconnectivity v1alpha1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/networkconnectivity +k8s:defaulter-gen=TypeMeta +groupName=networkconnectivity.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "networkconnectivity.cnrm.cloud.google.com", Version: "v1alpha1"}

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

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme

	NetworkConnectivityServiceConnectionPolicyGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(NetworkConnectivityServiceConnectionPolicy{}).Name(),
	}
)

Functions

This section is empty.

Types

type NetworkConnectivityServiceConnectionPolicy

type NetworkConnectivityServiceConnectionPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NetworkConnectivityServiceConnectionPolicySpec   `json:"spec,omitempty"`
	Status NetworkConnectivityServiceConnectionPolicyStatus `json:"status,omitempty"`
}

NetworkConnectivityServiceConnectionPolicy is the Schema for the networkconnectivity API +k8s:openapi-gen=true

func (*NetworkConnectivityServiceConnectionPolicy) DeepCopy

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

func (*NetworkConnectivityServiceConnectionPolicy) DeepCopyInto

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

func (*NetworkConnectivityServiceConnectionPolicy) DeepCopyObject

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

type NetworkConnectivityServiceConnectionPolicyList

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

NetworkConnectivityServiceConnectionPolicyList contains a list of NetworkConnectivityServiceConnectionPolicy

func (*NetworkConnectivityServiceConnectionPolicyList) DeepCopy

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

func (*NetworkConnectivityServiceConnectionPolicyList) DeepCopyInto

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

func (*NetworkConnectivityServiceConnectionPolicyList) DeepCopyObject

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

type NetworkConnectivityServiceConnectionPolicySpec

type NetworkConnectivityServiceConnectionPolicySpec struct {
	/* A description of this resource. */
	// +optional
	Description *string `json:"description,omitempty"`

	/* Immutable. Location of the resource. */
	Location string `json:"location"`

	/* The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}. */
	// +optional
	NetworkRef *v1alpha1.ResourceRef `json:"networkRef,omitempty"`

	/* Immutable. The Project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `json:"projectRef"`

	/* Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. */
	// +optional
	PscConfig *ServiceconnectionpolicyPscConfig `json:"pscConfig,omitempty"`

	/* The NetworkConnectivityServiceConnectionPolicy name. If not given, the metadata.name will be used. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	/* The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx. */
	// +optional
	ServiceClass *string `json:"serviceClass,omitempty"`
}

func (*NetworkConnectivityServiceConnectionPolicySpec) DeepCopy

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

func (*NetworkConnectivityServiceConnectionPolicySpec) DeepCopyInto

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

type NetworkConnectivityServiceConnectionPolicyStatus

type NetworkConnectivityServiceConnectionPolicyStatus struct {
	/* Conditions represent the latest available observations of the
	   NetworkConnectivityServiceConnectionPolicy's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* A unique specifier for the NetworkConnectivityServiceConnectionPolicy resource in GCP. */
	// +optional
	ExternalRef *string `json:"externalRef,omitempty"`

	/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	/* ObservedState is the state of the resource as most recently observed in GCP. */
	// +optional
	ObservedState *ServiceconnectionpolicyObservedStateStatus `json:"observedState,omitempty"`
}

func (*NetworkConnectivityServiceConnectionPolicyStatus) DeepCopy

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

func (*NetworkConnectivityServiceConnectionPolicyStatus) DeepCopyInto

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

type ServiceconnectionpolicyErrorInfoStatus

type ServiceconnectionpolicyErrorInfoStatus struct {
	/* The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". */
	// +optional
	Domain *string `json:"domain,omitempty"`

	/* Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. */
	// +optional
	Metadata map[string]string `json:"metadata,omitempty"`

	/* The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. */
	// +optional
	Reason *string `json:"reason,omitempty"`
}

func (*ServiceconnectionpolicyErrorInfoStatus) DeepCopy

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

func (*ServiceconnectionpolicyErrorInfoStatus) DeepCopyInto

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

type ServiceconnectionpolicyErrorStatus

type ServiceconnectionpolicyErrorStatus struct {
	/* The status code, which should be an enum value of google.rpc.Code. */
	// +optional
	Code *int32 `json:"code,omitempty"`

	/* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
	// +optional
	Message *string `json:"message,omitempty"`
}

func (*ServiceconnectionpolicyErrorStatus) DeepCopy

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

func (*ServiceconnectionpolicyErrorStatus) DeepCopyInto

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

type ServiceconnectionpolicyObservedStateStatus

type ServiceconnectionpolicyObservedStateStatus struct {
	/* Output only. Time when the ServiceConnectionMap was created. */
	// +optional
	CreateTime *string `json:"createTime,omitempty"`

	/* Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
	// +optional
	Etag *string `json:"etag,omitempty"`

	/* Output only. The type of underlying resources used to create the connection. */
	// +optional
	Infrastructure *string `json:"infrastructure,omitempty"`

	/* Output only. [Output only] Information about each Private Service Connect connection. */
	// +optional
	PscConnections []ServiceconnectionpolicyPscConnectionsStatus `json:"pscConnections,omitempty"`

	/* Output only. Time when the ServiceConnectionMap was updated. */
	// +optional
	UpdateTime *string `json:"updateTime,omitempty"`
}

func (*ServiceconnectionpolicyObservedStateStatus) DeepCopy

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

func (*ServiceconnectionpolicyObservedStateStatus) DeepCopyInto

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

type ServiceconnectionpolicyPscConfig

type ServiceconnectionpolicyPscConfig struct {
	/* Optional. Max number of PSC connections for this policy. */
	// +optional
	Limit *int64 `json:"limit,omitempty"`

	/* Required. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within. */
	// +optional
	ProducerInstanceLocation *string `json:"producerInstanceLocation,omitempty"`

	/* The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}. */
	// +optional
	SubnetworkRefs []v1alpha1.ResourceRef `json:"subnetworkRefs,omitempty"`
}

func (*ServiceconnectionpolicyPscConfig) DeepCopy

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

func (*ServiceconnectionpolicyPscConfig) DeepCopyInto

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

type ServiceconnectionpolicyPscConnectionsStatus

type ServiceconnectionpolicyPscConnectionsStatus struct {
	/* The resource reference of the consumer address. */
	// +optional
	ConsumerAddress *string `json:"consumerAddress,omitempty"`

	/* The resource reference of the PSC Forwarding Rule within the consumer VPC. */
	// +optional
	ConsumerForwardingRule *string `json:"consumerForwardingRule,omitempty"`

	/* The project where the PSC connection is created. */
	// +optional
	ConsumerTargetProject *string `json:"consumerTargetProject,omitempty"`

	/* The most recent error during operating this connection. */
	// +optional
	Error *ServiceconnectionpolicyErrorStatus `json:"error,omitempty"`

	/* Output only. The error info for the latest error during operating this connection. */
	// +optional
	ErrorInfo *ServiceconnectionpolicyErrorInfoStatus `json:"errorInfo,omitempty"`

	/* The error type indicates whether the error is consumer facing, producer facing or system internal. */
	// +optional
	ErrorType *string `json:"errorType,omitempty"`

	/* The last Compute Engine operation to setup PSC connection. */
	// +optional
	GceOperation *string `json:"gceOperation,omitempty"`

	/* Immutable. An immutable identifier for the producer instance. */
	// +optional
	ProducerInstanceID *string `json:"producerInstanceID,omitempty"`

	/* The PSC connection id of the PSC forwarding rule. */
	// +optional
	PscConnectionID *string `json:"pscConnectionID,omitempty"`

	/* Output only. The URI of the subnetwork selected to allocate IP address for this connection. */
	// +optional
	SelectedSubnetwork *string `json:"selectedSubnetwork,omitempty"`

	/* State of the PSC Connection */
	// +optional
	State *string `json:"state,omitempty"`
}

func (*ServiceconnectionpolicyPscConnectionsStatus) DeepCopy

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

func (*ServiceconnectionpolicyPscConnectionsStatus) 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