v1beta1

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Generate deepcopy object for osconfig/v1beta1 API group

Package v1beta1 contains API Schema definitions for the osconfig v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis/osconfig +k8s:defaulter-gen=TypeMeta +groupName=osconfig.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: "osconfig.cnrm.cloud.google.com", Version: "v1beta1"}

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

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

Functions

This section is empty.

Types

type GuestpolicyApt

type GuestpolicyApt struct {
	/* Type of archive files in this repository. The default behavior is DEB. Possible values: ARCHIVE_TYPE_UNSPECIFIED, DEB, DEB_SRC */
	// +optional
	ArchiveType *string `json:"archiveType,omitempty"`

	/* List of components for this repository. Must contain at least one item. */
	// +optional
	Components []string `json:"components,omitempty"`

	/* Required. Distribution of this repository. */
	Distribution string `json:"distribution"`

	/* Optional. URI of the key file for this repository. The agent will maintain a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg containing all the keys in any applied GuestPolicy. */
	// +optional
	GpgKey *string `json:"gpgKey,omitempty"`

	/* Required. URI for this repository. */
	Uri string `json:"uri"`
}

func (*GuestpolicyApt) DeepCopy

func (in *GuestpolicyApt) DeepCopy() *GuestpolicyApt

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

func (*GuestpolicyApt) DeepCopyInto

func (in *GuestpolicyApt) DeepCopyInto(out *GuestpolicyApt)

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

type GuestpolicyArchiveExtraction

type GuestpolicyArchiveExtraction struct {
	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`

	/* Directory to extract archive to. Defaults to / on Linux or C: on Windows. */
	// +optional
	Destination *string `json:"destination,omitempty"`

	/* The type of the archive to extract. Possible values: TYPE_UNSPECIFIED, VALIDATION, DESIRED_STATE_CHECK, DESIRED_STATE_ENFORCEMENT, DESIRED_STATE_CHECK_POST_ENFORCEMENT */
	// +optional
	Type *string `json:"type,omitempty"`
}

func (*GuestpolicyArchiveExtraction) DeepCopy

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

func (*GuestpolicyArchiveExtraction) DeepCopyInto

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

type GuestpolicyArtifacts

type GuestpolicyArtifacts struct {
	/* Defaults to false. When false, recipes will be subject to validations based on the artifact type: Remote: A checksum must be specified, and only protocols with transport-layer security will be permitted. GCS: An object generation number must be specified. */
	// +optional
	AllowInsecure *bool `json:"allowInsecure,omitempty"`

	/* A GCS artifact. */
	// +optional
	Gcs *GuestpolicyGcs `json:"gcs,omitempty"`

	/* Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id. */
	// +optional
	Id *string `json:"id,omitempty"`

	/* A generic remote artifact. */
	// +optional
	Remote *GuestpolicyRemote `json:"remote,omitempty"`
}

func (*GuestpolicyArtifacts) DeepCopy

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

func (*GuestpolicyArtifacts) DeepCopyInto

func (in *GuestpolicyArtifacts) DeepCopyInto(out *GuestpolicyArtifacts)

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

type GuestpolicyAssignment

type GuestpolicyAssignment struct {
	/* Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging". */
	// +optional
	GroupLabels []GuestpolicyGroupLabels `json:"groupLabels,omitempty"`

	/* Targets VMs whose name starts with one of these prefixes. Like labels, this is another way to group VMs when targeting configs, for example prefix=”prod-”. Only supported for project-level policies. */
	// +optional
	InstanceNamePrefixes []string `json:"instanceNamePrefixes,omitempty"`

	/*  */
	// +optional
	Instances []v1alpha1.ResourceRef `json:"instances,omitempty"`

	/*  */
	// +optional
	OsTypes []GuestpolicyOsTypes `json:"osTypes,omitempty"`

	/* Targets instances in ANY of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate orchestrating changes by zone. */
	// +optional
	Zones []string `json:"zones,omitempty"`
}

func (*GuestpolicyAssignment) DeepCopy

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

func (*GuestpolicyAssignment) DeepCopyInto

func (in *GuestpolicyAssignment) DeepCopyInto(out *GuestpolicyAssignment)

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

type GuestpolicyDpkgInstallation

type GuestpolicyDpkgInstallation struct {
	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`
}

