datasource_org_inventory

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgInventoryDataSourceSchema

func OrgInventoryDataSourceSchema(ctx context.Context) schema.Schema

func SdkToTerraform

func SdkToTerraform(ctx context.Context, l *[]models.Inventory, elements *[]attr.Value) diag.Diagnostics

Types

type DevicesType added in v0.2.0

type DevicesType struct {
	basetypes.ObjectType
}

func (DevicesType) Equal added in v0.2.0

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

func (DevicesType) String added in v0.2.0

func (t DevicesType) String() string

func (DevicesType) ValueFromObject added in v0.2.0

func (DevicesType) ValueFromTerraform added in v0.2.0

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

func (DevicesType) ValueType added in v0.2.0

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

type DevicesValue added in v0.2.0

type DevicesValue struct {
	Adopted         basetypes.BoolValue   `tfsdk:"adopted"`
	ClaimCode       basetypes.StringValue `tfsdk:"claim_code"`
	Connected       basetypes.BoolValue   `tfsdk:"connected"`
	CreatedTime     basetypes.NumberValue `tfsdk:"created_time"`
	DeviceprofileId basetypes.StringValue `tfsdk:"deviceprofile_id"`
	Hostname        basetypes.StringValue `tfsdk:"hostname"`
	HwRev           basetypes.StringValue `tfsdk:"hw_rev"`
	Id              basetypes.StringValue `tfsdk:"id"`
	Jsi             basetypes.BoolValue   `tfsdk:"jsi"`
	Mac             basetypes.StringValue `tfsdk:"mac"`
	Model           basetypes.StringValue `tfsdk:"model"`
	ModifiedTime    basetypes.NumberValue `tfsdk:"modified_time"`
	Name            basetypes.StringValue `tfsdk:"name"`
	OrgId           basetypes.StringValue `tfsdk:"org_id"`
	Serial          basetypes.StringValue `tfsdk:"serial"`
	SiteId          basetypes.StringValue `tfsdk:"site_id"`
	Sku             basetypes.StringValue `tfsdk:"sku"`
	DevicesType     basetypes.StringValue `tfsdk:"type"`
	VcMac           basetypes.StringValue `tfsdk:"vc_mac"`
	// contains filtered or unexported fields
}

func NewDevicesValue added in v0.2.0

func NewDevicesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DevicesValue, diag.Diagnostics)

func NewDevicesValueMust added in v0.2.0

func NewDevicesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DevicesValue

func NewDevicesValueNull added in v0.2.0

func NewDevicesValueNull() DevicesValue

func NewDevicesValueUnknown added in v0.2.0

func NewDevicesValueUnknown() DevicesValue

func (DevicesValue) AttributeTypes added in v0.2.0

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

func (DevicesValue) Equal added in v0.2.0

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

func (DevicesValue) IsNull added in v0.2.0

func (v DevicesValue) IsNull() bool

func (DevicesValue) IsUnknown added in v0.2.0

func (v DevicesValue) IsUnknown() bool

func (DevicesValue) String added in v0.2.0

func (v DevicesValue) String() string

func (DevicesValue) ToObjectValue added in v0.2.0

func (DevicesValue) ToTerraformValue added in v0.2.0

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

func (DevicesValue) Type added in v0.2.0

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

type OrgInventoryModel

type OrgInventoryModel struct {
	Devices    types.Set    `tfsdk:"devices"`
	Mac        types.String `tfsdk:"mac"`
	Model      types.String `tfsdk:"model"`
	OrgId      types.String `tfsdk:"org_id"`
	Serial     types.String `tfsdk:"serial"`
	SiteId     types.String `tfsdk:"site_id"`
	Unassigned types.Bool   `tfsdk:"unassigned"`
	Vc         types.Bool   `tfsdk:"vc"`
	VcMac      types.String `tfsdk:"vc_mac"`
}

Jump to

Keyboard shortcuts

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