Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StateConfigurationPolicySettings ¶
func StateConfigurationPolicySettings(ctx context.Context, data *sharedmodels.SettingsCatalogJsonResourceModel, 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.