iam

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Overview

Package iam provides a Terraform datasource.

Package org provides a Terraform datasource.

Package iam provides a Terraform datasource.

Package iam provides a Terraform resource.

Package org provides a Terraform resource to manage org users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIAMRightDataSource

func NewIAMRightDataSource() datasource.DataSource

func NewIAMUserResource

func NewIAMUserResource() resource.Resource

NewuserResource is a helper function to simplify the provider implementation.

func NewRoleDataSource

func NewRoleDataSource() datasource.DataSource

func NewRoleResource

func NewRoleResource() resource.Resource

NewroleResource is a helper function to simplify the provider implementation.

func NewRolesDataSource added in v0.18.2

func NewRolesDataSource() datasource.DataSource

func NewTokenResource added in v0.10.0

func NewTokenResource() resource.Resource

NewTokenResource is a helper function to simplify the provider implementation.

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

NewuserDataSource returns a new Org User data source.

func NewUserSAMLResource added in v0.21.0

func NewUserSAMLResource() resource.Resource

NewUserSAMLResource is a helper function to simplify the provider implementation.

Types

type RightModel added in v0.7.0

type RightModel struct {
	BundleKey     supertypes.StringValue    `tfsdk:"bundle_key"`
	CategoryID    supertypes.StringValue    `tfsdk:"category_id"`
	Description   supertypes.StringValue    `tfsdk:"description"`
	ID            supertypes.StringValue    `tfsdk:"id"`
	ImpliedRights supertypes.SetNestedValue `tfsdk:"implied_rights"`
	Name          supertypes.StringValue    `tfsdk:"name"`
	RightType     supertypes.StringValue    `tfsdk:"right_type"`
}

func NewIAMRight added in v0.7.0

func NewIAMRight(t any) *RightModel

func (*RightModel) Copy added in v0.7.0

func (rm *RightModel) Copy() *RightModel

func (*RightModel) GetImpliedRights added in v0.7.0

func (rm *RightModel) GetImpliedRights(ctx context.Context) (values RightModelImpliedRights, diags diag.Diagnostics)

GetImpliedRights returns the value of the ImpliedRights field.

type RightModelImpliedRight added in v0.7.0

type RightModelImpliedRight struct {
	ID   supertypes.StringValue `tfsdk:"id"`
	Name supertypes.StringValue `tfsdk:"name"`
}

* ImpliedRight.

type RightModelImpliedRights added in v0.7.0

type RightModelImpliedRights []RightModelImpliedRight

* ImpliedRights.

type RoleDataSourceModel added in v0.18.2

type RoleDataSourceModel struct {
	ID          supertypes.StringValue        `tfsdk:"id"`
	Name        supertypes.StringValue        `tfsdk:"name"`
	Description supertypes.StringValue        `tfsdk:"description"`
	ReadOnly    supertypes.BoolValue          `tfsdk:"read_only"`
	Rights      supertypes.SetValueOf[string] `tfsdk:"rights"`
}

type RoleResourceModel added in v0.18.2

type RoleResourceModel struct {
	ID          supertypes.StringValue        `tfsdk:"id"`
	Name        supertypes.StringValue        `tfsdk:"name"`
	Description supertypes.StringValue        `tfsdk:"description"`
	Rights      supertypes.SetValueOf[string] `tfsdk:"rights"`
}

type RolesDataSource added in v0.18.2

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

func (*RolesDataSource) Configure added in v0.18.2

func (*RolesDataSource) Init added in v0.18.2

func (d *RolesDataSource) Init(ctx context.Context, dm *RolesModel) (diags diag.Diagnostics)

Init Initializes the data source.

func (*RolesDataSource) Metadata added in v0.18.2

func (*RolesDataSource) Read added in v0.18.2

func (*RolesDataSource) Schema added in v0.18.2

type RolesModel added in v0.18.2

type RolesModel struct {
	ID    supertypes.StringValue                                 `tfsdk:"id"`
	Roles supertypes.MapNestedObjectValueOf[RoleDataSourceModel] `tfsdk:"roles"`
}

type TokenModel added in v0.10.0

type TokenModel struct {
	FileName      supertypes.StringValue `tfsdk:"file_name"`
	ID            supertypes.StringValue `tfsdk:"id"`
	Name          supertypes.StringValue `tfsdk:"name"`
	PrintToken    supertypes.BoolValue   `tfsdk:"print_token"`
	SaveInFile    supertypes.BoolValue   `tfsdk:"save_in_file"`
	SaveInTfstate supertypes.BoolValue   `tfsdk:"save_in_tfstate"`
	Token         supertypes.StringValue `tfsdk:"token"`
}

func (*TokenModel) Copy added in v0.10.0

func (rm *TokenModel) Copy() *TokenModel

type UserSAMLModel added in v0.21.0

type UserSAMLModel struct {
	ID              supertypes.StringValue `tfsdk:"id"`
	UserName        supertypes.StringValue `tfsdk:"user_name"`
	RoleName        supertypes.StringValue `tfsdk:"role_name"`
	Enabled         supertypes.BoolValue   `tfsdk:"enabled"`
	DeployedVMQuota supertypes.Int64Value  `tfsdk:"deployed_vm_quota"`
	StoredVMQuota   supertypes.Int64Value  `tfsdk:"stored_vm_quota"`
	TakeOwnership   supertypes.BoolValue   `tfsdk:"take_ownership"`
}

func (*UserSAMLModel) Copy added in v0.21.0

func (rm *UserSAMLModel) Copy() *UserSAMLModel

type UserSAMLResource added in v0.21.0

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

UserSAMLResource is the resource implementation.

func (*UserSAMLResource) Configure added in v0.21.0

func (*UserSAMLResource) Create added in v0.21.0

Create creates the resource and sets the initial Terraform state.

func (*UserSAMLResource) Delete added in v0.21.0

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

func (*UserSAMLResource) ImportState added in v0.21.0

func (*UserSAMLResource) Init added in v0.21.0

func (r *UserSAMLResource) Init(ctx context.Context, rm *UserSAMLModel) (diags diag.Diagnostics)

Init Initializes the resource.

func (*UserSAMLResource) Metadata added in v0.21.0

Metadata returns the resource type name.

func (*UserSAMLResource) Read added in v0.21.0

Read refreshes the Terraform state with the latest data.

func (*UserSAMLResource) Schema added in v0.21.0

Schema defines the schema for the resource.

func (*UserSAMLResource) Update added in v0.21.0

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

Jump to

Keyboard shortcuts

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