google_network_services_grpc_route

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"`
	// Gateways: list of string, optional
	Gateways terra.ListValue[terra.StringValue] `hcl:"gateways,attr"`
	// Hostnames: list of string, required
	Hostnames terra.ListValue[terra.StringValue] `hcl:"hostnames,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Meshes: list of string, optional
	Meshes terra.ListValue[terra.StringValue] `hcl:"meshes,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Rules: min=1
	Rules []Rules `hcl:"rules,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_network_services_grpc_route.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gnsgr *Resource) Attributes() googleNetworkServicesGrpcRouteAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gnsgr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gnsgr *Resource) State() (*googleNetworkServicesGrpcRouteState, bool)

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

func (*Resource) StateMust

func (gnsgr *Resource) StateMust() *googleNetworkServicesGrpcRouteState

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

func (*Resource) Type

func (gnsgr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rules

type Rules struct {
	// RulesAction: optional
	Action *RulesAction `hcl:"action,block"`
	// RulesMatches: min=0
	Matches []RulesMatches `hcl:"matches,block" validate:"min=0"`
}

type RulesAction

type RulesAction struct {
	// Timeout: string, optional
	Timeout terra.StringValue `hcl:"timeout,attr"`
	// RulesActionDestinations: min=0
	Destinations []RulesActionDestinations `hcl:"destinations,block" validate:"min=0"`
	// RulesActionFaultInjectionPolicy: optional
	FaultInjectionPolicy *RulesActionFaultInjectionPolicy `hcl:"fault_injection_policy,block"`
	// RulesActionRetryPolicy: optional
	RetryPolicy *RulesActionRetryPolicy `hcl:"retry_policy,block"`
}

type RulesActionAttributes

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

func (RulesActionAttributes) Destinations

func (RulesActionAttributes) FaultInjectionPolicy

func (RulesActionAttributes) InternalRef

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

func (RulesActionAttributes) InternalTokens

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

func (RulesActionAttributes) InternalWithRef

func (RulesActionAttributes) RetryPolicy

func (RulesActionAttributes) Timeout

type RulesActionDestinations

type RulesActionDestinations struct {
	// ServiceName: string, optional
	ServiceName terra.StringValue `hcl:"service_name,attr"`
	// Weight: number, optional
	Weight terra.NumberValue `hcl:"weight,attr"`
}

type RulesActionDestinationsAttributes

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

func (RulesActionDestinationsAttributes) InternalRef

func (RulesActionDestinationsAttributes) InternalTokens

func (RulesActionDestinationsAttributes) InternalWithRef

func (RulesActionDestinationsAttributes) ServiceName

func (RulesActionDestinationsAttributes) Weight

type RulesActionDestinationsState

type RulesActionDestinationsState struct {
	ServiceName string  `json:"service_name"`
	Weight      float64 `json:"weight"`
}

type RulesActionFaultInjectionPolicy

type RulesActionFaultInjectionPolicy struct {
	// RulesActionFaultInjectionPolicyAbort: optional
	Abort *RulesActionFaultInjectionPolicyAbort `hcl:"abort,block"`
	// RulesActionFaultInjectionPolicyDelay: optional
	Delay *RulesActionFaultInjectionPolicyDelay `hcl:"delay,block"`
}

type RulesActionFaultInjectionPolicyAbort

type RulesActionFaultInjectionPolicyAbort struct {
	// HttpStatus: number, optional
	HttpStatus terra.NumberValue `hcl:"http_status,attr"`
	// Percentage: number, optional
	Percentage terra.NumberValue `hcl:"percentage,attr"`
}

type RulesActionFaultInjectionPolicyAbortAttributes

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

func (RulesActionFaultInjectionPolicyAbortAttributes) HttpStatus

func (RulesActionFaultInjectionPolicyAbortAttributes) InternalRef

func (RulesActionFaultInjectionPolicyAbortAttributes) InternalTokens

func (RulesActionFaultInjectionPolicyAbortAttributes) InternalWithRef

func (RulesActionFaultInjectionPolicyAbortAttributes) Percentage

type RulesActionFaultInjectionPolicyAbortState

type RulesActionFaultInjectionPolicyAbortState struct {
	HttpStatus float64 `json:"http_status"`
	Percentage float64 `json:"percentage"`
}

type RulesActionFaultInjectionPolicyAttributes

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

func (RulesActionFaultInjectionPolicyAttributes) Abort

func (RulesActionFaultInjectionPolicyAttributes) Delay

func (RulesActionFaultInjectionPolicyAttributes) InternalRef

func (RulesActionFaultInjectionPolicyAttributes) InternalTokens

func (RulesActionFaultInjectionPolicyAttributes) InternalWithRef

type RulesActionFaultInjectionPolicyDelay

type RulesActionFaultInjectionPolicyDelay struct {
	// FixedDelay: string, optional
	FixedDelay terra.StringValue `hcl:"fixed_delay,attr"`
	// Percentage: number, optional
	Percentage terra.NumberValue `hcl:"percentage,attr"`
}

type RulesActionFaultInjectionPolicyDelayAttributes

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

func (RulesActionFaultInjectionPolicyDelayAttributes) FixedDelay

func (RulesActionFaultInjectionPolicyDelayAttributes) InternalRef

func (RulesActionFaultInjectionPolicyDelayAttributes) InternalTokens

func (RulesActionFaultInjectionPolicyDelayAttributes) InternalWithRef

func (RulesActionFaultInjectionPolicyDelayAttributes) Percentage

type RulesActionFaultInjectionPolicyDelayState

type RulesActionFaultInjectionPolicyDelayState struct {
	FixedDelay string  `json:"fixed_delay"`
	Percentage float64 `json:"percentage"`
}

type RulesActionFaultInjectionPolicyState

type RulesActionFaultInjectionPolicyState struct {
	Abort []RulesActionFaultInjectionPolicyAbortState `json:"abort"`
	Delay []RulesActionFaultInjectionPolicyDelayState `json:"delay"`
}

type RulesActionRetryPolicy

type RulesActionRetryPolicy struct {
	// NumRetries: number, optional
	NumRetries terra.NumberValue `hcl:"num_retries,attr"`
	// RetryConditions: list of string, optional
	RetryConditions terra.ListValue[terra.StringValue] `hcl:"retry_conditions,attr"`
}

type RulesActionRetryPolicyAttributes

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

func (RulesActionRetryPolicyAttributes) InternalRef

func (RulesActionRetryPolicyAttributes) InternalTokens

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

func (RulesActionRetryPolicyAttributes) InternalWithRef

func (RulesActionRetryPolicyAttributes) NumRetries

func (RulesActionRetryPolicyAttributes) RetryConditions

type RulesActionRetryPolicyState

type RulesActionRetryPolicyState struct {
	NumRetries      float64  `json:"num_retries"`
	RetryConditions []string `json:"retry_conditions"`
}

type RulesActionState

type RulesActionState struct {
	Timeout              string                                 `json:"timeout"`
	Destinations         []RulesActionDestinationsState         `json:"destinations"`
	FaultInjectionPolicy []RulesActionFaultInjectionPolicyState `json:"fault_injection_policy"`
	RetryPolicy          []RulesActionRetryPolicyState          `json:"retry_policy"`
}

type RulesAttributes

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

func (RulesAttributes) Action

func (RulesAttributes) InternalRef

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

func (RulesAttributes) InternalTokens

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

func (RulesAttributes) InternalWithRef

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

func (RulesAttributes) Matches

type RulesMatches

type RulesMatches struct {
	// RulesMatchesHeaders: min=0
	Headers []RulesMatchesHeaders `hcl:"headers,block" validate:"min=0"`
	// RulesMatchesMethod: optional
	Method *RulesMatchesMethod `hcl:"method,block"`
}

type RulesMatchesAttributes

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

func (RulesMatchesAttributes) Headers

func (RulesMatchesAttributes) InternalRef

func (m RulesMatchesAttributes) InternalRef() (terra.Reference, error)

func (RulesMatchesAttributes) InternalTokens

func (m RulesMatchesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesMatchesAttributes) InternalWithRef

func (RulesMatchesAttributes) Method

type RulesMatchesHeaders

type RulesMatchesHeaders struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type RulesMatchesHeadersAttributes

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

func (RulesMatchesHeadersAttributes) InternalRef

func (RulesMatchesHeadersAttributes) InternalTokens

func (h RulesMatchesHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesMatchesHeadersAttributes) InternalWithRef

func (RulesMatchesHeadersAttributes) Key

func (RulesMatchesHeadersAttributes) Type

func (RulesMatchesHeadersAttributes) Value

type RulesMatchesHeadersState

type RulesMatchesHeadersState struct {
	Key   string `json:"key"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type RulesMatchesMethod

