Documentation ¶
Overview ¶
buildings_data_source.go
buildings_object.go
buildings_resource.go
Index ¶
- func DataSourceBuildingRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func DataSourceJamfProBuildings() *schema.Resource
- func ResourceJamfProBuildingCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProBuildingDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProBuildingRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProBuildingUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProBuildings() *schema.Resource
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 ¶
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 ¶
ResourceJamfProBuildings defines the schema and CRUD operations for managing buildings in Terraform.
Types ¶
This section is empty.