buildings

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

Documentation

Overview

buildings_data_source.go

buildings_object.go

buildings_resource.go

buildings_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceBuildingRead

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

DataSourceBuildingRead fetches the details of a specific building from Jamf Pro using either its unique Name or its Id.

func DataSourceJamfProBuildings

func DataSourceJamfProBuildings() *schema.Resource

DataSourceJamfProBuildings provides information about a specific building in Jamf Pro.

func ResourceJamfProBuildingCreate

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

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

func ResourceJamfProBuildingDelete

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

ResourceJamfProBuildingDelete is responsible for deleting a Building.

func ResourceJamfProBuildingRead

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

ResourceJamfProBuildingRead is responsible for reading the current state of a Building Resource from the remote system. The function: 1. Fetches the building's current state using its ID. If it fails, then obtain the building'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 building being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProBuildingUpdate

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

ResourceJamfProBuildingUpdate is responsible for updating an existing Building on the remote system.

func ResourceJamfProBuildings

func ResourceJamfProBuildings() *schema.Resource

ResourceJamfProBuildings 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