infra_provision

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HostactivationJoinTokenAttrTypes = map[string]attr.Type{
	"join_token":   types.StringType,
	"deleted_at":   timetypes.RFC3339Type{},
	"description":  types.StringType,
	"expires_at":   timetypes.RFC3339Type{},
	"id":           types.StringType,
	"last_used_at": timetypes.RFC3339Type{},
	"name":         types.StringType,
	"status":       types.StringType,
	"tags":         types.MapType{ElemType: types.StringType},
	"token_id":     types.StringType,
	"use_counter":  types.Int64Type,
}
View Source
var HostactivationJoinTokenResourceSchemaAttributes = map[string]schema.Attribute{
	"join_token": schema.StringAttribute{
		Computed:  true,
		Sensitive: true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.UseStateForUnknown(),
		},
	},
	"deleted_at": schema.StringAttribute{
		CustomType: timetypes.RFC3339Type{},
		Computed:   true,
	},
	"description": schema.StringAttribute{
		Optional: true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.RequiresReplaceIfConfigured(),
		},
	},
	"expires_at": schema.StringAttribute{
		CustomType: timetypes.RFC3339Type{},
		Optional:   true,
	},
	"id": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: `The resource identifier.`,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.UseStateForUnknown(),
		},
	},
	"last_used_at": schema.StringAttribute{
		CustomType: timetypes.RFC3339Type{},
		Computed:   true,
	},
	"name": schema.StringAttribute{
		Required: true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.RequiresReplaceIfConfigured(),
		},
	},
	"status": schema.StringAttribute{
		Computed: true,
	},
	"tags": schema.MapAttribute{
		ElementType: types.StringType,
		Optional:    true,
	},
	"token_id": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: `first half of the token.`,
	},
	"use_counter": schema.Int64Attribute{
		Computed: true,
	},
}
View Source
var TypesJSONValueAttrTypes = map[string]attr.Type{
	"value": types.StringType,
}
View Source
var TypesJSONValueResourceSchemaAttributes = map[string]schema.Attribute{
	"value": schema.StringAttribute{
		Optional: true,
	},
}

Functions

func FlattenTypesJSONValue

func FlattenTypesJSONValue(ctx context.Context, from *infra_provision.TypesJSONValue, diags *diag.Diagnostics) types.Object

func NewUIJoinTokenDataSource

func NewUIJoinTokenDataSource() datasource.DataSource

func NewUIJoinTokenResource

func NewUIJoinTokenResource() resource.Resource

Types

type HostactivationJoinTokenModel

type HostactivationJoinTokenModel struct {
	JoinToken   types.String      `tfsdk:"join_token"`
	DeletedAt   timetypes.RFC3339 `tfsdk:"deleted_at"`
	Description types.String      `tfsdk:"description"`
	ExpiresAt   timetypes.RFC3339 `tfsdk:"expires_at"`
	Id          types.String      `tfsdk:"id"`
	LastUsedAt  timetypes.RFC3339 `tfsdk:"last_used_at"`
	Name        types.String      `tfsdk:"name"`
	Status      types.String      `tfsdk:"status"`
	Tags        types.Map         `tfsdk:"tags"`
	TokenId     types.String      `tfsdk:"token_id"`
	UseCounter  types.Int64       `tfsdk:"use_counter"`
}

func (*HostactivationJoinTokenModel) Expand

func (*HostactivationJoinTokenModel) Flatten

type HostactivationJoinTokenModelWithFilter

type HostactivationJoinTokenModelWithFilter struct {
	Filters    types.Map  `tfsdk:"filters"`
	TagFilters types.Map  `tfsdk:"tag_filters"`
	Results    types.List `tfsdk:"results"`
}

func (*HostactivationJoinTokenModelWithFilter) FlattenResults

type TypesJSONValueModel

type TypesJSONValueModel struct {
	Value types.String `tfsdk:"value"`
}

func (*TypesJSONValueModel) Expand

func (*TypesJSONValueModel) Flatten

type UIJoinTokenDataSource

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

UIJoinTokenDataSource defines the data source implementation.

func (*UIJoinTokenDataSource) Configure

func (*UIJoinTokenDataSource) Metadata

func (*UIJoinTokenDataSource) Read

func (*UIJoinTokenDataSource) Schema

type UIJoinTokenResource

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

UIJoinTokenResource defines the resource implementation.

func (*UIJoinTokenResource) Configure

func (*UIJoinTokenResource) Create

func (*UIJoinTokenResource) Delete

func (*UIJoinTokenResource) ImportState

func (*UIJoinTokenResource) Metadata

func (*UIJoinTokenResource) Read

func (*UIJoinTokenResource) Schema

func (*UIJoinTokenResource) Update

Jump to

Keyboard shortcuts

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