Documentation
¶
Index ¶
- func GetAllDeviceAssignments(...) []models.DeviceManagementConfigurationPolicyAssignmentable
- func GetAllUserAssignments(...) []models.DeviceManagementConfigurationPolicyAssignmentable
- func GetExcludeGroupAssignments(...) []models.DeviceManagementConfigurationPolicyAssignmentable
- func GetIncludeGroupAssignments(...) []models.DeviceManagementConfigurationPolicyAssignmentable
- func MapAllDeviceAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, ...)
- func MapAllUserAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, ...)
- func MapExcludeGroupAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, ...)
- func MapIncludeGroupAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, ...)
- func StateConfigurationPolicyAssignment(ctx context.Context, ...)
- func StateConfigurationPolicySettings(ctx context.Context, data *sharedmodels.SettingsCatalogProfileResourceModel, ...)
- func StateReusablePolicySettings(ctx context.Context, data *sharedmodels.ReuseablePolicySettingsResourceModel, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllDeviceAssignments ¶
func GetAllDeviceAssignments(assignmentsResponse models.DeviceManagementConfigurationPolicyAssignmentCollectionResponseable) []models.DeviceManagementConfigurationPolicyAssignmentable
GetAllDeviceAssignments retrieves all device assignments from the list of assignments
func GetAllUserAssignments ¶
func GetAllUserAssignments(assignmentsResponse models.DeviceManagementConfigurationPolicyAssignmentCollectionResponseable) []models.DeviceManagementConfigurationPolicyAssignmentable
GetAllUserAssignments retrieves all user assignments from the list of assignments
func GetExcludeGroupAssignments ¶
func GetExcludeGroupAssignments(assignmentsResponse models.DeviceManagementConfigurationPolicyAssignmentCollectionResponseable) []models.DeviceManagementConfigurationPolicyAssignmentable
GetExcludeGroupAssignments retrieves exclude group assignments from the list of assignments
func GetIncludeGroupAssignments ¶
func GetIncludeGroupAssignments(assignmentsResponse models.DeviceManagementConfigurationPolicyAssignmentCollectionResponseable) []models.DeviceManagementConfigurationPolicyAssignmentable
GetIncludeGroupAssignments retrieves include group assignments from the list of assignments
func MapAllDeviceAssignments ¶
func MapAllDeviceAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, allDeviceAssignments []models.DeviceManagementConfigurationPolicyAssignmentable)
MapAllDeviceAssignments maps the all devices assignment configuration to the assignments model
func MapAllUserAssignments ¶
func MapAllUserAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, allUserAssignments []models.DeviceManagementConfigurationPolicyAssignmentable)
MapAllUserAssignments maps the all users assignment configuration to the assignments model
func MapExcludeGroupAssignments ¶
func MapExcludeGroupAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, excludeGroupAssignments []models.DeviceManagementConfigurationPolicyAssignmentable)
MapExcludeGroupAssignments maps the exclude groups assignment configuration to the assignments model
func MapIncludeGroupAssignments ¶
func MapIncludeGroupAssignments(assignments *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, includeGroupAssignments []models.DeviceManagementConfigurationPolicyAssignmentable)
MapIncludeGroupAssignments maps the include groups assignment configuration to the assignments model
func StateConfigurationPolicyAssignment ¶
func StateConfigurationPolicyAssignment(ctx context.Context, data *sharedmodels.SettingsCatalogSettingsAssignmentResourceModel, assignmentsResponse models.DeviceManagementConfigurationPolicyAssignmentCollectionResponseable)
StateConfigurationPolicyAssignment maps the remote policy assignment state to the Terraform state
func StateConfigurationPolicySettings ¶
func StateConfigurationPolicySettings(ctx context.Context, data *sharedmodels.SettingsCatalogProfileResourceModel, resp []byte)
StateConfigurationPolicySettings states settings for the SettingsCatalogProfileResourceModel. It processes the response from the Graph API, normalizes the settings array, and preserves any secret values from the original configuration.
Parameters:
- ctx: Context for logging and cancellation
- data: The resource model containing the settings to be stated
- resp: Raw response bytes from the Graph API containing the settings array
The function maps the remote state to Terraform state while maintaining the array structure and normalizing the JSON format for consistent state representation.
func StateReusablePolicySettings ¶
func StateReusablePolicySettings(ctx context.Context, data *sharedmodels.ReuseablePolicySettingsResourceModel, resp []byte)
StateReusablePolicySettings maps a single Microsoft Graph reusable policy setting response to the Terraform state. This resource type only supports one setting instance at a time. It processes the response from the Graph API,wraps the single setting instance in the expected format, and preserves any secret values.
Parameters:
- ctx: Context for logging and cancellation
- data: The resource model containing the setting to be stated
- resp: Raw response bytes from the Graph API containing the single setting instance
The function maps the remote state to Terraform state while wrapping the single setting instance in the expected format for consistent state representation.
Types ¶
This section is empty.