google_org_policy_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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Parent: string, required
	Parent terra.StringValue `hcl:"parent,attr" validate:"required"`
	// DryRunSpec: optional
	DryRunSpec *DryRunSpec `hcl:"dry_run_spec,block"`
	// Spec: optional
	Spec *Spec `hcl:"spec,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_org_policy_policy.

type DryRunSpec

type DryRunSpec struct {
	// InheritFromParent: bool, optional
	InheritFromParent terra.BoolValue `hcl:"inherit_from_parent,attr"`
	// Reset: bool, optional
	Reset terra.BoolValue `hcl:"reset,attr"`
	// DryRunSpecRules: min=0
	Rules []DryRunSpecRules `hcl:"rules,block" validate:"min=0"`
}

type DryRunSpecAttributes

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

func (DryRunSpecAttributes) Etag

func (DryRunSpecAttributes) InheritFromParent

func (drs DryRunSpecAttributes) InheritFromParent() terra.BoolValue

func (DryRunSpecAttributes) InternalRef

func (drs DryRunSpecAttributes) InternalRef() (terra.Reference, error)

func (DryRunSpecAttributes) InternalTokens

func (drs DryRunSpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DryRunSpecAttributes) InternalWithRef

func (drs DryRunSpecAttributes) InternalWithRef(ref terra.Reference) DryRunSpecAttributes

func (DryRunSpecAttributes) Reset

func (drs DryRunSpecAttributes) Reset() terra.BoolValue

func (DryRunSpecAttributes) Rules

func (DryRunSpecAttributes) UpdateTime

func (drs DryRunSpecAttributes) UpdateTime() terra.StringValue

type DryRunSpecRules

type DryRunSpecRules struct {
	// AllowAll: string, optional
	AllowAll terra.StringValue `hcl:"allow_all,attr"`
	// DenyAll: string, optional
	DenyAll terra.StringValue `hcl:"deny_all,attr"`
	// Enforce: string, optional
	Enforce terra.StringValue `hcl:"enforce,attr"`
	// DryRunSpecRulesCondition: optional
	Condition *DryRunSpecRulesCondition `hcl:"condition,block"`
	// DryRunSpecRulesValues: optional
	Values *DryRunSpecRulesValues `hcl:"values,block"`
}

type DryRunSpecRulesAttributes

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

func (DryRunSpecRulesAttributes) AllowAll

func (DryRunSpecRulesAttributes) Condition

func (DryRunSpecRulesAttributes) DenyAll

func (DryRunSpecRulesAttributes) Enforce

func (DryRunSpecRulesAttributes) InternalRef

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

func (DryRunSpecRulesAttributes) InternalTokens

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

func (DryRunSpecRulesAttributes) InternalWithRef

func (DryRunSpecRulesAttributes) Values

type DryRunSpecRulesCondition

type DryRunSpecRulesCondition struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
}

type DryRunSpecRulesConditionAttributes

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

func (DryRunSpecRulesConditionAttributes) Description

func (DryRunSpecRulesConditionAttributes) Expression

func (DryRunSpecRulesConditionAttributes) InternalRef

func (DryRunSpecRulesConditionAttributes) InternalTokens

func (DryRunSpecRulesConditionAttributes) InternalWithRef

func (DryRunSpecRulesConditionAttributes) Location

func (DryRunSpecRulesConditionAttributes) Title

type DryRunSpecRulesConditionState

type DryRunSpecRulesConditionState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Location    string `json:"location"`
	Title       string `json:"title"`
}

type DryRunSpecRulesState

type DryRunSpecRulesState struct {
	AllowAll  string                          `json:"allow_all"`
	DenyAll   string                          `json:"deny_all"`
	Enforce   string                          `json:"enforce"`
	Condition []DryRunSpecRulesConditionState `json:"condition"`
	Values    []DryRunSpecRulesValuesState    `json:"values"`
}

type DryRunSpecRulesValues

type DryRunSpecRulesValues struct {
	// AllowedValues: list of string, optional
	AllowedValues terra.ListValue[terra.StringValue] `hcl:"allowed_values,attr"`
	// DeniedValues: list of string, optional
	DeniedValues terra.ListValue[terra.StringValue] `hcl:"denied_values,attr"`
}

type DryRunSpecRulesValuesAttributes

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

func (DryRunSpecRulesValuesAttributes) AllowedValues

func (DryRunSpecRulesValuesAttributes) DeniedValues

func (DryRunSpecRulesValuesAttributes) InternalRef

func (DryRunSpecRulesValuesAttributes) InternalTokens

func (v DryRunSpecRulesValuesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DryRunSpecRulesValuesAttributes) InternalWithRef

type DryRunSpecRulesValuesState

type DryRunSpecRulesValuesState struct {
	AllowedValues []string `json:"allowed_values"`
	DeniedValues  []string `json:"denied_values"`
}

type DryRunSpecState

type DryRunSpecState struct {
	Etag              string                 `json:"etag"`
	InheritFromParent bool                   `json:"inherit_from_parent"`
	Reset             bool                   `json:"reset"`
	UpdateTime        string                 `json:"update_time"`
	Rules             []DryRunSpecRulesState `json:"rules"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gopp *Resource) Attributes() googleOrgPolicyPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gopp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gopp *Resource) State() (*googleOrgPolicyPolicyState, bool)

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

