project

package
v1.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

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

func NewResource() resource.Resource

Types

type BGPConfigModel added in v1.33.0

type BGPConfigModel struct {
	DeploymentType types.String `tfsdk:"deployment_type"`
	ASN            types.Int64  `tfsdk:"asn"`
	MD5            types.String `tfsdk:"md5"`
	Status         types.String `tfsdk:"status"`
	MaxPrefix      types.Int64  `tfsdk:"max_prefix"`
}

type DataSource

type DataSource struct {
	framework.BaseDataSource
}

func (*DataSource) Read added in v1.33.0

func (*DataSource) Schema added in v1.33.0

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 (*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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL