Documentation
¶
Index ¶
- func OrgInventoryDataSourceSchema(ctx context.Context) schema.Schema
- func SdkToTerraform(ctx context.Context, l *[]models.Inventory, elements *[]attr.Value) diag.Diagnostics
- 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 ¶
func SdkToTerraform ¶
Types ¶
type DevicesType ¶ added in v0.2.0
type DevicesType struct {
basetypes.ObjectType
}
func (DevicesType) String ¶ added in v0.2.0
func (t DevicesType) String() string
func (DevicesType) ValueFromObject ¶ added in v0.2.0
func (t DevicesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DevicesType) ValueFromTerraform ¶ added in v0.2.0
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 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 (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 (v DevicesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DevicesValue) ToTerraformValue ¶ added in v0.2.0
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"` }
Click to show internal directories.
Click to hide internal directories.