datasources

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountDataSource

func NewAccountDataSource() datasource.DataSource

NewAccountDataSource returns a new AccountDataSource.

func NewAccountMemberDataSource

func NewAccountMemberDataSource() datasource.DataSource

NewAccountMemberDataSource returns a new AccountMemberDataSource.

func NewAccountMembersDataSource

func NewAccountMembersDataSource() datasource.DataSource

NewAccountMemberDataSource returns a new AccountMemberDataSource.

func NewAccountRoleDataSource

func NewAccountRoleDataSource() datasource.DataSource

NewWorkspaceRoleDataSource returns a new WorkspaceRoleDataSource.

func NewServiceAccountDataSource

func NewServiceAccountDataSource() datasource.DataSource

NewServiceAccountDataSource returns a new ServiceAccountDataSource.

func NewTeamDataSource

func NewTeamDataSource() datasource.DataSource

NewTeamDataSource returns a new TeamDataSource.

func NewTeamsDataSource

func NewTeamsDataSource() datasource.DataSource

NewTeamsDataSource returns a new TeamsDataSource.

func NewVariableDataSource

func NewVariableDataSource() datasource.DataSource

NewVariableDataSource returns a new VariableDataSource.

func NewWorkPoolDataSource

func NewWorkPoolDataSource() datasource.DataSource

NewWorkPoolDataSource returns a new WorkPoolDataSource.

func NewWorkPoolsDataSource

func NewWorkPoolsDataSource() datasource.DataSource

NewWorkPoolsDataSource returns a new WorkPoolsDataSource.

func NewWorkerMetadataDataSource

func NewWorkerMetadataDataSource() datasource.DataSource

NewWorkerMetadataDataSource returns a new WorkerMetadataDataSource.

func NewWorkspaceDataSource

func NewWorkspaceDataSource() datasource.DataSource

NewWorkspaceDataSource returns a new WorkspaceDataSource.

func NewWorkspaceRoleDataSource

func NewWorkspaceRoleDataSource() datasource.DataSource

NewWorkspaceRoleDataSource returns a new WorkspaceRoleDataSource.

Types

type AccountDataSource

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

AccountDataSource contains state for the data source.

func (*AccountDataSource) Configure

Configure initializes runtime state for the data source.

func (*AccountDataSource) Metadata

Metadata returns the data source type name.

func (*AccountDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*AccountDataSource) Schema

Schema defines the schema for the data source.

type AccountDataSourceModel

type AccountDataSourceModel struct {
	ID      customtypes.UUIDValue      `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name                  types.String `tfsdk:"name"`
	Handle                types.String `tfsdk:"handle"`
	Location              types.String `tfsdk:"location"`
	Link                  types.String `tfsdk:"link"`
	AllowPublicWorkspaces types.Bool   `tfsdk:"allow_public_workspaces"`
	BillingEmail          types.String `tfsdk:"billing_email"`
}

AccountDataSourceModel defines the Terraform data source model.

type AccountMemberDataSource

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

func (*AccountMemberDataSource) Configure

Configure adds the provider-configured client to the data source.

func (*AccountMemberDataSource) Metadata

Metadata returns the data source type name.

func (*AccountMemberDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*AccountMemberDataSource) Schema

Schema defines the schema for the data source.

type AccountMemberDataSourceModel

type AccountMemberDataSourceModel struct {
	ID              customtypes.UUIDValue `tfsdk:"id"`
	ActorID         customtypes.UUIDValue `tfsdk:"actor_id"`
	UserID          customtypes.UUIDValue `tfsdk:"user_id"`
	FirstName       types.String          `tfsdk:"first_name"`
	LastName        types.String          `tfsdk:"last_name"`
	Handle          types.String          `tfsdk:"handle"`
	Email           types.String          `tfsdk:"email"`
	AccountRoleID   customtypes.UUIDValue `tfsdk:"account_role_id"`
	AccountRoleName types.String          `tfsdk:"account_role_name"`

	AccountID customtypes.UUIDValue `tfsdk:"account_id"`
}

type AccountMembersDataSource

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

func (*AccountMembersDataSource) Configure

Configure adds the provider-configured client to the data source.

func (*AccountMembersDataSource) Metadata

Metadata returns the data source type name.

func (*AccountMembersDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*AccountMembersDataSource) Schema

Schema defines the schema for the data source.

type AccountMembersDataSourceModel

type AccountMembersDataSourceModel struct {
	Members types.List `tfsdk:"members"`

	AccountID customtypes.UUIDValue `tfsdk:"account_id"`
}

type AccountRoleDataSource

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

func (*AccountRoleDataSource) Configure

Configure adds the provider-configured client to the data source.

func (*AccountRoleDataSource) Metadata

Metadata returns the data source type name.

func (*AccountRoleDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*AccountRoleDataSource) Schema

Schema defines the schema for the data source.

type AccountRoleDataSourceModel

type AccountRoleDataSourceModel struct {
	ID      customtypes.UUIDValue      `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name         types.String          `tfsdk:"name"`
	Permissions  types.List            `tfsdk:"permissions"`
	AccountID    customtypes.UUIDValue `tfsdk:"account_id"`
	IsSystemRole types.Bool            `tfsdk:"is_system_role"`
}

