Documentation ¶
Overview ¶
endpoints/common/sharedschemas/helpers.go
Index ¶
- func ExtractNestedObjectsFromSchema[NestedObjectType any, ListItemPrimitiveType any](path string, targetField string, d *schema.ResourceData, ...) error
- func GetSharedMobileDeviceSchemaScope() *schema.Resource
- func GetSharedSchemaCategory() *schema.Resource
- func GetSharedSchemaSite() *schema.Resource
- func GetSharedmacOSComputerSchemaScope() *schema.Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNestedObjectsFromSchema ¶ added in v0.0.56
func ExtractNestedObjectsFromSchema[NestedObjectType any, ListItemPrimitiveType any](path string, targetField string, d *schema.ResourceData, home *[]NestedObjectType) error
ExtractNestedObjectsFromSchema is a helper function to extract a list of nested objects from HCL configuration
Example usage:
err = ExtractNestedObjectsFromSchema[jamfpro.MacOSConfigurationProfileSubsetScopeEntity, int]("scope.0.exclusions.0.ibeacon_ids", "ID", d, &out.Scope.Exclusions.IBeacons)
if err != nil { return nil, err }
func GetSharedMobileDeviceSchemaScope ¶ added in v0.0.55
func GetSharedSchemaCategory ¶ added in v0.0.50
func GetSharedSchemaSite ¶ added in v0.0.50
func GetSharedmacOSComputerSchemaScope ¶ added in v0.0.55
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.