Help us shape the future of Go! Take the 2026 Go Developer Survey

role

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MPL-2.0 Imports: 16 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 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 BuildAPIModelToRoleModel

func BuildAPIModelToRoleModel(apiResponse *sgsdkgo.RoleDataResponse) (*RoleResourceModel, diag.Diagnostics)

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