computerprestages

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

computerprestages_data_source.go

computerprestages_object.go

computerprestages_resource.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProComputerPrestage added in v0.0.18

func DataSourceJamfProComputerPrestage() *schema.Resource

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

func ResourceJamfProComputerPrestage() *schema.Resource

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.

Jump to

Keyboard shortcuts

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