google_os_config_guest_policies

package
v0.0.0-...-4deecce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Etag: string, optional
	Etag terra.StringValue `hcl:"etag,attr"`
	// GuestPolicyId: string, required
	GuestPolicyId terra.StringValue `hcl:"guest_policy_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Assignment: required
	Assignment *Assignment `hcl:"assignment,block" validate:"required"`
	// PackageRepositories: min=0
	PackageRepositories []PackageRepositories `hcl:"package_repositories,block" validate:"min=0"`
	// Packages: min=0
	Packages []Packages `hcl:"packages,block" validate:"min=0"`
	// Recipes: min=0
	Recipes []Recipes `hcl:"recipes,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_os_config_guest_policies.

type Assignment

type Assignment struct {
	// InstanceNamePrefixes: list of string, optional
	InstanceNamePrefixes terra.ListValue[terra.StringValue] `hcl:"instance_name_prefixes,attr"`
	// Instances: list of string, optional
	Instances terra.ListValue[terra.StringValue] `hcl:"instances,attr"`
	// Zones: list of string, optional
	Zones terra.ListValue[terra.StringValue] `hcl:"zones,attr"`
	// AssignmentGroupLabels: min=0
	GroupLabels []AssignmentGroupLabels `hcl:"group_labels,block" validate:"min=0"`
	// AssignmentOsTypes: min=0
	OsTypes []AssignmentOsTypes `hcl:"os_types,block" validate:"min=0"`
}

type AssignmentAttributes

type AssignmentAttributes struct {
	// contains filtered or unexported fields
}

func (AssignmentAttributes) GroupLabels

func (AssignmentAttributes) InstanceNamePrefixes

func (a AssignmentAttributes) InstanceNamePrefixes() terra.ListValue[terra.StringValue]

func (AssignmentAttributes) Instances

func (AssignmentAttributes) InternalRef

func (a AssignmentAttributes) InternalRef() (terra.Reference, error)

func (AssignmentAttributes) InternalTokens

func (a AssignmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AssignmentAttributes) InternalWithRef

func (AssignmentAttributes) OsTypes

func (AssignmentAttributes) Zones

type AssignmentGroupLabels

type AssignmentGroupLabels struct {
	// Labels: map of string, required
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr" validate:"required"`
}

type AssignmentGroupLabelsAttributes

type AssignmentGroupLabelsAttributes struct {
	// contains filtered or unexported fields
}

func (AssignmentGroupLabelsAttributes) InternalRef

func (AssignmentGroupLabelsAttributes) InternalTokens

func (gl AssignmentGroupLabelsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AssignmentGroupLabelsAttributes) InternalWithRef

func (AssignmentGroupLabelsAttributes) Labels

type AssignmentGroupLabelsState

type AssignmentGroupLabelsState struct {
	Labels map[string]string `json:"labels"`
}

type AssignmentOsTypes

type AssignmentOsTypes struct {
	// OsArchitecture: string, optional
	OsArchitecture terra.StringValue `hcl:"os_architecture,attr"`
	// OsShortName: string, optional
	OsShortName terra.StringValue `hcl:"os_short_name,attr"`
	// OsVersion: string, optional
	OsVersion terra.StringValue `hcl:"os_version,attr"`
}

type AssignmentOsTypesAttributes

type AssignmentOsTypesAttributes struct {
	// contains filtered or unexported fields
}

func (AssignmentOsTypesAttributes) InternalRef

func (ot AssignmentOsTypesAttributes) InternalRef() (terra.Reference, error)

func (AssignmentOsTypesAttributes) InternalTokens

func (ot AssignmentOsTypesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AssignmentOsTypesAttributes) InternalWithRef

func (AssignmentOsTypesAttributes) OsArchitecture

func (ot AssignmentOsTypesAttributes) OsArchitecture() terra.StringValue

func (AssignmentOsTypesAttributes) OsShortName

func (AssignmentOsTypesAttributes) OsVersion

type AssignmentOsTypesState

type AssignmentOsTypesState struct {
	OsArchitecture string `json:"os_architecture"`
	OsShortName    string `json:"os_short_name"`
	OsVersion      string `json:"os_version"`
}

type AssignmentState

type AssignmentState struct {
	InstanceNamePrefixes []string                     `json:"instance_name_prefixes"`
	Instances            []string                     `json:"instances"`
	Zones                []string                     `json:"zones"`
	GroupLabels          []AssignmentGroupLabelsState `json:"group_labels"`
	OsTypes              []AssignmentOsTypesState     `json:"os_types"`
}

type PackageRepositories

