Documentation
¶
Overview ¶
Package networkdhcpserver implements a data source for network_dhcp_server
Index ¶
- Constants
- func NetworkDhcpServerDataSourceSchema(ctx context.Context) schema.Schema
- func NewDataSource() datasource.DataSource
- func RenderNetworkDhcpServerByIdConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderNetworkDhcpServerByNameConfig(t *testing.T, overrides map[string]string) (string, error)
- type ConfigNsxtType
- func (t ConfigNsxtType) Equal(o attr.Type) bool
- func (t ConfigNsxtType) String() string
- func (t ConfigNsxtType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ConfigNsxtType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ConfigNsxtType) ValueType(ctx context.Context) attr.Value
- type ConfigNsxtValue
- func NewConfigNsxtValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ConfigNsxtValue, diag.Diagnostics)
- func NewConfigNsxtValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ConfigNsxtValue
- func NewConfigNsxtValueNull() ConfigNsxtValue
- func NewConfigNsxtValueUnknown() ConfigNsxtValue
- func (v ConfigNsxtValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v ConfigNsxtValue) Equal(o attr.Value) bool
- func (v ConfigNsxtValue) IsNull() bool
- func (v ConfigNsxtValue) IsUnknown() bool
- func (v ConfigNsxtValue) String() string
- func (v ConfigNsxtValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v ConfigNsxtValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v ConfigNsxtValue) Type(ctx context.Context) attr.Type
- type DataSource
- type NetworkDhcpServerModel
Constants ¶
View Source
const ( ErrorNoValidSearchTerms = `no valid search terms - an id or name is required` ErrorRunningPreApply = `Error running pre-apply plan: exit status 1` ErrorNoNetworkDhcpServerFound = `no network DHCP server found` ErrorMultipleNetworkDhcpServers = `multiple network DHCP servers were returned` )
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
NewDataSource is a helper function to simplify the provider implementation.
Types ¶
type ConfigNsxtType ¶
type ConfigNsxtType struct {
basetypes.ObjectType
}
func (ConfigNsxtType) String ¶
func (t ConfigNsxtType) String() string
func (ConfigNsxtType) ValueFromObject ¶
func (t ConfigNsxtType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ConfigNsxtType) ValueFromTerraform ¶
type ConfigNsxtValue ¶
type ConfigNsxtValue struct {
ActiveEdgeNode basetypes.StringValue `tfsdk:"active_edge_node"`
EdgeCluster basetypes.StringValue `tfsdk:"edge_cluster"`
StandbyEdgeNode basetypes.StringValue `tfsdk:"standby_edge_node"`
// contains filtered or unexported fields
}
func NewConfigNsxtValue ¶
func NewConfigNsxtValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ConfigNsxtValue, diag.Diagnostics)
func NewConfigNsxtValueMust ¶
func NewConfigNsxtValueNull ¶
func NewConfigNsxtValueNull() ConfigNsxtValue
func NewConfigNsxtValueUnknown ¶
func NewConfigNsxtValueUnknown() ConfigNsxtValue
func (ConfigNsxtValue) AttributeTypes ¶
func (ConfigNsxtValue) IsNull ¶
func (v ConfigNsxtValue) IsNull() bool
func (ConfigNsxtValue) IsUnknown ¶
func (v ConfigNsxtValue) IsUnknown() bool
func (ConfigNsxtValue) String ¶
func (v ConfigNsxtValue) String() string
func (ConfigNsxtValue) ToObjectValue ¶
func (v ConfigNsxtValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (ConfigNsxtValue) ToTerraformValue ¶
type DataSource ¶
type DataSource struct {
configure.DataSourceWithMorpheusConfigure
datasource.DataSource
}
DataSource is the data source implementation.
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
Metadata returns the data source type name.
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
Read refreshes the Terraform state with the latest data.
func (*DataSource) Schema ¶
func (d *DataSource) Schema( ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
Schema defines the schema for the data source.
type NetworkDhcpServerModel ¶
type NetworkDhcpServerModel struct {
Config types.Dynamic `tfsdk:"config"`
ConfigNsxt ConfigNsxtValue `tfsdk:"config_nsxt"`
Id types.Int64 `tfsdk:"id"`
LeaseTime types.Int64 `tfsdk:"lease_time"`
Name types.String `tfsdk:"name"`
NetworkIntegrationId types.Int64 `tfsdk:"network_integration_id"`
ServerIpAddress types.String `tfsdk:"server_ip_address"`
}
Click to show internal directories.
Click to hide internal directories.