Skip to content

Commit 2b5a4f8

Browse files
authored
migration + formatting - no open PRs (#18035)
1 parent 9ca96ea commit 2b5a4f8

1,131 files changed

Lines changed: 22649 additions & 22081 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mmv1/products/accessapproval/FolderSettings.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,32 @@ import_format:
3131
- folders/{{folder_id}}/accessApprovalSettings
3232
include_in_tgc_next: true
3333
tgc_tests:
34-
- name: 'TestAccAccessApprovalSettings/folder'
34+
- name: TestAccAccessApprovalSettings/folder
3535
custom_code:
3636
constants: templates/terraform/constants/access_approval.go.tmpl
3737
pre_create: templates/terraform/update_mask.go.tmpl
3838
post_create: templates/terraform/post_create/sleep_5_min.go.tmpl
3939
post_update: templates/terraform/post_create/sleep_5_min.go.tmpl
4040
custom_delete: templates/terraform/custom_delete/clear_folder_access_approval_settings.go.tmpl
41-
examples:
41+
samples:
4242
- name: folder_access_approval_full
4343
primary_resource_id: folder_access_approval
4444
exclude_test: true
45-
vars:
46-
folder_name: folder-faaf
47-
test_env_vars:
48-
org_id: ORG_ID
45+
steps:
46+
- name: folder_access_approval_full
47+
resource_id_vars:
48+
folder_name: folder-faaf
49+
test_env_vars:
50+
org_id: ORG_ID
4951
- name: folder_access_approval_active_key_version
5052
primary_resource_id: folder_access_approval
5153
exclude_test: true
52-
vars:
53-
folder_name: folder-faak
54-
test_env_vars:
55-
org_id: ORG_ID
54+
steps:
55+
- name: folder_access_approval_active_key_version
56+
resource_id_vars:
57+
folder_name: folder-faak
58+
test_env_vars:
59+
org_id: ORG_ID
5660
parameters:
5761
- name: folder_id
5862
type: String

mmv1/products/accessapproval/OrganizationSettings.yaml

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,62 +12,66 @@
1212
# limitations under the License.
1313

1414
---
15-
name: 'OrganizationSettings'
15+
name: OrganizationSettings
1616
api_resource_type_kind: AccessApprovalSettings
1717
api_variant_patterns:
18-
- 'organizations/{organization}/accessApprovalSettings'
18+
- organizations/{organization}/accessApprovalSettings
1919
description: |
2020
Access Approval enables you to require your explicit approval whenever Google support and engineering need to access your customer content.
2121
references:
2222
guides:
23-
api: 'https://cloud.google.com/access-approval/docs/reference/rest/v1/organizations'
23+
api: https://cloud.google.com/access-approval/docs/reference/rest/v1/organizations
2424
docs:
25-
base_url: 'organizations/{{organization_id}}/accessApprovalSettings'
26-
self_link: 'organizations/{{organization_id}}/accessApprovalSettings'
25+
base_url: organizations/{{organization_id}}/accessApprovalSettings
26+
self_link: organizations/{{organization_id}}/accessApprovalSettings
2727
update_mask: true
28-
create_verb: 'PATCH'
29-
update_verb: 'PATCH'
30-
legacy_name: 'google_organization_access_approval_settings'
28+
create_verb: PATCH
29+
update_verb: PATCH
30+
legacy_name: google_organization_access_approval_settings
3131
import_format:
32-
- 'organizations/{{organization_id}}/accessApprovalSettings'
32+
- organizations/{{organization_id}}/accessApprovalSettings
3333
timeouts:
3434
insert_minutes: 20
3535
update_minutes: 20
3636
delete_minutes: 20
3737
include_in_tgc_next: true
3838
tgc_tests:
39-
- name: 'TestAccAccessApprovalSettings/organization'
39+
- name: TestAccAccessApprovalSettings/organization
4040
custom_code:
41-
pre_create: 'templates/terraform/update_mask.go.tmpl'
42-
custom_delete: 'templates/terraform/custom_delete/clear_organization_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: 'organization_access_approval_full'
47-
primary_resource_id: 'organization_access_approval'
48-
test_env_vars:
49-
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_organization_access_approval_settings.go.tmpl
45+
samples:
46+
- name: organization_access_approval_full
47+
primary_resource_id: organization_access_approval
5048
exclude_test: true
51-
- name: 'organization_access_approval_active_key_version'
52-
primary_resource_id: 'organization_access_approval'
53-
test_env_vars:
54-
org_id: 'ORG_ID'
49+
steps:
50+
- name: organization_access_approval_full
51+
test_env_vars:
52+
org_id: ORG_ID
53+
- name: organization_access_approval_active_key_version
54+
primary_resource_id: organization_access_approval
5555
exclude_test: true
56+
steps:
57+
- name: organization_access_approval_active_key_version
58+
test_env_vars:
59+
org_id: ORG_ID
5660
parameters:
57-
- name: 'organization_id'
61+
- name: organization_id
5862
type: String
5963
description: |
6064
ID of the organization of the access approval settings.
6165
url_param_only: true
6266
required: true
6367
immutable: true
6468
properties:
65-
- name: 'name'
69+
- name: name
6670
type: String
6771
description: |
6872
The resource name of the settings. Format is "organizations/{organization_id}/accessApprovalSettings"
6973
output: true
70-
- name: 'notificationEmails'
74+
- name: notificationEmails
7175
type: Array
7276
description: |
7377
A list of email addresses to which notifications relating to approval requests should be sent.
@@ -78,7 +82,7 @@ properties:
7882
item_type:
7983
type: String
8084
max_size: 50
81-
- name: 'enrolledServices'
85+
- name: enrolledServices
8286
type: Array
8387
description: |
8488
A list of Google Cloud Services for which the given resource has Access Approval enrolled.
@@ -92,7 +96,7 @@ properties:
9296
item_type:
9397
type: NestedObject
9498
properties:
95-
- name: 'cloudProduct'
99+
- name: cloudProduct
96100
type: String
97101
description: |
98102
The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive):
@@ -107,29 +111,29 @@ properties:
107111
pubsub.googleapis.com
108112
storage.googleapis.com
109113
required: true
110-
- name: 'enrollmentLevel'
114+
- name: enrollmentLevel
111115
type: Enum
112116
description: |
113117
The enrollment level of the service.
114-
default_value: "BLOCK_ALL"
118+
default_value: BLOCK_ALL
115119
enum_values:
116-
- 'BLOCK_ALL'
117-
- name: 'enrolledAncestor'
120+
- BLOCK_ALL
121+
- name: enrolledAncestor
118122
type: Boolean
119123
description: |
120124
This field will always be unset for the organization since organizations do not have ancestors.
121125
output: true
122-
- name: 'activeKeyVersion'
126+
- name: activeKeyVersion
123127
type: String
124128
description: |
125129
The asymmetric crypto key version to use for signing approval requests.
126130
Empty active_key_version indicates that a Google-managed key should be used for signing.
127-
- name: 'ancestorHasActiveKeyVersion'
131+
- name: ancestorHasActiveKeyVersion
128132
type: Boolean
129133
description: |
130134
This field will always be unset for the organization since organizations do not have ancestors.
131135
output: true
132-
- name: 'invalidKeyVersion'
136+
- name: invalidKeyVersion
133137
type: Boolean
134138
description: |
135139
If the field is true, that indicates that there is some configuration issue with the active_key_version