type PackageRepositories struct {
	// PackageRepositoriesApt: optional
	Apt *PackageRepositoriesApt `hcl:"apt,block"`
	// PackageRepositoriesGoo: optional
	Goo *PackageRepositoriesGoo `hcl:"goo,block"`
	// PackageRepositoriesYum: optional
	Yum *PackageRepositoriesYum `hcl:"yum,block"`
	// PackageRepositoriesZypper: optional
	Zypper *PackageRepositoriesZypper `hcl:"zypper,block"`
}

type PackageRepositoriesApt

type PackageRepositoriesApt struct {
	// ArchiveType: string, optional
	ArchiveType terra.StringValue `hcl:"archive_type,attr"`
	// Components: list of string, required
	Components terra.ListValue[terra.StringValue] `hcl:"components,attr" validate:"required"`
	// Distribution: string, required
	Distribution terra.StringValue `hcl:"distribution,attr" validate:"required"`
	// GpgKey: string, optional
	GpgKey terra.StringValue `hcl:"gpg_key,attr"`
	// Uri: string, required
	Uri terra.StringValue `hcl:"uri,attr" validate:"required"`
}

type PackageRepositoriesAptAttributes

type PackageRepositoriesAptAttributes struct {
	// contains filtered or unexported fields
}

func (PackageRepositoriesAptAttributes) ArchiveType

func (PackageRepositoriesAptAttributes) Components

func (PackageRepositoriesAptAttributes) Distribution

func (PackageRepositoriesAptAttributes) GpgKey

func (PackageRepositoriesAptAttributes) InternalRef

func (PackageRepositoriesAptAttributes) InternalTokens

func (a PackageRepositoriesAptAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PackageRepositoriesAptAttributes) InternalWithRef

func (PackageRepositoriesAptAttributes) Uri

type PackageRepositoriesAptState

type PackageRepositoriesAptState struct {
	ArchiveType  string   `json:"archive_type"`
	Components   []string `json:"components"`
	Distribution string   `json:"distribution"`
	GpgKey       string   `json:"gpg_key"`
	Uri          string   `json:"uri"`
}

type PackageRepositoriesAttributes

type PackageRepositoriesAttributes struct {
	// contains filtered or unexported fields
}

func (PackageRepositoriesAttributes) Apt

func (PackageRepositoriesAttributes) Goo

func (PackageRepositoriesAttributes) InternalRef

func (pr PackageRepositoriesAttributes) InternalRef() (terra.Reference, error)

func (PackageRepositoriesAttributes) InternalTokens

func (pr PackageRepositoriesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PackageRepositoriesAttributes) InternalWithRef

func (PackageRepositoriesAttributes) Yum

func (PackageRepositoriesAttributes) Zypper

type PackageRepositoriesGoo

type PackageRepositoriesGoo struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type PackageRepositoriesGooAttributes

type PackageRepositoriesGooAttributes struct {
	// contains filtered or unexported fields
}

func (PackageRepositoriesGooAttributes) InternalRef

func (PackageRepositoriesGooAttributes) InternalTokens

func (g PackageRepositoriesGooAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PackageRepositoriesGooAttributes) InternalWithRef

func (PackageRepositoriesGooAttributes) Name

func (PackageRepositoriesGooAttributes) Url

type PackageRepositoriesGooState

type PackageRepositoriesGooState struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

type PackageRepositoriesState

type PackageRepositoriesState struct {
	Apt    []PackageRepositoriesAptState    `json:"apt"`
	Goo    []PackageRepositoriesGooState    `json:"goo"`
	Yum    []PackageRepositoriesYumState    `json:"yum"`
	Zypper []PackageRepositoriesZypperState `json:"zypper"`
}

type PackageRepositoriesYum

type PackageRepositoriesYum struct {
	// BaseUrl: string, required
	BaseUrl terra.StringValue `hcl:"base_url,attr" validate:"required"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// GpgKeys: list of string, optional
	GpgKeys terra.ListValue[terra.StringValue] `hcl:"gpg_keys,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
}

type PackageRepositoriesYumAttributes

type PackageRepositoriesYumAttributes struct {
	// contains filtered or unexported fields
}

func (PackageRepositoriesYumAttributes) BaseUrl

func (PackageRepositoriesYumAttributes) DisplayName

func (PackageRepositoriesYumAttributes) GpgKeys

func (PackageRepositoriesYumAttributes) Id

func (PackageRepositoriesYumAttributes) InternalRef

func (PackageRepositoriesYumAttributes) InternalTokens

func (y PackageRepositoriesYumAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PackageRepositoriesYumAttributes) InternalWithRef

type PackageRepositoriesYumState

type PackageRepositoriesYumState struct {
	BaseUrl     string   `json:"base_url"`
	DisplayName string   `json:"display_name"`
	GpgKeys     []string `json:"gpg_keys"`
	Id          string   `json:"id"`
}

type PackageRepositoriesZypper