func (*Resource) StateMust

func (gopp *Resource) StateMust() *googleOrgPolicyPolicyState

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

func (*Resource) Type

func (gopp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Spec

type Spec struct {
	// InheritFromParent: bool, optional
	InheritFromParent terra.BoolValue `hcl:"inherit_from_parent,attr"`
	// Reset: bool, optional
	Reset terra.BoolValue `hcl:"reset,attr"`
	// SpecRules: min=0
	Rules []SpecRules `hcl:"rules,block" validate:"min=0"`
}

type SpecAttributes

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

func (SpecAttributes) Etag

func (s SpecAttributes) Etag() terra.StringValue

func (SpecAttributes) InheritFromParent

func (s SpecAttributes) InheritFromParent() terra.BoolValue

func (SpecAttributes) InternalRef

func (s SpecAttributes) InternalRef() (terra.Reference, error)

func (SpecAttributes) InternalTokens

func (s SpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecAttributes) InternalWithRef

func (s SpecAttributes) InternalWithRef(ref terra.Reference) SpecAttributes

func (SpecAttributes) Reset

func (s SpecAttributes) Reset() terra.BoolValue

func (SpecAttributes) Rules

func (SpecAttributes) UpdateTime

func (s SpecAttributes) UpdateTime() terra.StringValue

type SpecRules

type SpecRules struct {
	// AllowAll: string, optional
	AllowAll terra.StringValue `hcl:"allow_all,attr"`
	// DenyAll: string, optional
	DenyAll terra.StringValue `hcl:"deny_all,attr"`
	// Enforce: string, optional
	Enforce terra.StringValue `hcl:"enforce,attr"`
	// SpecRulesCondition: optional
	Condition *SpecRulesCondition `hcl:"condition,block"`
	// SpecRulesValues: optional
	Values *SpecRulesValues `hcl:"values,block"`
}

type SpecRulesAttributes

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

func (SpecRulesAttributes) AllowAll

func (r SpecRulesAttributes) AllowAll() terra.StringValue

func (SpecRulesAttributes) Condition

func (SpecRulesAttributes) DenyAll

func (SpecRulesAttributes) Enforce

func (SpecRulesAttributes) InternalRef

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

func (SpecRulesAttributes) InternalTokens

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

func (SpecRulesAttributes) InternalWithRef

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

func (SpecRulesAttributes) Values

type SpecRulesCondition

type SpecRulesCondition struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
}

type SpecRulesConditionAttributes

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

func (SpecRulesConditionAttributes) Description

func (SpecRulesConditionAttributes) Expression

func (SpecRulesConditionAttributes) InternalRef

func (SpecRulesConditionAttributes) InternalTokens

func (c SpecRulesConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecRulesConditionAttributes) InternalWithRef

func (SpecRulesConditionAttributes) Location

func (SpecRulesConditionAttributes) Title

type SpecRulesConditionState

type SpecRulesConditionState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Location    string `json:"location"`
	Title       string `json:"title"`
}

type SpecRulesState

type SpecRulesState struct {
	AllowAll  string                    `json:"allow_all"`
	DenyAll   string                    `json:"deny_all"`
	Enforce   string                    `json:"enforce"`
	Condition []SpecRulesConditionState `json:"condition"`
	Values    []SpecRulesValuesState    `json:"values"`
}

type SpecRulesValues

type SpecRulesValues struct {
	// AllowedValues: list of string, optional
	AllowedValues terra.ListValue[terra.StringValue] `hcl:"allowed_values,attr"`
	// DeniedValues: list of string, optional
	DeniedValues terra.ListValue[terra.StringValue] `hcl:"denied_values,attr"`
}

type SpecRulesValuesAttributes

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

func (SpecRulesValuesAttributes) AllowedValues

func (SpecRulesValuesAttributes) DeniedValues

func (SpecRulesValuesAttributes) InternalRef

func (v SpecRulesValuesAttributes) InternalRef() (terra.Reference, error)

func (SpecRulesValuesAttributes) InternalTokens

func (v SpecRulesValuesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecRulesValuesAttributes) InternalWithRef

type SpecRulesValuesState

type SpecRulesValuesState struct {
	AllowedValues []string `json:"allowed_values"`
	DeniedValues  []string `json:"denied_values"`
}

type SpecState

type SpecState struct {
	Etag              string           `json:"etag"`
	InheritFromParent bool             `json:"inherit_from_parent"`
	Reset             bool             `json:"reset"`
	UpdateTime        string           `json:"update_time"`
	Rules             []SpecRulesState `json:"rules"`
}

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