google_api_gateway_api_config

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 {
	// Api: string, required
	Api terra.StringValue `hcl:"api,attr" validate:"required"`
	// ApiConfigId: string, optional
	ApiConfigId terra.StringValue `hcl:"api_config_id,attr"`
	// ApiConfigIdPrefix: string, optional
	ApiConfigIdPrefix terra.StringValue `hcl:"api_config_id_prefix,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// GatewayConfig: optional
	GatewayConfig *GatewayConfig `hcl:"gateway_config,block"`
	// GrpcServices: min=0
	GrpcServices []GrpcServices `hcl:"grpc_services,block" validate:"min=0"`
	// ManagedServiceConfigs: min=0
	ManagedServiceConfigs []ManagedServiceConfigs `hcl:"managed_service_configs,block" validate:"min=0"`
	// OpenapiDocuments: min=0
	OpenapiDocuments []OpenapiDocuments `hcl:"openapi_documents,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_api_gateway_api_config.

type GatewayConfig

type GatewayConfig struct {
	// GatewayConfigBackendConfig: required
	BackendConfig *GatewayConfigBackendConfig `hcl:"backend_config,block" validate:"required"`
}

type GatewayConfigAttributes

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

func (GatewayConfigAttributes) BackendConfig

func (GatewayConfigAttributes) InternalRef

func (gc GatewayConfigAttributes) InternalRef() (terra.Reference, error)

func (GatewayConfigAttributes) InternalTokens

func (gc GatewayConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GatewayConfigAttributes) InternalWithRef

type GatewayConfigBackendConfig

type GatewayConfigBackendConfig struct {
	// GoogleServiceAccount: string, required
	GoogleServiceAccount terra.StringValue `hcl:"google_service_account,attr" validate:"required"`
}

type GatewayConfigBackendConfigAttributes

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

func (GatewayConfigBackendConfigAttributes) GoogleServiceAccount

func (bc GatewayConfigBackendConfigAttributes) GoogleServiceAccount() terra.StringValue

func (GatewayConfigBackendConfigAttributes) InternalRef

func (GatewayConfigBackendConfigAttributes) InternalTokens

func (GatewayConfigBackendConfigAttributes) InternalWithRef

type GatewayConfigBackendConfigState

type GatewayConfigBackendConfigState struct {
	GoogleServiceAccount string `json:"google_service_account"`
}

type GatewayConfigState

type GatewayConfigState struct {
	BackendConfig []GatewayConfigBackendConfigState `json:"backend_config"`
}

type GrpcServices

type GrpcServices struct {
	// GrpcServicesFileDescriptorSet: required
	FileDescriptorSet *GrpcServicesFileDescriptorSet `hcl:"file_descriptor_set,block" validate:"required"`
	// GrpcServicesSource: min=0
	Source []GrpcServicesSource `hcl:"source,block" validate:"min=0"`
}

type GrpcServicesAttributes

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

func (GrpcServicesAttributes) FileDescriptorSet

func (GrpcServicesAttributes) InternalRef

func (gs GrpcServicesAttributes) InternalRef() (terra.Reference, error)

func (GrpcServicesAttributes) InternalTokens

func (gs GrpcServicesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcServicesAttributes) InternalWithRef

func (GrpcServicesAttributes) Source

type GrpcServicesFileDescriptorSet

type GrpcServicesFileDescriptorSet struct {
	// Contents: string, required
	Contents terra.StringValue `hcl:"contents,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type GrpcServicesFileDescriptorSetAttributes

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

func (GrpcServicesFileDescriptorSetAttributes) Contents

func (GrpcServicesFileDescriptorSetAttributes) InternalRef

func (GrpcServicesFileDescriptorSetAttributes) InternalTokens

func (GrpcServicesFileDescriptorSetAttributes) InternalWithRef

func (GrpcServicesFileDescriptorSetAttributes) Path

type GrpcServicesFileDescriptorSetState

type GrpcServicesFileDescriptorSetState struct {
	Contents string `json:"contents"`
	Path     string `json:"path"`
}

type GrpcServicesSource

type GrpcServicesSource struct {
	// Contents: string, required
	Contents terra.StringValue `hcl:"contents,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type GrpcServicesSourceAttributes

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

func (GrpcServicesSourceAttributes) Contents

func (GrpcServicesSourceAttributes) InternalRef

func (GrpcServicesSourceAttributes) InternalTokens

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

func (GrpcServicesSourceAttributes) InternalWithRef

func (GrpcServicesSourceAttributes) Path

type GrpcServicesSourceState

type GrpcServicesSourceState struct {
	Contents string `json:"contents"`
	Path     string `json:"path"`
}

type GrpcServicesState

type GrpcServicesState struct {
	FileDescriptorSet []GrpcServicesFileDescriptorSetState `json:"file_descriptor_set"`
	Source            []GrpcServicesSourceState            `json:"source"`
}

type ManagedServiceConfigs

type ManagedServiceConfigs struct {
	// Contents: string, required
	Contents terra.StringValue `hcl:"contents,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type ManagedServiceConfigsAttributes

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

func (ManagedServiceConfigsAttributes) Contents

func (ManagedServiceConfigsAttributes) InternalRef

func (ManagedServiceConfigsAttributes) InternalTokens

func (msc ManagedServiceConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagedServiceConfigsAttributes) InternalWithRef

func (ManagedServiceConfigsAttributes) Path

type ManagedServiceConfigsState

type ManagedServiceConfigsState struct {
	Contents string `json:"contents"`
	Path     string `json:"path"`
}

type OpenapiDocuments

type OpenapiDocuments struct {
	// OpenapiDocumentsDocument: required
	Document *OpenapiDocumentsDocument `hcl:"document,block" validate:"required"`
}

type OpenapiDocumentsAttributes

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

func (OpenapiDocumentsAttributes) Document

func (OpenapiDocumentsAttributes) InternalRef

func (od OpenapiDocumentsAttributes) InternalRef() (terra.Reference, error)

func (OpenapiDocumentsAttributes) InternalTokens

func (od OpenapiDocumentsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OpenapiDocumentsAttributes) InternalWithRef

type OpenapiDocumentsDocument

type OpenapiDocumentsDocument struct {
	// Contents: string, required
	Contents terra.StringValue `hcl:"contents,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type OpenapiDocumentsDocumentAttributes

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

func (OpenapiDocumentsDocumentAttributes) Contents

func (OpenapiDocumentsDocumentAttributes) InternalRef

func (OpenapiDocumentsDocumentAttributes) InternalTokens

func (OpenapiDocumentsDocumentAttributes) InternalWithRef

func (OpenapiDocumentsDocumentAttributes) Path

type OpenapiDocumentsDocumentState

type OpenapiDocumentsDocumentState struct {
	Contents string `json:"contents"`
	Path     string `json:"path"`
}

type OpenapiDocumentsState

type OpenapiDocumentsState struct {
	Document []OpenapiDocumentsDocumentState `json:"document"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gagac *Resource) Attributes() googleApiGatewayApiConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gagac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gagac *Resource) State() (*googleApiGatewayApiConfigState, bool)

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

func (*Resource) StateMust

func (gagac *Resource) StateMust() *googleApiGatewayApiConfigState

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

func (*Resource) Type

func (gagac *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