v1beta1

package
v1.118.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 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/clients/generated/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(),
	}

	OSConfigOSPolicyAssignmentGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(OSConfigOSPolicyAssignment{}).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"`

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

	/* URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy. */
	// +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 {
	/* Required. 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"`

	/* Required. 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 are subject to validations based on the artifact type: Remote: A checksum must be specified, and only protocols with transport-layer security are permitted. GCS: An object generation number must be specified. */
	// +optional
	AllowInsecure *bool `json:"allowInsecure,omitempty"`

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

	/* Required. 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 VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances 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"`

	/* Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included. */
	// +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 the management of 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 {
	/* Required. 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 {
	/* Required. The id of the relevant artifact in the recipe. */
	// +optional
	ArtifactId *string `json:"artifactId,omitempty"`

	/* Required. 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 is not overwritten and the step is 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 [0]. A list of possible return values that the program can return to indicate a success. */
	// +optional
	AllowedExitCodes []int64 `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"`

	/* Must be provided if allow_insecure is false. Generation number of the Google Cloud Storage object. `https://storage.googleapis.com/my-bucket/foo/bar#1234567` this value would be `1234567`. */
	// +optional
	Generation *int64 `json:"generation,omitempty"`

	/* Name of the Google Cloud Storage object. As specified [here] (https://cloud.google.com/storage/docs/naming#objectnames) Given an example URL: `https://storage.googleapis.com/my-bucket/foo/bar#1234567` this value would be `foo/bar`. */
	// +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 {
	/* Google Compute Engine 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 [0] */
	// +optional
	AllowedExitCodes []int64 `json:"allowedExitCodes,omitempty"`

	/* Required. 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"] (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 VM instances with OS Inventory enabled and having the following OS architecture. */
	// +optional
	OsArchitecture *string `json:"osArchitecture,omitempty"`

	/* Targets VM instances with OS Inventory enabled and having the following OS short name, for example "debian" or "windows". */
	// +optional
	OsShortName *string `json:"osShortName,omitempty"`

	/* Targets VM instances with OS Inventory enabled and having the following following OS version. */
	// +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 {
	/* 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"`

	/* Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify `ANY`, the agent attempts to install and remove this package using the default package manager. This is useful 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"`

	/* Required. The name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package 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 is installed on the instance but won't be updated to new versions. UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is 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 stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back. */
	// +optional
	InstallSteps []GuestpolicyInstallSteps `json:"installSteps,omitempty"`

	/* Required. Unique identifier for the recipe. Only one recipe with a given name is installed on an instance. Names are also used to identify resources which helps to determine whether guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting assignments. */
	// +optional
	Name *string `json:"name,omitempty"`

	/* Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not 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 {
	/* Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, 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 fails 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 {
	/* Required. 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 [0] */
	// +optional
	AllowedExitCodes []int64 `json:"allowedExitCodes,omitempty"`

	/* The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which 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"`

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

	/* The display name of the repository. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

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

	/* Required. A one word, unique name for this repository. This is 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 guest policy 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"`

	/* The display name of the repository. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

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

	/* Required. A one word, unique name for this repository. This is 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 guest policy 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"`

	/* 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. */
	// +optional
	CreateTime *string `json:"createTime,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"`

	/* 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. Last time this GuestPolicy was updated. */
	// +optional
	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.

type OSConfigOSPolicyAssignment

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

	Spec   OSConfigOSPolicyAssignmentSpec   `json:"spec,omitempty"`
	Status OSConfigOSPolicyAssignmentStatus `json:"status,omitempty"`
}

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

func (*OSConfigOSPolicyAssignment) DeepCopy

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

func (*OSConfigOSPolicyAssignment) DeepCopyInto

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

func (*OSConfigOSPolicyAssignment) DeepCopyObject

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

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

type OSConfigOSPolicyAssignmentList

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

OSConfigOSPolicyAssignmentList contains a list of OSConfigOSPolicyAssignment

func (*OSConfigOSPolicyAssignmentList) DeepCopy

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

func (*OSConfigOSPolicyAssignmentList) DeepCopyInto

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

func (*OSConfigOSPolicyAssignmentList) DeepCopyObject

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

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

type OSConfigOSPolicyAssignmentSpec

