graphBetaWindowsUpdateRing

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: 27 Imported by: 0

Documentation

Overview

REF: https://learn.microsoft.com/en-us/graph/api/resources/intune-deviceconfig-windowsupdateforbusinessconfiguration?view=graph-rest-1.0

Index

Constants

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

Variables

This section is empty.

Functions

func MapRemoteResourceStateToTerraform

func MapRemoteResourceStateToTerraform(ctx context.Context, data *WindowsUpdateRingResourceModel, apiData graphmodels.WindowsUpdateForBusinessConfigurationable)

MapRemoteResourceStateToTerraform maps the API response to the Terraform model

func NewWindowsUpdateRingResource

func NewWindowsUpdateRingResource() resource.Resource

Types

type WindowsUpdateRingResource

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

func (*WindowsUpdateRingResource) Configure

Configure sets the client for the resource.

func (*WindowsUpdateRingResource) Create

Create handles the Create operation.

func (*WindowsUpdateRingResource) Delete

Delete handles the Delete operation for Windows Update Ring resources.

func (*WindowsUpdateRingResource) FullTypeName

func (r *WindowsUpdateRingResource) FullTypeName() string

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

func (*WindowsUpdateRingResource) ImportState

ImportState imports the resource state.

func (*WindowsUpdateRingResource) Metadata

Metadata returns the resource type name.

func (*WindowsUpdateRingResource) ModifyPlan

ModifyPlan modifies the planned state of the resource.

func (*WindowsUpdateRingResource) Read

Read handles the Read operation for Windows Update Ring resources.

func (*WindowsUpdateRingResource) Schema

Schema defines the schema for the resource.

func (*WindowsUpdateRingResource) Update

Update handles the Update operation for Windows Update Ring resources.

type WindowsUpdateRingResourceModel

type WindowsUpdateRingResourceModel struct {
	ID                                                      types.String           `tfsdk:"id"`
	DisplayName                                             types.String           `tfsdk:"display_name"`
	Description                                             types.String           `tfsdk:"description"`
	RoleScopeTagIds                                         types.Set              `tfsdk:"role_scope_tag_ids"`
	MicrosoftUpdateServiceAllowed                           types.Bool             `tfsdk:"microsoft_update_service_allowed"`
	DriversExcluded                                         types.Bool             `tfsdk:"drivers_excluded"`
	QualityUpdatesDeferralPeriodInDays                      types.Int32            `tfsdk:"quality_updates_deferral_period_in_days"`
	FeatureUpdatesDeferralPeriodInDays                      types.Int32            `tfsdk:"feature_updates_deferral_period_in_days"`
	FeatureUpdatesPauseExpiryDateTime                       types.String           `tfsdk:"feature_updates_pause_expiry_date_time"`
	FeatureUpdatesPauseStartDate                            types.String           `tfsdk:"feature_updates_pause_start_date"`
	FeatureUpdatesRollbackStartDateTime                     types.String           `tfsdk:"feature_updates_rollback_start_date_time"`
	FeatureUpdatesWillBeRolledBack                          types.Bool             `tfsdk:"feature_updates_will_be_rolled_back"`
	QualityUpdatesPauseExpiryDateTime                       types.String           `tfsdk:"quality_updates_pause_expiry_date_time"`
	QualityUpdatesPauseStartDate                            types.String           `tfsdk:"quality_updates_pause_start_date"`
	QualityUpdatesRollbackStartDateTime                     types.String           `tfsdk:"quality_updates_rollback_start_date_time"`
	QualityUpdatesWillBeRolledBack                          types.Bool             `tfsdk:"quality_updates_will_be_rolled_back"`
	AllowWindows11Upgrade                                   types.Bool             `tfsdk:"allow_windows11_upgrade"`
	QualityUpdatesPaused                                    types.Bool             `tfsdk:"quality_updates_paused"`
	FeatureUpdatesPaused                                    types.Bool             `tfsdk:"feature_updates_paused"`
	SkipChecksBeforeRestart                                 types.Bool             `tfsdk:"skip_checks_before_restart"`
	BusinessReadyUpdatesOnly                                types.String           `tfsdk:"business_ready_updates_only"`
	AutomaticUpdateMode                                     types.String           `tfsdk:"automatic_update_mode"`
	DeliveryOptimizationMode                                types.String           `tfsdk:"delivery_optimization_mode"`
	PrereleaseFeatures                                      types.String           `tfsdk:"prerelease_features"`
	UpdateWeeks                                             types.String           `tfsdk:"update_weeks"`
	ActiveHoursStart                                        types.String           `tfsdk:"active_hours_start"`
	ActiveHoursEnd                                          types.String           `tfsdk:"active_hours_end"`
	UserPauseAccess                                         types.String           `tfsdk:"user_pause_access"`
	UserWindowsUpdateScanAccess                             types.String           `tfsdk:"user_windows_update_scan_access"`
	UpdateNotificationLevel                                 types.String           `tfsdk:"update_notification_level"`
	FeatureUpdatesRollbackWindowInDays                      types.Int32            `tfsdk:"feature_updates_rollback_window_in_days"`
	DeadlineForFeatureUpdatesInDays                         types.Int32            `tfsdk:"deadline_for_feature_updates_in_days"`
	DeadlineForQualityUpdatesInDays                         types.Int32            `tfsdk:"deadline_for_quality_updates_in_days"`
	DeadlineGracePeriodInDays                               types.Int32            `tfsdk:"deadline_grace_period_in_days"`
	PostponeRebootUntilAfterDeadline                        types.Bool             `tfsdk:"postpone_reboot_until_after_deadline"`
	EngagedRestartDeadlineInDays                            types.Int32            `tfsdk:"engaged_restart_deadline_in_days"`
	EngagedRestartSnoozeScheduleInDays                      types.Int32            `tfsdk:"engaged_restart_snooze_schedule_in_days"`
	EngagedRestartTransitionScheduleInDays                  types.Int32            `tfsdk:"engaged_restart_transition_schedule_in_days"`
	AutoRestartNotificationDismissal                        types.String           `tfsdk:"auto_restart_notification_dismissal"`
	ScheduleRestartWarningInHours                           types.Int32            `tfsdk:"schedule_restart_warning_in_hours"`
	ScheduleImminentRestartWarningInMinutes                 types.Int32            `tfsdk:"schedule_imminent_restart_warning_in_minutes"`
	EngagedRestartSnoozeScheduleForFeatureUpdatesInDays     types.Int32            `tfsdk:"engaged_restart_snooze_schedule_for_feature_updates_in_days"`
	EngagedRestartTransitionScheduleForFeatureUpdatesInDays types.Int32            `tfsdk:"engaged_restart_transition_schedule_for_feature_updates_in_days"`
	AdditionalProperties                                    map[string]interface{} `tfsdk:"additional_properties"`
	Timeouts                                                timeouts.Value         `tfsdk:"timeouts"`
}

WindowsUpdateRingResourceModel defines the model for Windows Update Ring resource

Jump to

Keyboard shortcuts

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