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 ¶
- func NewIAMRightDataSource() datasource.DataSource
- func NewIAMUserResource() resource.Resource
- func NewRoleDataSource() datasource.DataSource
- func NewRoleResource() resource.Resource
- func NewRolesDataSource() datasource.DataSource
- func NewTokenResource() resource.Resource
- func NewUserDataSource() datasource.DataSource
- func NewUserSAMLResource() resource.Resource
- type RightModel
- type RightModelImpliedRight
- type RightModelImpliedRights
- type RoleDataSourceModel
- type RoleResourceModel
- type RolesDataSource
- func (d *RolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *RolesDataSource) Init(ctx context.Context, dm *RolesModel) (diags diag.Diagnostics)
- func (d *RolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *RolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RolesModel
- type TokenModel
- type UserSAMLModel
- type UserSAMLResource
- func (r *UserSAMLResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UserSAMLResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserSAMLResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserSAMLResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserSAMLResource) Init(ctx context.Context, rm *UserSAMLModel) (diags diag.Diagnostics)
- func (r *UserSAMLResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *UserSAMLResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserSAMLResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserSAMLResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIAMRightDataSource ¶
func NewIAMRightDataSource() datasource.DataSource
func NewIAMUserResource ¶
NewuserResource is a helper function to simplify the provider implementation.
func NewRoleDataSource ¶
func NewRoleDataSource() datasource.DataSource
func NewRoleResource ¶
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
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
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 (d *RolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
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 (d *RolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RolesDataSource) Read ¶ added in v0.18.2
func (d *RolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RolesDataSource) Schema ¶ added in v0.18.2
func (d *RolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *UserSAMLResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserSAMLResource) Create ¶ added in v0.21.0
func (r *UserSAMLResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*UserSAMLResource) Delete ¶ added in v0.21.0
func (r *UserSAMLResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*UserSAMLResource) ImportState ¶ added in v0.21.0
func (r *UserSAMLResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
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
func (r *UserSAMLResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*UserSAMLResource) Read ¶ added in v0.21.0
func (r *UserSAMLResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*UserSAMLResource) Schema ¶ added in v0.21.0
func (r *UserSAMLResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*UserSAMLResource) Update ¶ added in v0.21.0
func (r *UserSAMLResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
Source Files ¶
- base.go
- right_datasource.go
- right_schema.go
- right_types.go
- role_common.go
- role_datasource.go
- role_resource.go
- role_schema.go
- role_types.go
- roles_datasource.go
- roles_schema.go
- roles_types.go
- token_resource.go
- token_schema.go
- token_types.go
- user_common.go
- user_datasource.go
- user_resource.go
- user_saml_resource.go
- user_saml_schema.go
- user_saml_types.go
- user_schema.go
- user_types.go