scripts

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: 14 Imported by: 0

Documentation

Overview

scripts_data_source.go

scripts_object.go

scripts_resource.go

scripts_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProScripts

func DataSourceJamfProScripts() *schema.Resource

DataSourceJamfProScripts provides information about a specific Jamf Pro script by its ID or Name.

func DataSourceJamfProScriptsRead

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

DataSourceJamfProScriptsRead fetches the details of a specific Jamf Pro script from Jamf Pro using either its unique Name or its Id.

func ResourceJamfProScripts

func ResourceJamfProScripts() *schema.Resource

ResourceJamfProScripts defines the schema and CRUD operations for managing Jamf Pro Scripts in Terraform.

func ResourceJamfProScriptsCreate

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

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

func ResourceJamfProScriptsDelete

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

ResourceJamfProScriptsDelete is responsible for deleting a Jamf Pro Department.

func ResourceJamfProScriptsRead

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

ResourceJamfProScriptsRead is responsible for reading the current state of a Jamf Pro Script Resource from the remote system. The function: 1. Fetches the script's current state using its ID. If it fails then obtain script'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 script being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProScriptsUpdate

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

ResourceJamfProScriptsUpdate is responsible for updating an existing Jamf Pro Department 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