Documentation ¶
Overview ¶
packages_data_source.go
policies_resource.go
Index ¶
- func DataSourceJamfProPolicies() *schema.Resource
- func DataSourceJamfProPoliciesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func GetAttrsListFromHCLForPointers[NestedObjectType any, ListItemPrimitiveType any](path string, target_field string, d *schema.ResourceData, ...) (err error)
- func ResourceJamfProPolicies() *schema.Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProPolicies ¶
DataSourceJamfProPolicies provides information about a specific Jamf Pro site by its ID or Name.
func DataSourceJamfProPoliciesRead ¶ added in v0.0.18
func DataSourceJamfProPoliciesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
DataSourceJamfProPoliciesRead fetches the details of a specific Jamf Pro package 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 GetAttrsListFromHCLForPointers ¶ added in v0.0.54
func GetAttrsListFromHCLForPointers[NestedObjectType any, ListItemPrimitiveType any](path string, target_field string, d *schema.ResourceData, home *[]NestedObjectType) (err error)
GetAttrsListFromHCLForPointers is a helper function that takes a path to a list of items in HCL and a target field to set in the list of pointers.
func ResourceJamfProPolicies ¶
resourceJamfProPolicies defines the schema and CRUD operations for managing Jamf Pro Policy in Terraform.
Types ¶
This section is empty.
Source Files ¶
- policies_constructor.go
- policies_crud.go
- policies_data_source.go
- policies_helpers.go
- policies_resource.go
- policies_schema_account_maintenance.go
- policies_schema_date_time_limitations.go
- policies_schema_disk_encryption.go
- policies_schema_dockitems.go
- policies_schema_files_processes.go
- policies_schema_maintenance.go
- policies_schema_network_limitations.go
- policies_schema_package_configuration.go
- policies_schema_payloads.go
- policies_schema_printer.go
- policies_schema_reboot.go
- policies_schema_script.go
- policies_schema_self_service.go
- policies_schema_user_interaction.go
- policies_state_general.go
- policies_state_payloads.go
- policies_state_scope.go
- policies_state_self_service.go