resource_key

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyResourceSchema

func KeyResourceSchema(ctx context.Context) schema.Schema

Types

type KeyModel

type KeyModel struct {
	Actions     types.List   `tfsdk:"actions"`
	Collections types.List   `tfsdk:"collections"`
	Description types.String `tfsdk:"description"`
	ExpiresAt   types.Int64  `tfsdk:"expires_at"`
	Id          types.Int64  `tfsdk:"id"`
	Value       types.String `tfsdk:"value"`
	ValuePrefix types.String `tfsdk:"value_prefix"`
}

func (*KeyModel) ReadFromResponse

func (model *KeyModel) ReadFromResponse(ctx context.Context, apiKey *typesense_api.ApiKey) diag.Diagnostics

func (*KeyModel) ToAPIKeySchema

func (model *KeyModel) ToAPIKeySchema(ctx context.Context) (typesense_api.ApiKeySchema, diag.Diagnostics)

Jump to

Keyboard shortcuts

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