google_folder_organization_policy

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 {
	// Constraint: string, required
	Constraint terra.StringValue `hcl:"constraint,attr" validate:"required"`
	// Folder: string, required
	Folder terra.StringValue `hcl:"folder,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Version: number, optional
	Version terra.NumberValue `hcl:"version,attr"`
	// BooleanPolicy: optional
	BooleanPolicy *BooleanPolicy `hcl:"boolean_policy,block"`
	// ListPolicy: optional
	ListPolicy *ListPolicy `hcl:"list_policy,block"`
	// RestorePolicy: optional
	RestorePolicy *RestorePolicy `hcl:"restore_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_folder_organization_policy.

type BooleanPolicy

type BooleanPolicy struct {
	// Enforced: bool, required
	Enforced terra.BoolValue `hcl:"enforced,attr" validate:"required"`
}

type BooleanPolicyAttributes

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

func (BooleanPolicyAttributes) Enforced

func (bp BooleanPolicyAttributes) Enforced() terra.BoolValue

func (BooleanPolicyAttributes) InternalRef

func (bp BooleanPolicyAttributes) InternalRef() (terra.Reference, error)

func (BooleanPolicyAttributes) InternalTokens

func (bp BooleanPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BooleanPolicyAttributes) InternalWithRef

type BooleanPolicyState

type BooleanPolicyState struct {
	Enforced bool `json:"enforced"`
}

type DataArgs

type DataArgs struct {
	// Constraint: string, required
	Constraint terra.StringValue `hcl:"constraint,attr" validate:"required"`
	// Folder: string, required
	Folder terra.StringValue `hcl:"folder,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
}

DataArgs contains the configurations for google_folder_organization_policy.

type DataBooleanPolicyAttributes

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

func (DataBooleanPolicyAttributes) Enforced

func (DataBooleanPolicyAttributes) InternalRef

func (bp DataBooleanPolicyAttributes) InternalRef() (terra.Reference, error)

func (DataBooleanPolicyAttributes) InternalTokens

func (bp DataBooleanPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBooleanPolicyAttributes) InternalWithRef

type DataBooleanPolicyState

type DataBooleanPolicyState struct {
	Enforced bool `json:"enforced"`
}

type DataListPolicyAllowAttributes

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

func (DataListPolicyAllowAttributes) All

func (DataListPolicyAllowAttributes) InternalRef

func (DataListPolicyAllowAttributes) InternalTokens

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

func (DataListPolicyAllowAttributes) InternalWithRef

func (DataListPolicyAllowAttributes) Values

type DataListPolicyAllowState

type DataListPolicyAllowState struct {
	All    bool     `json:"all"`
	Values []string `json:"values"`
}

type DataListPolicyAttributes

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

func (DataListPolicyAttributes) Allow

func (DataListPolicyAttributes) Deny

func (DataListPolicyAttributes) InheritFromParent

func (lp DataListPolicyAttributes) InheritFromParent() terra.BoolValue

func (DataListPolicyAttributes) InternalRef

func (lp DataListPolicyAttributes) InternalRef() (terra.Reference, error)

func (DataListPolicyAttributes) InternalTokens

func (lp DataListPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataListPolicyAttributes) InternalWithRef

func (DataListPolicyAttributes) SuggestedValue

func (lp DataListPolicyAttributes) SuggestedValue() terra.StringValue

type DataListPolicyDenyAttributes

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

func (DataListPolicyDenyAttributes) All

func (DataListPolicyDenyAttributes) InternalRef

func (DataListPolicyDenyAttributes) InternalTokens

func (d DataListPolicyDenyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataListPolicyDenyAttributes) InternalWithRef

func (DataListPolicyDenyAttributes) Values

type DataListPolicyDenyState

type DataListPolicyDenyState struct {
	All    bool     `json:"all"`
	Values []string `json:"values"`
}

type DataListPolicyState

type DataListPolicyState struct {
	InheritFromParent bool                       `json:"inherit_from_parent"`
	SuggestedValue    string                     `json:"suggested_value"`
	Allow             []DataListPolicyAllowState `json:"allow"`
	Deny              []DataListPolicyDenyState  `json:"deny"`
}

type DataRestorePolicyAttributes

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

func (DataRestorePolicyAttributes) Default

func (DataRestorePolicyAttributes) InternalRef

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

func (DataRestorePolicyAttributes) InternalTokens

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

func (DataRestorePolicyAttributes) InternalWithRef

type DataRestorePolicyState

type DataRestorePolicyState struct {
	Default bool `json:"default"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_folder_organization_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gfop *DataSource) Attributes() dataGoogleFolderOrganizationPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gfop *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gfop *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gfop *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type ListPolicy

type ListPolicy struct {
	// InheritFromParent: bool, optional
	InheritFromParent terra.BoolValue `hcl:"inherit_from_parent,attr"`
	// SuggestedValue: string, optional
	SuggestedValue terra.StringValue `hcl:"suggested_value,attr"`
	// ListPolicyAllow: optional
	Allow *ListPolicyAllow `hcl:"allow,block"`
	// ListPolicyDeny: optional
	Deny *ListPolicyDeny `hcl:"deny,block"`
}

type ListPolicyAllow

type ListPolicyAllow struct {
	// All: bool, optional
	All terra.BoolValue `hcl:"all,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ListPolicyAllowAttributes

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

func (ListPolicyAllowAttributes) All

func (ListPolicyAllowAttributes) InternalRef

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

func (ListPolicyAllowAttributes) InternalTokens

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

func (ListPolicyAllowAttributes) InternalWithRef

func (ListPolicyAllowAttributes) Values

type ListPolicyAllowState

type ListPolicyAllowState struct {
	All    bool     `json:"all"`
	Values []string `json:"values"`
}

type ListPolicyAttributes

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

func (ListPolicyAttributes) Allow

func (ListPolicyAttributes) Deny

func (ListPolicyAttributes) InheritFromParent

func (lp ListPolicyAttributes) InheritFromParent() terra.BoolValue

func (ListPolicyAttributes) InternalRef

func (lp ListPolicyAttributes) InternalRef() (terra.Reference, error)

func (ListPolicyAttributes) InternalTokens

func (lp ListPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ListPolicyAttributes) InternalWithRef

func (lp ListPolicyAttributes) InternalWithRef(ref terra.Reference) ListPolicyAttributes

func (ListPolicyAttributes) SuggestedValue

func (lp ListPolicyAttributes) SuggestedValue() terra.StringValue

type ListPolicyDeny

type ListPolicyDeny struct {
	// All: bool, optional
	All terra.BoolValue `hcl:"all,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ListPolicyDenyAttributes

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

func (ListPolicyDenyAttributes) All

func (ListPolicyDenyAttributes) InternalRef

func (d ListPolicyDenyAttributes) InternalRef() (terra.Reference, error)

func (ListPolicyDenyAttributes) InternalTokens

func (d ListPolicyDenyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ListPolicyDenyAttributes) InternalWithRef

func (ListPolicyDenyAttributes) Values

type ListPolicyDenyState

type ListPolicyDenyState struct {
	All    bool     `json:"all"`
	Values []string `json:"values"`
}

type ListPolicyState

type ListPolicyState struct {
	InheritFromParent bool                   `json:"inherit_from_parent"`
	SuggestedValue    string                 `json:"suggested_value"`
	Allow             []ListPolicyAllowState `json:"allow"`
	Deny              []ListPolicyDenyState  `json:"deny"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gfop *Resource) Attributes() googleFolderOrganizationPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gfop *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gfop *Resource) State() (*googleFolderOrganizationPolicyState, bool)

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

func (*Resource) StateMust

func (gfop *Resource) StateMust() *googleFolderOrganizationPolicyState

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

func (*Resource) Type

func (gfop *Resource) Type() string

Type returns the Terraform object type for Resource.

type RestorePolicy

type RestorePolicy struct {
	// Default: bool, required
	Default terra.BoolValue `hcl:"default,attr" validate:"required"`
}

type RestorePolicyAttributes

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

func (RestorePolicyAttributes) Default

func (RestorePolicyAttributes) InternalRef

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

func (RestorePolicyAttributes) InternalTokens

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

func (RestorePolicyAttributes) InternalWithRef

type RestorePolicyState

type RestorePolicyState struct {
	Default bool `json:"default"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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