sharedStater

package
v0.15.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllDeviceAssignments

GetAllDeviceAssignments retrieves all device assignments from the list of assignments

func GetAllUserAssignments

GetAllUserAssignments retrieves all user assignments from the list of assignments

func GetExcludeGroupAssignments

GetExcludeGroupAssignments retrieves exclude group assignments from the list of assignments

func GetIncludeGroupAssignments

GetIncludeGroupAssignments retrieves include group assignments from the list of assignments

func MapAllDeviceAssignments

MapAllDeviceAssignments maps the all devices assignment configuration to the assignments model

func MapAllUserAssignments

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

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.

Jump to

Keyboard shortcuts

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