mmv1/products/accessapproval/ProjectSettings.yaml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,64 +12,68 @@
1212
# limitations under the License.
1313

1414
---
15-
name: 'ProjectSettings'
15+
name: ProjectSettings
1616
api_resource_type_kind: AccessApprovalSettings
1717
api_variant_patterns:
18-
- 'projects/{project}/accessApprovalSettings'
19-
legacy_name: 'google_project_access_approval_settings'
18+
- projects/{project}/accessApprovalSettings
2019
description: |
2120
Access Approval enables you to require your explicit approval whenever Google support and engineering need to access your customer content.
2221
references:
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
2524
docs:
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
3027
update_mask: true
28+
create_verb: PATCH
29+
update_verb: PATCH
30+
legacy_name: google_project_access_approval_settings
3131
import_format:
32-
- 'projects/{{project_id}}/accessApprovalSettings'
32+
- projects/{{project_id}}/accessApprovalSettings
3333
timeouts:
3434
insert_minutes: 20
3535
update_minutes: 20
3636
delete_minutes: 20
3737
include_in_tgc_next: true
3838
tgc_tests:
39-
- name: 'TestAccAccessApprovalSettings/project'
39+
- name: TestAccAccessApprovalSettings/project
4040
custom_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
5862
parameters:
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
6670
properties:
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.

mmv1/products/accessapproval/product.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# limitations under the License.
1313

1414
---
15-
name: 'AccessApproval'
16-
display_name: 'Access Approval'
17-
versions:
18-
- name: 'ga'
19-
base_url: 'https://accessapproval.googleapis.com/v1/'
15+
name: AccessApproval
16+
display_name: Access Approval
2017
scopes:
21-
- 'https://www.googleapis.com/auth/cloud-platform'
18+
- https://www.googleapis.com/auth/cloud-platform
19+
versions:
20+
- name: ga
21+
base_url: https://accessapproval.googleapis.com/v1/

0 commit comments

Comments
 (0)