type PackageRepositoriesZypper struct {
	// BaseUrl: string, required
	BaseUrl terra.StringValue `hcl:"base_url,attr" validate:"required"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// GpgKeys: list of string, optional
	GpgKeys terra.ListValue[terra.StringValue] `hcl:"gpg_keys,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
}

type PackageRepositoriesZypperAttributes

type PackageRepositoriesZypperAttributes struct {
	// contains filtered or unexported fields
}

func (PackageRepositoriesZypperAttributes) BaseUrl

func (PackageRepositoriesZypperAttributes) DisplayName

func (PackageRepositoriesZypperAttributes) GpgKeys

func (PackageRepositoriesZypperAttributes) Id

func (PackageRepositoriesZypperAttributes) InternalRef

func (PackageRepositoriesZypperAttributes) InternalTokens

func (PackageRepositoriesZypperAttributes) InternalWithRef

type PackageRepositoriesZypperState

type PackageRepositoriesZypperState struct {
	BaseUrl     string   `json:"base_url"`
	DisplayName string   `json:"display_name"`
	GpgKeys     []string `json:"gpg_keys"`
	Id          string   `json:"id"`
}

type Packages

type Packages struct {
	// DesiredState: string, optional
	DesiredState terra.StringValue `hcl:"desired_state,attr"`
	// Manager: string, optional
	Manager terra.StringValue `hcl:"manager,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type PackagesAttributes

type PackagesAttributes struct {
	// contains filtered or unexported fields
}

func (PackagesAttributes) DesiredState

func (p PackagesAttributes) DesiredState() terra.StringValue

func (PackagesAttributes) InternalRef

func (p PackagesAttributes) InternalRef() (terra.Reference, error)

func (PackagesAttributes) InternalTokens

func (p PackagesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PackagesAttributes) InternalWithRef

func (p PackagesAttributes) InternalWithRef(ref terra.Reference) PackagesAttributes

func (PackagesAttributes) Manager

func (p PackagesAttributes) Manager() terra.StringValue

func (PackagesAttributes) Name

type PackagesState

type PackagesState struct {
	DesiredState string `json:"desired_state"`
	Manager      string `json:"manager"`
	Name         string `json:"name"`
}

type Recipes

type Recipes struct {
	// DesiredState: string, optional
	DesiredState terra.StringValue `hcl:"desired_state,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// RecipesArtifacts: min=0
	Artifacts []RecipesArtifacts `hcl:"artifacts,block" validate:"min=0"`
	// RecipesInstallSteps: min=0
	InstallSteps []RecipesInstallSteps `hcl:"install_steps,block" validate:"min=0"`
	// RecipesUpdateSteps: min=0
	UpdateSteps []RecipesUpdateSteps `hcl:"update_steps,block" validate:"min=0"`
}

type RecipesArtifacts

