computerextensionattributes

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

Documentation

Overview

computerextensionattributes_data_source.go

computerextensionattributes_data_validation.go

computerextensionattributes_object.go

computerextensionattributes_resource.go

computerextensionattributes_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProComputerExtensionAttributes

func DataSourceJamfProComputerExtensionAttributes() *schema.Resource

DataSourceJamfProComputerExtensionAttributes provides information about a specific computer extension attribute by its ID or Name.

func ResourceJamfProComputerExtensionAttributes

func ResourceJamfProComputerExtensionAttributes() *schema.Resource

ResourceJamfProComputerExtensionAttributes defines the schema and CRUD operations (Create, Read, Update, Delete) for managing Jamf Pro Computer Extension Attributes in Terraform.

func ResourceJamfProComputerExtensionAttributesCreate

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

ResourceJamfProComputerExtensionAttributesCreate is responsible for creating a new Jamf Pro Computer Extension Attribute 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 ResourceJamfProComputerExtensionAttributesDelete

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

ResourceJamfProComputerExtensionAttributesDelete is responsible for deleting a Jamf Pro Computer Extension Attribute.

func ResourceJamfProComputerExtensionAttributesRead

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

ResourceJamfProComputerExtensionAttributesRead is responsible for reading the current state of a Jamf Pro Computer Extension Attribute 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 ResourceJamfProComputerExtensionAttributesUpdate

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

ResourceJamfProComputerExtensionAttributesUpdate is responsible for updating an existing Jamf Pro Computer Extension Attribute 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