Documentation
¶
Overview ¶
macosconfigurationprofiles_data_source.go
macosconfigurationprofiles_resource.go
macosconfigurationprofiles_state.go
Index ¶
- func DataSourceJamfProMacOSConfigurationProfileRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func DataSourceJamfProMacOSConfigurationProfiles() *schema.Resource
- func FixStupidDoubleKey(resp *jamfpro.ResourceMacOSConfigurationProfile, ...) error
- func GetAttrsListFromHCL[NestedObjectType any, ListItemPrimitiveType any](path string, target_field string, d *schema.ResourceData, ...) (err error)
- func ResourceJamfProMacOSConfigurationProfiles() *schema.Resource
- func ResourceJamfProMacOSConfigurationProfilesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
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 ¶
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
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.