Documentation
¶
Index ¶
- func AddTestSweeper()
- func GetResourceSchema(ctx context.Context) schema.Schema
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- type AddressResourceModel
- type DataSource
- type DataSourceModel
- type Resource
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTestSweeper ¶
func AddTestSweeper()
func NewDataSource ¶ added in v1.33.0
func NewDataSource() datasource.DataSource
func NewResource ¶ added in v1.33.0
Types ¶
type AddressResourceModel ¶ added in v1.33.0
type DataSource ¶ added in v1.33.0
type DataSource struct {
framework.BaseDataSource
}
func (*DataSource) Read ¶ added in v1.33.0
func (r *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*DataSource) Schema ¶ added in v1.33.0
func (r *DataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type DataSourceModel ¶ added in v1.33.0
type DataSourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OrganizationID types.String `tfsdk:"organization_id"` Description types.String `tfsdk:"description"` Website types.String `tfsdk:"website"` Twitter types.String `tfsdk:"twitter"` Logo types.String `tfsdk:"logo"` ProjectIDs []types.List `tfsdk:"project_ids"` Address fwtypes.ListNestedObjectValueOf[AddressResourceModel] `tfsdk:"address"` // List of Address }
type Resource ¶ added in v1.33.0
type Resource struct {
framework.BaseResource
}
func (*Resource) Create ¶ added in v1.33.0
func (r *Resource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*Resource) Delete ¶ added in v1.33.0
func (r *Resource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*Resource) Read ¶ added in v1.33.0
func (r *Resource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*Resource) Schema ¶ added in v1.33.0
func (r *Resource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*Resource) Update ¶ added in v1.33.0
func (r *Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type ResourceModel ¶ added in v1.33.0
type ResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Website types.String `tfsdk:"website"` Twitter types.String `tfsdk:"twitter"` Logo types.String `tfsdk:"logo"` Created types.String `tfsdk:"created"` Updated types.String `tfsdk:"updated"` Address fwtypes.ListNestedObjectValueOf[AddressResourceModel] `tfsdk:"address"` }
Click to show internal directories.
Click to hide internal directories.