Documentation ¶
Index ¶
- Variables
- func GetCdpRegionFromConfig() (string, error)
- func NewGroupDataSource() datasource.DataSource
- func NewGroupResource() resource.Resource
- func NewMachineUserGroupAssignmentResource() resource.Resource
- func NewMachineUserResource() resource.Resource
- func NewMachineUserResourceRoleAssignmentResource() resource.Resource
- func NewMachineUserRoleAssignmentResource() resource.Resource
- func PerformSchemaValidationForResource(t *testing.T, test SchemaTestCaseStructure, attr schema.Attribute)
- type SchemaTestCaseStructure
Constants ¶
This section is empty.
Variables ¶
View Source
var MachineUserResourceRoleAssignmentSchema = schema.Schema{ Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Computed: true, }, "machine_user": schema.StringAttribute{ Required: true, MarkdownDescription: "The machine user the role is assigned to. Can be the machine user’s name or CRN.", }, "resource_crn": schema.StringAttribute{ Required: true, MarkdownDescription: "The resource for which the resource role rights are granted.", }, "resource_role_crn": schema.StringAttribute{ Required: true, MarkdownDescription: "The CRN of the resource role to assign to the machine user.", }, }, }
View Source
var MachineUserRoleAssignmentSchema = schema.Schema{ Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Computed: true, }, "machine_user": schema.StringAttribute{ Required: true, MarkdownDescription: "The machine user the role is assigned to. Can be the machine user’s name or CRN.", }, "role": schema.StringAttribute{ Required: true, MarkdownDescription: "The role to assign to the machine user. Can be the role’s name or CRN.", }, }, }
Functions ¶
func GetCdpRegionFromConfig ¶ added in v0.6.3
func NewGroupDataSource ¶
func NewGroupDataSource() datasource.DataSource
func NewGroupResource ¶
func NewMachineUserGroupAssignmentResource ¶ added in v0.5.9
func NewMachineUserResource ¶ added in v0.5.9
func NewMachineUserResourceRoleAssignmentResource ¶ added in v0.5.9
func NewMachineUserRoleAssignmentResource ¶ added in v0.5.9
func PerformSchemaValidationForResource ¶ added in v0.5.9
func PerformSchemaValidationForResource(t *testing.T, test SchemaTestCaseStructure, attr schema.Attribute)
Types ¶
type SchemaTestCaseStructure ¶ added in v0.5.9
type SchemaTestCaseStructure struct {
// contains filtered or unexported fields
}
Source Files ¶
- converter.go
- data_source_group.go
- model_machine_user.go
- model_machine_user_group_assignment.go
- model_machine_user_resource_role_assignment.go
- model_machine_user_role_assignment.go
- resource_group.go
- resource_machine_user.go
- resource_machine_user_group_assignment.go
- resource_machine_user_resource_role_assignment.go
- resource_machine_user_role_assignment.go
- schema_machine_user.go
- schema_machine_user_resource_role_assignment.go
- schema_machine_user_role_assignment.go
- schema_macine_user_group_assignment.go
- test_common_utils.go
Click to show internal directories.
Click to hide internal directories.