Documentation ¶
Index ¶
- Variables
- func AddTestSweeper()
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- type DataSource
- type DataSourceModel
- type PortModel
- 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
- type ServiceTokenModel
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SpeedFormat = regexp.MustCompile(`^(\d+)((M|G)bps)$`)
)
Functions ¶
func AddTestSweeper ¶ added in v1.33.0
func AddTestSweeper()
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, )
func (*DataSource) Schema ¶
func (r *DataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type DataSourceModel ¶
type DataSourceModel struct { ID types.String `tfsdk:"id"` ConnectionID types.String `tfsdk:"connection_id"` Name types.String `tfsdk:"name"` Facility types.String `tfsdk:"facility"` Metro types.String `tfsdk:"metro"` Redundancy types.String `tfsdk:"redundancy"` ContactEmail types.String `tfsdk:"contact_email"` Type types.String `tfsdk:"type"` ProjectID types.String `tfsdk:"project_id"` AuthorizationCode types.String `tfsdk:"authorization_code"` Speed types.String `tfsdk:"speed"` Description types.String `tfsdk:"description"` Mode types.String `tfsdk:"mode"` Tags types.List `tfsdk:"tags"` // List of strings Vlans types.List `tfsdk:"vlans"` // List of ints Vrfs types.List `tfsdk:"vrfs"` // List of strings ServiceTokenType types.String `tfsdk:"service_token_type"` OrganizationID types.String `tfsdk:"organization_id"` Status types.String `tfsdk:"status"` Token types.String `tfsdk:"token"` Ports fwtypes.ListNestedObjectValueOf[PortModel] `tfsdk:"ports"` // List of Port ServiceTokens fwtypes.ListNestedObjectValueOf[ServiceTokenModel] `tfsdk:"service_tokens"` // List of ServiceToken }
type PortModel ¶
type PortModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Role types.String `tfsdk:"role"` Speed types.Int64 `tfsdk:"speed"` Status types.String `tfsdk:"status"` LinkStatus types.String `tfsdk:"link_status"` VirtualCircuitIDs fwtypes.ListValueOf[types.String] `tfsdk:"virtual_circuit_ids"` // List of String }
type Resource ¶
type Resource struct {
framework.BaseResource
}
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"` Name types.String `tfsdk:"name"` Facility types.String `tfsdk:"facility"` Metro types.String `tfsdk:"metro"` Redundancy types.String `tfsdk:"redundancy"` ContactEmail types.String `tfsdk:"contact_email"` Type types.String `tfsdk:"type"` ProjectID types.String `tfsdk:"project_id"` AuthorizationCode types.String `tfsdk:"authorization_code"` Speed types.String `tfsdk:"speed"` Description types.String `tfsdk:"description"` Mode types.String `tfsdk:"mode"` Tags types.List `tfsdk:"tags"` // List of strings Vlans types.List `tfsdk:"vlans"` // List of ints Vrfs types.List `tfsdk:"vrfs"` // List of strings ServiceTokenType types.String `tfsdk:"service_token_type"` OrganizationID types.String `tfsdk:"organization_id"` Status types.String `tfsdk:"status"` Token types.String `tfsdk:"token"` Ports fwtypes.ListNestedObjectValueOf[PortModel] `tfsdk:"ports"` // List of Port ServiceTokens fwtypes.ListNestedObjectValueOf[ServiceTokenModel] `tfsdk:"service_tokens"` // List of ServiceToken }
Click to show internal directories.
Click to hide internal directories.