type RecipesArtifacts struct {
	// AllowInsecure: bool, optional
	AllowInsecure terra.BoolValue `hcl:"allow_insecure,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// RecipesArtifactsGcs: optional
	Gcs *RecipesArtifactsGcs `hcl:"gcs,block"`
	// RecipesArtifactsRemote: optional
	Remote *RecipesArtifactsRemote `hcl:"remote,block"`
}

type RecipesArtifactsAttributes

type RecipesArtifactsAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesArtifactsAttributes) AllowInsecure

func (a RecipesArtifactsAttributes) AllowInsecure() terra.BoolValue

func (RecipesArtifactsAttributes) Gcs

func (RecipesArtifactsAttributes) Id

func (RecipesArtifactsAttributes) InternalRef

func (a RecipesArtifactsAttributes) InternalRef() (terra.Reference, error)

func (RecipesArtifactsAttributes) InternalTokens

func (a RecipesArtifactsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesArtifactsAttributes) InternalWithRef

func (RecipesArtifactsAttributes) Remote

type RecipesArtifactsGcs

type RecipesArtifactsGcs struct {
	// Bucket: string, optional
	Bucket terra.StringValue `hcl:"bucket,attr"`
	// Generation: number, optional
	Generation terra.NumberValue `hcl:"generation,attr"`
	// Object: string, optional
	Object terra.StringValue `hcl:"object,attr"`
}

type RecipesArtifactsGcsAttributes

type RecipesArtifactsGcsAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesArtifactsGcsAttributes) Bucket

func (RecipesArtifactsGcsAttributes) Generation

func (RecipesArtifactsGcsAttributes) InternalRef

func (RecipesArtifactsGcsAttributes) InternalTokens

func (g RecipesArtifactsGcsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesArtifactsGcsAttributes) InternalWithRef

func (RecipesArtifactsGcsAttributes) Object

type RecipesArtifactsGcsState

type RecipesArtifactsGcsState struct {
	Bucket     string  `json:"bucket"`
	Generation float64 `json:"generation"`
	Object     string  `json:"object"`
}

type RecipesArtifactsRemote

type RecipesArtifactsRemote struct {
	// CheckSum: string, optional
	CheckSum terra.StringValue `hcl:"check_sum,attr"`
	// Uri: string, optional
	Uri terra.StringValue `hcl:"uri,attr"`
}

type RecipesArtifactsRemoteAttributes

type RecipesArtifactsRemoteAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesArtifactsRemoteAttributes) CheckSum

func (RecipesArtifactsRemoteAttributes) InternalRef

func (RecipesArtifactsRemoteAttributes) InternalTokens

func (r RecipesArtifactsRemoteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesArtifactsRemoteAttributes) InternalWithRef

func (RecipesArtifactsRemoteAttributes) Uri

type RecipesArtifactsRemoteState

type RecipesArtifactsRemoteState struct {
	CheckSum string `json:"check_sum"`
	Uri      string `json:"uri"`
}

type RecipesArtifactsState

type RecipesArtifactsState struct {
	AllowInsecure bool                          `json:"allow_insecure"`
	Id            string                        `json:"id"`
	Gcs           []RecipesArtifactsGcsState    `json:"gcs"`
	Remote        []RecipesArtifactsRemoteState `json:"remote"`
}

type RecipesAttributes

type RecipesAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesAttributes) Artifacts

func (RecipesAttributes) DesiredState

func (r RecipesAttributes) DesiredState() terra.StringValue

func (RecipesAttributes) InstallSteps

func (RecipesAttributes) InternalRef

func (r RecipesAttributes) InternalRef() (terra.Reference, error)

func (RecipesAttributes) InternalTokens

func (r RecipesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesAttributes) InternalWithRef

func (r RecipesAttributes) InternalWithRef(ref terra.Reference) RecipesAttributes

func (RecipesAttributes) Name

func (RecipesAttributes) UpdateSteps

func (RecipesAttributes) Version

func (r RecipesAttributes) Version() terra.StringValue

type RecipesInstallSteps

type RecipesInstallSteps struct {
	// RecipesInstallStepsArchiveExtraction: optional
	ArchiveExtraction *RecipesInstallStepsArchiveExtraction `hcl:"archive_extraction,block"`
	// RecipesInstallStepsDpkgInstallation: optional
	DpkgInstallation *RecipesInstallStepsDpkgInstallation `hcl:"dpkg_installation,block"`
	// RecipesInstallStepsFileCopy: optional
	FileCopy *RecipesInstallStepsFileCopy `hcl:"file_copy,block"`
	// RecipesInstallStepsFileExec: optional
	FileExec *RecipesInstallStepsFileExec `hcl:"file_exec,block"`
	// RecipesInstallStepsMsiInstallation: optional
	MsiInstallation *RecipesInstallStepsMsiInstallation `hcl:"msi_installation,block"`
	// RecipesInstallStepsRpmInstallation: optional
	RpmInstallation *RecipesInstallStepsRpmInstallation `hcl:"rpm_installation,block"`
	// RecipesInstallStepsScriptRun: optional
	ScriptRun *RecipesInstallStepsScriptRun `hcl:"script_run,block"`
}

type RecipesInstallStepsArchiveExtraction

type RecipesInstallStepsArchiveExtraction struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Destination: string, optional
	Destination terra.StringValue `hcl:"destination,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type RecipesInstallStepsArchiveExtractionAttributes

type RecipesInstallStepsArchiveExtractionAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsArchiveExtractionAttributes) ArtifactId

func (RecipesInstallStepsArchiveExtractionAttributes) Destination

func (RecipesInstallStepsArchiveExtractionAttributes) InternalRef

func (RecipesInstallStepsArchiveExtractionAttributes) InternalTokens

func (RecipesInstallStepsArchiveExtractionAttributes) InternalWithRef

func (RecipesInstallStepsArchiveExtractionAttributes) Type

type RecipesInstallStepsArchiveExtractionState

type RecipesInstallStepsArchiveExtractionState struct {
	ArtifactId  string `json:"artifact_id"`
	Destination string `json:"destination"`
	Type        string `json:"type"`
}

type RecipesInstallStepsAttributes

type RecipesInstallStepsAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsAttributes) ArchiveExtraction

func (RecipesInstallStepsAttributes) DpkgInstallation

func (RecipesInstallStepsAttributes) FileCopy

func (RecipesInstallStepsAttributes) FileExec

func (RecipesInstallStepsAttributes) InternalRef

func (is RecipesInstallStepsAttributes) InternalRef() (terra.Reference, error)

func (RecipesInstallStepsAttributes) InternalTokens

func (is RecipesInstallStepsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesInstallStepsAttributes) InternalWithRef

