graphBetaRoleDefinitionAssignment

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

Documentation

Overview

REF: https://learn.microsoft.com/en-us/graph/api/resources/intune-rbac-roleassignment?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 MapRemoteResourceStateToTerraform

func MapRemoteResourceStateToTerraform(ctx context.Context, data *RoleDefinitionAssignmentResourceModel, assignment graphmodels.DeviceAndAppManagementRoleAssignmentable)

MapRemoteResourceStateToTerraform maps a remote role assignment to the Terraform resource model

func NewRoleDefinitionAssignmentResource

func NewRoleDefinitionAssignmentResource() resource.Resource

Types

type RoleDefinitionAssignmentResource

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

func (*RoleDefinitionAssignmentResource) Configure

Configure sets the client for the resource.

func (*RoleDefinitionAssignmentResource) Create

Create handles the Create operation for the RoleDefinitionAssignment resource.

func (*RoleDefinitionAssignmentResource) Delete

Delete handles the Delete operation for the RoleDefinitionAssignment resource.

func (*RoleDefinitionAssignmentResource) FullTypeName

func (r *RoleDefinitionAssignmentResource) FullTypeName() string

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

func (*RoleDefinitionAssignmentResource) ImportState

ImportState imports the resource state.

func (*RoleDefinitionAssignmentResource) Metadata

Metadata returns the resource type name.

func (*RoleDefinitionAssignmentResource) ModifyPlan

ModifyPlan handles plan modification for diff suppression

func (*RoleDefinitionAssignmentResource) Read

Read handles the Read operation for the RoleDefinitionAssignment resource.

func (*RoleDefinitionAssignmentResource) Schema

Schema defines the schema for the resource

func (*RoleDefinitionAssignmentResource) Update

Update handles the Update operation for the RoleDefinitionAssignment resource.

type RoleDefinitionAssignmentResourceModel

type RoleDefinitionAssignmentResourceModel struct {
	ID               types.String   `tfsdk:"id"`
	RoleDefinitionID types.String   `tfsdk:"role_definition_id"`
	BuiltInRoleName  types.String   `tfsdk:"built_in_role_name"`
	DisplayName      types.String   `tfsdk:"display_name"`
	Description      types.String   `tfsdk:"description"`
	ScopeMembers     types.Set      `tfsdk:"scope_members"`
	ScopeType        types.String   `tfsdk:"scope_type"`
	ResourceScopes   types.Set      `tfsdk:"resource_scopes"`
	Timeouts         timeouts.Value `tfsdk:"timeouts"`
}

RoleDefinitionAssignmentResourceModel represents the Terraform resource model for role assignments

Jump to

Keyboard shortcuts

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