-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RESOURCE-313-gcp-replace-attribute-calls-with-input-cal…
…ls-in-integration-tests_1' of github.com:inspec/inspec-gcp into RESOURCE-313-gcp-replace-attribute-calls-with-input-calls-in-integration-tests_1
- Loading branch information
Showing
21 changed files
with
788 additions
and
113 deletions.
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.10.23 | ||
1.10.28 |
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,46 @@ | ||
--- | ||
title: About the google_compute_public_delegated_prefix resource | ||
platform: gcp | ||
--- | ||
|
||
## Syntax | ||
A `google_compute_public_delegated_prefix` is used to test a Google PublicDelegatedPrefix resource | ||
|
||
## Examples | ||
``` | ||
describe google_compute_public_delegated_prefix(project: 'chef-gcp-inspec', region: 'us-east1-b', name: 'test') do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_compute_public_delegated_prefix` resource: | ||
|
||
|
||
* `creation_timestamp`: Creation timestamp in RFC3339 text format.This field is deprecated. | ||
|
||
* `description`: An optional description of this resource. Provide this property when you create the resource. | ||
|
||
* `id`: The unique identifier for the resource. | ||
|
||
* `name`: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | ||
|
||
* `ip_cidr_range`: The IPv4 address range, in CIDR format, represented by this public delegated prefix. | ||
|
||
* `parent_prefix`: The value of requestId if you provided it in the request. Not present otherwise. | ||
|
||
* `is_live_migration`: If true, the prefix will be live migrated. | ||
|
||
* `fingerprint`: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. A base64-encoded string. | ||
|
||
* `status`: The status of the public delegated prefix, which can be one of following values: * INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. * READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. * ANNOUNCED The public delegated prefix is active. * DELETING The public delegated prefix is being deprovsioned. | ||
Possible values: | ||
* INITIALIZING | ||
* READY_TO_ANNOUNCE | ||
* ANNOUNCED | ||
* DELETING | ||
|
||
|
||
## GCP Permissions | ||
|
||
Ensure the [Compute Engine API](https://console.cloud.google.com/apis/library/compute.googleapis.com/) is enabled for the current project. |
36 changes: 36 additions & 0 deletions
36
docs/resources/google_compute_public_delegated_prefixes.md
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,36 @@ | ||
--- | ||
title: About the google_compute_public_delegated_prefixes resource | ||
platform: gcp | ||
--- | ||
|
||
## Syntax | ||
A `google_compute_public_delegated_prefixes` is used to test a Google PublicDelegatedPrefix resource | ||
|
||
## Examples | ||
``` | ||
describe google_compute_public_delegated_prefixes(project: 'chef-gcp-inspec', region: 'us-east1-b') do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_compute_public_delegated_prefixes` resource: | ||
|
||
See [google_compute_public_delegated_prefix.md](google_compute_public_delegated_prefix.md) for more detailed information | ||
* `creation_timestamps`: an array of `google_compute_public_delegated_prefix` creation_timestamp | ||
* `descriptions`: an array of `google_compute_public_delegated_prefix` description | ||
* `ids`: an array of `google_compute_public_delegated_prefix` id | ||
* `names`: an array of `google_compute_public_delegated_prefix` name | ||
* `ip_cidr_ranges`: an array of `google_compute_public_delegated_prefix` ip_cidr_range | ||
* `parent_prefixes`: an array of `google_compute_public_delegated_prefix` parent_prefix | ||
* `is_live_migrations`: an array of `google_compute_public_delegated_prefix` is_live_migration | ||
* `fingerprints`: an array of `google_compute_public_delegated_prefix` fingerprint | ||
* `statuses`: an array of `google_compute_public_delegated_prefix` status | ||
|
||
## Filter Criteria | ||
This resource supports all of the above properties as filter criteria, which can be used | ||
with `where` as a block or a method. | ||
|
||
## GCP Permissions | ||
|
||
Ensure the [Compute Engine API](https://console.cloud.google.com/apis/library/compute.googleapis.com/) is enabled for the current project. |
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,77 @@ | ||
--- | ||
title: About the google_sql_operation resource | ||
platform: gcp | ||
--- | ||
|
||
## Syntax | ||
A `google_sql_operation` is used to test a Google Operation resource | ||
|
||
## Examples | ||
``` | ||
describe google_sql_operation(project: 'chef-gcp-inspec', operation: 'e5c522f1-8391-4830-a8ff-ff1cc4a7b2a5') do | ||
it { should exist } | ||
its('name') { should eq 'e5c522f1-8391-4830-a8ff-ff1cc4a7b2a5' } | ||
its('status') { should eq 'DONE' } | ||
its('operation_type') { should eq 'CREATE' } | ||
end | ||
describe google_sql_operation(project: 'chef-gcp-inspec', operation: 'nonexistant') do | ||
it { should_not exist } | ||
end | ||
``` | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_sql_operation` resource: | ||
|
||
|
||
* `user`: The email address of the user who initiated this operation. | ||
|
||
* `name`: An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. | ||
|
||
* `status`: An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. | ||
Possible values: | ||
* PENDING | ||
* RUNNING | ||
* DONE | ||
* SQL_OPERATION_STATUS_UNSPECIFIED | ||
|
||
* `operation_type`: An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. | ||
Possible values: | ||
* SQL_OPERATION_TYPE_UNSPECIFIED | ||
* IMPORT | ||
* EXPORT | ||
* CREATE | ||
* UPDATE | ||
* DELETE | ||
* RESTART | ||
* BACKUP_VOLUME | ||
* DELETE_VOLUME | ||
* RESTORE_VOLUME | ||
* INJECT_USER | ||
* CLONE | ||
* STOP_REPLICA | ||
* START_REPLICA | ||
* START_REPLICA | ||
* CREATE_REPLICA | ||
* CREATE_USER | ||
* DELETE_USER | ||
* UPDATE_USER | ||
* CREATE_DATABASE | ||
* DELETE_DATABASE | ||
* CREATE_REPLICA | ||
* UPDATE_DATABASE | ||
* FAILOVER | ||
* DELETE_BACKUP | ||
* RECREATE_REPLICA | ||
* TRUNCATE_LOG | ||
* DEMOTE_MASTER | ||
* MAINTENANCE | ||
* RESCHEDULE_MAINTENANCE | ||
* START_EXTERNAL_SYNC | ||
|
||
* `instance`: The name of the Cloud SQL instance. This does not include the project ID. | ||
|
||
|
||
## GCP Permissions | ||
|
||
Ensure the [Cloud SQL Admin API](https://console.cloud.google.com/apis/library/sqladmin.googleapis.com/) is enabled for the current project. |
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,36 @@ | ||
--- | ||
title: About the google_sql_operations resource | ||
platform: gcp | ||
--- | ||
|
||
## Syntax | ||
A `google_sql_operations` is used to test a Google Operation resource | ||
|
||
## Examples | ||
``` | ||
describe google_sql_operations(project: 'chef-gcp-inspec', instance: 'my-database') do | ||
it { should exist } | ||
its('names') { should include 'e5c522f1-8391-4830-a8ff-ff1cc4a7b2a5' } | ||
its('statuses') { should include 'DONE' } | ||
its('operation_types') { should include 'CREATE' } | ||
end | ||
``` | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_sql_operations` resource: | ||
|
||
See [google_sql_operation.md](google_sql_operation.md) for more detailed information | ||
* `users`: an array of `google_sql_operation` user | ||
* `names`: an array of `google_sql_operation` name | ||
* `statuses`: an array of `google_sql_operation` status | ||
* `operation_types`: an array of `google_sql_operation` operation_type | ||
* `instances`: an array of `google_sql_operation` instance | ||
|
||
## Filter Criteria | ||
This resource supports all of the above properties as filter criteria, which can be used | ||
with `where` as a block or a method. | ||
|
||
## GCP Permissions | ||
|
||
Ensure the [Cloud SQL Admin API](https://console.cloud.google.com/apis/library/sqladmin.googleapis.com/) is enabled for the current project. |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ maintainer: [email protected],[email protected] | |
summary: This resource pack provides compliance resources_old_ignore for Google Cloud Platform | ||
copyright: [email protected],[email protected] | ||
copyright_email: [email protected],[email protected] | ||
version: 1.10.23 | ||
version: 1.10.28 | ||
license: Apache-2.0 | ||
inspec_version: '>= 4.7.3' | ||
supports: | ||
|
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
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
Oops, something went wrong.