graphbetaroledefinition

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapRemoteStateToTerraform

func MapRemoteStateToTerraform(ctx context.Context, data *RoleDefinitionResourceModel, remoteResource graphmodels.RoleDefinitionable)

func NewRoleDefinitionResource

func NewRoleDefinitionResource() resource.Resource

Types

type ResourceActionResourceModel

type ResourceActionResourceModel struct {
	AllowedResourceActions    []types.String `tfsdk:"allowed_resource_actions"`
	NotAllowedResourceActions []types.String `tfsdk:"not_allowed_resource_actions"`
}

type RoleDefinitionResource

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

func (*RoleDefinitionResource) Configure

Configure sets the client for the resource.

func (*RoleDefinitionResource) Create

Create handles the Create operation for the RoleDefinition resource.

func (*RoleDefinitionResource) Delete

Delete handles the Delete operation for the RoleDefinition resource.

func (*RoleDefinitionResource) GetTypeName

func (r *RoleDefinitionResource) GetTypeName() string

GetTypeName returns the type name of the resource from the state model.

func (*RoleDefinitionResource) ImportState

ImportState imports the resource state.

func (*RoleDefinitionResource) Metadata

Metadata returns the resource type name.

func (*RoleDefinitionResource) Read

Read handles the Read operation for the RoleDefinition resource.

func (*RoleDefinitionResource) Schema

func (*RoleDefinitionResource) Update

Update handles the Update operation for the RoleDefinition resource.

type RoleDefinitionResourceModel

type RoleDefinitionResourceModel struct {
	ID                      types.String                  `tfsdk:"id"`
	DisplayName             types.String                  `tfsdk:"display_name"`
	Description             types.String                  `tfsdk:"description"`
	IsBuiltIn               types.Bool                    `tfsdk:"is_built_in"`
	IsBuiltInRoleDefinition types.Bool                    `tfsdk:"is_built_in_role_definition"`
	RolePermissions         []RolePermissionResourceModel `tfsdk:"role_permissions"`
	RoleScopeTagIds         []types.String                `tfsdk:"role_scope_tag_ids"`
	Timeouts                timeouts.Value                `tfsdk:"timeouts"`
}

func (*RoleDefinitionResourceModel) GetID

GetID returns the ID of a resource from the state model.

type RolePermissionResourceModel

type RolePermissionResourceModel struct {
	Actions         []types.String                `tfsdk:"actions"`
	ResourceActions []ResourceActionResourceModel `tfsdk:"resource_actions"`
}

Jump to

Keyboard shortcuts

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