func (RecipesInstallStepsAttributes) MsiInstallation

func (RecipesInstallStepsAttributes) RpmInstallation

func (RecipesInstallStepsAttributes) ScriptRun

type RecipesInstallStepsDpkgInstallation

type RecipesInstallStepsDpkgInstallation struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
}

type RecipesInstallStepsDpkgInstallationAttributes

type RecipesInstallStepsDpkgInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsDpkgInstallationAttributes) ArtifactId

func (RecipesInstallStepsDpkgInstallationAttributes) InternalRef

func (RecipesInstallStepsDpkgInstallationAttributes) InternalTokens

func (RecipesInstallStepsDpkgInstallationAttributes) InternalWithRef

type RecipesInstallStepsDpkgInstallationState

type RecipesInstallStepsDpkgInstallationState struct {
	ArtifactId string `json:"artifact_id"`
}

type RecipesInstallStepsFileCopy

type RecipesInstallStepsFileCopy struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Destination: string, required
	Destination terra.StringValue `hcl:"destination,attr" validate:"required"`
	// Overwrite: bool, optional
	Overwrite terra.BoolValue `hcl:"overwrite,attr"`
	// Permissions: string, optional
	Permissions terra.StringValue `hcl:"permissions,attr"`
}

type RecipesInstallStepsFileCopyAttributes

type RecipesInstallStepsFileCopyAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsFileCopyAttributes) ArtifactId

func (RecipesInstallStepsFileCopyAttributes) Destination

func (RecipesInstallStepsFileCopyAttributes) InternalRef

func (RecipesInstallStepsFileCopyAttributes) InternalTokens

func (RecipesInstallStepsFileCopyAttributes) InternalWithRef

func (RecipesInstallStepsFileCopyAttributes) Overwrite

func (RecipesInstallStepsFileCopyAttributes) Permissions

type RecipesInstallStepsFileCopyState

type RecipesInstallStepsFileCopyState struct {
	ArtifactId  string `json:"artifact_id"`
	Destination string `json:"destination"`
	Overwrite   bool   `json:"overwrite"`
	Permissions string `json:"permissions"`
}

type RecipesInstallStepsFileExec

type RecipesInstallStepsFileExec struct {
	// AllowedExitCodes: string, optional
	AllowedExitCodes terra.StringValue `hcl:"allowed_exit_codes,attr"`
	// Args: list of string, optional
	Args terra.ListValue[terra.StringValue] `hcl:"args,attr"`
	// ArtifactId: string, optional
	ArtifactId terra.StringValue `hcl:"artifact_id,attr"`
	// LocalPath: string, optional
	LocalPath terra.StringValue `hcl:"local_path,attr"`
}

type RecipesInstallStepsFileExecAttributes

type RecipesInstallStepsFileExecAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsFileExecAttributes) AllowedExitCodes

func (RecipesInstallStepsFileExecAttributes) Args

func (RecipesInstallStepsFileExecAttributes) ArtifactId

func (RecipesInstallStepsFileExecAttributes) InternalRef

func (RecipesInstallStepsFileExecAttributes) InternalTokens

func (RecipesInstallStepsFileExecAttributes) InternalWithRef

func (RecipesInstallStepsFileExecAttributes) LocalPath

type RecipesInstallStepsFileExecState

type RecipesInstallStepsFileExecState struct {
	AllowedExitCodes string   `json:"allowed_exit_codes"`
	Args             []string `json:"args"`
	ArtifactId       string   `json:"artifact_id"`
	LocalPath        string   `json:"local_path"`
}

type RecipesInstallStepsMsiInstallation

type RecipesInstallStepsMsiInstallation struct {
	// AllowedExitCodes: list of number, optional
	AllowedExitCodes terra.ListValue[terra.NumberValue] `hcl:"allowed_exit_codes,attr"`
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Flags: list of string, optional
	Flags terra.ListValue[terra.StringValue] `hcl:"flags,attr"`
}

type RecipesInstallStepsMsiInstallationAttributes

type RecipesInstallStepsMsiInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsMsiInstallationAttributes) AllowedExitCodes

func (RecipesInstallStepsMsiInstallationAttributes) ArtifactId

func (RecipesInstallStepsMsiInstallationAttributes) Flags

func (RecipesInstallStepsMsiInstallationAttributes) InternalRef

func (RecipesInstallStepsMsiInstallationAttributes) InternalTokens

func (RecipesInstallStepsMsiInstallationAttributes) InternalWithRef

type RecipesInstallStepsMsiInstallationState

type RecipesInstallStepsMsiInstallationState struct {
	AllowedExitCodes []float64 `json:"allowed_exit_codes"`
	ArtifactId       string    `json:"artifact_id"`
	Flags            []string  `json:"flags"`
}

