Documentation ¶
Index ¶
- func OrgAlarmtemplateResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *OrgAlarmtemplateModel) (*models.AlarmTemplate, diag.Diagnostics)
- type DeliveryType
- func (t DeliveryType) Equal(o attr.Type) bool
- func (t DeliveryType) String() string
- func (t DeliveryType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DeliveryType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DeliveryType) ValueType(ctx context.Context) attr.Value
- type DeliveryValue
- func NewDeliveryValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DeliveryValue, diag.Diagnostics)
- func NewDeliveryValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DeliveryValue
- func NewDeliveryValueNull() DeliveryValue
- func NewDeliveryValueUnknown() DeliveryValue
- func (v DeliveryValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DeliveryValue) Equal(o attr.Value) bool
- func (v DeliveryValue) IsNull() bool
- func (v DeliveryValue) IsUnknown() bool
- func (v DeliveryValue) String() string
- func (v DeliveryValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DeliveryValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DeliveryValue) Type(ctx context.Context) attr.Type
- type OrgAlarmtemplateModel
- type RulesType
- func (t RulesType) Equal(o attr.Type) bool
- func (t RulesType) String() string
- func (t RulesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t RulesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t RulesType) ValueType(ctx context.Context) attr.Value
- type RulesValue
- func NewRulesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (RulesValue, diag.Diagnostics)
- func NewRulesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) RulesValue
- func NewRulesValueNull() RulesValue
- func NewRulesValueUnknown() RulesValue
- func (v RulesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v RulesValue) Equal(o attr.Value) bool
- func (v RulesValue) IsNull() bool
- func (v RulesValue) IsUnknown() bool
- func (v RulesValue) String() string
- func (v RulesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v RulesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v RulesValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TerraformToSdk ¶
func TerraformToSdk(ctx context.Context, plan *OrgAlarmtemplateModel) (*models.AlarmTemplate, diag.Diagnostics)
Types ¶
type DeliveryType ¶
type DeliveryType struct {
basetypes.ObjectType
}
func (DeliveryType) String ¶
func (t DeliveryType) String() string
func (DeliveryType) ValueFromObject ¶
func (t DeliveryType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DeliveryType) ValueFromTerraform ¶
type DeliveryValue ¶
type DeliveryValue struct { AdditionalEmails basetypes.ListValue `tfsdk:"additional_emails"` Enabled basetypes.BoolValue `tfsdk:"enabled"` ToOrgAdmins basetypes.BoolValue `tfsdk:"to_org_admins"` ToSiteAdmins basetypes.BoolValue `tfsdk:"to_site_admins"` // contains filtered or unexported fields }
func NewDeliveryValue ¶
func NewDeliveryValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DeliveryValue, diag.Diagnostics)
func NewDeliveryValueMust ¶
func NewDeliveryValueNull ¶
func NewDeliveryValueNull() DeliveryValue
func NewDeliveryValueUnknown ¶
func NewDeliveryValueUnknown() DeliveryValue
func (DeliveryValue) AttributeTypes ¶
func (DeliveryValue) IsNull ¶
func (v DeliveryValue) IsNull() bool
func (DeliveryValue) IsUnknown ¶
func (v DeliveryValue) IsUnknown() bool
func (DeliveryValue) String ¶
func (v DeliveryValue) String() string
func (DeliveryValue) ToObjectValue ¶
func (v DeliveryValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DeliveryValue) ToTerraformValue ¶
type OrgAlarmtemplateModel ¶
type OrgAlarmtemplateModel struct { Delivery DeliveryValue `tfsdk:"delivery"` Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OrgId types.String `tfsdk:"org_id"` Rules types.Map `tfsdk:"rules"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, data models.AlarmTemplate) (OrgAlarmtemplateModel, diag.Diagnostics)
type RulesType ¶
type RulesType struct {
basetypes.ObjectType
}
func (RulesType) ValueFromObject ¶
func (t RulesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (RulesType) ValueFromTerraform ¶
type RulesValue ¶
type RulesValue struct { Delivery basetypes.ObjectValue `tfsdk:"delivery"` Enabled basetypes.BoolValue `tfsdk:"enabled"` // contains filtered or unexported fields }
func NewRulesValue ¶
func NewRulesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (RulesValue, diag.Diagnostics)
func NewRulesValueMust ¶
func NewRulesValueNull ¶
func NewRulesValueNull() RulesValue
func NewRulesValueUnknown ¶
func NewRulesValueUnknown() RulesValue
func (RulesValue) AttributeTypes ¶
func (RulesValue) IsNull ¶
func (v RulesValue) IsNull() bool
func (RulesValue) IsUnknown ¶
func (v RulesValue) IsUnknown() bool
func (RulesValue) String ¶
func (v RulesValue) String() string
func (RulesValue) ToObjectValue ¶
func (v RulesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (RulesValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.