graphBetaCloudPcUserSetting

package
v0.23.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Overview

REF: https://learn.microsoft.com/en-us/graph/api/resources/cloudpcusersetting?view=graph-rest-beta

Index

Constants

View Source
const (
	ResourceName  = "graph_beta_windows_365_user_setting"
	CreateTimeout = 180
	UpdateTimeout = 180
	ReadTimeout   = 180
	DeleteTimeout = 180
)

Variables

This section is empty.

Functions

func CloudPcUserSettingAssignmentType

func CloudPcUserSettingAssignmentType() attr.Type

CloudPcUserSettingAssignmentType returns the object type for CloudPcUserSettingAssignmentModel

func MapAssignmentsToTerraform

func MapAssignmentsToTerraform(ctx context.Context, data *CloudPcUserSettingResourceModel, assignments []models.CloudPcUserSettingAssignmentable)

MapAssignmentsToTerraform maps the remote CloudPcUserSetting assignments to Terraform state

func MapAssignmentsToTerraformSet

func MapAssignmentsToTerraformSet(ctx context.Context, assignments []models.CloudPcUserSettingAssignmentable) types.Set

MapAssignmentsToTerraformSet maps assignments from Graph API response directly to a Terraform Set (deprecated, use MapAssignmentsToTerraform)

func MapRemoteStateToTerraform

func MapRemoteStateToTerraform(ctx context.Context, data *CloudPcUserSettingResourceModel, remoteResource models.CloudPcUserSettingable)

func NewCloudPcUserSettingResource

func NewCloudPcUserSettingResource() resource.Resource

func Windows365UserSettingsAssignmentSchema

func Windows365UserSettingsAssignmentSchema() schema.SetNestedAttribute

Windows365UserSettingsAssignmentSchema returns the schema for the assignments attribute

Types

type CloudPcUserSettingAssignmentModel

type CloudPcUserSettingAssignmentModel struct {
	Type    types.String `tfsdk:"type"`     // "groupAssignmentTarget" only
	GroupId types.String `tfsdk:"group_id"` // For group targets (both include and exclude)
}

CloudPcUserSettingAssignmentModel represents an assignment of a Cloud PC user setting to a target

type CloudPcUserSettingResource

type CloudPcUserSettingResource struct {
	ProviderTypeName string
	TypeName         string
	ReadPermissions  []string
	WritePermissions []string
	// contains filtered or unexported fields
}

func (*CloudPcUserSettingResource) Configure

Configure sets the client for the resource.

func (*CloudPcUserSettingResource) Create

Create handles the Create operation.

func (*CloudPcUserSettingResource) Delete

Delete handles the Delete operation.

func (*CloudPcUserSettingResource) FullTypeName

func (r *CloudPcUserSettingResource) FullTypeName() string

FullTypeName returns the full resource type name in the format "providername_resourcename".

func (*CloudPcUserSettingResource) ImportState

ImportState imports the resource state.

func (*CloudPcUserSettingResource) Metadata

Metadata returns the resource type name.

func (*CloudPcUserSettingResource) ModifyPlan

ModifyPlan handles plan modification for diff suppression

func (*CloudPcUserSettingResource) Read

Read handles the Read operation.

func (*CloudPcUserSettingResource) Schema

Schema returns the schema for the resource.

func (*CloudPcUserSettingResource) Update

Update handles the Update operation.

type CloudPcUserSettingResourceModel

type CloudPcUserSettingResourceModel struct {
	ID                                 types.String                             `tfsdk:"id"`
	DisplayName                        types.String                             `tfsdk:"display_name"`
	CreatedDateTime                    types.String                             `tfsdk:"created_date_time"`
	LastModifiedDateTime               types.String                             `tfsdk:"last_modified_date_time"`
	LocalAdminEnabled                  types.Bool                               `tfsdk:"local_admin_enabled"`
	ResetEnabled                       types.Bool                               `tfsdk:"reset_enabled"`
	SelfServiceEnabled                 types.Bool                               `tfsdk:"self_service_enabled"`
	RestorePointSetting                *RestorePointSettingModel                `tfsdk:"restore_point_setting"`
	CrossRegionDisasterRecoverySetting *CrossRegionDisasterRecoverySettingModel `tfsdk:"cross_region_disaster_recovery_setting"`
	NotificationSetting                *NotificationSettingModel                `tfsdk:"notification_setting"`
	Assignments                        types.Set                                `tfsdk:"assignments"`
	Timeouts                           timeouts.Value                           `tfsdk:"timeouts"`
}

type CrossRegionDisasterRecoverySettingModel

type CrossRegionDisasterRecoverySettingModel struct {
	MaintainCrossRegionRestorePointEnabled types.Bool                           `tfsdk:"maintain_cross_region_restore_point_enabled"`
	UserInitiatedDisasterRecoveryAllowed   types.Bool                           `tfsdk:"user_initiated_disaster_recovery_allowed"`
	DisasterRecoveryType                   types.String                         `tfsdk:"disaster_recovery_type"`
	DisasterRecoveryNetworkSetting         *DisasterRecoveryNetworkSettingModel `tfsdk:"disaster_recovery_network_setting"`
}

type DisasterRecoveryNetworkSettingModel

type DisasterRecoveryNetworkSettingModel struct {
	NetworkType types.String `tfsdk:"network_type"`
	RegionName  types.String `tfsdk:"region_name"`
	RegionGroup types.String `tfsdk:"region_group"`
}

type NotificationSettingModel

type NotificationSettingModel struct {
	RestartPromptsDisabled types.Bool `tfsdk:"restart_prompts_disabled"`
}

type RestorePointSettingModel

type RestorePointSettingModel struct {
	FrequencyInHours   types.Int32  `tfsdk:"frequency_in_hours"`
	FrequencyType      types.String `tfsdk:"frequency_type"`
	UserRestoreEnabled types.Bool   `tfsdk:"user_restore_enabled"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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