categories

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

categories_data_source.go

categories_data_object.go

categories_resource.go

categories_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProCategories

func DataSourceJamfProCategories() *schema.Resource

DataSourceJamfProCategories provides information about a specific Category in Jamf Pro.

func DataSourceJamfProCategoriesRead

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

DataSourceJamfProCategoriesRead fetches the details of a specific category from Jamf Pro using its unique ID.

func ResourceJamfProCategories

func ResourceJamfProCategories() *schema.Resource

ResourceJamfProCategories defines the schema and CRUD operations for managing Jamf Pro Categories in Terraform.

func ResourceJamfProCategoriesCreate

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

ResourceJamfProCategoriesCreate is responsible for creating a new Jamf Pro Category 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. ResourceJamfProCategoriesCreate is responsible for creating a new Jamf Pro Category in the remote system.

func ResourceJamfProCategoriesDelete

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

ResourceJamfProCategoriesDelete is responsible for deleting a Jamf Pro Category.

func ResourceJamfProCategoriesRead

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

ResourceJamfProCategoriesRead is responsible for reading the current state of a Jamf Pro Category 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. ResourceJamfProCategoriesRead is responsible for reading the current state of a Jamf Pro Category Resource from the remote system.

func ResourceJamfProCategoriesUpdate

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

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