Documentation ¶
Overview ¶
common/constructobject.go
endpoints/common/sharedschemas/helpers.go
Index ¶
- Constants
- func ConstructSharedResourceCategory(categoryId int) *jamfpro.SharedResourceCategory
- func ConstructSharedResourceSite(siteId int) *jamfpro.SharedResourceSite
- func ExtractNestedObjectsFromSchema[NestedObjectType any, ListItemPrimitiveType any](path string, targetField string, d *schema.ResourceData, ...) error
- func GetSharedMobileDeviceSchemaScope() *schema.Resource
- func GetSharedSchemaCategory() *schema.Schema
- func GetSharedSchemaSite() *schema.Schema
- func GetSharedmacOSComputerSchemaScope() *schema.Resource
Constants ¶
View Source
const ( // Values required to unset, not just empty values. EmptySiteName = "" EmptySiteId = -1 EmptyCategoryName = "" EmptyCategoryId = 0 )
Variables ¶
This section is empty.
Functions ¶
func ConstructSharedResourceCategory ¶
func ConstructSharedResourceCategory(categoryId int) *jamfpro.SharedResourceCategory
ConstructSharedResourceCategory constructs a SharedResourceCategory object from the provided schema data,
func ConstructSharedResourceSite ¶
func ConstructSharedResourceSite(siteId int) *jamfpro.SharedResourceSite
ConstructSharedResourceSite constructs a SharedResourceSite object from the provided schema data,
func ExtractNestedObjectsFromSchema ¶
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 GetSharedSchemaCategory ¶
func GetSharedSchemaSite ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.