Documentation
¶
Index ¶
- Variables
- func ExpandHostactivationJoinToken(ctx context.Context, o types.Object, diags *diag.Diagnostics) *infra_provision.HostactivationJoinToken
- func ExpandTypesJSONValue(ctx context.Context, o types.Object, diags *diag.Diagnostics) *infra_provision.TypesJSONValue
- func FlattenHostactivationJoinToken(ctx context.Context, from *infra_provision.HostactivationJoinToken, ...) types.Object
- func FlattenTypesJSONValue(ctx context.Context, from *infra_provision.TypesJSONValue, ...) types.Object
- func NewUIJoinTokenDataSource() datasource.DataSource
- func NewUIJoinTokenResource() resource.Resource
- type HostactivationJoinTokenModel
- type HostactivationJoinTokenModelWithFilter
- type TypesJSONValueModel
- type UIJoinTokenDataSource
- func (d *UIJoinTokenDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *UIJoinTokenDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *UIJoinTokenDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *UIJoinTokenDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type UIJoinTokenResource
- func (r *UIJoinTokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UIJoinTokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UIJoinTokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UIJoinTokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UIJoinTokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UIJoinTokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UIJoinTokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UIJoinTokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ExpandHostactivationJoinToken ¶
func ExpandHostactivationJoinToken(ctx context.Context, o types.Object, diags *diag.Diagnostics) *infra_provision.HostactivationJoinToken
func ExpandTypesJSONValue ¶
func ExpandTypesJSONValue(ctx context.Context, o types.Object, diags *diag.Diagnostics) *infra_provision.TypesJSONValue
func FlattenHostactivationJoinToken ¶
func FlattenHostactivationJoinToken(ctx context.Context, from *infra_provision.HostactivationJoinToken, diags *diag.Diagnostics) types.Object
func FlattenTypesJSONValue ¶
func FlattenTypesJSONValue(ctx context.Context, from *infra_provision.TypesJSONValue, diags *diag.Diagnostics) types.Object
func NewUIJoinTokenDataSource ¶
func NewUIJoinTokenDataSource() datasource.DataSource
func NewUIJoinTokenResource ¶
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 (m *HostactivationJoinTokenModel) Expand(ctx context.Context, diags *diag.Diagnostics) *infra_provision.HostactivationJoinToken
func (*HostactivationJoinTokenModel) Flatten ¶
func (m *HostactivationJoinTokenModel) Flatten(ctx context.Context, from *infra_provision.HostactivationJoinToken, diags *diag.Diagnostics)
type HostactivationJoinTokenModelWithFilter ¶
type HostactivationJoinTokenModelWithFilter struct { Filters types.Map `tfsdk:"filters"` TagFilters types.Map `tfsdk:"tag_filters"` Results types.List `tfsdk:"results"` }
func (*HostactivationJoinTokenModelWithFilter) FlattenResults ¶
func (m *HostactivationJoinTokenModelWithFilter) FlattenResults(ctx context.Context, from []infra_provision.HostactivationJoinToken, diags *diag.Diagnostics)
type TypesJSONValueModel ¶
func (*TypesJSONValueModel) Expand ¶
func (m *TypesJSONValueModel) Expand(ctx context.Context, diags *diag.Diagnostics) *infra_provision.TypesJSONValue
func (*TypesJSONValueModel) Flatten ¶
func (m *TypesJSONValueModel) Flatten(ctx context.Context, from *infra_provision.TypesJSONValue, diags *diag.Diagnostics)
type UIJoinTokenDataSource ¶
type UIJoinTokenDataSource struct {
// contains filtered or unexported fields
}
UIJoinTokenDataSource defines the data source implementation.
func (*UIJoinTokenDataSource) Configure ¶
func (d *UIJoinTokenDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*UIJoinTokenDataSource) Metadata ¶
func (d *UIJoinTokenDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*UIJoinTokenDataSource) Read ¶
func (d *UIJoinTokenDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*UIJoinTokenDataSource) Schema ¶
func (d *UIJoinTokenDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type UIJoinTokenResource ¶
type UIJoinTokenResource struct {
// contains filtered or unexported fields
}
UIJoinTokenResource defines the resource implementation.
func (*UIJoinTokenResource) Configure ¶
func (r *UIJoinTokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UIJoinTokenResource) Create ¶
func (r *UIJoinTokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UIJoinTokenResource) Delete ¶
func (r *UIJoinTokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UIJoinTokenResource) ImportState ¶
func (r *UIJoinTokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*UIJoinTokenResource) Metadata ¶
func (r *UIJoinTokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UIJoinTokenResource) Read ¶
func (r *UIJoinTokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UIJoinTokenResource) Schema ¶
func (r *UIJoinTokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*UIJoinTokenResource) Update ¶
func (r *UIJoinTokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.