google_cloudbuildv2_connection

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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// Disabled: bool, optional
	Disabled terra.BoolValue `hcl:"disabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,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"`
	// GithubConfig: optional
	GithubConfig *GithubConfig `hcl:"github_config,block"`
	// GithubEnterpriseConfig: optional
	GithubEnterpriseConfig *GithubEnterpriseConfig `hcl:"github_enterprise_config,block"`
	// GitlabConfig: optional
	GitlabConfig *GitlabConfig `hcl:"gitlab_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_cloudbuildv2_connection.

type GithubConfig

type GithubConfig struct {
	// AppInstallationId: number, optional
	AppInstallationId terra.NumberValue `hcl:"app_installation_id,attr"`
	// GithubConfigAuthorizerCredential: optional
	AuthorizerCredential *GithubConfigAuthorizerCredential `hcl:"authorizer_credential,block"`
}

type GithubConfigAttributes

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

func (GithubConfigAttributes) AppInstallationId

func (gc GithubConfigAttributes) AppInstallationId() terra.NumberValue

func (GithubConfigAttributes) AuthorizerCredential

func (GithubConfigAttributes) InternalRef

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

func (GithubConfigAttributes) InternalTokens

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

func (GithubConfigAttributes) InternalWithRef

type GithubConfigAuthorizerCredential

type GithubConfigAuthorizerCredential struct {
	// OauthTokenSecretVersion: string, optional
	OauthTokenSecretVersion terra.StringValue `hcl:"oauth_token_secret_version,attr"`
}

type GithubConfigAuthorizerCredentialAttributes

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

func (GithubConfigAuthorizerCredentialAttributes) InternalRef

func (GithubConfigAuthorizerCredentialAttributes) InternalTokens

func (GithubConfigAuthorizerCredentialAttributes) InternalWithRef

func (GithubConfigAuthorizerCredentialAttributes) OauthTokenSecretVersion

func (ac GithubConfigAuthorizerCredentialAttributes) OauthTokenSecretVersion() terra.StringValue

func (GithubConfigAuthorizerCredentialAttributes) Username

type GithubConfigAuthorizerCredentialState

type GithubConfigAuthorizerCredentialState struct {
	OauthTokenSecretVersion string `json:"oauth_token_secret_version"`
	Username                string `json:"username"`
}

type GithubConfigState

type GithubConfigState struct {
	AppInstallationId    float64                                 `json:"app_installation_id"`
	AuthorizerCredential []GithubConfigAuthorizerCredentialState `json:"authorizer_credential"`
}

type GithubEnterpriseConfig

type GithubEnterpriseConfig struct {
	// AppId: number, optional
	AppId terra.NumberValue `hcl:"app_id,attr"`
	// AppInstallationId: number, optional
	AppInstallationId terra.NumberValue `hcl:"app_installation_id,attr"`
	// AppSlug: string, optional
	AppSlug terra.StringValue `hcl:"app_slug,attr"`
	// HostUri: string, required
	HostUri terra.StringValue `hcl:"host_uri,attr" validate:"required"`
	// PrivateKeySecretVersion: string, optional
	PrivateKeySecretVersion terra.StringValue `hcl:"private_key_secret_version,attr"`
	// SslCa: string, optional
	SslCa terra.StringValue `hcl:"ssl_ca,attr"`
	// WebhookSecretSecretVersion: string, optional
	WebhookSecretSecretVersion terra.StringValue `hcl:"webhook_secret_secret_version,attr"`
	// GithubEnterpriseConfigServiceDirectoryConfig: optional
	ServiceDirectoryConfig *GithubEnterpriseConfigServiceDirectoryConfig `hcl:"service_directory_config,block"`
}

type GithubEnterpriseConfigAttributes

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

func (GithubEnterpriseConfigAttributes) AppId

func (GithubEnterpriseConfigAttributes) AppInstallationId

func (gec GithubEnterpriseConfigAttributes) AppInstallationId() terra.NumberValue

func (GithubEnterpriseConfigAttributes) AppSlug

func (GithubEnterpriseConfigAttributes) HostUri

func (GithubEnterpriseConfigAttributes) InternalRef

func (GithubEnterpriseConfigAttributes) InternalTokens

func (gec GithubEnterpriseConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GithubEnterpriseConfigAttributes) InternalWithRef

func (GithubEnterpriseConfigAttributes) PrivateKeySecretVersion

func (gec GithubEnterpriseConfigAttributes) PrivateKeySecretVersion() terra.StringValue

func (GithubEnterpriseConfigAttributes) ServiceDirectoryConfig

func (GithubEnterpriseConfigAttributes) SslCa

func (GithubEnterpriseConfigAttributes) WebhookSecretSecretVersion

func (gec GithubEnterpriseConfigAttributes) WebhookSecretSecretVersion() terra.StringValue

type GithubEnterpriseConfigServiceDirectoryConfig

type GithubEnterpriseConfigServiceDirectoryConfig struct {
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type GithubEnterpriseConfigServiceDirectoryConfigAttributes

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

func (GithubEnterpriseConfigServiceDirectoryConfigAttributes) InternalRef

func (GithubEnterpriseConfigServiceDirectoryConfigAttributes) InternalTokens

func (GithubEnterpriseConfigServiceDirectoryConfigAttributes) InternalWithRef

func (GithubEnterpriseConfigServiceDirectoryConfigAttributes) Service

type GithubEnterpriseConfigServiceDirectoryConfigState

type GithubEnterpriseConfigServiceDirectoryConfigState struct {
	Service string `json:"service"`
}

type GithubEnterpriseConfigState

type GithubEnterpriseConfigState struct {
	AppId                      float64                                             `json:"app_id"`
	AppInstallationId          float64                                             `json:"app_installation_id"`
	AppSlug                    string                                              `json:"app_slug"`
	HostUri                    string                                              `json:"host_uri"`
	PrivateKeySecretVersion    string                                              `json:"private_key_secret_version"`
	SslCa                      string                                              `json:"ssl_ca"`
	WebhookSecretSecretVersion string                                              `json:"webhook_secret_secret_version"`
	ServiceDirectoryConfig     []GithubEnterpriseConfigServiceDirectoryConfigState `json:"service_directory_config"`
}

type GitlabConfig

type GitlabConfig struct {
	// HostUri: string, optional
	HostUri terra.StringValue `hcl:"host_uri,attr"`
	// SslCa: string, optional
	SslCa terra.StringValue `hcl:"ssl_ca,attr"`
	// WebhookSecretSecretVersion: string, required
	WebhookSecretSecretVersion terra.StringValue `hcl:"webhook_secret_secret_version,attr" validate:"required"`
	// GitlabConfigAuthorizerCredential: required
	AuthorizerCredential *GitlabConfigAuthorizerCredential `hcl:"authorizer_credential,block" validate:"required"`
	// GitlabConfigReadAuthorizerCredential: required
	ReadAuthorizerCredential *GitlabConfigReadAuthorizerCredential `hcl:"read_authorizer_credential,block" validate:"required"`
	// GitlabConfigServiceDirectoryConfig: optional
	ServiceDirectoryConfig *GitlabConfigServiceDirectoryConfig `hcl:"service_directory_config,block"`
}

type GitlabConfigAttributes

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

func (GitlabConfigAttributes) AuthorizerCredential

func (GitlabConfigAttributes) HostUri

func (GitlabConfigAttributes) InternalRef

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

func (GitlabConfigAttributes) InternalTokens

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

func (GitlabConfigAttributes) InternalWithRef

func (GitlabConfigAttributes) ReadAuthorizerCredential

func (GitlabConfigAttributes) ServerVersion

func (gc GitlabConfigAttributes) ServerVersion() terra.StringValue

func (GitlabConfigAttributes) ServiceDirectoryConfig

func (GitlabConfigAttributes) SslCa

func (GitlabConfigAttributes) WebhookSecretSecretVersion

func (gc GitlabConfigAttributes) WebhookSecretSecretVersion() terra.StringValue

type GitlabConfigAuthorizerCredential

type GitlabConfigAuthorizerCredential struct {
	// UserTokenSecretVersion: string, required
	UserTokenSecretVersion terra.StringValue `hcl:"user_token_secret_version,attr" validate:"required"`
}

type GitlabConfigAuthorizerCredentialAttributes

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

func (GitlabConfigAuthorizerCredentialAttributes) InternalRef

func (GitlabConfigAuthorizerCredentialAttributes) InternalTokens

func (GitlabConfigAuthorizerCredentialAttributes) InternalWithRef

func (GitlabConfigAuthorizerCredentialAttributes) UserTokenSecretVersion

func (ac GitlabConfigAuthorizerCredentialAttributes) UserTokenSecretVersion() terra.StringValue

func (GitlabConfigAuthorizerCredentialAttributes) Username

type GitlabConfigAuthorizerCredentialState

type GitlabConfigAuthorizerCredentialState struct {
	UserTokenSecretVersion string `json:"user_token_secret_version"`
	Username               string `json:"username"`
}

type GitlabConfigReadAuthorizerCredential

type GitlabConfigReadAuthorizerCredential struct {
	// UserTokenSecretVersion: string, required
	UserTokenSecretVersion terra.StringValue `hcl:"user_token_secret_version,attr" validate:"required"`
}

type GitlabConfigReadAuthorizerCredentialAttributes

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

func (GitlabConfigReadAuthorizerCredentialAttributes) InternalRef

func (GitlabConfigReadAuthorizerCredentialAttributes) InternalTokens

func (GitlabConfigReadAuthorizerCredentialAttributes) InternalWithRef

func (GitlabConfigReadAuthorizerCredentialAttributes) UserTokenSecretVersion

func (GitlabConfigReadAuthorizerCredentialAttributes) Username

type GitlabConfigReadAuthorizerCredentialState

type GitlabConfigReadAuthorizerCredentialState struct {
	UserTokenSecretVersion string `json:"user_token_secret_version"`
	Username               string `json:"username"`
}

type GitlabConfigServiceDirectoryConfig

type GitlabConfigServiceDirectoryConfig struct {
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type GitlabConfigServiceDirectoryConfigAttributes

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

func (GitlabConfigServiceDirectoryConfigAttributes) InternalRef

func (GitlabConfigServiceDirectoryConfigAttributes) InternalTokens

func (GitlabConfigServiceDirectoryConfigAttributes) InternalWithRef

func (GitlabConfigServiceDirectoryConfigAttributes) Service

type GitlabConfigServiceDirectoryConfigState

type GitlabConfigServiceDirectoryConfigState struct {
	Service string `json:"service"`
}

type GitlabConfigState

type GitlabConfigState struct {
	HostUri                    string                                      `json:"host_uri"`
	ServerVersion              string                                      `json:"server_version"`
	SslCa                      string                                      `json:"ssl_ca"`
	WebhookSecretSecretVersion string                                      `json:"webhook_secret_secret_version"`
	AuthorizerCredential       []GitlabConfigAuthorizerCredentialState     `json:"authorizer_credential"`
	ReadAuthorizerCredential   []GitlabConfigReadAuthorizerCredentialState `json:"read_authorizer_credential"`
	ServiceDirectoryConfig     []GitlabConfigServiceDirectoryConfigState   `json:"service_directory_config"`
}

type InstallationStateAttributes

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

func (InstallationStateAttributes) ActionUri

func (InstallationStateAttributes) InternalRef

func (is InstallationStateAttributes) InternalRef() (terra.Reference, error)

func (InstallationStateAttributes) InternalTokens

func (is InstallationStateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstallationStateAttributes) InternalWithRef

func (InstallationStateAttributes) Message

func (InstallationStateAttributes) Stage

type InstallationStateState

type InstallationStateState struct {
	ActionUri string `json:"action_uri"`
	Message   string `json:"message"`
	Stage     string `json:"stage"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcc *Resource) Attributes() googleCloudbuildv2ConnectionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcc *Resource) State() (*googleCloudbuildv2ConnectionState, bool)

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

func (*Resource) StateMust

func (gcc *Resource) StateMust() *googleCloudbuildv2ConnectionState

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

func (*Resource) Type

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