1212# limitations under the License.
1313
1414---
15- name : ' ProjectSettings'
15+ name : ProjectSettings
1616api_resource_type_kind : AccessApprovalSettings
1717api_variant_patterns :
18- - ' projects/{project}/accessApprovalSettings'
19- legacy_name : ' google_project_access_approval_settings'
18+ - projects/{project}/accessApprovalSettings
2019description : |
2120 Access Approval enables you to require your explicit approval whenever Google support and engineering need to access your customer content.
2221references :
2322 guides :
24- api : ' https://cloud.google.com/access-approval/docs/reference/rest/v1/projects'
23+ api : https://cloud.google.com/access-approval/docs/reference/rest/v1/projects
2524docs :
26- base_url : ' projects/{{project_id}}/accessApprovalSettings'
27- self_link : ' projects/{{project_id}}/accessApprovalSettings'
28- create_verb : ' PATCH'
29- update_verb : ' PATCH'
25+ base_url : projects/{{project_id}}/accessApprovalSettings
26+ self_link : projects/{{project_id}}/accessApprovalSettings
3027update_mask : true
28+ create_verb : PATCH
29+ update_verb : PATCH
30+ legacy_name : google_project_access_approval_settings
3131import_format :
32- - ' projects/{{project_id}}/accessApprovalSettings'
32+ - projects/{{project_id}}/accessApprovalSettings
3333timeouts :
3434 insert_minutes : 20
3535 update_minutes : 20
3636 delete_minutes : 20
3737include_in_tgc_next : true
3838tgc_tests :
39- - name : ' TestAccAccessApprovalSettings/project'
39+ - name : TestAccAccessApprovalSettings/project
4040custom_code :
41- pre_create : ' templates/terraform/update_mask.go.tmpl'
42- custom_delete : ' templates/terraform/custom_delete/clear_project_access_approval_settings.go.tmpl'
43- post_create : ' templates/terraform/post_create/sleep_5_min.go.tmpl'
44- post_update : ' templates/terraform/post_create/sleep_5_min.go.tmpl'
45- examples :
46- - name : ' project_access_approval_full'
47- primary_resource_id : ' project_access_approval'
48- test_env_vars :
49- project : ' PROJECT_NAME'
50- org_id : ' ORG_ID'
41+ pre_create : templates/terraform/update_mask.go.tmpl
42+ post_create : templates/terraform/post_create/sleep_5_min.go.tmpl
43+ post_update : templates/terraform/post_create/sleep_5_min.go.tmpl
44+ custom_delete : templates/terraform/custom_delete/clear_project_access_approval_settings.go.tmpl
45+ samples :
46+ - name : project_access_approval_full
47+ primary_resource_id : project_access_approval
5148 exclude_test : true
52- - name : ' project_access_approval_active_key_version'
53- primary_resource_id : ' project_access_approval'
54- test_env_vars :
55- project : ' PROJECT_NAME'
56- org_id : ' ORG_ID'
49+ steps :
50+ - name : project_access_approval_full
51+ test_env_vars :
52+ project : PROJECT_NAME
53+ org_id : ORG_ID
54+ - name : project_access_approval_active_key_version
55+ primary_resource_id : project_access_approval
5756 exclude_test : true
57+ steps :
58+ - name : project_access_approval_active_key_version
59+ test_env_vars :
60+ project : PROJECT_NAME
61+ org_id : ORG_ID
5862parameters :
59- - name : ' project_id'
63+ - name : project_id
6064 type : String
6165 description : |
6266 ID of the project of the access approval settings.
6367 url_param_only : true
6468 required : true
6569 immutable : true
6670properties :
67- - name : ' name'
71+ - name : name
6872 type : String
6973 description : |
7074 The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
7175 output : true
72- - name : ' notificationEmails'
76+ - name : notificationEmails
7377 type : Array
7478 description : |
7579 A list of email addresses to which notifications relating to approval requests should be sent.
@@ -80,7 +84,7 @@ properties:
8084 item_type :
8185 type : String
8286 max_size : 50
83- - name : ' enrolledServices'
87+ - name : enrolledServices
8488 type : Array
8589 description : |
8690 A list of Google Cloud Services for which the given resource has Access Approval enrolled.
@@ -94,7 +98,7 @@ properties:
9498 item_type :
9599 type : NestedObject
96100 properties :
97- - name : ' cloudProduct'
101+ - name : cloudProduct
98102 type : String
99103 description : |
100104 The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive):
@@ -109,38 +113,38 @@ properties:
109113 pubsub.googleapis.com
110114 storage.googleapis.com
111115 required : true
112- - name : ' enrollmentLevel'
116+ - name : enrollmentLevel
113117 type : Enum
114118 description : |
115119 The enrollment level of the service.
116- default_value : " BLOCK_ALL"
120+ default_value : BLOCK_ALL
117121 enum_values :
118- - ' BLOCK_ALL'
119- - name : ' enrolledAncestor'
122+ - BLOCK_ALL
123+ - name : enrolledAncestor
120124 type : Boolean
121125 description : |
122126 If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
123127 output : true
124- - name : ' activeKeyVersion'
128+ - name : activeKeyVersion
125129 type : String
126130 description : |
127131 The asymmetric crypto key version to use for signing approval requests.
128132 Empty active_key_version indicates that a Google-managed key should be used for signing.
129133 This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
130- - name : ' ancestorHasActiveKeyVersion'
134+ - name : ancestorHasActiveKeyVersion
131135 type : Boolean
132136 description : |
133137 If the field is true, that indicates that an ancestor of this Project has set active_key_version.
134138 output : true
135- - name : ' invalidKeyVersion'
139+ - name : invalidKeyVersion
136140 type : Boolean
137141 description : |
138142 If the field is true, that indicates that there is some configuration issue with the active_key_version
139143 configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the
140144 correct permissions on it, etc.) This key version is not necessarily the effective key version at this level,
141145 as key versions are inherited top-down.
142146 output : true
143- - name : ' project'
147+ - name : project
144148 type : String
145149 description : |
146150 Project id.
0 commit comments