rolev4

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: 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 RoleV4Resource

type RoleV4Resource struct {
	role.RoleResource
	// contains filtered or unexported fields
}

func (*RoleV4Resource) Configure

Configure adds the provider configured client to the resource.

func (*RoleV4Resource) Create

Create creates the resource and sets the initial Terraform state.

func (*RoleV4Resource) Delete

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

func (*RoleV4Resource) ImportState

func (*RoleV4Resource) Metadata

Metadata returns the resource type name.

func (*RoleV4Resource) ModifyPlan

func (*RoleV4Resource) Read

Read refreshes the Terraform state with the latest data.

func (*RoleV4Resource) Schema

Schema defines the schema for the resource.

func (*RoleV4Resource) Update

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

type RoleV4ResourceModel

type RoleV4ResourceModel struct {
	role.RoleResourceModel
	DocVersion types.String `tfsdk:"doc_version"`
}

func BuildAPIModelToRoleModel

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

func (*RoleV4ResourceModel) ToAPIModel

func (*RoleV4ResourceModel) ToPatchedAPIModel

func (m *RoleV4ResourceModel) 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