func (*GuestpolicyDpkgInstallation) DeepCopy

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

func (*GuestpolicyDpkgInstallation) DeepCopyInto

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

type GuestpolicyFileCopy

type GuestpolicyFileCopy struct {
	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`

	/* The absolute path on the instance to put the file. */
	// +optional
	Destination *string `json:"destination,omitempty"`

	/* Whether to allow this step to overwrite existing files. If this is false and the file already exists the file will not be overwritten and the step will be considered a success. Defaults to false. */
	// +optional
	Overwrite *bool `json:"overwrite,omitempty"`

	/* Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4 */
	// +optional
	Permissions *string `json:"permissions,omitempty"`
}

func (*GuestpolicyFileCopy) DeepCopy

func (in *GuestpolicyFileCopy) DeepCopy() *GuestpolicyFileCopy

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

func (*GuestpolicyFileCopy) DeepCopyInto

func (in *GuestpolicyFileCopy) DeepCopyInto(out *GuestpolicyFileCopy)

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

type GuestpolicyFileExec

type GuestpolicyFileExec struct {
	/* Defaults to . A list of possible return values that the program can return to indicate a success. */
	// +optional
	AllowedExitCodes []int `json:"allowedExitCodes,omitempty"`

	/* Arguments to be passed to the provided executable. */
	// +optional
	Args []string `json:"args,omitempty"`

	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`

	/* The absolute path of the file on the local filesystem. */
	// +optional
	LocalPath *string `json:"localPath,omitempty"`
}

func (*GuestpolicyFileExec) DeepCopy

func (in *GuestpolicyFileExec) DeepCopy() *GuestpolicyFileExec

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

func (*GuestpolicyFileExec) DeepCopyInto

func (in *GuestpolicyFileExec) DeepCopyInto(out *GuestpolicyFileExec)

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

type GuestpolicyGcs

type GuestpolicyGcs struct {
	/*  */
	// +optional
	BucketRef *v1alpha1.ResourceRef `json:"bucketRef,omitempty"`

	/* Optional if allow_insecure is true. Generation number of the GCS object. */
	// +optional
	Generation *int `json:"generation,omitempty"`

	/* Name of the GCS object. */
	// +optional
	Object *string `json:"object,omitempty"`
}

func (*GuestpolicyGcs) DeepCopy

func (in *GuestpolicyGcs) DeepCopy() *GuestpolicyGcs

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

func (*GuestpolicyGcs) DeepCopyInto

func (in *GuestpolicyGcs) DeepCopyInto(out *GuestpolicyGcs)

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

type GuestpolicyGoo

type GuestpolicyGoo struct {
	/* Required. The name of the repository. */
	Name string `json:"name"`

	/* Required. The url of the repository. */
	Url string `json:"url"`
}

func (*GuestpolicyGoo) DeepCopy

func (in *GuestpolicyGoo) DeepCopy() *GuestpolicyGoo

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

func (*GuestpolicyGoo) DeepCopyInto

func (in *GuestpolicyGoo) DeepCopyInto(out *GuestpolicyGoo)

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

type GuestpolicyGroupLabels

type GuestpolicyGroupLabels struct {
	/* GCE instance labels that must be present for an instance to be included in this assignment group. */
	// +optional
	Labels map[string]string `json:"labels,omitempty"`
}

func (*GuestpolicyGroupLabels) DeepCopy

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

func (*GuestpolicyGroupLabels) DeepCopyInto

func (in *GuestpolicyGroupLabels) DeepCopyInto(out *GuestpolicyGroupLabels)

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

