computergroups

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

computergroup_data_source.go

computergroup_data_validation.go

computergroup_resource.go

Index

Constants

View Source
const (
	SearchTypeIs           = "is"
	SearchTypeIsNot        = "is not"
	SearchTypeLike         = "like"
	SearchTypeNotLike      = "not like"
	SearchTypeMatchesRegex = "matches regex"
	SearchTypeDoesNotMatch = "does not match regex"
)

Variables

This section is empty.

Functions

func DataSourceJamfProComputerGroups

func DataSourceJamfProComputerGroups() *schema.Resource

DataSourceJamfProComputerGroups provides information about a specific computer group in Jamf Pro.

func DataSourceJamfProComputerGroupsRead

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

DataSourceJamfProComputerGroupsRead fetches the details of a specific computer group 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 ResourceJamfProComputerGroups

func ResourceJamfProComputerGroups() *schema.Resource

func ResourceJamfProComputerGroupsCreate

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

ResourceJamfProComputerGroupsCreate is responsible for creating a new Jamf Pro Computer Group in the remote system.

func ResourceJamfProComputerGroupsDelete

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

ResourceJamfProComputerGroupsDelete is responsible for deleting a Jamf Pro Computer Group.

func ResourceJamfProComputerGroupsRead

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

ResourceJamfProComputerGroupsRead is responsible for reading the current state of a Jamf Pro Computer Group from the remote system.

func ResourceJamfProComputerGroupsUpdate

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

ResourceJamfProComputerGroupsUpdate is responsible for updating an existing Jamf Pro Computer Group on the remote system.

Types

type DeviceGroupAndOr

type DeviceGroupAndOr string
const (
	And DeviceGroupAndOr = "and"
	Or  DeviceGroupAndOr = "or"
)

Jump to

Keyboard shortcuts

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