google_netapp_volume

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 {
	// CapacityGib: string, required
	CapacityGib terra.StringValue `hcl:"capacity_gib,attr" validate:"required"`
	// DeletionPolicy: string, optional
	DeletionPolicy terra.StringValue `hcl:"deletion_policy,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KerberosEnabled: bool, optional
	KerberosEnabled terra.BoolValue `hcl:"kerberos_enabled,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Protocols: list of string, required
	Protocols terra.ListValue[terra.StringValue] `hcl:"protocols,attr" validate:"required"`
	// RestrictedActions: list of string, optional
	RestrictedActions terra.ListValue[terra.StringValue] `hcl:"restricted_actions,attr"`
	// SecurityStyle: string, optional
	SecurityStyle terra.StringValue `hcl:"security_style,attr"`
	// ShareName: string, required
	ShareName terra.StringValue `hcl:"share_name,attr" validate:"required"`
	// SmbSettings: list of string, optional
	SmbSettings terra.ListValue[terra.StringValue] `hcl:"smb_settings,attr"`
	// SnapshotDirectory: bool, optional
	SnapshotDirectory terra.BoolValue `hcl:"snapshot_directory,attr"`
	// StoragePool: string, required
	StoragePool terra.StringValue `hcl:"storage_pool,attr" validate:"required"`
	// UnixPermissions: string, optional
	UnixPermissions terra.StringValue `hcl:"unix_permissions,attr"`
	// ExportPolicy: optional
	ExportPolicy *ExportPolicy `hcl:"export_policy,block"`
	// RestoreParameters: optional
	RestoreParameters *RestoreParameters `hcl:"restore_parameters,block"`
	// SnapshotPolicy: optional
	SnapshotPolicy *SnapshotPolicy `hcl:"snapshot_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_netapp_volume.

type ExportPolicy

type ExportPolicy struct {
	// ExportPolicyRules: min=1
	Rules []ExportPolicyRules `hcl:"rules,block" validate:"min=1"`
}

type ExportPolicyAttributes

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

func (ExportPolicyAttributes) InternalRef

func (ep ExportPolicyAttributes) InternalRef() (terra.Reference, error)

func (ExportPolicyAttributes) InternalTokens

func (ep ExportPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExportPolicyAttributes) InternalWithRef

func (ExportPolicyAttributes) Rules

type ExportPolicyRules

type ExportPolicyRules struct {
	// AccessType: string, optional
	AccessType terra.StringValue `hcl:"access_type,attr"`
	// AllowedClients: string, optional
	AllowedClients terra.StringValue `hcl:"allowed_clients,attr"`
	// HasRootAccess: string, optional
	HasRootAccess terra.StringValue `hcl:"has_root_access,attr"`
	// Kerberos5ReadOnly: bool, optional
	Kerberos5ReadOnly terra.BoolValue `hcl:"kerberos5_read_only,attr"`
	// Kerberos5ReadWrite: bool, optional
	Kerberos5ReadWrite terra.BoolValue `hcl:"kerberos5_read_write,attr"`
	// Kerberos5IReadOnly: bool, optional
	Kerberos5IReadOnly terra.BoolValue `hcl:"kerberos5i_read_only,attr"`
	// Kerberos5IReadWrite: bool, optional
	Kerberos5IReadWrite terra.BoolValue `hcl:"kerberos5i_read_write,attr"`
	// Kerberos5PReadOnly: bool, optional
	Kerberos5PReadOnly terra.BoolValue `hcl:"kerberos5p_read_only,attr"`
	// Kerberos5PReadWrite: bool, optional
	Kerberos5PReadWrite terra.BoolValue `hcl:"kerberos5p_read_write,attr"`
	// Nfsv3: bool, optional
	Nfsv3 terra.BoolValue `hcl:"nfsv3,attr"`
	// Nfsv4: bool, optional
	Nfsv4 terra.BoolValue `hcl:"nfsv4,attr"`
}

type ExportPolicyRulesAttributes

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

func (ExportPolicyRulesAttributes) AccessType

func (ExportPolicyRulesAttributes) AllowedClients

func (r ExportPolicyRulesAttributes) AllowedClients() terra.StringValue

func (ExportPolicyRulesAttributes) HasRootAccess

func (r ExportPolicyRulesAttributes) HasRootAccess() terra.StringValue

func (ExportPolicyRulesAttributes) InternalRef

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

func (ExportPolicyRulesAttributes) InternalTokens

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

func (ExportPolicyRulesAttributes) InternalWithRef

func (ExportPolicyRulesAttributes) Kerberos5IReadOnly

func (r ExportPolicyRulesAttributes) Kerberos5IReadOnly() terra.BoolValue

func (ExportPolicyRulesAttributes) Kerberos5IReadWrite

func (r ExportPolicyRulesAttributes) Kerberos5IReadWrite() terra.BoolValue

func (ExportPolicyRulesAttributes) Kerberos5PReadOnly

func (r ExportPolicyRulesAttributes) Kerberos5PReadOnly() terra.BoolValue

func (ExportPolicyRulesAttributes) Kerberos5PReadWrite

func (r ExportPolicyRulesAttributes) Kerberos5PReadWrite() terra.BoolValue

func (ExportPolicyRulesAttributes) Kerberos5ReadOnly

func (r ExportPolicyRulesAttributes) Kerberos5ReadOnly() terra.BoolValue

func (ExportPolicyRulesAttributes) Kerberos5ReadWrite

func (r ExportPolicyRulesAttributes) Kerberos5ReadWrite() terra.BoolValue

func (ExportPolicyRulesAttributes) Nfsv3

func (ExportPolicyRulesAttributes) Nfsv4

type ExportPolicyRulesState

type ExportPolicyRulesState struct {
	AccessType          string `json:"access_type"`
	AllowedClients      string `json:"allowed_clients"`
	HasRootAccess       string `json:"has_root_access"`
	Kerberos5ReadOnly   bool   `json:"kerberos5_read_only"`
	Kerberos5ReadWrite  bool   `json:"kerberos5_read_write"`
	Kerberos5IReadOnly  bool   `json:"kerberos5i_read_only"`
	Kerberos5IReadWrite bool   `json:"kerberos5i_read_write"`
	Kerberos5PReadOnly  bool   `json:"kerberos5p_read_only"`
	Kerberos5PReadWrite bool   `json:"kerberos5p_read_write"`
	Nfsv3               bool   `json:"nfsv3"`
	Nfsv4               bool   `json:"nfsv4"`
}

type ExportPolicyState

type ExportPolicyState struct {
	Rules []ExportPolicyRulesState `json:"rules"`
}

type MountOptionsAttributes

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

func (MountOptionsAttributes) Export

func (MountOptionsAttributes) ExportFull

func (mo MountOptionsAttributes) ExportFull() terra.StringValue

func (MountOptionsAttributes) Instructions

func (mo MountOptionsAttributes) Instructions() terra.StringValue

func (MountOptionsAttributes) InternalRef

func (mo MountOptionsAttributes) InternalRef() (terra.Reference, error)

func (MountOptionsAttributes) InternalTokens

func (mo MountOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MountOptionsAttributes) InternalWithRef

func (MountOptionsAttributes) Protocol

type MountOptionsState

type MountOptionsState struct {
	Export       string `json:"export"`
	ExportFull   string `json:"export_full"`
	Instructions string `json:"instructions"`
	Protocol     string `json:"protocol"`
}

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_netapp_volume.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gnv *Resource) Attributes() googleNetappVolumeAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gnv *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gnv *Resource) State() (*googleNetappVolumeState, bool)

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

func (*Resource) StateMust

func (gnv *Resource) StateMust() *googleNetappVolumeState

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

func (*Resource) Type

func (gnv *Resource) Type() string

Type returns the Terraform object type for Resource.

type RestoreParameters

type RestoreParameters struct {
	// SourceBackup: string, optional
	SourceBackup terra.StringValue `hcl:"source_backup,attr"`
	// SourceSnapshot: string, optional
	SourceSnapshot terra.StringValue `hcl:"source_snapshot,attr"`
}

type RestoreParametersAttributes

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

func (RestoreParametersAttributes) InternalRef

func (rp RestoreParametersAttributes) InternalRef() (terra.Reference, error)

func (RestoreParametersAttributes) InternalTokens

func (rp RestoreParametersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestoreParametersAttributes) InternalWithRef

func (RestoreParametersAttributes) SourceBackup

func (rp RestoreParametersAttributes) SourceBackup() terra.StringValue

func (RestoreParametersAttributes) SourceSnapshot

func (rp RestoreParametersAttributes) SourceSnapshot() terra.StringValue

type RestoreParametersState

type RestoreParametersState struct {
	SourceBackup   string `json:"source_backup"`
	SourceSnapshot string `json:"source_snapshot"`
}

type SnapshotPolicy

type SnapshotPolicy struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// SnapshotPolicyDailySchedule: optional
	DailySchedule *SnapshotPolicyDailySchedule `hcl:"daily_schedule,block"`
	// SnapshotPolicyHourlySchedule: optional
	HourlySchedule *SnapshotPolicyHourlySchedule `hcl:"hourly_schedule,block"`
	// SnapshotPolicyMonthlySchedule: optional
	MonthlySchedule *SnapshotPolicyMonthlySchedule `hcl:"monthly_schedule,block"`
	// SnapshotPolicyWeeklySchedule: optional
	WeeklySchedule *SnapshotPolicyWeeklySchedule `hcl:"weekly_schedule,block"`
}

type SnapshotPolicyAttributes

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

func (SnapshotPolicyAttributes) DailySchedule

func (SnapshotPolicyAttributes) Enabled

func (SnapshotPolicyAttributes) HourlySchedule

func (SnapshotPolicyAttributes) InternalRef

func (sp SnapshotPolicyAttributes) InternalRef() (terra.Reference, error)

func (SnapshotPolicyAttributes) InternalTokens

func (sp SnapshotPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SnapshotPolicyAttributes) InternalWithRef

func (SnapshotPolicyAttributes) MonthlySchedule

func (SnapshotPolicyAttributes) WeeklySchedule

type SnapshotPolicyDailySchedule

type SnapshotPolicyDailySchedule struct {
	// Hour: number, optional
	Hour terra.NumberValue `hcl:"hour,attr"`
	// Minute: number, optional
	Minute terra.NumberValue `hcl:"minute,attr"`
	// SnapshotsToKeep: number, required
	SnapshotsToKeep terra.NumberValue `hcl:"snapshots_to_keep,attr" validate:"required"`
}

type SnapshotPolicyDailyScheduleAttributes

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

func (SnapshotPolicyDailyScheduleAttributes) Hour

func (SnapshotPolicyDailyScheduleAttributes) InternalRef

func (SnapshotPolicyDailyScheduleAttributes) InternalTokens

func (SnapshotPolicyDailyScheduleAttributes) InternalWithRef

func (SnapshotPolicyDailyScheduleAttributes) Minute

func (SnapshotPolicyDailyScheduleAttributes) SnapshotsToKeep

type SnapshotPolicyDailyScheduleState

type SnapshotPolicyDailyScheduleState struct {
	Hour            float64 `json:"hour"`
	Minute          float64 `json:"minute"`
	SnapshotsToKeep float64 `json:"snapshots_to_keep"`
}

type SnapshotPolicyHourlySchedule

type SnapshotPolicyHourlySchedule struct {
	// Minute: number, optional
	Minute terra.NumberValue `hcl:"minute,attr"`
	// SnapshotsToKeep: number, required
	SnapshotsToKeep terra.NumberValue `hcl:"snapshots_to_keep,attr" validate:"required"`
}

type SnapshotPolicyHourlyScheduleAttributes

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

func (SnapshotPolicyHourlyScheduleAttributes) InternalRef

func (SnapshotPolicyHourlyScheduleAttributes) InternalTokens

func (SnapshotPolicyHourlyScheduleAttributes) InternalWithRef

func (SnapshotPolicyHourlyScheduleAttributes) Minute

func (SnapshotPolicyHourlyScheduleAttributes) SnapshotsToKeep

type SnapshotPolicyHourlyScheduleState

type SnapshotPolicyHourlyScheduleState struct {
	Minute          float64 `json:"minute"`
	SnapshotsToKeep float64 `json:"snapshots_to_keep"`
}

type SnapshotPolicyMonthlySchedule

type SnapshotPolicyMonthlySchedule struct {
	// DaysOfMonth: string, optional
	DaysOfMonth terra.StringValue `hcl:"days_of_month,attr"`
	// Hour: number, optional
	Hour terra.NumberValue `hcl:"hour,attr"`
	// Minute: number, optional
	Minute terra.NumberValue `hcl:"minute,attr"`
	// SnapshotsToKeep: number, required
	SnapshotsToKeep terra.NumberValue `hcl:"snapshots_to_keep,attr" validate:"required"`
}

type SnapshotPolicyMonthlyScheduleAttributes

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

func (SnapshotPolicyMonthlyScheduleAttributes) DaysOfMonth

func (SnapshotPolicyMonthlyScheduleAttributes) Hour

func (SnapshotPolicyMonthlyScheduleAttributes) InternalRef

func (SnapshotPolicyMonthlyScheduleAttributes) InternalTokens

func (SnapshotPolicyMonthlyScheduleAttributes) InternalWithRef

func (SnapshotPolicyMonthlyScheduleAttributes) Minute

func (SnapshotPolicyMonthlyScheduleAttributes) SnapshotsToKeep

type SnapshotPolicyMonthlyScheduleState

type SnapshotPolicyMonthlyScheduleState struct {
	DaysOfMonth     string  `json:"days_of_month"`
	Hour            float64 `json:"hour"`
	Minute          float64 `json:"minute"`
	SnapshotsToKeep float64 `json:"snapshots_to_keep"`
}

type SnapshotPolicyState

type SnapshotPolicyState struct {
	Enabled         bool                                 `json:"enabled"`
	DailySchedule   []SnapshotPolicyDailyScheduleState   `json:"daily_schedule"`
	HourlySchedule  []SnapshotPolicyHourlyScheduleState  `json:"hourly_schedule"`
	MonthlySchedule []SnapshotPolicyMonthlyScheduleState `json:"monthly_schedule"`
	WeeklySchedule  []SnapshotPolicyWeeklyScheduleState  `json:"weekly_schedule"`
}

type SnapshotPolicyWeeklySchedule

type SnapshotPolicyWeeklySchedule struct {
	// Day: string, optional
	Day terra.StringValue `hcl:"day,attr"`
	// Hour: number, optional
	Hour terra.NumberValue `hcl:"hour,attr"`
	// Minute: number, optional
	Minute terra.NumberValue `hcl:"minute,attr"`
	// SnapshotsToKeep: number, required
	SnapshotsToKeep terra.NumberValue `hcl:"snapshots_to_keep,attr" validate:"required"`
}

type SnapshotPolicyWeeklyScheduleAttributes

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

func (SnapshotPolicyWeeklyScheduleAttributes) Day

func (SnapshotPolicyWeeklyScheduleAttributes) Hour

func (SnapshotPolicyWeeklyScheduleAttributes) InternalRef

func (SnapshotPolicyWeeklyScheduleAttributes) InternalTokens

func (SnapshotPolicyWeeklyScheduleAttributes) InternalWithRef

func (SnapshotPolicyWeeklyScheduleAttributes) Minute

func (SnapshotPolicyWeeklyScheduleAttributes) SnapshotsToKeep

type SnapshotPolicyWeeklyScheduleState

type SnapshotPolicyWeeklyScheduleState struct {
	Day             string  `json:"day"`
	Hour            float64 `json:"hour"`
	Minute          float64 `json:"minute"`
	SnapshotsToKeep float64 `json:"snapshots_to_keep"`
}

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