accounts

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

Documentation

Overview

accounts_data_handling.go

accounts_data_source.go

accounts_resource.go

accounts_resource.go

Index

Constants

View Source
const (
	JamfProResourceAccount = "Account"
)

Variables

This section is empty.

Functions

func DataSourceJamfProAccountRead added in v0.0.17

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

DataSourceJamfProAccountRead fetches the details of specific account from Jamf Pro using either their unique Name or Id.

func DataSourceJamfProAccounts

func DataSourceJamfProAccounts() *schema.Resource

DataSourceJamfProAccounts provides information about specific Jamf Pro Dock Items by their ID or Name.

func ResourceJamfProAccountCreate

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

ResourceJamfProAccountCreate is responsible for creating a new Jamf Pro Script 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 ResourceJamfProAccountDelete

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

ResourceJamfProAccountDelete is responsible for deleting a Jamf Pro account .

func ResourceJamfProAccountRead

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

ResourceJamfProAccountRead is responsible for reading the current state of a Jamf Pro Account Group 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.

func ResourceJamfProAccountUpdate

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

ResourceJamfProAccountUpdate is responsible for updating an existing Jamf Pro Account Group on the remote system.

func ResourceJamfProAccounts

func ResourceJamfProAccounts() *schema.Resource

ResourceJamfProAccount defines the schema and CRUD operations for managing buildings 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