role

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 RoleResource added in v1.4.0

type RoleResource struct {
	// contains filtered or unexported fields
}

func (*RoleResource) Configure added in v1.4.0

Configure adds the provider configured client to the resource.

func (*RoleResource) Create added in v1.4.0

Create creates the resource and sets the initial Terraform state.

func (*RoleResource) Delete added in v1.4.0

Delete deletes the resource and removes the Terraform state on success.

func (*RoleResource) ImportState added in v1.4.0

func (*RoleResource) Metadata added in v1.4.0

Metadata returns the resource type name.

func (*RoleResource) ModifyPlan added in v1.4.0

func (*RoleResource) Read added in v1.4.0

Read refreshes the Terraform state with the latest data.

func (*RoleResource) Schema added in v1.4.0

Schema defines the schema for the resource.

func (*RoleResource) Update added in v1.4.0

Update updates the resource and sets the updated Terraform state on success.

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