Inspec kms generated

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Sam Levenick 2020-01-09 01:17:07 +00:00 committed by Modular Magician
parent d182297638
commit 4a45537368
4 changed files with 17 additions and 6 deletions

View file

@ -179,7 +179,7 @@ name:
- The resource name for the CryptoKey.
returned: success
type: str
creationTime:
createTime:
description:
- The time that this resource was created on the server.
- This is in RFC3339 text format.
@ -223,6 +223,11 @@ versionTemplate:
- The protection level to use when creating a version based on this template.
returned: success
type: str
nextRotationTime:
description:
- The time when KMS will create a new version of this Crypto Key.
returned: success
type: str
keyRing:
description:
- The KeyRing that this key belongs to.
@ -401,11 +406,12 @@ def is_different(module, response):
def response_to_hash(module, response):
return {
u'name': module.params.get('name'),
u'creationTime': response.get(u'creationTime'),
u'createTime': response.get(u'createTime'),
u'labels': response.get(u'labels'),
u'purpose': module.params.get('purpose'),
u'rotationPeriod': response.get(u'rotationPeriod'),
u'versionTemplate': CryptoKeyVersiontemplate(response.get(u'versionTemplate', {}), module).from_response(),
u'nextRotationTime': response.get(u'nextRotationTime'),
}

View file

@ -116,7 +116,7 @@ resources:
- The resource name for the CryptoKey.
returned: success
type: str
creationTime:
createTime:
description:
- The time that this resource was created on the server.
- This is in RFC3339 text format.
@ -160,6 +160,11 @@ resources:
- The protection level to use when creating a version based on this template.
returned: success
type: str
nextRotationTime:
description:
- The time when KMS will create a new version of this Crypto Key.
returned: success
type: str
keyRing:
description:
- The KeyRing that this key belongs to.

View file

@ -129,7 +129,7 @@ name:
- The resource name for the KeyRing.
returned: success
type: str
creationTime:
createTime:
description:
- The time that this resource was created on the server.
- This is in RFC3339 text format.
@ -282,7 +282,7 @@ def is_different(module, response):
# Remove unnecessary properties from the response.
# This is for doing comparisons with Ansible's current parameters.
def response_to_hash(module, response):
return {u'name': response.get(u'name'), u'creationTime': response.get(u'creationTime')}
return {u'name': response.get(u'name'), u'createTime': response.get(u'createTime')}
def decode_response(response, module):

View file

@ -117,7 +117,7 @@ resources:
- The resource name for the KeyRing.
returned: success
type: str
creationTime:
createTime:
description:
- The time that this resource was created on the server.
- This is in RFC3339 text format.