azurerm_dev_test_schedule

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"`
	// LabName: string, required
	LabName terra.StringValue `hcl:"lab_name,attr" validate:"required"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TaskType: string, required
	TaskType terra.StringValue `hcl:"task_type,attr" validate:"required"`
	// TimeZoneId: string, required
	TimeZoneId terra.StringValue `hcl:"time_zone_id,attr" validate:"required"`
	// DailyRecurrence: optional
	DailyRecurrence *DailyRecurrence `hcl:"daily_recurrence,block"`
	// HourlyRecurrence: optional
	HourlyRecurrence *HourlyRecurrence `hcl:"hourly_recurrence,block"`
	// NotificationSettings: required
	NotificationSettings *NotificationSettings `hcl:"notification_settings,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// WeeklyRecurrence: optional
	WeeklyRecurrence *WeeklyRecurrence `hcl:"weekly_recurrence,block"`
}

Args contains the configurations for azurerm_dev_test_schedule.

type DailyRecurrence

type DailyRecurrence struct {
	// Time: string, required
	Time terra.StringValue `hcl:"time,attr" validate:"required"`
}

type DailyRecurrenceAttributes

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

func (DailyRecurrenceAttributes) InternalRef

func (dr DailyRecurrenceAttributes) InternalRef() (terra.Reference, error)

func (DailyRecurrenceAttributes) InternalTokens

func (dr DailyRecurrenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DailyRecurrenceAttributes) InternalWithRef

func (DailyRecurrenceAttributes) Time

type DailyRecurrenceState

type DailyRecurrenceState struct {
	Time string `json:"time"`
}

type HourlyRecurrence

type HourlyRecurrence struct {
	// Minute: number, required
	Minute terra.NumberValue `hcl:"minute,attr" validate:"required"`
}

type HourlyRecurrenceAttributes

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

func (HourlyRecurrenceAttributes) InternalRef

func (hr HourlyRecurrenceAttributes) InternalRef() (terra.Reference, error)

func (HourlyRecurrenceAttributes) InternalTokens

func (hr HourlyRecurrenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HourlyRecurrenceAttributes) InternalWithRef

func (HourlyRecurrenceAttributes) Minute

type HourlyRecurrenceState

type HourlyRecurrenceState struct {
	Minute float64 `json:"minute"`
}

type NotificationSettings

type NotificationSettings struct {
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
	// TimeInMinutes: number, optional
	TimeInMinutes terra.NumberValue `hcl:"time_in_minutes,attr"`
	// WebhookUrl: string, optional
	WebhookUrl terra.StringValue `hcl:"webhook_url,attr"`
}

type NotificationSettingsAttributes

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

func (NotificationSettingsAttributes) InternalRef

func (NotificationSettingsAttributes) InternalTokens

func (ns NotificationSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotificationSettingsAttributes) InternalWithRef

func (NotificationSettingsAttributes) Status

func (NotificationSettingsAttributes) TimeInMinutes

func (NotificationSettingsAttributes) WebhookUrl

type NotificationSettingsState

type NotificationSettingsState struct {
	Status        string  `json:"status"`
	TimeInMinutes float64 `json:"time_in_minutes"`
	WebhookUrl    string  `json:"webhook_url"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (adts *Resource) Attributes() azurermDevTestScheduleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (adts *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (adts *Resource) State() (*azurermDevTestScheduleState, bool)

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

func (*Resource) StateMust

func (adts *Resource) StateMust() *azurermDevTestScheduleState

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

func (*Resource) Type

func (adts *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"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type WeeklyRecurrence

type WeeklyRecurrence struct {
	// Time: string, required
	Time terra.StringValue `hcl:"time,attr" validate:"required"`
	// WeekDays: list of string, optional
	WeekDays terra.ListValue[terra.StringValue] `hcl:"week_days,attr"`
}

type WeeklyRecurrenceAttributes

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

func (WeeklyRecurrenceAttributes) InternalRef

func (wr WeeklyRecurrenceAttributes) InternalRef() (terra.Reference, error)

func (WeeklyRecurrenceAttributes) InternalTokens

func (wr WeeklyRecurrenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WeeklyRecurrenceAttributes) InternalWithRef

func (WeeklyRecurrenceAttributes) Time

func (WeeklyRecurrenceAttributes) WeekDays

type WeeklyRecurrenceState

type WeeklyRecurrenceState struct {
	Time     string   `json:"time"`
	WeekDays []string `json:"week_days"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL