Merge pull request #130 from modular-magician/codegen-pr-2952

InSpec generate SQL db instance, user
This commit is contained in:
Sam Levenick 2020-01-10 13:41:48 -08:00 committed by GitHub
commit dd1aefed8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -684,6 +684,18 @@ settings:
this value.
returned: success
type: int
gceZone:
description:
- The Compute Engine zone that the instance is currently serving from. This value
could be different from the zone that was specified when the instance was created
if the instance has failed over to its secondary zone.
returned: success
type: str
state:
description:
- The current serving state of the database instance.
returned: success
type: str
'''
################################################################################
@ -910,6 +922,8 @@ def response_to_hash(module, response):
u'region': response.get(u'region'),
u'replicaConfiguration': InstanceReplicaconfiguration(response.get(u'replicaConfiguration', {}), module).from_response(),
u'settings': InstanceSettings(response.get(u'settings', {}), module).from_response(),
u'gceZone': response.get(u'gceZone'),
u'state': response.get(u'state'),
}

View file

@ -414,6 +414,18 @@ resources:
try to update this value.
returned: success
type: int
gceZone:
description:
- The Compute Engine zone that the instance is currently serving from. This
value could be different from the zone that was specified when the instance
was created if the instance has failed over to its secondary zone.
returned: success
type: str
state:
description:
- The current serving state of the database instance.
returned: success
type: str
'''
################################################################################