Documentation ¶
Index ¶
- func EntitySchema() map[string]schema.Attribute
- func NewEntityResource() resource.Resource
- type ArrayPropsModel
- type EntityModel
- type EntityPropertiesModel
- type EntityResource
- func (r *EntityResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *EntityResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *EntityResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *EntityResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *EntityResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *EntityResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *EntityResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *EntityResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RelationModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntitySchema ¶
func NewEntityResource ¶
Types ¶
type ArrayPropsModel ¶
type EntityModel ¶
type EntityModel struct { ID types.String `tfsdk:"id"` Identifier types.String `tfsdk:"identifier"` Blueprint types.String `tfsdk:"blueprint"` Title types.String `tfsdk:"title"` Icon types.String `tfsdk:"icon"` RunID types.String `tfsdk:"run_id"` CreatedAt types.String `tfsdk:"created_at"` CreatedBy types.String `tfsdk:"created_by"` UpdatedAt types.String `tfsdk:"updated_at"` UpdatedBy types.String `tfsdk:"updated_by"` Properties *EntityPropertiesModel `tfsdk:"properties"` Teams []types.String `tfsdk:"teams"` Relations *RelationModel `tfsdk:"relations"` }
type EntityPropertiesModel ¶
type EntityPropertiesModel struct { StringProps map[string]types.String `tfsdk:"string_props"` NumberProps map[string]types.Float64 `tfsdk:"number_props"` BooleanProps map[string]types.Bool `tfsdk:"boolean_props"` ObjectProps map[string]types.String `tfsdk:"object_props"` ArrayProps *ArrayPropsModel `tfsdk:"array_props"` }
type EntityResource ¶
type EntityResource struct {
// contains filtered or unexported fields
}
func (*EntityResource) Configure ¶
func (r *EntityResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*EntityResource) Create ¶
func (r *EntityResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*EntityResource) Delete ¶
func (r *EntityResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*EntityResource) ImportState ¶
func (r *EntityResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*EntityResource) Metadata ¶
func (r *EntityResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*EntityResource) Read ¶
func (r *EntityResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*EntityResource) Schema ¶
func (r *EntityResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*EntityResource) Update ¶
func (r *EntityResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.