azurerm_lab_service_lab

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"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LabPlanId: string, optional
	LabPlanId terra.StringValue `hcl:"lab_plan_id,attr"`
	// 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"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Title: string, required
	Title terra.StringValue `hcl:"title,attr" validate:"required"`
	// AutoShutdown: optional
	AutoShutdown *AutoShutdown `hcl:"auto_shutdown,block"`
	// ConnectionSetting: required
	ConnectionSetting *ConnectionSetting `hcl:"connection_setting,block" validate:"required"`
	// Network: optional
	Network *Network `hcl:"network,block"`
	// Roster: optional
	Roster *Roster `hcl:"roster,block"`
	// Security: required
	Security *Security `hcl:"security,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VirtualMachine: required
	VirtualMachine *VirtualMachine `hcl:"virtual_machine,block" validate:"required"`
}

Args contains the configurations for azurerm_lab_service_lab.

type AutoShutdown

type AutoShutdown struct {
	// DisconnectDelay: string, optional
	DisconnectDelay terra.StringValue `hcl:"disconnect_delay,attr"`
	// IdleDelay: string, optional
	IdleDelay terra.StringValue `hcl:"idle_delay,attr"`
	// NoConnectDelay: string, optional
	NoConnectDelay terra.StringValue `hcl:"no_connect_delay,attr"`
	// ShutdownOnIdle: string, optional
	ShutdownOnIdle terra.StringValue `hcl:"shutdown_on_idle,attr"`
}

type AutoShutdownAttributes

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

func (AutoShutdownAttributes) DisconnectDelay

func (as AutoShutdownAttributes) DisconnectDelay() terra.StringValue

func (AutoShutdownAttributes) IdleDelay

func (as AutoShutdownAttributes) IdleDelay() terra.StringValue

func (AutoShutdownAttributes) InternalRef

func (as AutoShutdownAttributes) InternalRef() (terra.Reference, error)

func (AutoShutdownAttributes) InternalTokens

func (as AutoShutdownAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoShutdownAttributes) InternalWithRef

func (AutoShutdownAttributes) NoConnectDelay

func (as AutoShutdownAttributes) NoConnectDelay() terra.StringValue

func (AutoShutdownAttributes) ShutdownOnIdle

func (as AutoShutdownAttributes) ShutdownOnIdle() terra.StringValue

type AutoShutdownState

type AutoShutdownState struct {
	DisconnectDelay string `json:"disconnect_delay"`
	IdleDelay       string `json:"idle_delay"`
	NoConnectDelay  string `json:"no_connect_delay"`
	ShutdownOnIdle  string `json:"shutdown_on_idle"`
}

type ConnectionSetting

type ConnectionSetting struct {
	// ClientRdpAccess: string, optional
	ClientRdpAccess terra.StringValue `hcl:"client_rdp_access,attr"`
	// ClientSshAccess: string, optional
	ClientSshAccess terra.StringValue `hcl:"client_ssh_access,attr"`
}

type ConnectionSettingAttributes

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

func (ConnectionSettingAttributes) ClientRdpAccess

func (cs ConnectionSettingAttributes) ClientRdpAccess() terra.StringValue

func (ConnectionSettingAttributes) ClientSshAccess

func (cs ConnectionSettingAttributes) ClientSshAccess() terra.StringValue

func (ConnectionSettingAttributes) InternalRef

func (cs ConnectionSettingAttributes) InternalRef() (terra.Reference, error)

func (ConnectionSettingAttributes) InternalTokens

func (cs ConnectionSettingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConnectionSettingAttributes) InternalWithRef

type ConnectionSettingState

type ConnectionSettingState struct {
	ClientRdpAccess string `json:"client_rdp_access"`
	ClientSshAccess string `json:"client_ssh_access"`
}

type Network

type Network struct {
	// SubnetId: string, optional
	SubnetId terra.StringValue `hcl:"subnet_id,attr"`
}

type NetworkAttributes

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

func (NetworkAttributes) InternalRef

func (n NetworkAttributes) InternalRef() (terra.Reference, error)

func (NetworkAttributes) InternalTokens

func (n NetworkAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkAttributes) InternalWithRef

func (n NetworkAttributes) InternalWithRef(ref terra.Reference) NetworkAttributes

func (NetworkAttributes) LoadBalancerId

func (n NetworkAttributes) LoadBalancerId() terra.StringValue

func (NetworkAttributes) PublicIpId

func (n NetworkAttributes) PublicIpId() terra.StringValue

func (NetworkAttributes) SubnetId

func (n NetworkAttributes) SubnetId() terra.StringValue

type NetworkState

type NetworkState struct {
	LoadBalancerId string `json:"load_balancer_id"`
	PublicIpId     string `json:"public_ip_id"`
	SubnetId       string `json:"subnet_id"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (alsl *Resource) Attributes() azurermLabServiceLabAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (alsl *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (alsl *Resource) State() (*azurermLabServiceLabState, bool)

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

func (*Resource) StateMust

func (alsl *Resource) StateMust() *azurermLabServiceLabState

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

func (*Resource) Type

func (alsl *Resource) Type() string

Type returns the Terraform object type for Resource.

type Roster

type Roster struct {
	// ActiveDirectoryGroupId: string, optional
	ActiveDirectoryGroupId terra.StringValue `hcl:"active_directory_group_id,attr"`
	// LmsInstance: string, optional
	LmsInstance terra.StringValue `hcl:"lms_instance,attr"`
	// LtiClientId: string, optional
	LtiClientId terra.StringValue `hcl:"lti_client_id,attr"`
	// LtiContextId: string, optional
	LtiContextId terra.StringValue `hcl:"lti_context_id,attr"`
	// LtiRosterEndpoint: string, optional
	LtiRosterEndpoint terra.StringValue `hcl:"lti_roster_endpoint,attr"`
}

type RosterAttributes

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

func (RosterAttributes) ActiveDirectoryGroupId

func (r RosterAttributes) ActiveDirectoryGroupId() terra.StringValue

func (RosterAttributes) InternalRef

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

func (RosterAttributes) InternalTokens

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

func (RosterAttributes) InternalWithRef

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

func (RosterAttributes) LmsInstance

func (r RosterAttributes) LmsInstance() terra.StringValue

func (RosterAttributes) LtiClientId

func (r RosterAttributes) LtiClientId() terra.StringValue

func (RosterAttributes) LtiContextId

func (r RosterAttributes) LtiContextId() terra.StringValue

func (RosterAttributes) LtiRosterEndpoint

func (r RosterAttributes) LtiRosterEndpoint() terra.StringValue

type RosterState

type RosterState struct {
	ActiveDirectoryGroupId string `json:"active_directory_group_id"`
	LmsInstance            string `json:"lms_instance"`
	LtiClientId            string `json:"lti_client_id"`
	LtiContextId           string `json:"lti_context_id"`
	LtiRosterEndpoint      string `json:"lti_roster_endpoint"`
}

type Security

type Security struct {
	// OpenAccessEnabled: bool, required
	OpenAccessEnabled terra.BoolValue `hcl:"open_access_enabled,attr" validate:"required"`
}

type SecurityAttributes

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

func (SecurityAttributes) InternalRef

func (s SecurityAttributes) InternalRef() (terra.Reference, error)

func (SecurityAttributes) InternalTokens

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

func (SecurityAttributes) InternalWithRef

func (s SecurityAttributes) InternalWithRef(ref terra.Reference) SecurityAttributes

func (SecurityAttributes) OpenAccessEnabled

func (s SecurityAttributes) OpenAccessEnabled() terra.BoolValue

func (SecurityAttributes) RegistrationCode

func (s SecurityAttributes) RegistrationCode() terra.StringValue

type SecurityState

type SecurityState struct {
	OpenAccessEnabled bool   `json:"open_access_enabled"`
	RegistrationCode  string `json:"registration_code"`
}

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 VirtualMachine

type VirtualMachine struct {
	// AdditionalCapabilityGpuDriversInstalled: bool, optional
	AdditionalCapabilityGpuDriversInstalled terra.BoolValue `hcl:"additional_capability_gpu_drivers_installed,attr"`
	// CreateOption: string, optional
	CreateOption terra.StringValue `hcl:"create_option,attr"`
	// SharedPasswordEnabled: bool, optional
	SharedPasswordEnabled terra.BoolValue `hcl:"shared_password_enabled,attr"`
	// UsageQuota: string, optional
	UsageQuota terra.StringValue `hcl:"usage_quota,attr"`
	// VirtualMachineAdminUser: required
	AdminUser *VirtualMachineAdminUser `hcl:"admin_user,block" validate:"required"`
	// VirtualMachineImageReference: required
	ImageReference *VirtualMachineImageReference `hcl:"image_reference,block" validate:"required"`
	// VirtualMachineNonAdminUser: optional
	NonAdminUser *VirtualMachineNonAdminUser `hcl:"non_admin_user,block"`
	// VirtualMachineSku: required
	Sku *VirtualMachineSku `hcl:"sku,block" validate:"required"`
}

type VirtualMachineAdminUser

type VirtualMachineAdminUser struct {
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type VirtualMachineAdminUserAttributes

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

func (VirtualMachineAdminUserAttributes) InternalRef

func (VirtualMachineAdminUserAttributes) InternalTokens

func (au VirtualMachineAdminUserAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VirtualMachineAdminUserAttributes) InternalWithRef

func (VirtualMachineAdminUserAttributes) Password

func (VirtualMachineAdminUserAttributes) Username

type VirtualMachineAdminUserState

type VirtualMachineAdminUserState struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type VirtualMachineAttributes

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

func (VirtualMachineAttributes) AdditionalCapabilityGpuDriversInstalled

func (vm VirtualMachineAttributes) AdditionalCapabilityGpuDriversInstalled() terra.BoolValue

func (VirtualMachineAttributes) AdminUser

func (VirtualMachineAttributes) CreateOption

func (vm VirtualMachineAttributes) CreateOption() terra.StringValue

func (VirtualMachineAttributes) ImageReference

func (VirtualMachineAttributes) InternalRef

func (vm VirtualMachineAttributes) InternalRef() (terra.Reference, error)

func (VirtualMachineAttributes) InternalTokens

func (vm VirtualMachineAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VirtualMachineAttributes) InternalWithRef

func (VirtualMachineAttributes) NonAdminUser

func (VirtualMachineAttributes) SharedPasswordEnabled

func (vm VirtualMachineAttributes) SharedPasswordEnabled() terra.BoolValue

func (VirtualMachineAttributes) Sku

func (VirtualMachineAttributes) UsageQuota

func (vm VirtualMachineAttributes) UsageQuota() terra.StringValue

type VirtualMachineImageReference

type VirtualMachineImageReference struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Offer: string, optional
	Offer terra.StringValue `hcl:"offer,attr"`
	// Publisher: string, optional
	Publisher terra.StringValue `hcl:"publisher,attr"`
	// Sku: string, optional
	Sku terra.StringValue `hcl:"sku,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type VirtualMachineImageReferenceAttributes

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

func (VirtualMachineImageReferenceAttributes) Id

func (VirtualMachineImageReferenceAttributes) InternalRef

func (VirtualMachineImageReferenceAttributes) InternalTokens

func (VirtualMachineImageReferenceAttributes) InternalWithRef

func (VirtualMachineImageReferenceAttributes) Offer

func (VirtualMachineImageReferenceAttributes) Publisher

func (VirtualMachineImageReferenceAttributes) Sku

func (VirtualMachineImageReferenceAttributes) Version

type VirtualMachineImageReferenceState

type VirtualMachineImageReferenceState struct {
	Id        string `json:"id"`
	Offer     string `json:"offer"`
	Publisher string `json:"publisher"`
	Sku       string `json:"sku"`
	Version   string `json:"version"`
}

type VirtualMachineNonAdminUser

type VirtualMachineNonAdminUser struct {
	// Password: string, required
	Password terra.StringValue `hcl:"password,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type VirtualMachineNonAdminUserAttributes

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

func (VirtualMachineNonAdminUserAttributes) InternalRef

func (VirtualMachineNonAdminUserAttributes) InternalTokens

func (VirtualMachineNonAdminUserAttributes) InternalWithRef

func (VirtualMachineNonAdminUserAttributes) Password

func (VirtualMachineNonAdminUserAttributes) Username

type VirtualMachineNonAdminUserState

type VirtualMachineNonAdminUserState struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type VirtualMachineSku

type VirtualMachineSku struct {
	// Capacity: number, required
	Capacity terra.NumberValue `hcl:"capacity,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type VirtualMachineSkuAttributes

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

func (VirtualMachineSkuAttributes) Capacity

func (VirtualMachineSkuAttributes) InternalRef

func (s VirtualMachineSkuAttributes) InternalRef() (terra.Reference, error)

func (VirtualMachineSkuAttributes) InternalTokens

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

func (VirtualMachineSkuAttributes) InternalWithRef

func (VirtualMachineSkuAttributes) Name

type VirtualMachineSkuState

type VirtualMachineSkuState struct {
	Capacity float64 `json:"capacity"`
	Name     string  `json:"name"`
}

type VirtualMachineState

type VirtualMachineState struct {
	AdditionalCapabilityGpuDriversInstalled bool                                `json:"additional_capability_gpu_drivers_installed"`
	CreateOption                            string                              `json:"create_option"`
	SharedPasswordEnabled                   bool                                `json:"shared_password_enabled"`
	UsageQuota                              string                              `json:"usage_quota"`
	AdminUser                               []VirtualMachineAdminUserState      `json:"admin_user"`
	ImageReference                          []VirtualMachineImageReferenceState `json:"image_reference"`
	NonAdminUser                            []VirtualMachineNonAdminUserState   `json:"non_admin_user"`
	Sku                                     []VirtualMachineSkuState            `json:"sku"`
}

Jump to

Keyboard shortcuts

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