generated from sa-progress/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically generated by magic modules for service: orgpolicy and r…
…esource: Folders__policy. This commit includes the following changes: - Singular Resource ERB File - Plural Resource ERB File - Terraform configuration - api.yaml configuration for product orgpolicy and resource Folders__policy Signed-off-by: Samir Anand <[email protected]>
- Loading branch information
1 parent
dfff5d9
commit 5a0fded
Showing
6 changed files
with
606 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2017 Google Inc. | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- !ruby/object:Provider::Inspec::Config | ||
overrides: !ruby/object:Overrides::ResourceOverrides |
5 changes: 5 additions & 0 deletions
5
...lates/inspec/examples/google_orgpolicy_folder_policy/google_orgpolicy_folder_policies.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% folder_policy = grab_attributes(pwd)['folder_policy'] -%> | ||
describe google_orgpolicy_folder_policies(parent: <%= doc_generation ? "' #{folder_policy['parent']}'":"folder_policy['parent']" -%>) do | ||
it { should exist } | ||
end |
11 changes: 11 additions & 0 deletions
11
...mplates/inspec/examples/google_orgpolicy_folder_policy/google_orgpolicy_folder_policy.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% folder_policy = grab_attributes(pwd)['folder_policy'] -%> | ||
describe google_orgpolicy_folder_policy(name: <%= doc_generation ? "' #{folder_policy['name']}'":"folder_policy['name']" -%>) do | ||
it { should exist } | ||
its('name') { should cmp <%= doc_generation ? "'#{folder_policy['name']}'" : "folder_policy['name']" -%> } | ||
|
||
end | ||
|
||
describe google_orgpolicy_folder_policy(name: "does_not_exit") do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...pec/examples/google_orgpolicy_folder_policy/google_orgpolicy_folder_policy_attributes.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gcp_project_id = input(:gcp_project_id, value: '<%= external_attribute(pwd, 'gcp_project_id') -%>', description: 'The GCP project identifier.') | ||
|
||
folder_policy = input('folder_policy', value: <%= JSON.pretty_generate(grab_attributes(pwd)['folder_policy']) -%>, description: 'folder_policy description') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters