Documentation ¶
Index ¶
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- 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 NewDataSource ¶
func NewDataSource() datasource.DataSource
func NewResource ¶
Types ¶
type DataSource ¶
type DataSource struct {
framework.BaseDataSource
}
func (*DataSource) Read ¶
func (r *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
type DataSourceModel ¶
type DataSourceModel struct { ID types.String `tfsdk:"id"` GatewayID types.String `tfsdk:"gateway_id"` ProjectID types.String `tfsdk:"project_id"` VlanID types.String `tfsdk:"vlan_id"` VrfID types.String `tfsdk:"vrf_id"` IPReservationID types.String `tfsdk:"ip_reservation_id"` PrivateIPv4SubnetSize types.Int64 `tfsdk:"private_ipv4_subnet_size"` State types.String `tfsdk:"state"` }
type Resource ¶
type Resource struct { framework.BaseResource framework.WithTimeouts }
func (*Resource) Create ¶
func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*Resource) Read ¶
func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*Resource) Schema ¶
func (r *Resource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*Resource) Update ¶
func (r *Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type ResourceModel ¶
type ResourceModel struct { ID types.String `tfsdk:"id"` ProjectID types.String `tfsdk:"project_id"` VlanID types.String `tfsdk:"vlan_id"` VrfID types.String `tfsdk:"vrf_id"` IPReservationID types.String `tfsdk:"ip_reservation_id"` PrivateIPv4SubnetSize types.Int64 `tfsdk:"private_ipv4_subnet_size"` State types.String `tfsdk:"state"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
Click to show internal directories.
Click to hide internal directories.