restrictedsoftware

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

restrictedsoftware_data_source.go

restrictedsoftware_object.go

restrictedsoftware_resource.go

restrictedsoftware_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProRestrictedSoftwareRead

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

DataSourceJamfProRestrictedSoftwareRead fetches the details of a specific Jamf Pro restricted software item from Jamf Pro using either its unique Name or its Id. The function prioritizes the 'name' attribute over the 'id' attribute for fetching details. If neither 'name' nor 'id' is provided, it returns an error. Once the details are fetched, they are set in the data source's state.

Parameters: - ctx: The context within which the function is called. It's used for timeouts and cancellation. - d: The current state of the data source. - meta: The meta object that can be used to retrieve the API client connection.

Returns: - diag.Diagnostics: Returns any diagnostics (errors or warnings) encountered during the function's execution.

func DataSourceJamfProRestrictedSoftwares

func DataSourceJamfProRestrictedSoftwares() *schema.Resource

DataSourceJamfProRestrictedSoftwares provides information about a specific Jamf Pro Restricted Software by its ID or Name.

func ResourceJamfProRestrictedSoftwareCreate

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

ResourceJamfProRestrictedSoftwareCreate is responsible for creating a new Jamf Pro Restricted Software in the remote system. The function: 1. Constructs the User Group data using the provided Terraform configuration. 2. Calls the API to create the User Group in Jamf Pro. 3. Updates the Terraform state with the ID of the newly created User Group. 4. Initiates a read operation to synchronize the Terraform state with the actual state in Jamf Pro.

func ResourceJamfProRestrictedSoftwareDelete

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

ResourceJamfProRestrictedSoftwareDelete is responsible for deleting a Jamf Pro Restricted Software.

func ResourceJamfProRestrictedSoftwareRead

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

ResourceJamfProRestrictedSoftwareRead is responsible for reading the current state of a Jamf Pro Restricted Software Resource from the remote system. The function: 1. Fetches the user group's current state using its ID. If it fails, it tries to obtain the user group'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 user group being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProRestrictedSoftwareUpdate

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

ResourceJamfProRestrictedSoftwareUpdate is responsible for updating an existing Jamf Pro Printer on the remote system.

func ResourceJamfProRestrictedSoftwares

func ResourceJamfProRestrictedSoftwares() *schema.Resource

ResourceJamfProRestrictedSoftwares defines the schema and CRUD operations for managing Jamf Pro Restricted Software in Terraform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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