Documentation ¶
Index ¶
- func AddTestSweeper()
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- type BGPConfigModel
- 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 ¶ added in v1.31.0
func AddTestSweeper()
func NewDataSource ¶ added in v1.33.0
func NewDataSource() datasource.DataSource
func NewResource ¶ added in v1.33.0
Types ¶
type BGPConfigModel ¶ added in v1.33.0
type DataSource ¶
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"` ProjectID types.String `tfsdk:"project_id"` Created types.String `tfsdk:"created"` Updated types.String `tfsdk:"updated"` BackendTransfer types.Bool `tfsdk:"backend_transfer"` PaymentMethodID types.String `tfsdk:"payment_method_id"` OrganizationID types.String `tfsdk:"organization_id"` UserIDs types.List `tfsdk:"user_ids"` BGPConfig fwtypes.ListNestedObjectValueOf[BGPConfigModel] `tfsdk:"bgp_config"` }
type Resource ¶
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"` Created types.String `tfsdk:"created"` Updated types.String `tfsdk:"updated"` BackendTransfer types.Bool `tfsdk:"backend_transfer"` PaymentMethodID types.String `tfsdk:"payment_method_id"` OrganizationID types.String `tfsdk:"organization_id"` BGPConfig fwtypes.ListNestedObjectValueOf[BGPConfigModel] `tfsdk:"bgp_config"` }
Click to show internal directories.
Click to hide internal directories.