type RecipesInstallStepsRpmInstallation

type RecipesInstallStepsRpmInstallation struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
}

type RecipesInstallStepsRpmInstallationAttributes

type RecipesInstallStepsRpmInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsRpmInstallationAttributes) ArtifactId

func (RecipesInstallStepsRpmInstallationAttributes) InternalRef

func (RecipesInstallStepsRpmInstallationAttributes) InternalTokens

func (RecipesInstallStepsRpmInstallationAttributes) InternalWithRef

type RecipesInstallStepsRpmInstallationState

type RecipesInstallStepsRpmInstallationState struct {
	ArtifactId string `json:"artifact_id"`
}

type RecipesInstallStepsScriptRun

type RecipesInstallStepsScriptRun struct {
	// AllowedExitCodes: list of number, optional
	AllowedExitCodes terra.ListValue[terra.NumberValue] `hcl:"allowed_exit_codes,attr"`
	// Interpreter: string, optional
	Interpreter terra.StringValue `hcl:"interpreter,attr"`
	// Script: string, required
	Script terra.StringValue `hcl:"script,attr" validate:"required"`
}

type RecipesInstallStepsScriptRunAttributes

type RecipesInstallStepsScriptRunAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesInstallStepsScriptRunAttributes) AllowedExitCodes

func (RecipesInstallStepsScriptRunAttributes) InternalRef

func (RecipesInstallStepsScriptRunAttributes) InternalTokens

func (RecipesInstallStepsScriptRunAttributes) InternalWithRef

func (RecipesInstallStepsScriptRunAttributes) Interpreter

func (RecipesInstallStepsScriptRunAttributes) Script

type RecipesInstallStepsScriptRunState

type RecipesInstallStepsScriptRunState struct {
	AllowedExitCodes []float64 `json:"allowed_exit_codes"`
	Interpreter      string    `json:"interpreter"`
	Script           string    `json:"script"`
}

type RecipesInstallStepsState

type RecipesInstallStepsState struct {
	ArchiveExtraction []RecipesInstallStepsArchiveExtractionState `json:"archive_extraction"`
	DpkgInstallation  []RecipesInstallStepsDpkgInstallationState  `json:"dpkg_installation"`
	FileCopy          []RecipesInstallStepsFileCopyState          `json:"file_copy"`
	FileExec          []RecipesInstallStepsFileExecState          `json:"file_exec"`
	MsiInstallation   []RecipesInstallStepsMsiInstallationState   `json:"msi_installation"`
	RpmInstallation   []RecipesInstallStepsRpmInstallationState   `json:"rpm_installation"`
	ScriptRun         []RecipesInstallStepsScriptRunState         `json:"script_run"`
}

type RecipesState

type RecipesState struct {
	DesiredState string                     `json:"desired_state"`
	Name         string                     `json:"name"`
	Version      string                     `json:"version"`
	Artifacts    []RecipesArtifactsState    `json:"artifacts"`
	InstallSteps []RecipesInstallStepsState `json:"install_steps"`
	UpdateSteps  []RecipesUpdateStepsState  `json:"update_steps"`
}

type RecipesUpdateSteps

type RecipesUpdateSteps struct {
	// RecipesUpdateStepsArchiveExtraction: optional
	ArchiveExtraction *RecipesUpdateStepsArchiveExtraction `hcl:"archive_extraction,block"`
	// RecipesUpdateStepsDpkgInstallation: optional
	DpkgInstallation *RecipesUpdateStepsDpkgInstallation `hcl:"dpkg_installation,block"`
	// RecipesUpdateStepsFileCopy: optional
	FileCopy *RecipesUpdateStepsFileCopy `hcl:"file_copy,block"`
	// RecipesUpdateStepsFileExec: optional
	FileExec *RecipesUpdateStepsFileExec `hcl:"file_exec,block"`
	// RecipesUpdateStepsMsiInstallation: optional
	MsiInstallation *RecipesUpdateStepsMsiInstallation `hcl:"msi_installation,block"`
	// RecipesUpdateStepsRpmInstallation: optional
	RpmInstallation *RecipesUpdateStepsRpmInstallation `hcl:"rpm_installation,block"`
	// RecipesUpdateStepsScriptRun: optional
	ScriptRun *RecipesUpdateStepsScriptRun `hcl:"script_run,block"`
}

type RecipesUpdateStepsArchiveExtraction

