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.
Merge branch 'main' into CHEF-MAGIC-MODULE-cloudkms-Projects__locatio…
…ns__keyRing
- Loading branch information
Showing
13 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
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 |
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,55 @@ | ||
|
||
--- !ruby/object:Api::Product | ||
name: ServiceNetworking | ||
display_name: ServiceNetworking | ||
versions: | ||
- !ruby/object:Api::Product::Version | ||
name: ga | ||
base_url: https://servicenetworking.googleapis.com//v1/ | ||
scopes: | ||
- https://servicenetworking.googleapis.com//auth/cloud-platform | ||
apis_required: | ||
- !ruby/object:Api::Product::ApiReference | ||
name: https://servicenetworking.googleapis.com/ | ||
url: https://console.cloud.google.com/apis/library/servicenetworking.googleapis.com/ | ||
objects: | ||
|
||
- !ruby/object:Api::Resource | ||
name: 'service_connection' | ||
kind: 'compute#services_connections' | ||
base_url: '{{parent}}/connections' | ||
collection_url_key: 'items' | ||
input: true | ||
has_self_link: true | ||
description: | | ||
An instance is a virtual machine (VM) hosted on Google's infrastructure. | ||
properties: | ||
- !ruby/object:Api::Type::String | ||
name: 'network' | ||
description: | | ||
The name of service consumer's VPC network | ||
that's connected with service producer network | ||
- !ruby/object:Api::Type::Array | ||
name: 'reservedPeeringRanges' | ||
description: | | ||
The name of one or more allocated IP address ranges for this | ||
service producer of type PEERING. Note that invoking connections. | ||
create method with a different range when connection is already | ||
established will not modify already provisioned service producer subnetworks. | ||
If connections.create method is invoked repeatedly to reconnect when peering | ||
connection had been disconnected on the consumer side, leaving this field | ||
empty will restore previously allocated IP ranges. | ||
item_type: Api::Type::String | ||
- !ruby/object:Api::Type::String | ||
name: 'peering' | ||
description: | | ||
The name of the VPC Network Peering connection | ||
that was created by the service producer. | ||
output: true | ||
|
||
- !ruby/object:Api::Type::String | ||
name: 'service' | ||
description: | | ||
The name of the peering service that's associated | ||
with this connection, in the following format: services/{service name}. | ||
output: true |
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 |
10 changes: 10 additions & 0 deletions
10
mmv1/templates/inspec/examples/google_secret_manager_secret/google_secret_manager_secret.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,10 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% project_secret = grab_attributes(pwd)['project_secret'] -%> | ||
describe google_secret_manager_secret(name: <%= doc_generation ? "' #{project_secret['name']}'":"project_secret['name']" -%>) do | ||
it { should exist } | ||
|
||
end | ||
|
||
describe google_secret_manager_secret(name: "does_not_exit") do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
.../inspec/examples/google_secret_manager_secret/google_secret_manager_secret_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.') | ||
|
||
project_secret = input('project_secret', value: <%= JSON.pretty_generate(grab_attributes(pwd)['project_secret']) -%>, description: 'project_secret description') |
5 changes: 5 additions & 0 deletions
5
.../templates/inspec/examples/google_secret_manager_secret/google_secret_manager_secrets.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)}" -%> | ||
<% project_secret = grab_attributes(pwd)['project_secret'] -%> | ||
describe google_secret_manager_secrets(parent: <%= doc_generation ? "' #{project_secret['parent']}'":"project_secret['parent']" -%>) do | ||
it { should exist } | ||
end |
10 changes: 10 additions & 0 deletions
10
...ec/examples/google_secret_manager_secret_version/google_secret_manager_secret_version.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,10 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% project_secret = grab_attributes(pwd)['project_secret'] -%> | ||
describe google_secret_manager_secret(name: <%= doc_generation ? "' #{project_secret['name']}'":"project_secret['name']" -%>) do | ||
it { should exist } | ||
|
||
end | ||
|
||
describe google_secret_manager_secret(name: "does_not_exit") do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
.../google_secret_manager_secret_version/google_secret_manager_secret_version_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.') | ||
|
||
project_secret = input('project_secret', value: <%= JSON.pretty_generate(grab_attributes(pwd)['project_secret']) -%>, description: 'project_secret description') |
5 changes: 5 additions & 0 deletions
5
...c/examples/google_secret_manager_secret_version/google_secret_manager_secret_versions.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)}" -%> | ||
<% project_secret = grab_attributes(pwd)['project_secret'] -%> | ||
describe google_secret_manager_secrets(parent: <%= doc_generation ? "' #{project_secret['parent']}'":"project_secret['parent']" -%>) do | ||
it { should exist } | ||
end |
10 changes: 10 additions & 0 deletions
10
...le_service_networking_service_connection/google_service_networking_service_connection.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,10 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% service_connection = grab_attributes(pwd)['service_connection'] -%> | ||
describe google_service_networking_service_connection() do | ||
it { should exist } | ||
|
||
end | ||
|
||
describe google_service_networking_service_connection() do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...networking_service_connection/google_service_networking_service_connection_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.') | ||
|
||
service_connection = input('service_connection', value: <%= JSON.pretty_generate(grab_attributes(pwd)['service_connection']) -%>, description: 'service_connection description') |
5 changes: 5 additions & 0 deletions
5
...e_service_networking_service_connection/google_service_networking_service_connections.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)}" -%> | ||
<% service_connection = grab_attributes(pwd)['service_connection'] -%> | ||
describe google_servicenetworking_service_connections(parent: <%= doc_generation ? "' #{service_connection['parent']}'":"service_connection['parent']" -%>) do | ||
it { should exist } | ||
end |
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