type GuestpolicyInstallSteps

type GuestpolicyInstallSteps struct {
	/* Extracts an archive into the specified directory. */
	// +optional
	ArchiveExtraction *GuestpolicyArchiveExtraction `json:"archiveExtraction,omitempty"`

	/* Installs a deb file via dpkg. */
	// +optional
	DpkgInstallation *GuestpolicyDpkgInstallation `json:"dpkgInstallation,omitempty"`

	/* Copies a file onto the instance. */
	// +optional
	FileCopy *GuestpolicyFileCopy `json:"fileCopy,omitempty"`

	/* Executes an artifact or local file. */
	// +optional
	FileExec *GuestpolicyFileExec `json:"fileExec,omitempty"`

	/* Installs an MSI file. */
	// +optional
	MsiInstallation *GuestpolicyMsiInstallation `json:"msiInstallation,omitempty"`

	/* Installs an rpm file via the rpm utility. */
	// +optional
	RpmInstallation *GuestpolicyRpmInstallation `json:"rpmInstallation,omitempty"`

	/* Runs commands in a shell. */
	// +optional
	ScriptRun *GuestpolicyScriptRun `json:"scriptRun,omitempty"`
}

func (*GuestpolicyInstallSteps) DeepCopy

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

func (*GuestpolicyInstallSteps) DeepCopyInto

func (in *GuestpolicyInstallSteps) DeepCopyInto(out *GuestpolicyInstallSteps)

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

type GuestpolicyMsiInstallation

