Skip to content

Commit

Permalink
chore(iam): deprecate role_assignment_v3 resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiChangkuo committed Mar 20, 2024
1 parent 190f715 commit 121819d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/resources/identity_role_assignment_v3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
subcategory: "Identity and Access Management (IAM)"
subcategory: "Deprecated"
description: ""
page_title: "flexibleengine_identity_role_assignment_v3"
---
Expand All @@ -10,6 +10,8 @@ Manages a V3 Role assignment within group on FlexibleEngine IAM Service.

-> You *must* have admin privileges in your FlexibleEngine cloud to use this resource.

!> **Warning:** It has been deprecated, please use `flexibleengine_identity_group_role_assignment` instead.

## Example Usage: Assign Role On Project Level

```hcl
Expand Down
3 changes: 2 additions & 1 deletion flexibleengine/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ func Provider() *schema.Provider {
"flexibleengine_identity_group_membership_v3": resourceIdentityGroupMembershipV3(),
"flexibleengine_identity_project_v3": resourceIdentityProjectV3(),
"flexibleengine_identity_role_v3": resourceIdentityRoleV3(),
"flexibleengine_identity_role_assignment_v3": resourceIdentityRoleAssignmentV3(),
"flexibleengine_identity_user_v3": resourceIdentityUserV3(),
"flexibleengine_identity_provider": resourceIdentityProvider(),
"flexibleengine_identity_provider_conversion": resourceIAMProviderConversion(),
Expand Down Expand Up @@ -706,6 +705,8 @@ func Provider() *schema.Provider {
"flexibleengine_vpc_eip_v1": resourceVpcEIPV1(),
"flexibleengine_vpc_route_v2": resourceVPCRouteV2(),

"flexibleengine_identity_role_assignment_v3": resourceIdentityRoleAssignmentV3(),

"flexibleengine_mrs_hybrid_cluster_v1": resourceMRSHybridClusterV1(),
"flexibleengine_mrs_cluster_v1": resourceMRSClusterV1(),
"flexibleengine_mrs_job_v1": resourceMRSJobV1(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func resourceIdentityRoleAssignmentV3() *schema.Resource {
State: schema.ImportStatePassthrough,
},

DeprecationMessage: `It has been deprecated, please use 'flexibleengine_identity_group_role_assignment' instead`,
Schema: map[string]*schema.Schema{
"group_id": {
Type: schema.TypeString,
Expand Down

0 comments on commit 121819d

Please sign in to comment.