token

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstanceTokenDataSource

func NewInstanceTokenDataSource() datasource.DataSource

func NewInstanceTokenResource

func NewInstanceTokenResource(client modelexperiments.DefaultAPI, providerData core.ProviderData) resource.Resource

func NewInstanceTokenResourceEmpty

func NewInstanceTokenResourceEmpty() resource.Resource

NewInstanceTokenResource is a helper function to simplify the provider implementation.

Types

type InstanceTokenDataSourceModel

type InstanceTokenDataSourceModel struct {
	Id          types.String `tfsdk:"id"` // needed by TF
	ProjectId   types.String `tfsdk:"project_id"`
	Region      types.String `tfsdk:"region"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	InstanceId  types.String `tfsdk:"instance_id"`
	TokenId     types.String `tfsdk:"token_id"`
	Labels      types.Map    `tfsdk:"labels"`
	ValidUntil  types.String `tfsdk:"valid_until"`
}

type Model

type Model struct {
	Id          types.String `tfsdk:"id"` // needed by TF
	ProjectId   types.String `tfsdk:"project_id"`
	Region      types.String `tfsdk:"region"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	InstanceId  types.String `tfsdk:"instance_id"`
	TokenId     types.String `tfsdk:"token_id"`
	Labels      types.Map    `tfsdk:"labels"`
	ValidUntil  types.String `tfsdk:"valid_until"`
	TTLDuration types.String `tfsdk:"ttl_duration"`
	Token       types.String `tfsdk:"token"`
	// RotateWhenChanged is a map of arbitrary key/value pairs that will force
	// recreation of the token when they change, enabling token rotation based on
	// external conditions such as a rotating timestamp. Changing this forces a new
	// resource to be created.
	RotateWhenChanged types.Map `tfsdk:"rotate_when_changed"`
}

Jump to

Keyboard shortcuts

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