computergroups

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

Documentation

Overview

computergroup_data_source.go

computergroup_data_validation.go

computergroup_object.go

computergroup_resource.go

computergroup_state.go

Index

Constants

View Source
const (
	And                          DeviceGroupAndOr = "and"
	Or                           DeviceGroupAndOr = "or"
	SearchTypeIs                                  = "is"
	SearchTypeIsNot                               = "is not"
	SearchTypeHas                                 = "has"
	SearchTypeDoesNotHave                         = "does not have"
	SearchTypeMemberOf                            = "member of"
	SearchTypeNotMemberOf                         = "not member of"
	SearchTypeBeforeYYYYMMDD                      = "before (yyyy-mm-dd)"
	SearchTypeAfterYYYYMMDD                       = "after (yyyy-mm-dd)"
	SearchTypeMoreThanXDaysAgo                    = "more than x days ago"
	SearchTypeLessThanXDaysAgo                    = "less than x days ago"
	SearchTypeLike                                = "like"
	SearchTypeNotLike                             = "not like"
	SearchTypeGreaterThan                         = "greater than"
	SearchTypeMoreThan                            = "more than"
	SearchTypeLessThan                            = "less than"
	SearchTypeGreaterThanOrEqual                  = "greater than or equal"
	SearchTypeLessThanOrEqual                     = "less than or equal"
	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

ResourceJamfProComputerGroups defines the schema and CRUD operations for managing Jamf Pro Computer Groups in Terraform.

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

Jump to

Keyboard shortcuts

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