type GuestpolicyMsiInstallation struct {
	/* Return codes that indicate that the software installed or updated successfully. Behaviour defaults to */
	// +optional
	AllowedExitCodes []int `json:"allowedExitCodes,omitempty"`

	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`

	/* The flags to use when installing the MSI defaults to (i.e. the install flag). */
	// +optional
	Flags []string `json:"flags,omitempty"`
}

func (*GuestpolicyMsiInstallation) DeepCopy

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

func (*GuestpolicyMsiInstallation) DeepCopyInto

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

type GuestpolicyOsTypes

type GuestpolicyOsTypes struct {
	/* Targets VMs with OS Inventory enabled and having one of the following OS architectures. */
	// +optional
	OsArchitecture *string `json:"osArchitecture,omitempty"`

	/* Targets VMs with OS Inventory enabled and having one of the following OS short names, for example "debian", "windows". */
	// +optional
	OsShortName *string `json:"osShortName,omitempty"`

	/* Targets VMs with OS Inventory enabled and having one of the following OS versions. */
	// +optional
	OsVersion *string `json:"osVersion,omitempty"`
}

func (*GuestpolicyOsTypes) DeepCopy

func (in *GuestpolicyOsTypes) DeepCopy() *GuestpolicyOsTypes

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

func (*GuestpolicyOsTypes) DeepCopyInto

func (in *GuestpolicyOsTypes) DeepCopyInto(out *GuestpolicyOsTypes)

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

type GuestpolicyPackageRepositories

type GuestpolicyPackageRepositories struct {
	/* An Apt Repository. */
	// +optional
	Apt *GuestpolicyApt `json:"apt,omitempty"`

	/* A Goo Repository. */
	// +optional
	Goo *GuestpolicyGoo `json:"goo,omitempty"`

	/* A Yum Repository. */
	// +optional
	Yum *GuestpolicyYum `json:"yum,omitempty"`

	/* A Zypper Repository. */
	// +optional
	Zypper *GuestpolicyZypper `json:"zypper,omitempty"`
}

func (*GuestpolicyPackageRepositories) DeepCopy

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

func (*GuestpolicyPackageRepositories) DeepCopyInto

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

type GuestpolicyPackages

type GuestpolicyPackages struct {
	/* Optional. The desired_state the agent should maintain for this package. The default is to ensure the package is installed. Possible values: DESIRED_STATE_UNSPECIFIED, INSTALLED, REMOVED */
	// +optional
	DesiredState *string `json:"desiredState,omitempty"`

	/* Optional. Type of package manager that can be used to install this package. If a system does not have the package manager, the package will not be installed/removed and there is no error. By default or when specifying ANY, the agent will attempt to install and remove this package using the default package manager. This is helpful when creating a policy that applies to different types of systems. The default behavior is ANY. Possible values: MANAGER_UNSPECIFIED, ANY, APT, YUM, ZYPPER, GOO */
	// +optional
	Manager *string `json:"manager,omitempty"`

	/* The name of the package. A package is uniquely identified for conflict validation by checking its name and the manager(s) it targets. */
	// +optional
	Name *string `json:"name,omitempty"`
}

func (*GuestpolicyPackages) DeepCopy

func (in *GuestpolicyPackages) DeepCopy() *GuestpolicyPackages

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

func (*GuestpolicyPackages) DeepCopyInto

func (in *GuestpolicyPackages) DeepCopyInto(out *GuestpolicyPackages)

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

type GuestpolicyRecipes

type GuestpolicyRecipes struct {
	/* Resources available to be used in the steps in the recipe. */
	// +optional
	Artifacts []GuestpolicyArtifacts `json:"artifacts,omitempty"`

	/* Default is INSTALLED. The desired state the agent should maintain for this recipe. INSTALLED: The software recipe will be installed on the instance but won't be updated to new versions. INSTALLED_KEEP_UPDATED: The software recipe will be installed on the instance. It will also be updated to a higher version of the recipe if a higher version is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state will be rejected. Possible values: DESIRED_STATE_UNSPECIFIED, INSTALLED, REMOVED */
	// +optional
	DesiredState *string `json:"desiredState,omitempty"`

	/* Actions to be taken for installing this recipe. On failure it will stop executing steps and not attempt another installation. Any steps taken (including partially completed steps) will not be rolled back. */
	// +optional
	InstallSteps []GuestpolicyInstallSteps `json:"installSteps,omitempty"`

	/* Unique identifier for the recipe. Only one recipe with a given name will be installed on an instance. Names are also used to identify resource to determine whether guest policies conflict. This means that requests to create multiple recipes with the same name and version that could possibly have conflicting assignments will be rejected. */
	// +optional
	Name *string `json:"name,omitempty"`

	/* Actions to be taken for updating this recipe. On failure it will stop executing steps and not attempt another update for this recipe. Any steps taken (including partially completed steps) will not be rolled back. */
	// +optional
	UpdateSteps []GuestpolicyUpdateSteps `json:"updateSteps,omitempty"`

	/* The version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78). */
	// +optional
	Version *string `json:"version,omitempty"`
}

func (*GuestpolicyRecipes) DeepCopy

func (in *GuestpolicyRecipes) DeepCopy() *GuestpolicyRecipes

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

func (*GuestpolicyRecipes) DeepCopyInto

func (in *GuestpolicyRecipes) DeepCopyInto(out *GuestpolicyRecipes)

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

type GuestpolicyRemote

type GuestpolicyRemote struct {
	/* Optional if allow_insecure is true. SHA256 checksum to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation will fail before running any of the steps. */
	// +optional
	Checksum *string `json:"checksum,omitempty"`

	/* URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}. */
	// +optional
	Uri *string `json:"uri,omitempty"`
}

func (*GuestpolicyRemote) DeepCopy

func (in *GuestpolicyRemote) DeepCopy() *GuestpolicyRemote

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

func (*GuestpolicyRemote) DeepCopyInto

func (in *GuestpolicyRemote) DeepCopyInto(out *GuestpolicyRemote)

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

type GuestpolicyRpmInstallation

type GuestpolicyRpmInstallation struct {
	/* The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`
}

func (*GuestpolicyRpmInstallation) DeepCopy

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

func (*GuestpolicyRpmInstallation) DeepCopyInto

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

