You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-beta/resource_google_organization_policy.go
+42-25Lines changed: 42 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -19,42 +19,49 @@ var schemaOrganizationPolicy = map[string]*schema.Schema{
19
19
Required: true,
20
20
ForceNew: true,
21
21
DiffSuppressFunc: compareSelfLinkOrResourceName,
22
+
Description: `The name of the Constraint the Policy is configuring, for example, serviceuser.services.`,
22
23
},
23
24
"boolean_policy": {
24
-
Type: schema.TypeList,
25
-
Optional: true,
26
-
MaxItems: 1,
25
+
Type: schema.TypeList,
26
+
Optional: true,
27
+
MaxItems: 1,
28
+
Description: `A boolean policy is a constraint that is either enforced or not.`,
27
29
Elem: &schema.Resource{
28
30
Schema: map[string]*schema.Schema{
29
31
"enforced": {
30
-
Type: schema.TypeBool,
31
-
Required: true,
32
+
Type: schema.TypeBool,
33
+
Required: true,
34
+
Description: `If true, then the Policy is enforced. If false, then any configuration is acceptable.`,
32
35
},
33
36
},
34
37
},
35
38
},
36
39
"list_policy": {
37
-
Type: schema.TypeList,
38
-
Optional: true,
39
-
MaxItems: 1,
40
+
Type: schema.TypeList,
41
+
Optional: true,
42
+
MaxItems: 1,
43
+
Description: `A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. `,
@@ -86,39 +96,46 @@ var schemaOrganizationPolicy = map[string]*schema.Schema{
86
96
},
87
97
},
88
98
"suggested_value": {
89
-
Type: schema.TypeString,
90
-
Optional: true,
91
-
Computed: true,
99
+
Type: schema.TypeString,
100
+
Optional: true,
101
+
Computed: true,
102
+
Description: `The Google Cloud Console will try to default to a configuration that matches the value specified in this field.`,
92
103
},
93
104
"inherit_from_parent": {
94
-
Type: schema.TypeBool,
95
-
Optional: true,
105
+
Type: schema.TypeBool,
106
+
Optional: true,
107
+
Description: `If set to true, the values from the effective Policy of the parent resource are inherited, meaning the values set in this Policy are added to the values inherited up the hierarchy.`,
96
108
},
97
109
},
98
110
},
99
111
},
100
112
"version": {
101
-
Type: schema.TypeInt,
102
-
Optional: true,
103
-
Computed: true,
113
+
Type: schema.TypeInt,
114
+
Optional: true,
115
+
Computed: true,
116
+
Description: `Version of the Policy. Default version is 0.`,
104
117
},
105
118
"etag": {
106
-
Type: schema.TypeString,
107
-
Computed: true,
119
+
Type: schema.TypeString,
120
+
Computed: true,
121
+
Description: `The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.`,
108
122
},
109
123
"update_time": {
110
-
Type: schema.TypeString,
111
-
Computed: true,
124
+
Type: schema.TypeString,
125
+
Computed: true,
126
+
Description: `The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".`,
112
127
},
113
128
"restore_policy": {
114
-
Type: schema.TypeList,
115
-
Optional: true,
116
-
MaxItems: 1,
129
+
Type: schema.TypeList,
130
+
Optional: true,
131
+
MaxItems: 1,
132
+
Description: `A restore policy is a constraint to restore the default policy.`,
117
133
Elem: &schema.Resource{
118
134
Schema: map[string]*schema.Schema{
119
135
"default": {
120
-
Type: schema.TypeBool,
121
-
Required: true,
136
+
Type: schema.TypeBool,
137
+
Required: true,
138
+
Description: `May only be set to true. If set, then the default Policy is restored.`,
0 commit comments