Documentation ¶
Overview ¶
computerprestages_data_source.go
computerprestages_object.go
computerprestages_resource.go
Index ¶
- func DataSourceJamfProComputerPrestage() *schema.Resource
- func DataSourceJamfProComputerPrestageRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerPrestage() *schema.Resource
- func ResourceJamfProComputerPrestageCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerPrestageDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerPrestageRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerPrestageUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProComputerPrestage ¶ added in v0.0.18
DataSourceJamfProComputerPrestage provides information about a specific department in Jamf Pro.
func DataSourceJamfProComputerPrestageRead ¶ added in v0.0.18
func DataSourceJamfProComputerPrestageRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
DataSourceJamfProComputerPrestageRead fetches the details of a specific department from Jamf Pro using its unique ID.
func ResourceJamfProComputerPrestage ¶
ResourceJamfProComputerPrestage defines the schema for managing Jamf Pro Computer Prestages in Terraform.
func ResourceJamfProComputerPrestageCreate ¶
func ResourceJamfProComputerPrestageCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerPrestageCreate is responsible for creating a new computer prestage in Jamf Pro with terraform. The function: 1. Constructs the computer prestage data using the provided Terraform configuration. 2. Calls the API to create the computer prestage in Jamf Pro. 3. Updates the Terraform state with the ID of the newly created computer prestage. 4. Initiates a read operation to synchronize the Terraform state with the actual state in Jamf Pro.
func ResourceJamfProComputerPrestageDelete ¶
func ResourceJamfProComputerPrestageDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerPrestageDelete is responsible for deleting a Jamf Pro Computer Prestage.
func ResourceJamfProComputerPrestageRead ¶
func ResourceJamfProComputerPrestageRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerPrestageRead is responsible for reading the current state of a Building Resource from the remote system. The function: 1. Fetches the building's current state using its ID. If it fails, then obtain the building'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 building being deleted outside of Terraform, to keep the Terraform state synchronized.
func ResourceJamfProComputerPrestageUpdate ¶
func ResourceJamfProComputerPrestageUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerPrestageUpdate is responsible for updating an existing Jamf Pro Department on the remote system.
Types ¶
This section is empty.