macosconfigurationprofiles

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

macosconfigurationprofiles_data_source.go

macosconfigurationprofiles_resource.go

macosconfigurationprofiles_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProMacOSConfigurationProfileRead added in v0.0.49

func DataSourceJamfProMacOSConfigurationProfileRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

DataSourceJamfProMacOSConfigurationProfileRead fetches the details of a macOS configuration profile.

func DataSourceJamfProMacOSConfigurationProfiles

func DataSourceJamfProMacOSConfigurationProfiles() *schema.Resource

DataSourceJamfProMacOSConfigurationProfiles provides information about a specific department in Jamf Pro.

func FixStupidDoubleKey added in v0.0.37

func FixStupidDoubleKey(resp *jamfpro.ResourceMacOSConfigurationProfile, home *[]map[string]interface{}) error

TODO rename this func and put it somewhere else too

func GetAttrsListFromHCL added in v0.0.37

func GetAttrsListFromHCL[NestedObjectType any, ListItemPrimitiveType any](path string, target_field string, d *schema.ResourceData, home *[]NestedObjectType) (err error)

TODO rename this func and put it somewhere else

func ResourceJamfProMacOSConfigurationProfiles added in v0.0.29

func ResourceJamfProMacOSConfigurationProfiles() *schema.Resource

ResourceJamfProMacOSConfigurationProfiles defines the schema and CRUD operations for managing Jamf Pro macOS Configuration Profiles in Terraform.

func ResourceJamfProMacOSConfigurationProfilesCreate added in v0.0.29

func ResourceJamfProMacOSConfigurationProfilesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProMacOSConfigurationProfilesCreate is responsible for creating a new Jamf Pro macOS Configuration Profile in the remote system. The function: 1. Constructs the attribute data using the provided Terraform configuration. 2. Calls the API to create the attribute in Jamf Pro. 3. Updates the Terraform state with the ID of the newly created attribute. 4. Initiates a read operation to synchronize the Terraform state with the actual state in Jamf Pro.

func ResourceJamfProMacOSConfigurationProfilesDelete added in v0.0.29

func ResourceJamfProMacOSConfigurationProfilesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProMacOSConfigurationProfilesDelete is responsible for deleting a Jamf Pro config profile.

func ResourceJamfProMacOSConfigurationProfilesRead added in v0.0.29

func ResourceJamfProMacOSConfigurationProfilesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProMacOSConfigurationProfilesRead is responsible for reading the current state of a Jamf Pro config profile Resource from the remote system. The function: 1. Fetches the attribute's current state using its ID. If it fails then obtain attribute's current state using its Name. 2. Updates the Terraform state with the fetched data to ensure it accurately reflects the current state in Jamf Pro. 3. Handles any discrepancies, such as the attribute being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProMacOSConfigurationProfilesUpdate added in v0.0.29

func ResourceJamfProMacOSConfigurationProfilesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProMacOSConfigurationProfilesUpdate is responsible for updating an existing Jamf Pro config profile on the remote system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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