graphBetaRoleDefinitionAssignment

package
v0.29.2-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

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

Index

Constants

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

Variables

View Source
var BuiltInIntuneRoleDefinitions = map[string]string{
	"Policy and Profile manager": "0bd113fe-6be5-400c-a28f-ae5553f9c0be",
	"School Administrator":       "2f9f4f7e-2d13-427b-adf2-361a1eef7ae8",
	"Help Desk Operator":         "9e0cc482-82df-4ab2-a24c-0c23a3f52e1e",
	"Application Manager":        "c1d9fcbb-cba5-40b0-bf6b-527006585f4b",
	"Endpoint Security Manager":  "c56d53a2-73d0-4502-b6bd-4a9d3dba28d5",
	"Read Only Operator":         "fa1d7878-e8cb-41a1-8254-0142355c9f84",
	"Intune Role Administrator":  "fb2603eb-3c87-4be3-8b5b-d58a5b4a0bc0",
}

Built-in Intune Role Definitions (Name -> UUID)

Functions

func MapRemoteStateToTerraform

func MapRemoteStateToTerraform(ctx context.Context, data *RoleAssignmentResourceModel, remoteResource graphmodels.DeviceAndAppManagementRoleAssignmentable)

MapRemoteStateToTerraform maps the remote object state to the Terraform state

func NewRoleAssignmentResource

func NewRoleAssignmentResource() resource.Resource

Types

type RoleAssignmentResource

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

func (*RoleAssignmentResource) Configure

Configure sets the client for the resource.

func (*RoleAssignmentResource) Create

Create handles the Create operation for the RoleAssignment resource.

func (*RoleAssignmentResource) Delete

Delete handles the Delete operation.

func (*RoleAssignmentResource) FullTypeName

func (r *RoleAssignmentResource) FullTypeName() string

FullTypeName returns the full type name of the resource for logging purposes.

func (*RoleAssignmentResource) ImportState

ImportState imports the resource state.

func (*RoleAssignmentResource) Metadata

Metadata returns the resource type name.

func (*RoleAssignmentResource) ModifyPlan

ModifyPlan handles plan modification for the RoleAssignment resource.

func (*RoleAssignmentResource) Read

Read handles the Read operation.

func (*RoleAssignmentResource) Schema

func (*RoleAssignmentResource) Update

Update handles the Update operation.

type RoleAssignmentResourceModel

type RoleAssignmentResourceModel struct {
	ID               types.String                      `tfsdk:"id"`
	DisplayName      types.String                      `tfsdk:"display_name"`
	Description      types.String                      `tfsdk:"description"`
	RoleDefinitionId types.String                      `tfsdk:"role_definition_id"`
	Members          types.Set                         `tfsdk:"members"`
	ScopeConfig      []ScopeConfigurationResourceModel `tfsdk:"scope_configuration"`
	Timeouts         timeouts.Value                    `tfsdk:"timeouts"`
}

type ScopeConfigurationResourceModel

type ScopeConfigurationResourceModel struct {
	Type           types.String `tfsdk:"type"`
	ResourceScopes types.Set    `tfsdk:"resource_scopes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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