Documentation
¶
Index ¶
- func LoadBalancerMonitorDataSourceSchema(ctx context.Context) schema.Schema
- func NewDataSource() datasource.DataSource
- func RenderLoadBalancerMonitorDataSourceByIDConfig(t *testing.T, overrides map[string]string) (string, error)
- func RenderLoadBalancerMonitorDataSourceByNameConfig(t *testing.T, overrides map[string]string) (string, error)
- type ConfigType
- func (t ConfigType) Equal(o attr.Type) bool
- func (t ConfigType) String() string
- func (t ConfigType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ConfigType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ConfigType) ValueType(ctx context.Context) attr.Value
- type ConfigValue
- func NewConfigValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ConfigValue, diag.Diagnostics)
- func NewConfigValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ConfigValue
- func NewConfigValueNull() ConfigValue
- func NewConfigValueUnknown() ConfigValue
- func (v ConfigValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v ConfigValue) Equal(o attr.Value) bool
- func (v ConfigValue) IsNull() bool
- func (v ConfigValue) IsUnknown() bool
- func (v ConfigValue) String() string
- func (v ConfigValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v ConfigValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v ConfigValue) Type(ctx context.Context) attr.Type
- type DataSource
- type LoadBalancerMonitorModel
- type MonitorType
- func (t MonitorType) Equal(o attr.Type) bool
- func (t MonitorType) String() string
- func (t MonitorType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t MonitorType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MonitorType) ValueType(ctx context.Context) attr.Value
- type MonitorValue
- func NewMonitorValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (MonitorValue, diag.Diagnostics)
- func NewMonitorValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) MonitorValue
- func NewMonitorValueNull() MonitorValue
- func NewMonitorValueUnknown() MonitorValue
- func (v MonitorValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v MonitorValue) Equal(o attr.Value) bool
- func (v MonitorValue) IsNull() bool
- func (v MonitorValue) IsUnknown() bool
- func (v MonitorValue) String() string
- func (v MonitorValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v MonitorValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v MonitorValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
Types ¶
type ConfigType ¶
type ConfigType struct {
basetypes.ObjectType
}
func (ConfigType) String ¶
func (t ConfigType) String() string
func (ConfigType) ValueFromObject ¶
func (t ConfigType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ConfigType) ValueFromTerraform ¶
type ConfigValue ¶
type ConfigValue struct {
Monitor basetypes.ObjectValue `tfsdk:"monitor"`
MonitorConfig basetypes.DynamicValue `tfsdk:"monitor_config"`
// contains filtered or unexported fields
}
func NewConfigValue ¶
func NewConfigValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ConfigValue, diag.Diagnostics)
func NewConfigValueMust ¶
func NewConfigValueNull ¶
func NewConfigValueNull() ConfigValue
func NewConfigValueUnknown ¶
func NewConfigValueUnknown() ConfigValue
func (ConfigValue) AttributeTypes ¶
func (ConfigValue) IsNull ¶
func (v ConfigValue) IsNull() bool
func (ConfigValue) IsUnknown ¶
func (v ConfigValue) IsUnknown() bool
func (ConfigValue) String ¶
func (v ConfigValue) String() string
func (ConfigValue) ToObjectValue ¶
func (v ConfigValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (ConfigValue) ToTerraformValue ¶
type DataSource ¶
type DataSource struct {
configure.DataSourceWithMorpheusConfigure
datasource.DataSource
}
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*DataSource) Schema ¶
func (d *DataSource) Schema( ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type LoadBalancerMonitorModel ¶
type LoadBalancerMonitorModel struct {
AliasPort types.Int64 `tfsdk:"alias_port"`
Category types.String `tfsdk:"category"`
Code types.String `tfsdk:"code"`
Config ConfigValue `tfsdk:"config"`
DataLength types.Int64 `tfsdk:"data_length"`
Description types.String `tfsdk:"description"`
Enabled types.Bool `tfsdk:"enabled"`
ExternalId types.String `tfsdk:"external_id"`
FallCount types.Int64 `tfsdk:"fall_count"`
Id types.Int64 `tfsdk:"id"`
InternalId types.String `tfsdk:"internal_id"`
LoadBalancerId types.Int64 `tfsdk:"load_balancer_id"`
MaxRetry types.Int64 `tfsdk:"max_retry"`
MonitorDestination types.String `tfsdk:"monitor_destination"`
MonitorInterval types.Int64 `tfsdk:"monitor_interval"`
MonitorTimeout types.Int64 `tfsdk:"monitor_timeout"`
MonitorType types.String `tfsdk:"monitor_type"`
MonitorUsername types.String `tfsdk:"monitor_username"`
Name types.String `tfsdk:"name"`
ReceiveCode types.String `tfsdk:"receive_code"`
ReceiveData types.String `tfsdk:"receive_data"`
RiseCount types.Int64 `tfsdk:"rise_count"`
SendData types.String `tfsdk:"send_data"`
SendType types.String `tfsdk:"send_type"`
SendVersion types.String `tfsdk:"send_version"`
Status types.String `tfsdk:"status"`
StatusDate types.String `tfsdk:"status_date"`
StatusMessage types.String `tfsdk:"status_message"`
Visibility types.String `tfsdk:"visibility"`
}
type MonitorType ¶
type MonitorType struct {
basetypes.ObjectType
}
func (MonitorType) String ¶
func (t MonitorType) String() string
func (MonitorType) ValueFromObject ¶
func (t MonitorType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (MonitorType) ValueFromTerraform ¶
type MonitorValue ¶
type MonitorValue struct {
Id basetypes.Int64Value `tfsdk:"id"`
// contains filtered or unexported fields
}
func NewMonitorValue ¶
func NewMonitorValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (MonitorValue, diag.Diagnostics)
func NewMonitorValueMust ¶
func NewMonitorValueNull ¶
func NewMonitorValueNull() MonitorValue
func NewMonitorValueUnknown ¶
func NewMonitorValueUnknown() MonitorValue
func (MonitorValue) AttributeTypes ¶
func (MonitorValue) IsNull ¶
func (v MonitorValue) IsNull() bool
func (MonitorValue) IsUnknown ¶
func (v MonitorValue) IsUnknown() bool
func (MonitorValue) String ¶
func (v MonitorValue) String() string
func (MonitorValue) ToObjectValue ¶
func (v MonitorValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (MonitorValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.