Documentation
¶
Index ¶
- func OrgInventoryResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, devices_plan *basetypes.ListValue, ...) ([]string, []string, []string, map[string]string, map[string][]string, ...)
- type DevicesType
- func (t DevicesType) Equal(o attr.Type) bool
- func (t DevicesType) String() string
- func (t DevicesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DevicesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DevicesType) ValueType(ctx context.Context) attr.Value
- type DevicesValue
- func NewDevicesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DevicesValue, diag.Diagnostics)
- func NewDevicesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DevicesValue
- func NewDevicesValueNull() DevicesValue
- func NewDevicesValueUnknown() DevicesValue
- func (v DevicesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DevicesValue) Equal(o attr.Value) bool
- func (v DevicesValue) IsNull() bool
- func (v DevicesValue) IsUnknown() bool
- func (v DevicesValue) String() string
- func (v DevicesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DevicesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DevicesValue) Type(ctx context.Context) attr.Type
- type OrgInventoryModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevicesType ¶
type DevicesType struct {
basetypes.ObjectType
}
func (DevicesType) String ¶
func (t DevicesType) String() string
func (DevicesType) ValueFromObject ¶
func (t DevicesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DevicesType) ValueFromTerraform ¶
type DevicesValue ¶
type DevicesValue struct { Magic basetypes.StringValue `tfsdk:"claim_code"` Mac basetypes.StringValue `tfsdk:"mac"` Model basetypes.StringValue `tfsdk:"model"` OrgId basetypes.StringValue `tfsdk:"org_id"` Serial basetypes.StringValue `tfsdk:"serial"` SiteId basetypes.StringValue `tfsdk:"site_id"` DeviceType basetypes.StringValue `tfsdk:"type"` VcMac basetypes.StringValue `tfsdk:"vc_mac"` Hostname basetypes.StringValue `tfsdk:"hostname"` Id basetypes.StringValue `tfsdk:"id"` // contains filtered or unexported fields }
func NewDevicesValue ¶
func NewDevicesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DevicesValue, diag.Diagnostics)
func NewDevicesValueMust ¶
func NewDevicesValueNull ¶
func NewDevicesValueNull() DevicesValue
func NewDevicesValueUnknown ¶
func NewDevicesValueUnknown() DevicesValue
func (DevicesValue) AttributeTypes ¶
func (DevicesValue) IsNull ¶
func (v DevicesValue) IsNull() bool
func (DevicesValue) IsUnknown ¶
func (v DevicesValue) IsUnknown() bool
func (DevicesValue) String ¶
func (v DevicesValue) String() string
func (DevicesValue) ToObjectValue ¶
func (v DevicesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DevicesValue) ToTerraformValue ¶
type OrgInventoryModel ¶
type OrgInventoryModel struct { OrgId types.String `tfsdk:"org_id"` Devices types.List `tfsdk:"devices"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, orgId string, data []models.Inventory, plan *OrgInventoryModel) (OrgInventoryModel, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.