role

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

NewResource is a helper function to simplify the provider implementation.

Types

type RoleAllowedPermissionsModel

type RoleAllowedPermissionsModel struct {
	Name  types.String `tfsdk:"name"`
	Paths types.Map    `tfsdk:"paths"`
}

func (RoleAllowedPermissionsModel) AttributeTypes

func (m RoleAllowedPermissionsModel) AttributeTypes() map[string]attr.Type

type RoleAllowedPermissionsPathsModel

type RoleAllowedPermissionsPathsModel types.List

type RoleResourceModel

type RoleResourceModel struct {
	ResourceName       types.String `tfsdk:"resource_name"`
	Description        types.String `tfsdk:"description"`
	AllowedPermissions types.Map    `tfsdk:"allowed_permissions"`
	Tags               types.List   `tfsdk:"tags"`
}

func (*RoleResourceModel) ToAPIModel

func (m *RoleResourceModel) ToAPIModel(ctx context.Context) (*sgsdkgo.Role, diag.Diagnostics)

func (*RoleResourceModel) ToPatchedAPIModel

func (m *RoleResourceModel) ToPatchedAPIModel(ctx context.Context) (*sgsdkgo.PatchedRole, diag.Diagnostics)

Jump to

Keyboard shortcuts

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