AccountRoleDataSource defines the Terraform data source model the TF data source configuration will be unmarshalled into this struct.

type ServiceAccountDataSource

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

ServiceAccountDataSource contains state for the data source.

func (*ServiceAccountDataSource) Configure

Configure initializes runtime state for the data source.

func (*ServiceAccountDataSource) Metadata

Metadata returns the data source type name.

func (*ServiceAccountDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*ServiceAccountDataSource) Schema

Schema defines the schema for the data source.

type ServiceAccountDataSourceModel

type ServiceAccountDataSourceModel struct {
	ID      customtypes.UUIDValue      `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name            types.String          `tfsdk:"name"`
	AccountID       customtypes.UUIDValue `tfsdk:"account_id"`
	AccountRoleName types.String          `tfsdk:"account_role_name"`

	// SA fields
	APIKeyID      types.String               `tfsdk:"api_key_id"`
	APIKeyName    types.String               `tfsdk:"api_key_name"`
	APIKeyCreated customtypes.TimestampValue `tfsdk:"api_key_created"`
	APIKeyExpires customtypes.TimestampValue `tfsdk:"api_key_expiration"`
	APIKey        types.String               `tfsdk:"api_key"`
}

ServiceAccountDataSourceModel defines the Terraform data source model.

type TeamDataSource

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

func (*TeamDataSource) Configure

Configure adds the provider-configured client to the data source.

func (*TeamDataSource) Metadata

Metadata returns the data source type name.

func (*TeamDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*TeamDataSource) Schema

Schema defines the schema for the data source.

type TeamDataSourceModel

type TeamDataSourceModel struct {
	ID          customtypes.UUIDValue      `tfsdk:"id"`
	Created     customtypes.TimestampValue `tfsdk:"created"`
	Updated     customtypes.TimestampValue `tfsdk:"updated"`
	Name        types.String               `tfsdk:"name"`
	Description types.String               `tfsdk:"description"`

	AccountID customtypes.UUIDValue `tfsdk:"account_id"`
}

type TeamsDataSource

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

TeamsDataSource contains state for the data source.

func (*TeamsDataSource) Configure

Configure initializes runtime state for the data source.

func (*TeamsDataSource) Metadata

Metadata returns the data source type name.

func (*TeamsDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*TeamsDataSource) Schema

Schema defines the schema for the data source.

type TeamsDataSourceModel

type TeamsDataSourceModel struct {
	AccountID customtypes.UUIDValue `tfsdk:"account_id"`

	Teams types.List `tfsdk:"teams"`
}

TeamsDataSourceModel defines the Terraform data source model.

type VariableDataSource

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

VariableDataSource contains state for the data source.

func (*VariableDataSource) Configure

Configure initializes runtime state for the data source.

func (*VariableDataSource) Metadata

Metadata returns the data source type name.

func (*VariableDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*VariableDataSource) Schema

Schema defines the schema for the data source.

type VariableDataSourceModel

type VariableDataSourceModel struct {
	ID          customtypes.UUIDValue      `tfsdk:"id"`
	Created     customtypes.TimestampValue `tfsdk:"created"`
	Updated     customtypes.TimestampValue `tfsdk:"updated"`
	AccountID   customtypes.UUIDValue      `tfsdk:"account_id"`
	WorkspaceID customtypes.UUIDValue      `tfsdk:"workspace_id"`

	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
	Tags  types.List   `tfsdk:"tags"`
}

VariableDataSourceModel defines the Terraform data source model.

type WorkPoolDataSource

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

WorkPoolDataSource contains state for the data source.

func (*WorkPoolDataSource) Configure

Configure initializes runtime state for the data source.

func (*WorkPoolDataSource) Metadata

Metadata returns the data source type name.

func (*WorkPoolDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkPoolDataSource) Schema

Schema defines the schema for the data source.

type WorkPoolDataSourceModel

type WorkPoolDataSourceModel struct {
	ID          customtypes.UUIDValue      `tfsdk:"id"`
	Created     customtypes.TimestampValue `tfsdk:"created"`
	Updated     customtypes.TimestampValue `tfsdk:"updated"`
	AccountID   customtypes.UUIDValue      `tfsdk:"account_id"`
	WorkspaceID customtypes.UUIDValue      `tfsdk:"workspace_id"`

	Name             types.String          `tfsdk:"name"`
	Description      types.String          `tfsdk:"description"`
	Type             types.String          `tfsdk:"type"`
	Paused           types.Bool            `tfsdk:"paused"`
	ConcurrencyLimit types.Int64           `tfsdk:"concurrency_limit"`
	DefaultQueueID   customtypes.UUIDValue `tfsdk:"default_queue_id"`
	BaseJobTemplate  types.String          `tfsdk:"base_job_template"`
}

WorkPoolDataSourceModel defines the Terraform data source model.

type WorkPoolsDataSource

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

WorkPoolsDataSource contains state for the data source.

func (*WorkPoolsDataSource) Configure

Configure initializes runtime state for the data source.

func (*WorkPoolsDataSource) Metadata

Metadata returns the data source type name.

func (*WorkPoolsDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkPoolsDataSource) Schema

Schema defines the schema for the data source.

type WorkPoolsSourceModel

type WorkPoolsSourceModel struct {
	AccountID   customtypes.UUIDValue `tfsdk:"account_id"`
	WorkspaceID customtypes.UUIDValue `tfsdk:"workspace_id"`

	FilterAny types.List `tfsdk:"filter_any"`
	WorkPools types.List `tfsdk:"work_pools"`
}

WorkPoolsSourceModel defines the Terraform data source model.

type WorkerMetadataDataSource

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

func (*WorkerMetadataDataSource) Configure

Configure initializes runtime state for the data source.

func (*WorkerMetadataDataSource) Metadata

Metadata returns the data source type name.

func (*WorkerMetadataDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkerMetadataDataSource) Schema

Schema defines the schema for the data source.

type WorkerMetadataDataSourceModel

type WorkerMetadataDataSourceModel struct {
	BaseJobConfigs types.Object `tfsdk:"base_job_configs"`
}

type WorkspaceDataSource

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

WorkspaceDataSource contains state for the data source.

func (*WorkspaceDataSource) Configure

Configure initializes runtime state for the data source.

func (*WorkspaceDataSource) Metadata

Metadata returns the data source type name.

func (*WorkspaceDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkspaceDataSource) Schema

Schema defines the schema for the data source.

type WorkspaceDataSourceModel

type WorkspaceDataSourceModel struct {
	ID        customtypes.UUIDValue      `tfsdk:"id"`
	Created   customtypes.TimestampValue `tfsdk:"created"`
	Updated   customtypes.TimestampValue `tfsdk:"updated"`
	AccountID customtypes.UUIDValue      `tfsdk:"account_id"`

	Name        types.String `tfsdk:"name"`
	Handle      types.String `tfsdk:"handle"`
	Description types.String `tfsdk:"description"`
}

WorkspaceDataSourceModel defines the Terraform data source model.

type WorkspaceRoleDataSource

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

func (*WorkspaceRoleDataSource) Configure

Configure adds the provider-configured client to the data source.

func (*WorkspaceRoleDataSource) Metadata

Metadata returns the data source type name.

func (*WorkspaceRoleDataSource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkspaceRoleDataSource) Schema

Schema defines the schema for the data source.

type WorkspaceRoleDataSourceModel

type WorkspaceRoleDataSourceModel struct {
	ID      customtypes.UUIDValue      `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name            types.String          `tfsdk:"name"`
	Description     types.String          `tfsdk:"description"`
	Scopes          types.List            `tfsdk:"scopes"`
	AccountID       customtypes.UUIDValue `tfsdk:"account_id"`
	InheritedRoleID customtypes.UUIDValue `tfsdk:"inherited_role_id"`
}

WorkspaceRoleDataSourceModel defines the Terraform data source model the TF data source configuration will be unmarshalled into this struct.

Jump to

Keyboard shortcuts

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