File tree 2 files changed +30
-0
lines changed
products/identityplatform
third_party/terraform/services/identityplatform
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,21 @@ properties:
63
63
Whether authentication is disabled for the tenant. If true, the users under
64
64
the disabled tenant are not allowed to sign-in. Admins of the disabled tenant
65
65
are not able to manage its users.
66
+ - name : ' client'
67
+ type : NestedObject
68
+ description : |
69
+ Options related to how clients making requests on behalf of a tenant should be configured.
70
+ properties :
71
+ - name : ' permissions'
72
+ type : NestedObject
73
+ description : |
74
+ Configuration related to restricting a user's ability to affect their account.
75
+ properties :
76
+ - name : ' disabledUserSignup'
77
+ type : Boolean
78
+ description : |
79
+ When true, end users cannot sign up for a new account on the associated project through any of our API methods.
80
+ - name : ' disabledUserDeletion'
81
+ type : Boolean
82
+ description : |
83
+ When true, end users cannot delete their account on the associated project through any of our API methods.
Original file line number Diff line number Diff line change 4
4
"testing"
5
5
6
6
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
7
+ "github.com/hashicorp/terraform-plugin-testing/plancheck"
7
8
"github.com/hashicorp/terraform-provider-google/google/acctest"
8
9
)
9
10
@@ -29,6 +30,11 @@ func TestAccIdentityPlatformTenant_identityPlatformTenantUpdate(t *testing.T) {
29
30
},
30
31
{
31
32
Config : testAccIdentityPlatformTenant_identityPlatformTenantUpdate (context ),
33
+ ConfigPlanChecks : resource.ConfigPlanChecks {
34
+ PreApply : []plancheck.PlanCheck {
35
+ plancheck .ExpectResourceAction ("google_identity_platform_tenant.tenant" , plancheck .ResourceActionUpdate ),
36
+ },
37
+ },
32
38
},
33
39
{
34
40
ResourceName : "google_identity_platform_tenant.tenant" ,
@@ -55,6 +61,12 @@ resource "google_identity_platform_tenant" "tenant" {
55
61
allow_password_signup = false
56
62
enable_email_link_signin = true
57
63
disable_auth = true
64
+ client {
65
+ permissions {
66
+ disabled_user_signup = true
67
+ disabled_user_deletion = true
68
+ }
69
+ }
58
70
}
59
71
` , context )
60
72
}
You can’t perform that action at this time.
0 commit comments