type RulesMatchesMethod struct {
	// CaseSensitive: bool, optional
	CaseSensitive terra.BoolValue `hcl:"case_sensitive,attr"`
	// GrpcMethod: string, required
	GrpcMethod terra.StringValue `hcl:"grpc_method,attr" validate:"required"`
	// GrpcService: string, required
	GrpcService terra.StringValue `hcl:"grpc_service,attr" validate:"required"`
}

type RulesMatchesMethodAttributes

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

func (RulesMatchesMethodAttributes) CaseSensitive

func (m RulesMatchesMethodAttributes) CaseSensitive() terra.BoolValue

func (RulesMatchesMethodAttributes) GrpcMethod

func (RulesMatchesMethodAttributes) GrpcService

func (RulesMatchesMethodAttributes) InternalRef

func (RulesMatchesMethodAttributes) InternalTokens

func (m RulesMatchesMethodAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesMatchesMethodAttributes) InternalWithRef

type RulesMatchesMethodState

type RulesMatchesMethodState struct {
	CaseSensitive bool   `json:"case_sensitive"`
	GrpcMethod    string `json:"grpc_method"`
	GrpcService   string `json:"grpc_service"`
}

type RulesMatchesState

type RulesMatchesState struct {
	Headers []RulesMatchesHeadersState `json:"headers"`
	Method  []RulesMatchesMethodState  `json:"method"`
}

type RulesState

type RulesState struct {
	Action  []RulesActionState  `json:"action"`
	Matches []RulesMatchesState `json:"matches"`
}

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