sharedschemas

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

common/constructobject.go

endpoints/common/sharedschemas/helpers.go

Index

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 GetSharedMobileDeviceSchemaScope

func GetSharedMobileDeviceSchemaScope() *schema.Resource

func GetSharedSchemaCategory

func GetSharedSchemaCategory() *schema.Schema

func GetSharedSchemaSite

func GetSharedSchemaSite() *schema.Schema

func GetSharedmacOSComputerSchemaScope

func GetSharedmacOSComputerSchemaScope() *schema.Resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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