Documentation ¶
Overview ¶
categories_data_source.go
categories_data_object.go
categories_resource.go
Index ¶
- func DataSourceJamfProCategories() *schema.Resource
- func DataSourceJamfProCategoriesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProCategories() *schema.Resource
- func ResourceJamfProCategoriesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProCategoriesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProCategoriesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProCategoriesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProCategories ¶
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 ¶
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.