Documentation ¶
Overview ¶
Package vdc provides a Terraform resource.
Package vdc provides a resource to manage VDCs.
Package vdc provides a resource to manage VDCs.
Package vdc provides a resource to manage VDCs.
Index ¶
- func NewACLResource() resource.Resource
- func NewGroupDataSource() datasource.DataSource
- func NewGroupResource() resource.Resource
- func NewNetworkIsolatedDataSource() datasource.DataSource
- func NewNetworkIsolatedResource() resource.Resource
- func NewVDCDataSource() datasource.DataSource
- func NewVDCResource() resource.Resource
- func NewVDCsDataSource() datasource.DataSource
- type GroupModel
- type GroupModelVDCIds
- type NetworkIsolatedDataSource
- func (d *NetworkIsolatedDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *NetworkIsolatedDataSource) Init(ctx context.Context, rm *networkIsolatedModel) (diags diag.Diagnostics)
- func (d *NetworkIsolatedDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *NetworkIsolatedDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *NetworkIsolatedDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type NetworkIsolatedResource
- func (r *NetworkIsolatedResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworkIsolatedResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworkIsolatedResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworkIsolatedResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworkIsolatedResource) Init(ctx context.Context, rm *networkIsolatedModel) (diags diag.Diagnostics)
- func (r *NetworkIsolatedResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *NetworkIsolatedResource) MoveState(ctx context.Context) []resource.StateMover
- func (r *NetworkIsolatedResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworkIsolatedResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworkIsolatedResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewACLResource ¶
NewACLResource is a helper function to simplify the provider implementation.
func NewGroupDataSource ¶ added in v0.12.0
func NewGroupDataSource() datasource.DataSource
func NewGroupResource ¶ added in v0.9.0
NewGroupResource is a helper function to simplify the provider implementation.
func NewNetworkIsolatedDataSource ¶ added in v0.24.0
func NewNetworkIsolatedDataSource() datasource.DataSource
func NewNetworkIsolatedResource ¶ added in v0.24.0
NewNetworkIsolatedResource is a helper function to simplify the provider implementation.
func NewVDCDataSource ¶
func NewVDCDataSource() datasource.DataSource
NewVDCDataSource returns a new resource implementing the vdcs data source.
func NewVDCResource ¶
NewVDCResource is a helper function to simplify the provider implementation.
func NewVDCsDataSource ¶
func NewVDCsDataSource() datasource.DataSource
NewVDCsDataSource returns a new resource implementing the vdcs data source.
Types ¶
type GroupModel ¶ added in v0.9.0
type GroupModel struct { Description supertypes.StringValue `tfsdk:"description"` ID supertypes.StringValue `tfsdk:"id"` Name supertypes.StringValue `tfsdk:"name"` Status supertypes.StringValue `tfsdk:"status"` Type supertypes.StringValue `tfsdk:"type"` VDCIds supertypes.SetValue `tfsdk:"vdc_ids"` }
func NewGroup ¶ added in v0.9.0
func NewGroup(t any) *GroupModel
func (*GroupModel) Copy ¶ added in v0.9.0
func (rm *GroupModel) Copy() *GroupModel
func (*GroupModel) GetNameOrID ¶ added in v0.9.0
func (rm *GroupModel) GetNameOrID() string
GetNameOrID returns the name or the id of the resource.
func (*GroupModel) GetVDCIds ¶ added in v0.9.0
func (rm *GroupModel) GetVDCIds(ctx context.Context) (values GroupModelVDCIds, diags diag.Diagnostics)
GetVDCIds returns the value of the VdcIds field.
type GroupModelVDCIds ¶ added in v0.9.0
type GroupModelVDCIds []supertypes.StringValue
func (*GroupModelVDCIds) Get ¶ added in v0.9.0
func (rmVDCIds *GroupModelVDCIds) Get() []string
Get returns the values.
type NetworkIsolatedDataSource ¶ added in v0.24.0
type NetworkIsolatedDataSource struct {
// contains filtered or unexported fields
}
func (*NetworkIsolatedDataSource) Configure ¶ added in v0.24.0
func (d *NetworkIsolatedDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*NetworkIsolatedDataSource) Init ¶ added in v0.24.0
func (d *NetworkIsolatedDataSource) Init(ctx context.Context, rm *networkIsolatedModel) (diags diag.Diagnostics)
Init Initializes the resource.
func (*NetworkIsolatedDataSource) Metadata ¶ added in v0.24.0
func (d *NetworkIsolatedDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*NetworkIsolatedDataSource) Read ¶ added in v0.24.0
func (d *NetworkIsolatedDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*NetworkIsolatedDataSource) Schema ¶ added in v0.24.0
func (d *NetworkIsolatedDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type NetworkIsolatedResource ¶ added in v0.24.0
type NetworkIsolatedResource struct {
// contains filtered or unexported fields
}
NetworkIsolatedResource is the resource implementation.
func (*NetworkIsolatedResource) Configure ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworkIsolatedResource) Create ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*NetworkIsolatedResource) Delete ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*NetworkIsolatedResource) ImportState ¶ added in v0.24.0
func (r *NetworkIsolatedResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworkIsolatedResource) Init ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Init(ctx context.Context, rm *networkIsolatedModel) (diags diag.Diagnostics)
Init Initializes the resource.
func (*NetworkIsolatedResource) Metadata ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*NetworkIsolatedResource) MoveState ¶ added in v0.24.0
func (r *NetworkIsolatedResource) MoveState(ctx context.Context) []resource.StateMover
ResourceWithMoveState interface implementation.
func (*NetworkIsolatedResource) Read ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*NetworkIsolatedResource) Schema ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*NetworkIsolatedResource) Update ¶ added in v0.24.0
func (r *NetworkIsolatedResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
Source Files ¶
- acl_resource.go
- acl_schema.go
- acl_types.go
- base.go
- network_isolated_datasource.go
- network_isolated_resource.go
- network_isolated_schema.go
- network_isolated_types.go
- vdc_datasource.go
- vdc_group_datasource.go
- vdc_group_resource.go
- vdc_group_schema.go
- vdc_group_types.go
- vdc_resource.go
- vdc_schema.go
- vdc_types.go
- vdcs_datasource.go
- vdcs_schema.go
- vdcs_types.go