v1alpha1

package
v1.119.0 Latest Latest
Warning

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

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

Documentation

Overview

Generate deepcopy object for orgpolicy/v1alpha1 API group

Package v1alpha1 contains API Schema definitions for the orgpolicy 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/orgpolicy +k8s:defaulter-gen=TypeMeta +groupName=orgpolicy.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: "orgpolicy.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

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

Functions

This section is empty.

Types

type OrgPolicyCustomConstraint

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

	Spec   OrgPolicyCustomConstraintSpec   `json:"spec,omitempty"`
	Status OrgPolicyCustomConstraintStatus `json:"status,omitempty"`
}

OrgPolicyCustomConstraint is the Schema for the orgpolicy API +k8s:openapi-gen=true

func (*OrgPolicyCustomConstraint) DeepCopy

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

func (*OrgPolicyCustomConstraint) DeepCopyInto

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

func (*OrgPolicyCustomConstraint) DeepCopyObject

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

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

type OrgPolicyCustomConstraintList

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

OrgPolicyCustomConstraintList contains a list of OrgPolicyCustomConstraint

func (*OrgPolicyCustomConstraintList) DeepCopy

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

func (*OrgPolicyCustomConstraintList) DeepCopyInto

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

func (*OrgPolicyCustomConstraintList) DeepCopyObject

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

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

type OrgPolicyCustomConstraintSpec

type OrgPolicyCustomConstraintSpec struct {
	/* The action to take if the condition is met. Possible values: ["ALLOW", "DENY"]. */
	ActionType string `json:"actionType"`

	/* A CEL condition that refers to a supported service resource, for example 'resource.management.autoUpgrade == false'. For details about CEL usage, see [Common Expression Language](https://cloud.google.com/resource-manager/docs/organization-policy/creating-managing-custom-constraints#common_expression_language). */
	Condition string `json:"condition"`

	/* A human-friendly description of the constraint to display as an error message when the policy is violated. */
	// +optional
	Description *string `json:"description,omitempty"`

	/* A human-friendly name for the constraint. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

	/* A list of RESTful methods for which to enforce the constraint. Can be 'CREATE', 'UPDATE', or both. Not all Google Cloud services support both methods. To see supported methods for each service, find the service in [Supported services](https://cloud.google.com/resource-manager/docs/organization-policy/custom-constraint-supported-services). */
	MethodTypes []string `json:"methodTypes"`

	/* Immutable. The parent of the resource, an organization. Format should be 'organizations/{organization_id}'. */
	Parent string `json:"parent"`

	/* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	/* Immutable. Immutable. The fully qualified name of the Google Cloud REST resource containing the object and field you want to restrict. For example, 'container.googleapis.com/NodePool'. */
	ResourceTypes []string `json:"resourceTypes"`
}

func (*OrgPolicyCustomConstraintSpec) DeepCopy

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

func (*OrgPolicyCustomConstraintSpec) DeepCopyInto

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

type OrgPolicyCustomConstraintStatus

type OrgPolicyCustomConstraintStatus struct {
	/* Conditions represent the latest available observations of the
	   OrgPolicyCustomConstraint's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,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"`

	/* Output only. The timestamp representing when the constraint was last updated. */
	// +optional
	UpdateTime *string `json:"updateTime,omitempty"`
}

func (*OrgPolicyCustomConstraintStatus) DeepCopy

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

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