type GuestpolicyScriptRun

type GuestpolicyScriptRun struct {
	/* Return codes that indicate that the software installed or updated successfully. Behaviour defaults to */
	// +optional
	AllowedExitCodes []int `json:"allowedExitCodes,omitempty"`

	/* The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with shebang lines. (https://en.wikipedia.org/wiki/Shebang_(Unix)). Possible values: INTERPRETER_UNSPECIFIED, NONE, SHELL, POWERSHELL */
	// +optional
	Interpreter *string `json:"interpreter,omitempty"`

	/* The shell script to be executed. */
	// +optional
	Script *string `json:"script,omitempty"`
}

func (*GuestpolicyScriptRun) DeepCopy

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

func (*GuestpolicyScriptRun) DeepCopyInto

func (in *GuestpolicyScriptRun) DeepCopyInto(out *GuestpolicyScriptRun)

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

type GuestpolicyUpdateSteps

type GuestpolicyUpdateSteps struct {
	/* Extracts an archive into the specified directory. */
	// +optional
	ArchiveExtraction *GuestpolicyArchiveExtraction `json:"archiveExtraction,omitempty"`

	/* Installs a deb file via dpkg. */
	// +optional
	DpkgInstallation *GuestpolicyDpkgInstallation `json:"dpkgInstallation,omitempty"`

	/* Copies a file onto the instance. */
	// +optional
	FileCopy *GuestpolicyFileCopy `json:"fileCopy,omitempty"`

	/* Executes an artifact or local file. */
	// +optional
	FileExec *GuestpolicyFileExec `json:"fileExec,omitempty"`

	/* Installs an MSI file. */
	// +optional
	MsiInstallation *GuestpolicyMsiInstallation `json:"msiInstallation,omitempty"`

	/* Installs an rpm file via the rpm utility. */
	// +optional
	RpmInstallation *GuestpolicyRpmInstallation `json:"rpmInstallation,omitempty"`

	/* Runs commands in a shell. */
	// +optional
	ScriptRun *GuestpolicyScriptRun `json:"scriptRun,omitempty"`
}

func (*GuestpolicyUpdateSteps) DeepCopy

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

func (*GuestpolicyUpdateSteps) DeepCopyInto

func (in *GuestpolicyUpdateSteps) DeepCopyInto(out *GuestpolicyUpdateSteps)

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

type GuestpolicyYum

type GuestpolicyYum struct {
	/* Required. The location of the repository directory. */
	BaseUrl string `json:"baseUrl"`

	/* Optional. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

	/* Optional. URIs of GPG keys. */
	// +optional
	GpgKeys []string `json:"gpgKeys,omitempty"`

	/* Required. A one word, unique name for this repository. This will be the `repo id` in the yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts. */
	Id string `json:"id"`
}

func (*GuestpolicyYum) DeepCopy

func (in *GuestpolicyYum) DeepCopy() *GuestpolicyYum

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

func (*GuestpolicyYum) DeepCopyInto

func (in *GuestpolicyYum) DeepCopyInto(out *GuestpolicyYum)

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

type GuestpolicyZypper

type GuestpolicyZypper struct {
	/* Required. The location of the repository directory. */
	BaseUrl string `json:"baseUrl"`

	/* Optional. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

	/* Optional. URIs of GPG keys. */
	// +optional
	GpgKeys []string `json:"gpgKeys,omitempty"`

	/* Required. A one word, unique name for this repository. This will be the `repo id` in the zypper config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts. */
	Id string `json:"id"`
}

func (*GuestpolicyZypper) DeepCopy

func (in *GuestpolicyZypper) DeepCopy() *GuestpolicyZypper

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

func (*GuestpolicyZypper) DeepCopyInto

func (in *GuestpolicyZypper) DeepCopyInto(out *GuestpolicyZypper)

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

