model

package
v0.94.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserModel

type UserModel struct {
	Comment               tfconfig.Variable `json:"comment,omitempty"`
	DefaultNamespace      tfconfig.Variable `json:"default_namespace,omitempty"`
	DefaultRole           tfconfig.Variable `json:"default_role,omitempty"`
	DefaultSecondaryRoles tfconfig.Variable `json:"default_secondary_roles,omitempty"`
	DefaultWarehouse      tfconfig.Variable `json:"default_warehouse,omitempty"`
	Disabled              tfconfig.Variable `json:"disabled,omitempty"`
	DisplayName           tfconfig.Variable `json:"display_name,omitempty"`
	Email                 tfconfig.Variable `json:"email,omitempty"`
	FirstName             tfconfig.Variable `json:"first_name,omitempty"`
	HasRsaPublicKey       tfconfig.Variable `json:"has_rsa_public_key,omitempty"`
	LastName              tfconfig.Variable `json:"last_name,omitempty"`
	LoginName             tfconfig.Variable `json:"login_name,omitempty"`
	MustChangePassword    tfconfig.Variable `json:"must_change_password,omitempty"`
	Name                  tfconfig.Variable `json:"name,omitempty"`
	Password              tfconfig.Variable `json:"password,omitempty"`
	RsaPublicKey          tfconfig.Variable `json:"rsa_public_key,omitempty"`
	RsaPublicKey2         tfconfig.Variable `json:"rsa_public_key_2,omitempty"`

	*config.ResourceModelMeta
}

func User

func User(
	resourceName string,
	name string,
) *UserModel

func UserWithDefaultMeta

func UserWithDefaultMeta(
	name string,
) *UserModel

func (*UserModel) WithComment

func (u *UserModel) WithComment(comment string) *UserModel

func (*UserModel) WithCommentValue

func (u *UserModel) WithCommentValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDefaultNamespace

func (u *UserModel) WithDefaultNamespace(defaultNamespace string) *UserModel

func (*UserModel) WithDefaultNamespaceValue

func (u *UserModel) WithDefaultNamespaceValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDefaultRole

func (u *UserModel) WithDefaultRole(defaultRole string) *UserModel

func (*UserModel) WithDefaultRoleValue

func (u *UserModel) WithDefaultRoleValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDefaultSecondaryRolesValue

func (u *UserModel) WithDefaultSecondaryRolesValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDefaultWarehouse

func (u *UserModel) WithDefaultWarehouse(defaultWarehouse string) *UserModel

func (*UserModel) WithDefaultWarehouseValue

func (u *UserModel) WithDefaultWarehouseValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDisabled

func (u *UserModel) WithDisabled(disabled bool) *UserModel

func (*UserModel) WithDisabledValue

func (u *UserModel) WithDisabledValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithDisplayName

func (u *UserModel) WithDisplayName(displayName string) *UserModel

func (*UserModel) WithDisplayNameValue

func (u *UserModel) WithDisplayNameValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithEmail

func (u *UserModel) WithEmail(email string) *UserModel

func (*UserModel) WithEmailValue

func (u *UserModel) WithEmailValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithFirstName

func (u *UserModel) WithFirstName(firstName string) *UserModel

func (*UserModel) WithFirstNameValue

func (u *UserModel) WithFirstNameValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithHasRsaPublicKey

func (u *UserModel) WithHasRsaPublicKey(hasRsaPublicKey bool) *UserModel

func (*UserModel) WithHasRsaPublicKeyValue

func (u *UserModel) WithHasRsaPublicKeyValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithLastName

func (u *UserModel) WithLastName(lastName string) *UserModel

func (*UserModel) WithLastNameValue

func (u *UserModel) WithLastNameValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithLoginName

func (u *UserModel) WithLoginName(loginName string) *UserModel

func (*UserModel) WithLoginNameValue

func (u *UserModel) WithLoginNameValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithMustChangePassword

