v1alpha1

package
v1.116.0 Latest Latest
Warning

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

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

Documentation

Overview

Generate deepcopy object for securitycenter/v1alpha1 API group

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

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

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

Functions

This section is empty.

Types

type NotificationconfigStreamingConfig

type NotificationconfigStreamingConfig struct {
	/* Expression that defines the filter to apply across create/update
	events of assets or findings as specified by the event type. The
	expression is a list of zero or more restrictions combined via
	logical operators AND and OR. Parentheses are supported, and OR
	has higher precedence than AND.

	Restrictions have the form <field> <operator> <value> and may have
	a - character in front of them to indicate negation. The fields
	map to those defined in the corresponding resource.

	The supported operators are:

	* = for all value types.
	* >, <, >=, <= for integer values.
	* :, meaning substring matching, for strings.

	The supported value types are:

	* string literals in quotes.
	* integer literals without quotes.
	* boolean literals true and false without quotes.

	See
	[Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
	for information on how to write a filter. */
	Filter string `json:"filter"`
}

func (*NotificationconfigStreamingConfig) DeepCopy

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

func (*NotificationconfigStreamingConfig) DeepCopyInto

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

type SecurityCenterNotificationConfig

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

	Spec   SecurityCenterNotificationConfigSpec   `json:"spec,omitempty"`
	Status SecurityCenterNotificationConfigStatus `json:"status,omitempty"`
}

SecurityCenterNotificationConfig is the Schema for the securitycenter API +k8s:openapi-gen=true

func (*SecurityCenterNotificationConfig) DeepCopy

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

func (*SecurityCenterNotificationConfig) DeepCopyInto

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

func (*SecurityCenterNotificationConfig) DeepCopyObject

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

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

type SecurityCenterNotificationConfigList

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

SecurityCenterNotificationConfigList contains a list of SecurityCenterNotificationConfig

func (*SecurityCenterNotificationConfigList) DeepCopy

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

func (*SecurityCenterNotificationConfigList) DeepCopyInto

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

func (*SecurityCenterNotificationConfigList) DeepCopyObject

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

type SecurityCenterNotificationConfigSpec

type SecurityCenterNotificationConfigSpec struct {
	/* Immutable. This must be unique within the organization. */
	ConfigId string `json:"configId"`

	/* The description of the notification config (max of 1024 characters). */
	// +optional
	Description *string `json:"description,omitempty"`

	/* The organization that this resource belongs to. */
	OrganizationRef v1alpha1.ResourceRef `json:"organizationRef"`

	/* The Pub/Sub topic to send notifications to. Its format is
	"projects/[project_id]/topics/[topic]". */
	PubsubTopic string `json:"pubsubTopic"`

	/* Immutable. Optional. The service-generated name of the resource. Used for acquisition only. Leave unset to create a new resource. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	/* The config for triggering streaming-based notifications. */
	StreamingConfig NotificationconfigStreamingConfig `json:"streamingConfig"`
}

func (*SecurityCenterNotificationConfigSpec) DeepCopy

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

func (*SecurityCenterNotificationConfigSpec) DeepCopyInto

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

type SecurityCenterNotificationConfigStatus

type SecurityCenterNotificationConfigStatus struct {
	/* Conditions represent the latest available observations of the
	   SecurityCenterNotificationConfig's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* The resource name of this notification config, in the format
	'organizations/{{organization}}/notificationConfigs/{{config_id}}'. */
	// +optional
	Name *string `json:"name,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 *int `json:"observedGeneration,omitempty"`

	/* The service account that needs "pubsub.topics.publish" permission to
	publish to the Pub/Sub topic. */
	// +optional
	ServiceAccount *string `json:"serviceAccount,omitempty"`
}

func (*SecurityCenterNotificationConfigStatus) DeepCopy

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

func (*SecurityCenterNotificationConfigStatus) DeepCopyInto

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

type SecurityCenterSource

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

	Spec   SecurityCenterSourceSpec   `json:"spec,omitempty"`
	Status SecurityCenterSourceStatus `json:"status,omitempty"`
}

SecurityCenterSource is the Schema for the securitycenter API +k8s:openapi-gen=true

func (*SecurityCenterSource) DeepCopy

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

func (*SecurityCenterSource) DeepCopyInto

func (in *SecurityCenterSource) DeepCopyInto(out *SecurityCenterSource)

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

func (*SecurityCenterSource) DeepCopyObject

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

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

type SecurityCenterSourceList

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

SecurityCenterSourceList contains a list of SecurityCenterSource

func (*SecurityCenterSourceList) DeepCopy

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

func (*SecurityCenterSourceList) DeepCopyInto

func (in *SecurityCenterSourceList) DeepCopyInto(out *SecurityCenterSourceList)

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

func (*SecurityCenterSourceList) DeepCopyObject

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

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

type SecurityCenterSourceSpec

type SecurityCenterSourceSpec struct {
	/* The description of the source (max of 1024 characters). */
	// +optional
	Description *string `json:"description,omitempty"`

	/* The source’s display name. A source’s display name must be unique
	amongst its siblings, for example, two sources with the same parent
	can't share the same display name. The display name must start and end
	with a letter or digit, may contain letters, digits, spaces, hyphens,
	and underscores, and can be no longer than 32 characters. */
	DisplayName string `json:"displayName"`

	/* The organization that this resource belongs to. */
	OrganizationRef v1alpha1.ResourceRef `json:"organizationRef"`

	/* Immutable. Optional. The service-generated name of the resource. Used for acquisition only. Leave unset to create a new resource. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`
}

func (*SecurityCenterSourceSpec) DeepCopy

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

func (*SecurityCenterSourceSpec) DeepCopyInto

func (in *SecurityCenterSourceSpec) DeepCopyInto(out *SecurityCenterSourceSpec)

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

type SecurityCenterSourceStatus

type SecurityCenterSourceStatus struct {
	/* Conditions represent the latest available observations of the
	   SecurityCenterSource's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* The resource name of this source, in the format
	'organizations/{{organization}}/sources/{{source}}'. */
	// +optional
	Name *string `json:"name,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 *int `json:"observedGeneration,omitempty"`
}

func (*SecurityCenterSourceStatus) DeepCopy

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

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