type OSConfigGuestPolicy

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

	Spec   OSConfigGuestPolicySpec   `json:"spec,omitempty"`
	Status OSConfigGuestPolicyStatus `json:"status,omitempty"`
}

OSConfigGuestPolicy is the Schema for the osconfig API +k8s:openapi-gen=true

func (*OSConfigGuestPolicy) DeepCopy

func (in *OSConfigGuestPolicy) DeepCopy() *OSConfigGuestPolicy

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

func (*OSConfigGuestPolicy) DeepCopyInto

func (in *OSConfigGuestPolicy) DeepCopyInto(out *OSConfigGuestPolicy)

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

func (*OSConfigGuestPolicy) DeepCopyObject

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

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

type OSConfigGuestPolicyList

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

OSConfigGuestPolicyList contains a list of OSConfigGuestPolicy

func (*OSConfigGuestPolicyList) DeepCopy

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

func (*OSConfigGuestPolicyList) DeepCopyInto

func (in *OSConfigGuestPolicyList) DeepCopyInto(out *OSConfigGuestPolicyList)

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

func (*OSConfigGuestPolicyList) DeepCopyObject

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

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

type OSConfigGuestPolicySpec

type OSConfigGuestPolicySpec struct {
	/* Specifies the VMs that are assigned this policy. This allows you to target sets or groups of VMs by different parameters such as labels, names, OS, or zones. Empty assignments will target ALL VMs underneath this policy. Conflict Management Policies that exist higher up in the resource hierarchy (closer to the Org) will override those lower down if there is a conflict. At the same level in the resource hierarchy (ie. within a project), the service will prevent the creation of multiple policies that conflict with each other. If there are multiple policies that specify the same config (eg. package, software recipe, repository, etc.), the service will ensure that no VM could potentially receive instructions from both policies. To create multiple policies that specify different versions of a package or different configs for different Operating Systems, each policy must be mutually exclusive in their targeting according to labels, OS, or other criteria. Different configs are identified for conflicts in different ways. Packages are identified by their name and the package manager(s) they target. Package repositories are identified by their unique id where applicable. Some package managers don't have a unique identifier for repositories and where that's the case, no uniqueness is validated by the service. Note that if OS Inventory is disabled, a VM will not be assigned a policy that targets by OS because the service will see this VM's OS as unknown. */
	// +optional
	Assignment *GuestpolicyAssignment `json:"assignment,omitempty"`

	/* Description of the GuestPolicy. Length of the description is limited to 1024 characters. */
	// +optional
	Description *string `json:"description,omitempty"`

	/* The etag for this GuestPolicy. If this is provided on update, it must match the server's etag. */
	// +optional
	Etag *string `json:"etag,omitempty"`

	/* List of package repository configurations assigned to the VM instance. */
	// +optional
	PackageRepositories []GuestpolicyPackageRepositories `json:"packageRepositories,omitempty"`

	/* List of package configurations assigned to the VM instance. */
	// +optional
	Packages []GuestpolicyPackages `json:"packages,omitempty"`

	/* Optional. A list of Recipes to install on the VM. */
	// +optional
	Recipes []GuestpolicyRecipes `json:"recipes,omitempty"`

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

func (*OSConfigGuestPolicySpec) DeepCopy

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

func (*OSConfigGuestPolicySpec) DeepCopyInto

func (in *OSConfigGuestPolicySpec) DeepCopyInto(out *OSConfigGuestPolicySpec)

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

type OSConfigGuestPolicyStatus

type OSConfigGuestPolicyStatus struct {
	/* Conditions represent the latest available observations of the
	   OSConfigGuestPolicy's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* Output only. Time this GuestPolicy was created. */
	CreateTime string `json:"createTime,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. */
	ObservedGeneration int `json:"observedGeneration,omitempty"`
	/* Output only. Last time this GuestPolicy was updated. */
	UpdateTime string `json:"updateTime,omitempty"`
}

func (*OSConfigGuestPolicyStatus) DeepCopy

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

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