Documentation ¶
Overview ¶
macosconfigurationprofilesplist_data_source.go
macosconfigurationprofilesplist_data_validator.go
macosconfigurationprofilesplist_diff_suppress.go
macosconfigurationprofilesplist_helpers.go
macosconfigurationprofilesplist_object.go
macosconfigurationprofilesplist_resource.go
Index ¶
- func DataSourceJamfProMacOSConfigurationProfilePlistRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func DataSourceJamfProMacOSConfigurationProfilesPlist() *schema.Resource
- func DiffSuppressPayloads(k, old, new string, d *schema.ResourceData) bool
- func FixDuplicateNotificationKey(resp *jamfpro.ResourceMacOSConfigurationProfile) (bool, error)
- func ResourceJamfProMacOSConfigurationPlistProfiles() *schema.Resource
- func ResourceJamfProMacOSConfigurationProfilesPlistCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesPlistDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesPlistRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProMacOSConfigurationProfilesPlistUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProMacOSConfigurationProfilePlistRead ¶
func DataSourceJamfProMacOSConfigurationProfilePlistRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
DataSourceJamfProMacOSConfigurationProfilePlistRead fetches the details of a macOS configuration profile.
func DataSourceJamfProMacOSConfigurationProfilesPlist ¶
DataSourceJamfProMacOSConfigurationProfilesPlist provides information about a specific department in Jamf Pro.
func DiffSuppressPayloads ¶
func DiffSuppressPayloads(k, old, new string, d *schema.ResourceData) bool
DiffSuppressPayloads is a custom diff suppression function for the payloads attribute.
func FixDuplicateNotificationKey ¶
func FixDuplicateNotificationKey(resp *jamfpro.ResourceMacOSConfigurationProfile) (bool, error)
FixDuplicateNotificationKey handles the double key issue in the notification field of the self_service block.
<self_service>
<self_service_display_name>WiFi Test</self_service_display_name> <install_button_text>Install</install_button_text> <self_service_description>null</self_service_description> <force_users_to_view_description>false</force_users_to_view_description> <security> <removal_disallowed>Never</removal_disallowed> </security> <self_service_icon/> <feature_on_main_page>false</feature_on_main_page> <self_service_categories/> <notification>false</notification> <-- This is the issue <notification>Self Service</notification> <-- This is the issue <notification_subject/> <notification_message/> </self_service>
func ResourceJamfProMacOSConfigurationPlistProfiles ¶
ResourceJamfProMacOSConfigurationPlistProfiles defines the schema and CRUD operations for managing Jamf Pro macOS Configuration Profiles in Terraform.
func ResourceJamfProMacOSConfigurationProfilesPlistCreate ¶
func ResourceJamfProMacOSConfigurationProfilesPlistCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProMacOSConfigurationProfilesPlistCreate 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 ResourceJamfProMacOSConfigurationProfilesPlistDelete ¶
func ResourceJamfProMacOSConfigurationProfilesPlistDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProMacOSConfigurationProfilesPlistDelete is responsible for deleting a Jamf Pro config profile.
func ResourceJamfProMacOSConfigurationProfilesPlistRead ¶
func ResourceJamfProMacOSConfigurationProfilesPlistRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProMacOSConfigurationProfilesPlistRead 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 ResourceJamfProMacOSConfigurationProfilesPlistUpdate ¶
func ResourceJamfProMacOSConfigurationProfilesPlistUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProMacOSConfigurationProfilesPlistUpdate is responsible for updating an existing Jamf Pro config profile on the remote system.
Types ¶
This section is empty.
Source Files ¶
- macosconfigurationprofilesplist_data_source.go
- macosconfigurationprofilesplist_data_validator.go
- macosconfigurationprofilesplist_diff_suppress.go
- macosconfigurationprofilesplist_helpers.go
- macosconfigurationprofilesplist_object.go
- macosconfigurationprofilesplist_resource.go
- macosconfigurationprofilesplist_state.go