func (u *UserModel) WithMustChangePassword(mustChangePassword bool) *UserModel

func (*UserModel) WithMustChangePasswordValue

func (u *UserModel) WithMustChangePasswordValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithName

func (u *UserModel) WithName(name string) *UserModel

func (*UserModel) WithNameValue

func (u *UserModel) WithNameValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithPassword

func (u *UserModel) WithPassword(password string) *UserModel

func (*UserModel) WithPasswordValue

func (u *UserModel) WithPasswordValue(value tfconfig.Variable) *UserModel

func (*UserModel) WithRsaPublicKey

func (u *UserModel) WithRsaPublicKey(rsaPublicKey string) *UserModel

func (*UserModel) WithRsaPublicKey2

func (u *UserModel) WithRsaPublicKey2(rsaPublicKey2 string) *UserModel

func (*UserModel) WithRsaPublicKey2Value

func (u *UserModel) WithRsaPublicKey2Value(value tfconfig.Variable) *UserModel

func (*UserModel) WithRsaPublicKeyValue

func (u *UserModel) WithRsaPublicKeyValue(value tfconfig.Variable) *UserModel

type WarehouseModel

type WarehouseModel struct {
	AutoResume                      tfconfig.Variable `json:"auto_resume,omitempty"`
	AutoSuspend                     tfconfig.Variable `json:"auto_suspend,omitempty"`
	Comment                         tfconfig.Variable `json:"comment,omitempty"`
	EnableQueryAcceleration         tfconfig.Variable `json:"enable_query_acceleration,omitempty"`
	InitiallySuspended              tfconfig.Variable `json:"initially_suspended,omitempty"`
	MaxClusterCount                 tfconfig.Variable `json:"max_cluster_count,omitempty"`
	MaxConcurrencyLevel             tfconfig.Variable `json:"max_concurrency_level,omitempty"`
	MinClusterCount                 tfconfig.Variable `json:"min_cluster_count,omitempty"`
	Name                            tfconfig.Variable `json:"name,omitempty"`
	QueryAccelerationMaxScaleFactor tfconfig.Variable `json:"query_acceleration_max_scale_factor,omitempty"`
	ResourceMonitor                 tfconfig.Variable `json:"resource_monitor,omitempty"`
	ScalingPolicy                   tfconfig.Variable `json:"scaling_policy,omitempty"`
	StatementQueuedTimeoutInSeconds tfconfig.Variable `json:"statement_queued_timeout_in_seconds,omitempty"`
	StatementTimeoutInSeconds       tfconfig.Variable `json:"statement_timeout_in_seconds,omitempty"`
	WarehouseSize                   tfconfig.Variable `json:"warehouse_size,omitempty"`
	WarehouseType                   tfconfig.Variable `json:"warehouse_type,omitempty"`

	*config.ResourceModelMeta
}

func BasicWarehouseModel

func BasicWarehouseModel(
	name string,
	comment string,
) *WarehouseModel

func Warehouse

func Warehouse(
	resourceName string,
	name string,
) *WarehouseModel

func WarehouseWithDefaultMeta

func WarehouseWithDefaultMeta(
	name string,
) *WarehouseModel

func (*WarehouseModel) WithAutoResume

func (w *WarehouseModel) WithAutoResume(autoResume string) *WarehouseModel

func (*WarehouseModel) WithAutoResumeValue

func (w *WarehouseModel) WithAutoResumeValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithAutoSuspend

func (w *WarehouseModel) WithAutoSuspend(autoSuspend int) *WarehouseModel

func (*WarehouseModel) WithAutoSuspendValue

func (w *WarehouseModel) WithAutoSuspendValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithComment

func (w *WarehouseModel) WithComment(comment string) *WarehouseModel

func (*WarehouseModel) WithCommentValue

func (w *WarehouseModel) WithCommentValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithEnableQueryAcceleration

func (w *WarehouseModel) WithEnableQueryAcceleration(enableQueryAcceleration string) *WarehouseModel

