Documentation ¶
Index ¶
- Variables
- func DataSourceFlattenProtoAnycastConfig(ctx context.Context, from *anycast.AnycastConfig, diags *diag.Diagnostics) types.Object
- func ExpandProtoAnycastConfig(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.AnycastConfig
- func ExpandProtoAnycastConfigRef(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.AnycastConfigRef
- func ExpandProtoBgpConfig(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.BgpConfig
- func ExpandProtoBgpNeighbor(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.BgpNeighbor
- func ExpandProtoOnpremHostRef(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.OnpremHostRef
- func ExpandProtoOspfConfig(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.OspfConfig
- func ExpandProtoOspfv3Config(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.Ospfv3Config
- func ExpandProtobufFieldMask(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.ProtobufFieldMask
- func FlattenProtoAnycastConfigRef(ctx context.Context, from *anycast.AnycastConfigRef, diags *diag.Diagnostics) types.Object
- func FlattenProtoBgpConfig(ctx context.Context, from *anycast.BgpConfig, diags *diag.Diagnostics) types.Object
- func FlattenProtoBgpNeighbor(ctx context.Context, from *anycast.BgpNeighbor, diags *diag.Diagnostics) types.Object
- func FlattenProtoOnpremHostRef(ctx context.Context, from *anycast.OnpremHostRef, diags *diag.Diagnostics) types.Object
- func FlattenProtoOspfConfig(ctx context.Context, from *anycast.OspfConfig, diags *diag.Diagnostics) types.Object
- func FlattenProtoOspfv3Config(ctx context.Context, from *anycast.Ospfv3Config, diags *diag.Diagnostics) types.Object
- func FlattenProtobufFieldMask(ctx context.Context, from *anycast.ProtobufFieldMask, diags *diag.Diagnostics) types.Object
- func NewAnycastConfigDataSource() datasource.DataSource
- func NewAnycastConfigResource() resource.Resource
- func NewAnycastHostResource() resource.Resource
- type AnycastConfigDataSource
- func (d *AnycastConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *AnycastConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *AnycastConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *AnycastConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type AnycastHostResource
- func (r *AnycastHostResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AnycastHostResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AnycastHostResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AnycastHostResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AnycastHostResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AnycastHostResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AnycastHostResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AnycastHostResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type OnPremAnycastManagerResource
- func (r *OnPremAnycastManagerResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OnPremAnycastManagerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OnPremAnycastManagerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OnPremAnycastManagerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *OnPremAnycastManagerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OnPremAnycastManagerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OnPremAnycastManagerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OnPremAnycastManagerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ProtoAnycastConfigModel
- type ProtoAnycastConfigModelWithFilter
- type ProtoAnycastConfigRefModel
- type ProtoBgpConfigModel
- type ProtoBgpNeighborModel
- type ProtoOnpremHostModel
- type ProtoOnpremHostRefModel
- type ProtoOspfConfigModel
- type ProtoOspfv3ConfigModel
- type ProtobufFieldMaskModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtoAnycastConfigAttrTypes = map[string]attr.Type{ "account_id": types.Int64Type, "anycast_ip_address": types.StringType, "anycast_ipv6_address": types.StringType, "created_at": timetypes.RFC3339Type{}, "description": types.StringType, "id": types.Int64Type, "is_configured": types.BoolType, "name": types.StringType, "onprem_hosts": types.ListType{ElemType: types.ObjectType{AttrTypes: ProtoOnpremHostRefAttrTypes}}, "runtime_status": types.StringType, "service": types.StringType, "tags": types.MapType{ElemType: types.StringType}, "tags_all": types.MapType{ElemType: types.StringType}, "updated_at": timetypes.RFC3339Type{}, }
View Source
var ProtoAnycastConfigRefAttrTypes = map[string]attr.Type{ "anycast_config_name": types.StringType, "routing_protocols": types.ListType{ElemType: types.StringType}, }
View Source
var ProtoAnycastConfigRefResourceSchemaAttributes = map[string]schema.Attribute{ "anycast_config_name": schema.StringAttribute{ Required: true, }, "routing_protocols": schema.ListAttribute{ ElementType: types.StringType, Optional: true, Computed: true, Default: listdefault.StaticValue(types.ListNull(types.StringType)), MarkdownDescription: "Routing protocols enabled for this anycast configuration, on a particular host. Valid protocol names are \"BGP\", \"OSPF\"/\"OSPFv2\", \"OSPFv3\".", }, }
View Source
var ProtoAnycastConfigResourceSchemaAttributes = map[string]schema.Attribute{ "account_id": schema.Int64Attribute{ Computed: true, MarkdownDescription: "The account identifier.", }, "anycast_ip_address": schema.StringAttribute{ Required: true, MarkdownDescription: "IPv4 address of the host in string format.", }, "anycast_ipv6_address": schema.StringAttribute{ Optional: true, MarkdownDescription: "IPv6 address of the host in string format", }, "created_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: "Time when the object has been created.", }, "description": schema.StringAttribute{ Optional: true, MarkdownDescription: "The description for the address object. May contain 0 to 1024 characters. Can include UTF-8.", }, "id": schema.Int64Attribute{ Computed: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.UseStateForUnknown(), }, MarkdownDescription: "The resource identifier.", }, "is_configured": schema.BoolAttribute{ Computed: true, }, "name": schema.StringAttribute{ Required: true, MarkdownDescription: `The name of the anycast configuration.`, }, "onprem_hosts": schema.ListNestedAttribute{ NestedObject: schema.NestedAttributeObject{ Attributes: ProtoOnpremHostRefResourceSchemaAttributes, }, Computed: true, }, "runtime_status": schema.StringAttribute{ Computed: true, }, "service": schema.StringAttribute{ Required: true, MarkdownDescription: "The type of the Service used in anycast configuration, supports (`dns`, `dhcp`, `dfp`).", }, "tags": schema.MapAttribute{ ElementType: types.StringType, Optional: true, Computed: true, Default: mapdefault.StaticValue(types.MapNull(types.StringType)), MarkdownDescription: "The tags for the anycast configuration object.", }, "tags_all": schema.MapAttribute{ ElementType: types.StringType, Computed: true, MarkdownDescription: "The tags for the anycast configuration object, including default tags.", }, "updated_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: "Time when the object has been updated. Equals to _created_at_ if not updated after creation.", }, }
View Source
var ProtoBgpConfigAttrTypes = map[string]attr.Type{ "asn": types.Int64Type, "asn_text": types.StringType, "fields": types.ObjectType{AttrTypes: ProtobufFieldMaskAttrTypes}, "holddown_secs": types.Int64Type, "keep_alive_secs": types.Int64Type, "link_detect": types.BoolType, "neighbors": types.ListType{ElemType: types.ObjectType{AttrTypes: ProtoBgpNeighborAttrTypes}}, "preamble": types.StringType, }
View Source
var ProtoBgpConfigResourceSchemaAttributes = map[string]schema.Attribute{ "asn": schema.Int64Attribute{ Required: true, MarkdownDescription: `Autonomous system number of this BGP/anycast enabled on-prem host.`, }, "asn_text": schema.StringAttribute{ Computed: true, MarkdownDescription: `Autonomous system as text (supported in ASDOT or ASPLAIN format) Optional, requires the asn field to be set to the equivalent integer value of the ASDOT/ASPLAIN string contained in this field or be unset/zero. Example: | ASDOT | ASPLAIN | INTEGER | VALID/INVALID | |-------------|-------------|-------------|---------------| | 0.1 | 1 | 1 | Valid | | 1 | 1 | 1 | Valid | | 65535 | 65535 | 65535 | Valid | | 0.65535 | 65535 | 65535 | Valid | | 1.0 | 65536 | 65536 | Valid | | 1.1 | 65537 | 65537 | Valid | | 1.65535 | 131071 | 131071 | Valid | | 65535.0 | 4294901760 | 4294901760 | Valid | | 65535.1 | 4294901761 | 4294901761 | Valid | | 65535.65535 | 4294967295 | 4294967295 | Valid | | 0.65536 | | | Invalid | | 65535.655536| | | Invalid | | 65536.0 | | | Invalid | | 65536.65535 | | | Invalid | | | 4294967296 | | Invalid | `, }, "fields": schema.SingleNestedAttribute{ Attributes: ProtobufFieldMaskResourceSchemaAttributes, Optional: true, MarkdownDescription: `Represents a set of symbolic field paths.`, }, "holddown_secs": schema.Int64Attribute{ Required: true, MarkdownDescription: `BGP route hold-down timer.`, }, "keep_alive_secs": schema.Int64Attribute{ Optional: true, Computed: true, MarkdownDescription: `BGP keep-alive timer.`, }, "link_detect": schema.BoolAttribute{ Optional: true, MarkdownDescription: `Enable/disable link detection.`, }, "neighbors": schema.ListNestedAttribute{ NestedObject: schema.NestedAttributeObject{ Attributes: ProtoBgpNeighborResourceSchemaAttributes, }, Optional: true, MarkdownDescription: `List of BgpNeighbor structs.`, }, "preamble": schema.StringAttribute{ Optional: true, MarkdownDescription: "Any predefined BGP configuration, with embedded new lines; the preamble will be prepended to the generated BGP configuration.", }, }
View Source
var ProtoBgpNeighborAttrTypes = map[string]attr.Type{ "asn": types.Int64Type, "asn_text": types.StringType, "ip_address": types.StringType, "max_hop_count": types.Int64Type, "multihop": types.BoolType, "password": types.StringType, }
View Source
var ProtoBgpNeighborResourceSchemaAttributes = map[string]schema.Attribute{ "asn": schema.Int64Attribute{ Required: true, MarkdownDescription: `Autonomous system number of this BGP/anycast enabled on-prem host.`, }, "asn_text": schema.StringAttribute{ Computed: true, Optional: true, MarkdownDescription: `Autonomous system as text (supported in ASDOT or ASPLAIN format) Optional, requires the asn field to be set to the equivalent integer value of the ASDOT/ASPLAIN string contained in this field or be unset/zero. Example: | ASDOT | ASPLAIN | INTEGER | VALID/INVALID | |-------------|-------------|-------------|---------------| | 0.1 | 1 | 1 | Valid | | 1 | 1 | 1 | Valid | | 65535 | 65535 | 65535 | Valid | | 0.65535 | 65535 | 65535 | Valid | | 1.0 | 65536 | 65536 | Valid | | 1.1 | 65537 | 65537 | Valid | | 1.65535 | 131071 | 131071 | Valid | | 65535.0 | 4294901760 | 4294901760 | Valid | | 65535.1 | 4294901761 | 4294901761 | Valid | | 65535.65535 | 4294967295 | 4294967295 | Valid | | 0.65536 | | | Invalid | | 65535.655536| | | Invalid | | 65536.0 | | | Invalid | | 65536.65535 | | | Invalid | | | 4294967296 | | Invalid | `, }, "ip_address": schema.StringAttribute{ Optional: true, MarkdownDescription: "IPv4 address of the BGP neighbor", }, "max_hop_count": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Max hop count, if BGP multihop is enabled.`, }, "multihop": schema.BoolAttribute{ Optional: true, MarkdownDescription: `BGP multihop enabled or not.`, }, "password": schema.StringAttribute{ Optional: true, MarkdownDescription: `BGP protocol access password for this BGP neighbor, max 25 characters long.`, }, }
View Source
var ProtoOnpremHostRefAttrTypes = map[string]attr.Type{ "id": types.Int64Type, "ip_address": types.StringType, "ipv6_address": types.StringType, "name": types.StringType, "ophid": types.StringType, "runtime_status": types.StringType, }
View Source
var ProtoOnpremHostRefResourceSchemaAttributes = map[string]schema.Attribute{ "id": schema.Int64Attribute{ Required: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.UseStateForUnknown(), }, MarkdownDescription: "The resource identifier.", }, "ip_address": schema.StringAttribute{ Optional: true, Computed: true, MarkdownDescription: "IPv4 address of the host in string format", }, "ipv6_address": schema.StringAttribute{ Optional: true, Computed: true, MarkdownDescription: "IPv6 address of the host in string format", }, "name": schema.StringAttribute{ Computed: true, MarkdownDescription: `The name of the anycast.`, }, "ophid": schema.StringAttribute{ Computed: true, MarkdownDescription: "Unique 32-character string identifier assigned to the host", }, "runtime_status": schema.StringAttribute{ Computed: true, MarkdownDescription: "The runtime status of the host", }, }
View Source
var ProtoOnpremHostResourceSchemaAttributes = map[string]schema.Attribute{ "anycast_config_refs": schema.ListNestedAttribute{ CustomType: internaltypes.UnorderedList{ListType: basetypes.ListType{ElemType: basetypes.ObjectType{AttrTypes: ProtoAnycastConfigRefAttrTypes}}}, NestedObject: schema.NestedAttributeObject{ Attributes: ProtoAnycastConfigRefResourceSchemaAttributes, }, Optional: true, MarkdownDescription: `Array of AnycastConfigRef structures, identifying the anycast configurations that this host is a member of.`, }, "config_bgp": schema.SingleNestedAttribute{ Attributes: ProtoBgpConfigResourceSchemaAttributes, Optional: true, MarkdownDescription: `Struct BGP configuration; defines BGP configuration for one anycast-enabled on-prem host.`, }, "config_ospf": schema.SingleNestedAttribute{ Attributes: ProtoOspfConfigResourceSchemaAttributes, Optional: true, MarkdownDescription: `Struct OSPF configuration; defines OSPF configuration for one anycast-enabled on-prem host.`, }, "config_ospfv3": schema.SingleNestedAttribute{ Attributes: ProtoOspfv3ConfigResourceSchemaAttributes, Optional: true, MarkdownDescription: `Struct OSPFv3 configuration; defines OSPFv3 configuration for one anycast-enabled on-prem host.`, }, "created_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: `Date/time this host was created in anycast service database.`, }, "id": schema.Int64Attribute{ Required: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.UseStateForUnknown(), }, MarkdownDescription: `Numeric host identifier.`, }, "ip_address": schema.StringAttribute{ Computed: true, MarkdownDescription: "IPv4 address of the on-prem host", }, "ipv6_address": schema.StringAttribute{ Computed: true, MarkdownDescription: "IPv6 address of the on-prem host", }, "name": schema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, MarkdownDescription: `User-friendly name of the host @example "dns-host-1", "Central Office Server".`, }, "updated_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: `Date/time this host was last updated in anycast service database.`, }, }
View Source
var ProtoOspfConfigAttrTypes = map[string]attr.Type{ "area": types.StringType, "area_type": types.StringType, "authentication_key": types.StringType, "authentication_key_id": types.Int64Type, "authentication_type": types.StringType, "cost": types.Int64Type, "dead_interval": types.Int64Type, "hello_interval": types.Int64Type, "interface": types.StringType, "preamble": types.StringType, "retransmit_interval": types.Int64Type, "transmit_delay": types.Int64Type, }
View Source
var ProtoOspfConfigResourceSchemaAttributes = map[string]schema.Attribute{ "area": schema.StringAttribute{ Optional: true, MarkdownDescription: "OSPF area identifier; usually in the format of an IPv4 address (although not an address itself)", }, "area_type": schema.StringAttribute{ Optional: true, MarkdownDescription: `OSPF area type; one of: "STANDARD", "STUB", "NSSA".`, }, "authentication_key": schema.StringAttribute{ Optional: true, MarkdownDescription: `OSPF authentication key.`, }, "authentication_key_id": schema.Int64Attribute{ Optional: true, MarkdownDescription: `title: Numeric OSPF authentication key identifier.`, }, "authentication_type": schema.StringAttribute{ Optional: true, MarkdownDescription: `OSPF authentication type; one of "Clear", "MD5".`, }, "cost": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Explicit link cost for the interface.`, }, "dead_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `OSPF router dead interval timer in seconds; must be the same for all the routers on the same network; default: 40 secs.`, }, "hello_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Period (in seconds) of OSPF Hello packet, sent by the OSPF router; must be the same for all the routers on the same network; default: 10 secs.`, }, "interface": schema.StringAttribute{ Optional: true, MarkdownDescription: "Name of the interface that is configured with external IP address of the host", }, "preamble": schema.StringAttribute{ Optional: true, MarkdownDescription: "Any predefined OSPF configuration, with embedded new lines; the preamble will be prepended to the generated BGP configuration.", }, "retransmit_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Period (in seconds) of retransmitting for OSPF Database Description and Link State Requests; default: 5 seconds.`, }, "transmit_delay": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Estimated time to transmit link state advertisements; default: 1 sec.`, }, }
View Source
var ProtoOspfv3ConfigAttrTypes = map[string]attr.Type{ "area": types.StringType, "cost": types.Int64Type, "dead_interval": types.Int64Type, "hello_interval": types.Int64Type, "interface": types.StringType, "retransmit_interval": types.Int64Type, "transmit_delay": types.Int64Type, }
View Source
var ProtoOspfv3ConfigResourceSchemaAttributes = map[string]schema.Attribute{ "area": schema.StringAttribute{ Optional: true, MarkdownDescription: "OSPF area identifier; usually in the format of an IPv4 address (although not an address itself)", }, "cost": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Explicit link cost for the interface.`, }, "dead_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `OSPF router dead interval timer in seconds; must be the same for all the routers on the same network; default: 40 sec.`, }, "hello_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Period (in seconds) of OSPF Hello packet, sent by the OSPF router; must be the same for all the routers on the same network; default: 10 secs.`, }, "interface": schema.StringAttribute{ Optional: true, MarkdownDescription: "Name of the interface that is configured with external IP address of the host", }, "retransmit_interval": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Period (in seconds) of retransmitting for OSPF Database Description and Link State Requests; default: 5 seconds.`, }, "transmit_delay": schema.Int64Attribute{ Optional: true, MarkdownDescription: `Estimated time to transmit link state advertisements; default: 1 sec.`, }, }
View Source
var ProtobufFieldMaskAttrTypes = map[string]attr.Type{ "paths": types.ListType{ElemType: types.StringType}, }
View Source
var ProtobufFieldMaskResourceSchemaAttributes = map[string]schema.Attribute{ "paths": schema.ListAttribute{ ElementType: types.StringType, Optional: true, MarkdownDescription: "The set of field mask paths.", }, }
Functions ¶
func DataSourceFlattenProtoAnycastConfig ¶ added in v1.3.0
func DataSourceFlattenProtoAnycastConfig(ctx context.Context, from *anycast.AnycastConfig, diags *diag.Diagnostics) types.Object
func ExpandProtoAnycastConfig ¶
func ExpandProtoAnycastConfig(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.AnycastConfig
func ExpandProtoAnycastConfigRef ¶
func ExpandProtoAnycastConfigRef(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.AnycastConfigRef
func ExpandProtoBgpConfig ¶
func ExpandProtoBgpNeighbor ¶
func ExpandProtoBgpNeighbor(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.BgpNeighbor
func ExpandProtoOnpremHostRef ¶
func ExpandProtoOnpremHostRef(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.OnpremHostRef
func ExpandProtoOspfConfig ¶
func ExpandProtoOspfConfig(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.OspfConfig
func ExpandProtoOspfv3Config ¶
func ExpandProtoOspfv3Config(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.Ospfv3Config
func ExpandProtobufFieldMask ¶
func ExpandProtobufFieldMask(ctx context.Context, o types.Object, diags *diag.Diagnostics) *anycast.ProtobufFieldMask
func FlattenProtoAnycastConfigRef ¶
func FlattenProtoAnycastConfigRef(ctx context.Context, from *anycast.AnycastConfigRef, diags *diag.Diagnostics) types.Object
func FlattenProtoBgpConfig ¶
func FlattenProtoBgpNeighbor ¶
func FlattenProtoBgpNeighbor(ctx context.Context, from *anycast.BgpNeighbor, diags *diag.Diagnostics) types.Object
func FlattenProtoOnpremHostRef ¶
func FlattenProtoOnpremHostRef(ctx context.Context, from *anycast.OnpremHostRef, diags *diag.Diagnostics) types.Object
func FlattenProtoOspfConfig ¶
func FlattenProtoOspfConfig(ctx context.Context, from *anycast.OspfConfig, diags *diag.Diagnostics) types.Object
func FlattenProtoOspfv3Config ¶
func FlattenProtoOspfv3Config(ctx context.Context, from *anycast.Ospfv3Config, diags *diag.Diagnostics) types.Object
func FlattenProtobufFieldMask ¶
func FlattenProtobufFieldMask(ctx context.Context, from *anycast.ProtobufFieldMask, diags *diag.Diagnostics) types.Object
func NewAnycastConfigDataSource ¶
func NewAnycastConfigDataSource() datasource.DataSource
func NewAnycastHostResource ¶
Types ¶
type AnycastConfigDataSource ¶
type AnycastConfigDataSource struct {
// contains filtered or unexported fields
}
AnycastConfigDataSource defines the data source implementation.
func (*AnycastConfigDataSource) Configure ¶
func (d *AnycastConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*AnycastConfigDataSource) Metadata ¶
func (d *AnycastConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*AnycastConfigDataSource) Read ¶
func (d *AnycastConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AnycastConfigDataSource) Schema ¶
func (d *AnycastConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AnycastHostResource ¶
type AnycastHostResource struct {
// contains filtered or unexported fields
}
OnPremAnycastManagerResource defines the resource implementation.
func (*AnycastHostResource) Configure ¶
func (r *AnycastHostResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AnycastHostResource) Create ¶
func (r *AnycastHostResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AnycastHostResource) Delete ¶
func (r *AnycastHostResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AnycastHostResource) ImportState ¶
func (r *AnycastHostResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AnycastHostResource) Metadata ¶
func (r *AnycastHostResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AnycastHostResource) Read ¶
func (r *AnycastHostResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AnycastHostResource) Schema ¶
func (r *AnycastHostResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AnycastHostResource) Update ¶
func (r *AnycastHostResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type OnPremAnycastManagerResource ¶
type OnPremAnycastManagerResource struct {
// contains filtered or unexported fields
}
OnPremAnycastManagerResource defines the resource implementation.
func (*OnPremAnycastManagerResource) Configure ¶
func (r *OnPremAnycastManagerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*OnPremAnycastManagerResource) Create ¶
func (r *OnPremAnycastManagerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*OnPremAnycastManagerResource) Delete ¶
func (r *OnPremAnycastManagerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*OnPremAnycastManagerResource) ImportState ¶
func (r *OnPremAnycastManagerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*OnPremAnycastManagerResource) Metadata ¶
func (r *OnPremAnycastManagerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*OnPremAnycastManagerResource) Read ¶
func (r *OnPremAnycastManagerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*OnPremAnycastManagerResource) Schema ¶
func (r *OnPremAnycastManagerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*OnPremAnycastManagerResource) Update ¶
func (r *OnPremAnycastManagerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ProtoAnycastConfigModel ¶
type ProtoAnycastConfigModel struct { AccountId types.Int64 `tfsdk:"account_id"` AnycastIpAddress types.String `tfsdk:"anycast_ip_address"` AnycastIpv6Address types.String `tfsdk:"anycast_ipv6_address"` CreatedAt timetypes.RFC3339 `tfsdk:"created_at"` Description types.String `tfsdk:"description"` Id types.Int64 `tfsdk:"id"` IsConfigured types.Bool `tfsdk:"is_configured"` Name types.String `tfsdk:"name"` OnpremHosts types.List `tfsdk:"onprem_hosts"` RuntimeStatus types.String `tfsdk:"runtime_status"` Service types.String `tfsdk:"service"` Tags types.Map `tfsdk:"tags"` TagsAll types.Map `tfsdk:"tags_all"` UpdatedAt timetypes.RFC3339 `tfsdk:"updated_at"` }
func (*ProtoAnycastConfigModel) Expand ¶
func (m *ProtoAnycastConfigModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.AnycastConfig
func (*ProtoAnycastConfigModel) Flatten ¶
func (m *ProtoAnycastConfigModel) Flatten(ctx context.Context, from *anycast.AnycastConfig, diags *diag.Diagnostics)
type ProtoAnycastConfigModelWithFilter ¶
type ProtoAnycastConfigModelWithFilter struct { Filters types.Map `tfsdk:"filters"` //todo : remove this TagFilters types.Map `tfsdk:"tag_filters"` Results types.List `tfsdk:"results"` Service types.String `tfsdk:"service"` HostID types.Int64 `tfsdk:"host_id"` IsConfigured types.Bool `tfsdk:"is_configured"` }
func (*ProtoAnycastConfigModelWithFilter) FlattenResults ¶
func (m *ProtoAnycastConfigModelWithFilter) FlattenResults(ctx context.Context, from []anycast.AnycastConfig, diags *diag.Diagnostics)
type ProtoAnycastConfigRefModel ¶
type ProtoAnycastConfigRefModel struct { AnycastConfigName types.String `tfsdk:"anycast_config_name"` RoutingProtocols types.List `tfsdk:"routing_protocols"` }
func (*ProtoAnycastConfigRefModel) Expand ¶
func (m *ProtoAnycastConfigRefModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.AnycastConfigRef
func (*ProtoAnycastConfigRefModel) Flatten ¶
func (m *ProtoAnycastConfigRefModel) Flatten(ctx context.Context, from *anycast.AnycastConfigRef, diags *diag.Diagnostics)
type ProtoBgpConfigModel ¶
type ProtoBgpConfigModel struct { Asn types.Int64 `tfsdk:"asn"` AsnText types.String `tfsdk:"asn_text"` Fields types.Object `tfsdk:"fields"` HolddownSecs types.Int64 `tfsdk:"holddown_secs"` KeepAliveSecs types.Int64 `tfsdk:"keep_alive_secs"` LinkDetect types.Bool `tfsdk:"link_detect"` Neighbors types.List `tfsdk:"neighbors"` Preamble types.String `tfsdk:"preamble"` }
func (*ProtoBgpConfigModel) Expand ¶
func (m *ProtoBgpConfigModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.BgpConfig
func (*ProtoBgpConfigModel) Flatten ¶
func (m *ProtoBgpConfigModel) Flatten(ctx context.Context, from *anycast.BgpConfig, diags *diag.Diagnostics)
type ProtoBgpNeighborModel ¶
type ProtoBgpNeighborModel struct { Asn types.Int64 `tfsdk:"asn"` AsnText types.String `tfsdk:"asn_text"` IpAddress types.String `tfsdk:"ip_address"` MaxHopCount types.Int64 `tfsdk:"max_hop_count"` Multihop types.Bool `tfsdk:"multihop"` Password types.String `tfsdk:"password"` }
func (*ProtoBgpNeighborModel) Expand ¶
func (m *ProtoBgpNeighborModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.BgpNeighbor
func (*ProtoBgpNeighborModel) Flatten ¶
func (m *ProtoBgpNeighborModel) Flatten(ctx context.Context, from *anycast.BgpNeighbor, diags *diag.Diagnostics)
type ProtoOnpremHostModel ¶
type ProtoOnpremHostModel struct { AnycastConfigRefs internaltypes.UnorderedListValue `tfsdk:"anycast_config_refs"` ConfigBgp types.Object `tfsdk:"config_bgp"` ConfigOspf types.Object `tfsdk:"config_ospf"` ConfigOspfv3 types.Object `tfsdk:"config_ospfv3"` CreatedAt timetypes.RFC3339 `tfsdk:"created_at"` Id types.Int64 `tfsdk:"id"` IpAddress types.String `tfsdk:"ip_address"` Ipv6Address types.String `tfsdk:"ipv6_address"` Name types.String `tfsdk:"name"` UpdatedAt timetypes.RFC3339 `tfsdk:"updated_at"` }
func (*ProtoOnpremHostModel) Expand ¶
func (m *ProtoOnpremHostModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.OnpremHost
func (*ProtoOnpremHostModel) Flatten ¶
func (m *ProtoOnpremHostModel) Flatten(ctx context.Context, from *anycast.OnpremHost, diags *diag.Diagnostics)
type ProtoOnpremHostRefModel ¶
type ProtoOnpremHostRefModel struct { Id types.Int64 `tfsdk:"id"` IpAddress types.String `tfsdk:"ip_address"` Ipv6Address types.String `tfsdk:"ipv6_address"` Name types.String `tfsdk:"name"` Ophid types.String `tfsdk:"ophid"` RuntimeStatus types.String `tfsdk:"runtime_status"` }
func (*ProtoOnpremHostRefModel) Expand ¶
func (m *ProtoOnpremHostRefModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.OnpremHostRef
func (*ProtoOnpremHostRefModel) Flatten ¶
func (m *ProtoOnpremHostRefModel) Flatten(ctx context.Context, from *anycast.OnpremHostRef, diags *diag.Diagnostics)
type ProtoOspfConfigModel ¶
type ProtoOspfConfigModel struct { Area types.String `tfsdk:"area"` AreaType types.String `tfsdk:"area_type"` AuthenticationKey types.String `tfsdk:"authentication_key"` AuthenticationKeyId types.Int64 `tfsdk:"authentication_key_id"` AuthenticationType types.String `tfsdk:"authentication_type"` Cost types.Int64 `tfsdk:"cost"` DeadInterval types.Int64 `tfsdk:"dead_interval"` HelloInterval types.Int64 `tfsdk:"hello_interval"` Interface types.String `tfsdk:"interface"` Preamble types.String `tfsdk:"preamble"` RetransmitInterval types.Int64 `tfsdk:"retransmit_interval"` TransmitDelay types.Int64 `tfsdk:"transmit_delay"` }
func (*ProtoOspfConfigModel) Expand ¶
func (m *ProtoOspfConfigModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.OspfConfig
func (*ProtoOspfConfigModel) Flatten ¶
func (m *ProtoOspfConfigModel) Flatten(ctx context.Context, from *anycast.OspfConfig, diags *diag.Diagnostics)
type ProtoOspfv3ConfigModel ¶
type ProtoOspfv3ConfigModel struct { Area types.String `tfsdk:"area"` Cost types.Int64 `tfsdk:"cost"` DeadInterval types.Int64 `tfsdk:"dead_interval"` HelloInterval types.Int64 `tfsdk:"hello_interval"` Interface types.String `tfsdk:"interface"` RetransmitInterval types.Int64 `tfsdk:"retransmit_interval"` TransmitDelay types.Int64 `tfsdk:"transmit_delay"` }
func (*ProtoOspfv3ConfigModel) Expand ¶
func (m *ProtoOspfv3ConfigModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.Ospfv3Config
func (*ProtoOspfv3ConfigModel) Flatten ¶
func (m *ProtoOspfv3ConfigModel) Flatten(ctx context.Context, from *anycast.Ospfv3Config, diags *diag.Diagnostics)
type ProtobufFieldMaskModel ¶
func (*ProtobufFieldMaskModel) Expand ¶
func (m *ProtobufFieldMaskModel) Expand(ctx context.Context, diags *diag.Diagnostics) *anycast.ProtobufFieldMask
func (*ProtobufFieldMaskModel) Flatten ¶
func (m *ProtobufFieldMaskModel) Flatten(ctx context.Context, from *anycast.ProtobufFieldMask, diags *diag.Diagnostics)
Source Files ¶
- api_anycast_config_data_source.go
- api_anycast_config_resource.go
- api_anycast_host_resource.go
- model_proto_anycast_config.go
- model_proto_anycast_config_ref.go
- model_proto_bgp_config.go
- model_proto_bgp_neighbor.go
- model_proto_onprem_host.go
- model_proto_onprem_host_ref.go
- model_proto_ospf_config.go
- model_proto_ospfv3_config.go
- model_protobuf_field_mask.go
Click to show internal directories.
Click to hide internal directories.