diff --git a/plugins/modules/gcp_kms_crypto_key.py b/plugins/modules/gcp_kms_crypto_key.py index 8e9bc43..2662e89 100644 --- a/plugins/modules/gcp_kms_crypto_key.py +++ b/plugins/modules/gcp_kms_crypto_key.py @@ -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'), } diff --git a/plugins/modules/gcp_kms_crypto_key_info.py b/plugins/modules/gcp_kms_crypto_key_info.py index 44320e6..1908c8b 100644 --- a/plugins/modules/gcp_kms_crypto_key_info.py +++ b/plugins/modules/gcp_kms_crypto_key_info.py @@ -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. diff --git a/plugins/modules/gcp_kms_key_ring.py b/plugins/modules/gcp_kms_key_ring.py index cd7d6ed..665881f 100644 --- a/plugins/modules/gcp_kms_key_ring.py +++ b/plugins/modules/gcp_kms_key_ring.py @@ -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): diff --git a/plugins/modules/gcp_kms_key_ring_info.py b/plugins/modules/gcp_kms_key_ring_info.py index 0f8e756..c7bc16b 100644 --- a/plugins/modules/gcp_kms_key_ring_info.py +++ b/plugins/modules/gcp_kms_key_ring_info.py @@ -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.