resource_org_inventory

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgInventoryResourceSchema

func OrgInventoryResourceSchema(ctx context.Context) schema.Schema

func TerraformToSdk

func TerraformToSdk(ctx context.Context, devices_plan *basetypes.ListValue, devices_state *basetypes.ListValue) ([]string, []string, []string, map[string]string, map[string][]string, diag.Diagnostics)

Types

type DevicesType

type DevicesType struct {
	basetypes.ObjectType
}

func (DevicesType) Equal

func (t DevicesType) Equal(o attr.Type) bool

func (DevicesType) String

func (t DevicesType) String() string

func (DevicesType) ValueFromObject

func (DevicesType) ValueFromTerraform

func (t DevicesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (DevicesType) ValueType

func (t DevicesType) ValueType(ctx context.Context) attr.Value

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 NewDevicesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DevicesValue

func NewDevicesValueNull

func NewDevicesValueNull() DevicesValue

func NewDevicesValueUnknown

func NewDevicesValueUnknown() DevicesValue

func (DevicesValue) AttributeTypes

func (v DevicesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (DevicesValue) Equal

func (v DevicesValue) Equal(o attr.Value) bool

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 (DevicesValue) ToTerraformValue

func (v DevicesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (DevicesValue) Type

func (v DevicesValue) Type(ctx context.Context) attr.Type

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL