google_cloud_scheduler_job

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 AppEngineHttpTarget

type AppEngineHttpTarget struct {
	// Body: string, optional
	Body terra.StringValue `hcl:"body,attr"`
	// Headers: map of string, optional
	Headers terra.MapValue[terra.StringValue] `hcl:"headers,attr"`
	// HttpMethod: string, optional
	HttpMethod terra.StringValue `hcl:"http_method,attr"`
	// RelativeUri: string, required
	RelativeUri terra.StringValue `hcl:"relative_uri,attr" validate:"required"`
	// AppEngineHttpTargetAppEngineRouting: optional
	AppEngineRouting *AppEngineHttpTargetAppEngineRouting `hcl:"app_engine_routing,block"`
}

type AppEngineHttpTargetAppEngineRouting

type AppEngineHttpTargetAppEngineRouting struct {
	// Instance: string, optional
	Instance terra.StringValue `hcl:"instance,attr"`
	// Service: string, optional
	Service terra.StringValue `hcl:"service,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type AppEngineHttpTargetAppEngineRoutingAttributes

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

func (AppEngineHttpTargetAppEngineRoutingAttributes) Instance

func (AppEngineHttpTargetAppEngineRoutingAttributes) InternalRef

func (AppEngineHttpTargetAppEngineRoutingAttributes) InternalTokens

func (AppEngineHttpTargetAppEngineRoutingAttributes) InternalWithRef

func (AppEngineHttpTargetAppEngineRoutingAttributes) Service

func (AppEngineHttpTargetAppEngineRoutingAttributes) Version

type AppEngineHttpTargetAppEngineRoutingState

type AppEngineHttpTargetAppEngineRoutingState struct {
	Instance string `json:"instance"`
	Service  string `json:"service"`
	Version  string `json:"version"`
}

type AppEngineHttpTargetAttributes

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

func (AppEngineHttpTargetAttributes) AppEngineRouting

func (AppEngineHttpTargetAttributes) Body

func (AppEngineHttpTargetAttributes) Headers

func (AppEngineHttpTargetAttributes) HttpMethod

func (AppEngineHttpTargetAttributes) InternalRef

func (aeht AppEngineHttpTargetAttributes) InternalRef() (terra.Reference, error)

func (AppEngineHttpTargetAttributes) InternalTokens

func (aeht AppEngineHttpTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AppEngineHttpTargetAttributes) InternalWithRef

func (AppEngineHttpTargetAttributes) RelativeUri

func (aeht AppEngineHttpTargetAttributes) RelativeUri() terra.StringValue

type AppEngineHttpTargetState

type AppEngineHttpTargetState struct {
	Body             string                                     `json:"body"`
	Headers          map[string]string                          `json:"headers"`
	HttpMethod       string                                     `json:"http_method"`
	RelativeUri      string                                     `json:"relative_uri"`
	AppEngineRouting []AppEngineHttpTargetAppEngineRoutingState `json:"app_engine_routing"`
}

type Args

type Args struct {
	// AttemptDeadline: string, optional
	AttemptDeadline terra.StringValue `hcl:"attempt_deadline,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Paused: bool, optional
	Paused terra.BoolValue `hcl:"paused,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// Schedule: string, optional
	Schedule terra.StringValue `hcl:"schedule,attr"`
	// TimeZone: string, optional
	TimeZone terra.StringValue `hcl:"time_zone,attr"`
	// AppEngineHttpTarget: optional
	AppEngineHttpTarget *AppEngineHttpTarget `hcl:"app_engine_http_target,block"`
	// HttpTarget: optional
	HttpTarget *HttpTarget `hcl:"http_target,block"`
	// PubsubTarget: optional
	PubsubTarget *PubsubTarget `hcl:"pubsub_target,block"`
	// RetryConfig: optional
	RetryConfig *RetryConfig `hcl:"retry_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_cloud_scheduler_job.

type HttpTarget

type HttpTarget struct {
	// Body: string, optional
	Body terra.StringValue `hcl:"body,attr"`
	// Headers: map of string, optional
	Headers terra.MapValue[terra.StringValue] `hcl:"headers,attr"`
	// HttpMethod: string, optional
	HttpMethod terra.StringValue `hcl:"http_method,attr"`
	// Uri: string, required
	Uri terra.StringValue `hcl:"uri,attr" validate:"required"`
	// HttpTargetOauthToken: optional
	OauthToken *HttpTargetOauthToken `hcl:"oauth_token,block"`
	// HttpTargetOidcToken: optional
	OidcToken *HttpTargetOidcToken `hcl:"oidc_token,block"`
}

type HttpTargetAttributes

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

func (HttpTargetAttributes) Body

func (HttpTargetAttributes) Headers

func (HttpTargetAttributes) HttpMethod

func (ht HttpTargetAttributes) HttpMethod() terra.StringValue

func (HttpTargetAttributes) InternalRef

func (ht HttpTargetAttributes) InternalRef() (terra.Reference, error)

func (HttpTargetAttributes) InternalTokens

func (ht HttpTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpTargetAttributes) InternalWithRef

func (ht HttpTargetAttributes) InternalWithRef(ref terra.Reference) HttpTargetAttributes

func (HttpTargetAttributes) OauthToken

func (HttpTargetAttributes) OidcToken

func (HttpTargetAttributes) Uri

type HttpTargetOauthToken

type HttpTargetOauthToken struct {
	// Scope: string, optional
	Scope terra.StringValue `hcl:"scope,attr"`
	// ServiceAccountEmail: string, required
	ServiceAccountEmail terra.StringValue `hcl:"service_account_email,attr" validate:"required"`
}

type HttpTargetOauthTokenAttributes

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

func (HttpTargetOauthTokenAttributes) InternalRef

func (HttpTargetOauthTokenAttributes) InternalTokens

func (ot HttpTargetOauthTokenAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpTargetOauthTokenAttributes) InternalWithRef

func (HttpTargetOauthTokenAttributes) Scope

func (HttpTargetOauthTokenAttributes) ServiceAccountEmail

func (ot HttpTargetOauthTokenAttributes) ServiceAccountEmail() terra.StringValue

type HttpTargetOauthTokenState

type HttpTargetOauthTokenState struct {
	Scope               string `json:"scope"`
	ServiceAccountEmail string `json:"service_account_email"`
}

type HttpTargetOidcToken

type HttpTargetOidcToken struct {
	// Audience: string, optional
	Audience terra.StringValue `hcl:"audience,attr"`
	// ServiceAccountEmail: string, required
	ServiceAccountEmail terra.StringValue `hcl:"service_account_email,attr" validate:"required"`
}

type HttpTargetOidcTokenAttributes

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

func (HttpTargetOidcTokenAttributes) Audience

func (HttpTargetOidcTokenAttributes) InternalRef

func (ot HttpTargetOidcTokenAttributes) InternalRef() (terra.Reference, error)

func (HttpTargetOidcTokenAttributes) InternalTokens

func (ot HttpTargetOidcTokenAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpTargetOidcTokenAttributes) InternalWithRef

func (HttpTargetOidcTokenAttributes) ServiceAccountEmail

func (ot HttpTargetOidcTokenAttributes) ServiceAccountEmail() terra.StringValue

type HttpTargetOidcTokenState

type HttpTargetOidcTokenState struct {
	Audience            string `json:"audience"`
	ServiceAccountEmail string `json:"service_account_email"`
}

type HttpTargetState

type HttpTargetState struct {
	Body       string                      `json:"body"`
	Headers    map[string]string           `json:"headers"`
	HttpMethod string                      `json:"http_method"`
	Uri        string                      `json:"uri"`
	OauthToken []HttpTargetOauthTokenState `json:"oauth_token"`
	OidcToken  []HttpTargetOidcTokenState  `json:"oidc_token"`
}

type PubsubTarget

type PubsubTarget struct {
	// Attributes: map of string, optional
	Attributes terra.MapValue[terra.StringValue] `hcl:"attributes,attr"`
	// Data: string, optional
	Data terra.StringValue `hcl:"data,attr"`
	// TopicName: string, required
	TopicName terra.StringValue `hcl:"topic_name,attr" validate:"required"`
}

type PubsubTargetAttributes

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

func (PubsubTargetAttributes) Attributes

func (PubsubTargetAttributes) Data

func (PubsubTargetAttributes) InternalRef

func (pt PubsubTargetAttributes) InternalRef() (terra.Reference, error)

func (PubsubTargetAttributes) InternalTokens

func (pt PubsubTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PubsubTargetAttributes) InternalWithRef

func (PubsubTargetAttributes) TopicName

func (pt PubsubTargetAttributes) TopicName() terra.StringValue

type PubsubTargetState

type PubsubTargetState struct {
	Attributes map[string]string `json:"attributes"`
	Data       string            `json:"data"`
	TopicName  string            `json:"topic_name"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcsj *Resource) Attributes() googleCloudSchedulerJobAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcsj *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcsj *Resource) State() (*googleCloudSchedulerJobState, bool)

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

func (*Resource) StateMust

func (gcsj *Resource) StateMust() *googleCloudSchedulerJobState

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

func (*Resource) Type

func (gcsj *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetryConfig

type RetryConfig struct {
	// MaxBackoffDuration: string, optional
	MaxBackoffDuration terra.StringValue `hcl:"max_backoff_duration,attr"`
	// MaxDoublings: number, optional
	MaxDoublings terra.NumberValue `hcl:"max_doublings,attr"`
	// MaxRetryDuration: string, optional
	MaxRetryDuration terra.StringValue `hcl:"max_retry_duration,attr"`
	// MinBackoffDuration: string, optional
	MinBackoffDuration terra.StringValue `hcl:"min_backoff_duration,attr"`
	// RetryCount: number, optional
	RetryCount terra.NumberValue `hcl:"retry_count,attr"`
}

type RetryConfigAttributes

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

func (RetryConfigAttributes) InternalRef

func (rc RetryConfigAttributes) InternalRef() (terra.Reference, error)

func (RetryConfigAttributes) InternalTokens

func (rc RetryConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetryConfigAttributes) InternalWithRef

func (RetryConfigAttributes) MaxBackoffDuration

func (rc RetryConfigAttributes) MaxBackoffDuration() terra.StringValue

func (RetryConfigAttributes) MaxDoublings

func (rc RetryConfigAttributes) MaxDoublings() terra.NumberValue

func (RetryConfigAttributes) MaxRetryDuration

func (rc RetryConfigAttributes) MaxRetryDuration() terra.StringValue

func (RetryConfigAttributes) MinBackoffDuration

func (rc RetryConfigAttributes) MinBackoffDuration() terra.StringValue

func (RetryConfigAttributes) RetryCount

func (rc RetryConfigAttributes) RetryCount() terra.NumberValue

type RetryConfigState

type RetryConfigState struct {
	MaxBackoffDuration string  `json:"max_backoff_duration"`
	MaxDoublings       float64 `json:"max_doublings"`
	MaxRetryDuration   string  `json:"max_retry_duration"`
	MinBackoffDuration string  `json:"min_backoff_duration"`
	RetryCount         float64 `json:"retry_count"`
}

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