type OSConfigOSPolicyAssignmentSpec struct {
	/* OS policy assignment description. Length of the description is limited to 1024 characters. */
	// +optional
	Description *string `json:"description,omitempty"`

	/* Required. Filter to select VMs. */
	InstanceFilter OspolicyassignmentInstanceFilter `json:"instanceFilter"`

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

	/* Required. List of OS policies to be applied to the VMs. */
	OsPolicies []OspolicyassignmentOsPolicies `json:"osPolicies"`

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

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

	/* Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted. */
	Rollout OspolicyassignmentRollout `json:"rollout"`

	/* Set to true to skip awaiting rollout during resource creation and update. */
	// +optional
	SkipAwaitRollout *bool `json:"skipAwaitRollout,omitempty"`
}

func (*OSConfigOSPolicyAssignmentSpec) DeepCopy

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

func (*OSConfigOSPolicyAssignmentSpec) DeepCopyInto

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

type OSConfigOSPolicyAssignmentStatus

type OSConfigOSPolicyAssignmentStatus struct {
	/* Conditions represent the latest available observations of the
	   OSConfigOSPolicyAssignment's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of `true` for this field. */
	// +optional
	Baseline *bool `json:"baseline,omitempty"`

	/* Output only. Indicates that this revision deletes the OS policy assignment. */
	// +optional
	Deleted *bool `json:"deleted,omitempty"`

	/* The etag for this OS policy assignment. If this is provided on update, it must match the server's etag. */
	// +optional
	Etag *string `json:"etag,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. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING */
	// +optional
	Reconciling *bool `json:"reconciling,omitempty"`

	/* Output only. The timestamp that the revision was created. */
	// +optional
	RevisionCreateTime *string `json:"revisionCreateTime,omitempty"`

	/* Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment */
	// +optional
	RevisionId *string `json:"revisionId,omitempty"`

	/* Output only. OS policy assignment rollout state Possible values: ROLLOUT_STATE_UNSPECIFIED, IN_PROGRESS, CANCELLING, CANCELLED, SUCCEEDED */
	// +optional
	RolloutState *string `json:"rolloutState,omitempty"`

	/* Output only. Server generated unique id for the OS policy assignment resource. */
	// +optional
	Uid *string `json:"uid,omitempty"`
}

func (*OSConfigOSPolicyAssignmentStatus) DeepCopy

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

func (*OSConfigOSPolicyAssignmentStatus) DeepCopyInto

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

type OspolicyassignmentApt

type OspolicyassignmentApt struct {
	/* Required. Type of archive files in this repository. Possible values: ARCHIVE_TYPE_UNSPECIFIED, DEB, DEB_SRC */
	ArchiveType string `json:"archiveType"`

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

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

	/* URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`. */
	// +optional
	GpgKey *string `json:"gpgKey,omitempty"`

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

func (*OspolicyassignmentApt) DeepCopy

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

func (*OspolicyassignmentApt) DeepCopyInto

func (in *OspolicyassignmentApt) DeepCopyInto(out *OspolicyassignmentApt)

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

type OspolicyassignmentDeb

type OspolicyassignmentDeb struct {
	/* Whether dependencies should also be installed. - install when false: `dpkg -i package` - install when true: `apt-get update && apt-get -y install package.deb` */
	// +optional
	PullDeps *bool `json:"pullDeps,omitempty"`

	/* Required. A deb package. */
	Source OspolicyassignmentSource `json:"source"`
}

func (*OspolicyassignmentDeb) DeepCopy

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

func (*OspolicyassignmentDeb) DeepCopyInto

func (in *OspolicyassignmentDeb) DeepCopyInto(out *OspolicyassignmentDeb)

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

type OspolicyassignmentDisruptionBudget

type OspolicyassignmentDisruptionBudget struct {
	/* Specifies a fixed value. */
	// +optional
	Fixed *int64 `json:"fixed,omitempty"`

	/* Specifies the relative value defined as a percentage, which will be multiplied by a reference value. */
	// +optional
	Percent *int64 `json:"percent,omitempty"`
}

func (*OspolicyassignmentDisruptionBudget) DeepCopy

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

func (*OspolicyassignmentDisruptionBudget) DeepCopyInto

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

type OspolicyassignmentEnforce

type OspolicyassignmentEnforce struct {
	/* Optional arguments to pass to the source during execution. */
	// +optional
	Args []string `json:"args,omitempty"`

	/* A remote or local file. */
	// +optional
	File *OspolicyassignmentFile `json:"file,omitempty"`

	/* Required. The script interpreter to use. Possible values: INTERPRETER_UNSPECIFIED, NONE, SHELL, POWERSHELL */
	Interpreter string `json:"interpreter"`

	/* Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes. */
	// +optional
	OutputFilePath *string `json:"outputFilePath,omitempty"`

	/* An inline script. The size of the script is limited to 1024 characters. */
	// +optional
	Script *string `json:"script,omitempty"`
}

func (*OspolicyassignmentEnforce) DeepCopy

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

func (*OspolicyassignmentEnforce) DeepCopyInto

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

type OspolicyassignmentExclusionLabels

type OspolicyassignmentExclusionLabels struct {
	/* Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected. */
	// +optional
	Labels map[string]string `json:"labels,omitempty"`
}

func (*OspolicyassignmentExclusionLabels) DeepCopy

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

func (*OspolicyassignmentExclusionLabels) DeepCopyInto

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

type OspolicyassignmentExec

type OspolicyassignmentExec struct {
	/* What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce. */
	// +optional
	Enforce *OspolicyassignmentEnforce `json:"enforce,omitempty"`

	/* Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate. */
	Validate OspolicyassignmentValidate `json:"validate"`
}

func (*OspolicyassignmentExec) DeepCopy

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

func (*OspolicyassignmentExec) DeepCopyInto

func (in *OspolicyassignmentExec) DeepCopyInto(out *OspolicyassignmentExec)

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

type OspolicyassignmentFile

type OspolicyassignmentFile struct {
	/* Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. */
	// +optional
	AllowInsecure *bool `json:"allowInsecure,omitempty"`

	/* A Cloud Storage object. */
	// +optional
	Gcs *OspolicyassignmentGcs `json:"gcs,omitempty"`

	/* A local path within the VM to use. */
	// +optional
	LocalPath *string `json:"localPath,omitempty"`

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

func (*OspolicyassignmentFile) DeepCopy

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

func (*OspolicyassignmentFile) DeepCopyInto

func (in *OspolicyassignmentFile) DeepCopyInto(out *OspolicyassignmentFile)

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

type OspolicyassignmentGcs

type OspolicyassignmentGcs struct {
	/* Required. Bucket of the Cloud Storage object. */
	Bucket string `json:"bucket"`

	/* Generation number of the Cloud Storage object. */
	// +optional
	Generation *int64 `json:"generation,omitempty"`

	/* Required. Name of the Cloud Storage object. */
	Object string `json:"object"`
}

func (*OspolicyassignmentGcs) DeepCopy

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

func (*OspolicyassignmentGcs) DeepCopyInto

func (in *OspolicyassignmentGcs) DeepCopyInto(out *OspolicyassignmentGcs)

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

type OspolicyassignmentGoo

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

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

func (*OspolicyassignmentGoo) DeepCopy

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

func (*OspolicyassignmentGoo) DeepCopyInto

func (in *OspolicyassignmentGoo) DeepCopyInto(out *OspolicyassignmentGoo)

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

type OspolicyassignmentGooget

type OspolicyassignmentGooget struct {
	/* Required. Package name. */
	Name string `json:"name"`
}

func (*OspolicyassignmentGooget) DeepCopy

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

func (*OspolicyassignmentGooget) DeepCopyInto

func (in *OspolicyassignmentGooget) DeepCopyInto(out *OspolicyassignmentGooget)

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

type OspolicyassignmentInclusionLabels

type OspolicyassignmentInclusionLabels struct {
	/* Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected. */
	// +optional
	Labels map[string]string `json:"labels,omitempty"`
}

func (*OspolicyassignmentInclusionLabels) DeepCopy

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

func (*OspolicyassignmentInclusionLabels) DeepCopyInto

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

type OspolicyassignmentInstanceFilter

type OspolicyassignmentInstanceFilter struct {
	/* Target all VMs in the project. If true, no other criteria is permitted. */
	// +optional
	All *bool `json:"all,omitempty"`

	/* List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. */
	// +optional
	ExclusionLabels []OspolicyassignmentExclusionLabels `json:"exclusionLabels,omitempty"`

	/* List of label sets used for VM inclusion. If the list has more than one `LabelSet`, the VM is included if any of the label sets are applicable for the VM. */
	// +optional
	InclusionLabels []OspolicyassignmentInclusionLabels `json:"inclusionLabels,omitempty"`

	/* List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories. */
	// +optional
	Inventories []OspolicyassignmentInventories `json:"inventories,omitempty"`
}

func (*OspolicyassignmentInstanceFilter) DeepCopy

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

func (*OspolicyassignmentInstanceFilter) DeepCopyInto

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

type OspolicyassignmentInventories

type OspolicyassignmentInventories struct {
	/* Required. The OS short name */
	OsShortName string `json:"osShortName"`

	/* The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of `7`, specify the following value for this field `7.*` An empty string matches all OS versions. */
	// +optional
	OsVersion *string `json:"osVersion,omitempty"`
}

func (*OspolicyassignmentInventories) DeepCopy

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

func (*OspolicyassignmentInventories) DeepCopyInto

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

type OspolicyassignmentInventoryFilters

type OspolicyassignmentInventoryFilters struct {
	/* Required. The OS short name */
	OsShortName string `json:"osShortName"`

	/* The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of `7`, specify the following value for this field `7.*` An empty string matches all OS versions. */
	// +optional
	OsVersion *string `json:"osVersion,omitempty"`
}

func (*OspolicyassignmentInventoryFilters) DeepCopy

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

func (*OspolicyassignmentInventoryFilters) DeepCopyInto

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

type OspolicyassignmentMsi

type OspolicyassignmentMsi struct {
	/* Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of `ACTION=INSTALL REBOOT=ReallySuppress`. */
	// +optional
	Properties []string `json:"properties,omitempty"`

	/* Required. The MSI package. */
	Source OspolicyassignmentSource `json:"source"`
}

func (*OspolicyassignmentMsi) DeepCopy

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

func (*OspolicyassignmentMsi) DeepCopyInto

func (in *OspolicyassignmentMsi) DeepCopyInto(out *OspolicyassignmentMsi)

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

type OspolicyassignmentOsPolicies

type OspolicyassignmentOsPolicies struct {
	/* This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to `true` if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce. */
	// +optional
	AllowNoResourceGroupMatch *bool `json:"allowNoResourceGroupMatch,omitempty"`

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

	/* Required. The id of the OS policy with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the assignment. */
	Id string `json:"id"`

	/* Required. Policy mode Possible values: MODE_UNSPECIFIED, VALIDATION, ENFORCEMENT */
	Mode string `json:"mode"`

	/* Required. List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag `allow_no_resource_group_match` */
	ResourceGroups []OspolicyassignmentResourceGroups `json:"resourceGroups"`
}

func (*OspolicyassignmentOsPolicies) DeepCopy

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

func (*OspolicyassignmentOsPolicies) DeepCopyInto

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

type OspolicyassignmentPkg

type OspolicyassignmentPkg struct {
	/* A package managed by Apt. */
	// +optional
	Apt *OspolicyassignmentApt `json:"apt,omitempty"`

	/* A deb package file. */
	// +optional
	Deb *OspolicyassignmentDeb `json:"deb,omitempty"`

	/* Required. The desired state the agent should maintain for this package. Possible values: DESIRED_STATE_UNSPECIFIED, INSTALLED, REMOVED */
	DesiredState string `json:"desiredState"`

	/* A package managed by GooGet. */
	// +optional
	Googet *OspolicyassignmentGooget `json:"googet,omitempty"`

	/* An MSI package. */
	// +optional
	Msi *OspolicyassignmentMsi `json:"msi,omitempty"`

	/* An rpm package file. */
	// +optional
	Rpm *OspolicyassignmentRpm `json:"rpm,omitempty"`

	/* A package managed by YUM. */
	// +optional
	Yum *OspolicyassignmentYum `json:"yum,omitempty"`

	/* A package managed by Zypper. */
	// +optional
	Zypper *OspolicyassignmentZypper `json:"zypper,omitempty"`
}

func (*OspolicyassignmentPkg) DeepCopy

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

func (*OspolicyassignmentPkg) DeepCopyInto

func (in *OspolicyassignmentPkg) DeepCopyInto(out *OspolicyassignmentPkg)

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

type OspolicyassignmentRemote

type OspolicyassignmentRemote struct {
	/* SHA256 checksum of the remote file. */
	// +optional
	Sha256Checksum *string `json:"sha256Checksum,omitempty"`

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

func (*OspolicyassignmentRemote) DeepCopy

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

func (*OspolicyassignmentRemote) DeepCopyInto

func (in *OspolicyassignmentRemote) DeepCopyInto(out *OspolicyassignmentRemote)

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

type OspolicyassignmentRepository

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

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

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

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

func (*OspolicyassignmentRepository) DeepCopy

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

func (*OspolicyassignmentRepository) DeepCopyInto

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

type OspolicyassignmentResourceGroups

type OspolicyassignmentResourceGroups struct {
	/* List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally. */
	// +optional
	InventoryFilters []OspolicyassignmentInventoryFilters `json:"inventoryFilters,omitempty"`

	/* Required. List of resources configured for this resource group. The resources are executed in the exact order specified here. */
	Resources []OspolicyassignmentResources `json:"resources"`
}

func (*OspolicyassignmentResourceGroups) DeepCopy

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

func (*OspolicyassignmentResourceGroups) DeepCopyInto

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

type OspolicyassignmentResources

type OspolicyassignmentResources struct {
	/* Exec resource */
	// +optional
	Exec *OspolicyassignmentExec `json:"exec,omitempty"`

	/* File resource */
	// +optional
	File *OspolicyassignmentFile `json:"file,omitempty"`

	/* Required. The id of the resource with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the OS policy. */
	Id string `json:"id"`

	/* Package resource */
	// +optional
	Pkg *OspolicyassignmentPkg `json:"pkg,omitempty"`

	/* Package repository resource */
	// +optional
	Repository *OspolicyassignmentRepository `json:"repository,omitempty"`
}

func (*OspolicyassignmentResources) DeepCopy

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

func (*OspolicyassignmentResources) DeepCopyInto

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

type OspolicyassignmentRollout

type OspolicyassignmentRollout struct {
	/* Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment. */
	DisruptionBudget OspolicyassignmentDisruptionBudget `json:"disruptionBudget"`

	/* Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the `disruption_budget` at least until this duration of time has passed after configuration changes are applied. */
	MinWaitDuration string `json:"minWaitDuration"`
}

func (*OspolicyassignmentRollout) DeepCopy

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

func (*OspolicyassignmentRollout) DeepCopyInto

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

type OspolicyassignmentRpm

type OspolicyassignmentRpm struct {
	/* Whether dependencies should also be installed. - install when false: `rpm --upgrade --replacepkgs package.rpm` - install when true: `yum -y install package.rpm` or `zypper -y install package.rpm` */
	// +optional
	PullDeps *bool `json:"pullDeps,omitempty"`

	/* Required. An rpm package. */
	Source OspolicyassignmentSource `json:"source"`
}

func (*OspolicyassignmentRpm) DeepCopy

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

func (*OspolicyassignmentRpm) DeepCopyInto

func (in *OspolicyassignmentRpm) DeepCopyInto(out *OspolicyassignmentRpm)

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

type OspolicyassignmentSource

type OspolicyassignmentSource struct {
	/* Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. */
	// +optional
	AllowInsecure *bool `json:"allowInsecure,omitempty"`

	/* A Cloud Storage object. */
	// +optional
	Gcs *OspolicyassignmentGcs `json:"gcs,omitempty"`

	/* A local path within the VM to use. */
	// +optional
	LocalPath *string `json:"localPath,omitempty"`

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

func (*OspolicyassignmentSource) DeepCopy

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

func (*OspolicyassignmentSource) DeepCopyInto

func (in *OspolicyassignmentSource) DeepCopyInto(out *OspolicyassignmentSource)

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

type OspolicyassignmentValidate

type OspolicyassignmentValidate struct {
	/* Optional arguments to pass to the source during execution. */
	// +optional
	Args []string `json:"args,omitempty"`

	/* A remote or local file. */
	// +optional
	File *OspolicyassignmentFile `json:"file,omitempty"`

	/* Required. The script interpreter to use. Possible values: INTERPRETER_UNSPECIFIED, NONE, SHELL, POWERSHELL */
	Interpreter string `json:"interpreter"`

	/* Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes. */
	// +optional
	OutputFilePath *string `json:"outputFilePath,omitempty"`

	/* An inline script. The size of the script is limited to 1024 characters. */
	// +optional
	Script *string `json:"script,omitempty"`
}

func (*OspolicyassignmentValidate) DeepCopy

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

func (*OspolicyassignmentValidate) DeepCopyInto

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

type OspolicyassignmentYum

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

	/* The display name of the repository. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

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

	/* Required. A one word, unique name for this repository. This is 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 resource conflicts. */
	Id string `json:"id"`
}

func (*OspolicyassignmentYum) DeepCopy

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

func (*OspolicyassignmentYum) DeepCopyInto

func (in *OspolicyassignmentYum) DeepCopyInto(out *OspolicyassignmentYum)

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

type OspolicyassignmentZypper

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

	/* The display name of the repository. */
	// +optional
	DisplayName *string `json:"displayName,omitempty"`

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

	/* Required. A one word, unique name for this repository. This is 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 (*OspolicyassignmentZypper) DeepCopy

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

func (*OspolicyassignmentZypper) DeepCopyInto

func (in *OspolicyassignmentZypper) DeepCopyInto(out *OspolicyassignmentZypper)

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