Documentation ¶
Index ¶
- func NewResource() resource.Resource
- func PortResourcePayload(ctx context.Context, plan *resourceModel) (openApiClient.UpdateDeviceSwitchPortRequest, diag.Diagnostics)
- func PortResourceState(ctx context.Context, ...) (*resourceModel, diag.Diagnostics)
- type PortsDataSourceModel
- type Resource
- func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- 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) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
func PortResourcePayload ¶
func PortResourcePayload(ctx context.Context, plan *resourceModel) (openApiClient.UpdateDeviceSwitchPortRequest, diag.Diagnostics)
func PortResourceState ¶
func PortResourceState(ctx context.Context, response *openApiClient.GetDeviceSwitchPorts200ResponseInner, state *resourceModel) (*resourceModel, diag.Diagnostics)
Types ¶
type PortsDataSourceModel ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Configure ¶
func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure is a method of the Resource interface that Terraform calls to provide the configured provider instance to the resource.
func (*Resource) Create ¶
func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create method is responsible for creating a new resource.
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete function is responsible for deleting a resource.
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState function is used to import an existing resource into Terraform.
func (*Resource) Metadata ¶
func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata provides a way to define information about the resource.
func (*Resource) Read ¶
func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read method is responsible for reading an existing resource's state.
func (*Resource) Schema ¶
func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema provides a way to define the structure of the resource data.
func (*Resource) Update ¶
func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update function is responsible for updating the state of an existing resource.
Click to show internal directories.
Click to hide internal directories.