graphBetaUserLicenseAssignment

package
v0.37.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func MapRemoteResourceStateToTerraform

func MapRemoteResourceStateToTerraform(ctx context.Context, data *UserLicenseAssignmentResourceModel, remoteResource graphmodels.Userable)

MapRemoteResourceStateToTerraform maps the properties of a User to Terraform state for license assignment.

func NewUserLicenseAssignmentResource

func NewUserLicenseAssignmentResource() resource.Resource

Types

type UserLicenseAssignmentResource

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

func (*UserLicenseAssignmentResource) Configure

Configure sets the client for the resource.

func (*UserLicenseAssignmentResource) Create

Create handles the creation of a single user license assignment.

func (*UserLicenseAssignmentResource) Delete

Delete handles the deletion of a single user license assignment.

func (*UserLicenseAssignmentResource) ImportState

ImportState imports the resource state. Expected format: {user_id}_{sku_id} Example: 00000000-0000-0000-0000-000000000001_11111111-1111-1111-1111-111111111111

func (*UserLicenseAssignmentResource) Metadata

Metadata returns the resource type name.

func (*UserLicenseAssignmentResource) ModifyPlan

ModifyPlan handles plan modification for device health script assignments

func (*UserLicenseAssignmentResource) Read

Read retrieves the current state of a user's license assignments.

func (*UserLicenseAssignmentResource) Schema

Schema returns the schema for the resource.

func (*UserLicenseAssignmentResource) Update

Update handles updates to a user's license assignment (disabled plans only, since sku_id requires replace).

type UserLicenseAssignmentResourceModel

type UserLicenseAssignmentResourceModel struct {
	ID                types.String   `tfsdk:"id"`
	UserId            types.String   `tfsdk:"user_id"`
	UserPrincipalName types.String   `tfsdk:"user_principal_name"`
	SkuId             types.String   `tfsdk:"sku_id"`
	DisabledPlans     types.Set      `tfsdk:"disabled_plans"`
	Timeouts          timeouts.Value `tfsdk:"timeouts"`
}

UserLicenseAssignmentResourceModel represents the Terraform resource model for user license assignment

type UserLicenseAssignmentTestResource

type UserLicenseAssignmentTestResource struct{}

UserLicenseAssignmentTestResource implements the types.TestResource interface for user license assignments

func (UserLicenseAssignmentTestResource) Exists

Exists checks whether the specific user license assignment exists in Microsoft Graph

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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