func (*WarehouseModel) WithEnableQueryAccelerationValue

func (w *WarehouseModel) WithEnableQueryAccelerationValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithInitiallySuspended

func (w *WarehouseModel) WithInitiallySuspended(initiallySuspended bool) *WarehouseModel

func (*WarehouseModel) WithInitiallySuspendedValue

func (w *WarehouseModel) WithInitiallySuspendedValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithMaxClusterCount

func (w *WarehouseModel) WithMaxClusterCount(maxClusterCount int) *WarehouseModel

func (*WarehouseModel) WithMaxClusterCountValue

func (w *WarehouseModel) WithMaxClusterCountValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithMaxConcurrencyLevel

func (w *WarehouseModel) WithMaxConcurrencyLevel(maxConcurrencyLevel int) *WarehouseModel

func (*WarehouseModel) WithMaxConcurrencyLevelValue

func (w *WarehouseModel) WithMaxConcurrencyLevelValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithMinClusterCount

func (w *WarehouseModel) WithMinClusterCount(minClusterCount int) *WarehouseModel

func (*WarehouseModel) WithMinClusterCountValue

func (w *WarehouseModel) WithMinClusterCountValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithName

func (w *WarehouseModel) WithName(name string) *WarehouseModel

func (*WarehouseModel) WithNameValue

func (w *WarehouseModel) WithNameValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithQueryAccelerationMaxScaleFactor

func (w *WarehouseModel) WithQueryAccelerationMaxScaleFactor(queryAccelerationMaxScaleFactor int) *WarehouseModel

func (*WarehouseModel) WithQueryAccelerationMaxScaleFactorValue

func (w *WarehouseModel) WithQueryAccelerationMaxScaleFactorValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithResourceMonitor

func (w *WarehouseModel) WithResourceMonitor(resourceMonitor string) *WarehouseModel

func (*WarehouseModel) WithResourceMonitorValue

func (w *WarehouseModel) WithResourceMonitorValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithScalingPolicy

func (w *WarehouseModel) WithScalingPolicy(scalingPolicy string) *WarehouseModel

func (*WarehouseModel) WithScalingPolicyValue

func (w *WarehouseModel) WithScalingPolicyValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithStatementQueuedTimeoutInSeconds

func (w *WarehouseModel) WithStatementQueuedTimeoutInSeconds(statementQueuedTimeoutInSeconds int) *WarehouseModel

func (*WarehouseModel) WithStatementQueuedTimeoutInSecondsValue

func (w *WarehouseModel) WithStatementQueuedTimeoutInSecondsValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithStatementTimeoutInSeconds

func (w *WarehouseModel) WithStatementTimeoutInSeconds(statementTimeoutInSeconds int) *WarehouseModel

func (*WarehouseModel) WithStatementTimeoutInSecondsValue

func (w *WarehouseModel) WithStatementTimeoutInSecondsValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithWarehouseSize

func (w *WarehouseModel) WithWarehouseSize(warehouseSize string) *WarehouseModel

func (*WarehouseModel) WithWarehouseSizeEnum

func (w *WarehouseModel) WithWarehouseSizeEnum(warehouseSize sdk.WarehouseSize) *WarehouseModel

TODO [SNOW-1501905]: currently config builder are generated from the resource schema, so there is no direct connection to the source enum (like sdk.WarehouseSize) For now, we can just add extension methods manually. Later, we could provide type overrides map or even SDK object to automatically match by name.

func (*WarehouseModel) WithWarehouseSizeValue

func (w *WarehouseModel) WithWarehouseSizeValue(value tfconfig.Variable) *WarehouseModel

func (*WarehouseModel) WithWarehouseType

func (w *WarehouseModel) WithWarehouseType(warehouseType string) *WarehouseModel

func (*WarehouseModel) WithWarehouseTypeValue

func (w *WarehouseModel) WithWarehouseTypeValue(value tfconfig.Variable) *WarehouseModel

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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