mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
Merge pull request #128 from modular-magician/codegen-pr-2945
Inspec kms generated
This commit is contained in:
commit
344b0d5acc
4 changed files with 17 additions and 6 deletions
|
@ -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'),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue