Skip to content

Commit d5cc6f5

Browse files
removed unnecessary code and addressed linting issues. Added iam3 to services_ga.kt
1 parent 17888fb commit d5cc6f5

File tree

3 files changed

+10
-44
lines changed

3 files changed

+10
-44
lines changed

mmv1/products/iam3/PrincipalAccessBoundaryPolicy.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ properties:
132132
description: |
133133
Required. A list of Cloud Resource Manager resources. The resource
134134
and all the descendants are included. The number of resources in a policy
135-
is limited to 500 across all rules.
136-
The following resource types are supported:
137-
* Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
135+
is limited to 500 across all rules.
136+
The following resource types are supported:
137+
* Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
138138
* Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
139139
* Projects, such as `//cloudresourcemanager.googleapis.com/projects/123`
140140
or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
@@ -144,7 +144,7 @@ properties:
144144
- name: 'effect'
145145
type: String
146146
description: |
147-
Required. The access relationship of principals to the resources in this rule.
147+
Required. The access relationship of principals to the resources in this rule.
148148
Possible values: EFFECT_UNSPECIFIED ALLOW
149149
required: true
150150
- name: 'enforcementVersion'

mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt

+5
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ var ServicesListGa = mapOf(
436436
"displayName" to "Iam2",
437437
"path" to "./google/services/iam2"
438438
),
439+
"iam3" to mapOf(
440+
"name" to "iam3",
441+
"displayName" to "Iam3",
442+
"path" to "./google/services/iam3"
443+
),
439444
"iambeta" to mapOf(
440445
"name" to "iambeta",
441446
"displayName" to "Iambeta",

mmv1/third_party/terraform/services/iam3/resource_iam3_principal_access_boundary_policy_test.go

+1-40
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ resource "google_project" "project" {
6161
project_id = "tf-test%{random_suffix}"
6262
name = "tf-test%{random_suffix}"
6363
org_id = "%{org_id}"
64+
deletion_policy = "DELETE"
6465
}
6566
6667
resource "google_iam3_principal_access_boundary_policy" "my-pab-policy" {
@@ -79,43 +80,3 @@ resource "google_iam3_principal_access_boundary_policy" "my-pab-policy" {
7980
}
8081
`, context)
8182
}
82-
83-
/*
84-
func testAccCheckIAM3PrincipalAccessBoundaryPolicyDestroyProducer(t *testing.T) func(s *terraform.State) error {
85-
return func(s *terraform.State) error {
86-
for name, rs := range s.RootModule().Resources {
87-
if rs.Type != "google_iam3_principal_access_boundary_policy" {
88-
continue
89-
}
90-
if strings.HasPrefix(name, "data.") {
91-
continue
92-
}
93-
config := acctest.GoogleProviderConfig(t)
94-
95-
url, err := tpgresource.ReplaceVarsForTest(config, rs, "{{IAM3BasePath}}organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies/{{principal_access_boundary_policy_id}}")
96-
if err != nil {
97-
return err
98-
}
99-
100-
billingProject := ""
101-
102-
if config.BillingProject != "" {
103-
billingProject = config.BillingProject
104-
}
105-
106-
_, err = transport_tpg.SendRequest(transport_tpg.SendRequestOptions{
107-
Config: config,
108-
Method: "GET",
109-
Project: billingProject,
110-
RawURL: url,
111-
UserAgent: config.UserAgent,
112-
})
113-
if err == nil {
114-
return fmt.Errorf("IAM3PrincipalAccessBoundaryPolicy still exists at %s", url)
115-
}
116-
}
117-
118-
return nil
119-
}
120-
}
121-
*/

0 commit comments

Comments
 (0)