type RecipesUpdateStepsArchiveExtraction struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Destination: string, optional
	Destination terra.StringValue `hcl:"destination,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type RecipesUpdateStepsArchiveExtractionAttributes

type RecipesUpdateStepsArchiveExtractionAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsArchiveExtractionAttributes) ArtifactId

func (RecipesUpdateStepsArchiveExtractionAttributes) Destination

func (RecipesUpdateStepsArchiveExtractionAttributes) InternalRef

func (RecipesUpdateStepsArchiveExtractionAttributes) InternalTokens

func (RecipesUpdateStepsArchiveExtractionAttributes) InternalWithRef

func (RecipesUpdateStepsArchiveExtractionAttributes) Type

type RecipesUpdateStepsArchiveExtractionState

type RecipesUpdateStepsArchiveExtractionState struct {
	ArtifactId  string `json:"artifact_id"`
	Destination string `json:"destination"`
	Type        string `json:"type"`
}

type RecipesUpdateStepsAttributes

type RecipesUpdateStepsAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsAttributes) ArchiveExtraction

func (RecipesUpdateStepsAttributes) DpkgInstallation

func (RecipesUpdateStepsAttributes) FileCopy

func (RecipesUpdateStepsAttributes) FileExec

func (RecipesUpdateStepsAttributes) InternalRef

func (us RecipesUpdateStepsAttributes) InternalRef() (terra.Reference, error)

func (RecipesUpdateStepsAttributes) InternalTokens

func (us RecipesUpdateStepsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecipesUpdateStepsAttributes) InternalWithRef

func (RecipesUpdateStepsAttributes) MsiInstallation

func (RecipesUpdateStepsAttributes) RpmInstallation

func (RecipesUpdateStepsAttributes) ScriptRun

type RecipesUpdateStepsDpkgInstallation

type RecipesUpdateStepsDpkgInstallation struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
}

type RecipesUpdateStepsDpkgInstallationAttributes

type RecipesUpdateStepsDpkgInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsDpkgInstallationAttributes) ArtifactId

func (RecipesUpdateStepsDpkgInstallationAttributes) InternalRef

func (RecipesUpdateStepsDpkgInstallationAttributes) InternalTokens

func (RecipesUpdateStepsDpkgInstallationAttributes) InternalWithRef

type RecipesUpdateStepsDpkgInstallationState

type RecipesUpdateStepsDpkgInstallationState struct {
	ArtifactId string `json:"artifact_id"`
}

type RecipesUpdateStepsFileCopy

type RecipesUpdateStepsFileCopy struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Destination: string, required
	Destination terra.StringValue `hcl:"destination,attr" validate:"required"`
	// Overwrite: bool, optional
	Overwrite terra.BoolValue `hcl:"overwrite,attr"`
	// Permissions: string, optional
	Permissions terra.StringValue `hcl:"permissions,attr"`
}

type RecipesUpdateStepsFileCopyAttributes

type RecipesUpdateStepsFileCopyAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsFileCopyAttributes) ArtifactId

func (RecipesUpdateStepsFileCopyAttributes) Destination

func (RecipesUpdateStepsFileCopyAttributes) InternalRef

func (RecipesUpdateStepsFileCopyAttributes) InternalTokens

func (RecipesUpdateStepsFileCopyAttributes) InternalWithRef

func (RecipesUpdateStepsFileCopyAttributes) Overwrite

func (RecipesUpdateStepsFileCopyAttributes) Permissions

type RecipesUpdateStepsFileCopyState

type RecipesUpdateStepsFileCopyState struct {
	ArtifactId  string `json:"artifact_id"`
	Destination string `json:"destination"`
	Overwrite   bool   `json:"overwrite"`
	Permissions string `json:"permissions"`
}

type RecipesUpdateStepsFileExec

type RecipesUpdateStepsFileExec struct {
	// AllowedExitCodes: list of number, optional
	AllowedExitCodes terra.ListValue[terra.NumberValue] `hcl:"allowed_exit_codes,attr"`
	// Args: list of string, optional
	Args terra.ListValue[terra.StringValue] `hcl:"args,attr"`
	// ArtifactId: string, optional
	ArtifactId terra.StringValue `hcl:"artifact_id,attr"`
	// LocalPath: string, optional
	LocalPath terra.StringValue `hcl:"local_path,attr"`
}

type RecipesUpdateStepsFileExecAttributes

type RecipesUpdateStepsFileExecAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsFileExecAttributes) AllowedExitCodes

func (RecipesUpdateStepsFileExecAttributes) Args

func (RecipesUpdateStepsFileExecAttributes) ArtifactId

func (RecipesUpdateStepsFileExecAttributes) InternalRef

func (RecipesUpdateStepsFileExecAttributes) InternalTokens

func (RecipesUpdateStepsFileExecAttributes) InternalWithRef

func (RecipesUpdateStepsFileExecAttributes) LocalPath

type RecipesUpdateStepsFileExecState

type RecipesUpdateStepsFileExecState struct {
	AllowedExitCodes []float64 `json:"allowed_exit_codes"`
	Args             []string  `json:"args"`
	ArtifactId       string    `json:"artifact_id"`
	LocalPath        string    `json:"local_path"`
}

type RecipesUpdateStepsMsiInstallation

type RecipesUpdateStepsMsiInstallation struct {
	// AllowedExitCodes: list of number, optional
	AllowedExitCodes terra.ListValue[terra.NumberValue] `hcl:"allowed_exit_codes,attr"`
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
	// Flags: list of string, optional
	Flags terra.ListValue[terra.StringValue] `hcl:"flags,attr"`
}

type RecipesUpdateStepsMsiInstallationAttributes

type RecipesUpdateStepsMsiInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsMsiInstallationAttributes) AllowedExitCodes

func (RecipesUpdateStepsMsiInstallationAttributes) ArtifactId

func (RecipesUpdateStepsMsiInstallationAttributes) Flags

func (RecipesUpdateStepsMsiInstallationAttributes) InternalRef

func (RecipesUpdateStepsMsiInstallationAttributes) InternalTokens

func (RecipesUpdateStepsMsiInstallationAttributes) InternalWithRef

type RecipesUpdateStepsMsiInstallationState

type RecipesUpdateStepsMsiInstallationState struct {
	AllowedExitCodes []float64 `json:"allowed_exit_codes"`
	ArtifactId       string    `json:"artifact_id"`
	Flags            []string  `json:"flags"`
}

type RecipesUpdateStepsRpmInstallation

type RecipesUpdateStepsRpmInstallation struct {
	// ArtifactId: string, required
	ArtifactId terra.StringValue `hcl:"artifact_id,attr" validate:"required"`
}

type RecipesUpdateStepsRpmInstallationAttributes

type RecipesUpdateStepsRpmInstallationAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsRpmInstallationAttributes) ArtifactId

func (RecipesUpdateStepsRpmInstallationAttributes) InternalRef

func (RecipesUpdateStepsRpmInstallationAttributes) InternalTokens

func (RecipesUpdateStepsRpmInstallationAttributes) InternalWithRef

type RecipesUpdateStepsRpmInstallationState

type RecipesUpdateStepsRpmInstallationState struct {
	ArtifactId string `json:"artifact_id"`
}

type RecipesUpdateStepsScriptRun

type RecipesUpdateStepsScriptRun struct {
	// AllowedExitCodes: list of number, optional
	AllowedExitCodes terra.ListValue[terra.NumberValue] `hcl:"allowed_exit_codes,attr"`
	// Interpreter: string, optional
	Interpreter terra.StringValue `hcl:"interpreter,attr"`
	// Script: string, required
	Script terra.StringValue `hcl:"script,attr" validate:"required"`
}

type RecipesUpdateStepsScriptRunAttributes

type RecipesUpdateStepsScriptRunAttributes struct {
	// contains filtered or unexported fields
}

func (RecipesUpdateStepsScriptRunAttributes) AllowedExitCodes

func (RecipesUpdateStepsScriptRunAttributes) InternalRef

func (RecipesUpdateStepsScriptRunAttributes) InternalTokens

func (RecipesUpdateStepsScriptRunAttributes) InternalWithRef

func (RecipesUpdateStepsScriptRunAttributes) Interpreter

func (RecipesUpdateStepsScriptRunAttributes) Script

type RecipesUpdateStepsScriptRunState

type RecipesUpdateStepsScriptRunState struct {
	AllowedExitCodes []float64 `json:"allowed_exit_codes"`
	Interpreter      string    `json:"interpreter"`
	Script           string    `json:"script"`
}

type RecipesUpdateStepsState

type RecipesUpdateStepsState struct {
	ArchiveExtraction []RecipesUpdateStepsArchiveExtractionState `json:"archive_extraction"`
	DpkgInstallation  []RecipesUpdateStepsDpkgInstallationState  `json:"dpkg_installation"`
	FileCopy          []RecipesUpdateStepsFileCopyState          `json:"file_copy"`
	FileExec          []RecipesUpdateStepsFileExecState          `json:"file_exec"`
	MsiInstallation   []RecipesUpdateStepsMsiInstallationState   `json:"msi_installation"`
	RpmInstallation   []RecipesUpdateStepsRpmInstallationState   `json:"rpm_installation"`
	ScriptRun         []RecipesUpdateStepsScriptRunState         `json:"script_run"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_os_config_guest_policies.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gocgp *Resource) Attributes() googleOsConfigGuestPoliciesAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gocgp *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gocgp *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gocgp *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gocgp *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gocgp *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gocgp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gocgp *Resource) State() (*googleOsConfigGuestPoliciesState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gocgp *Resource) StateMust() *googleOsConfigGuestPoliciesState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gocgp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL