Skip to content

Commit

Permalink
Add persistence_iam_identity to Redis Instance (#3805) (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 3, 2020
1 parent be865b8 commit ff0e5c3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
19 changes: 15 additions & 4 deletions plugins/modules/gcp_redis_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@
redis_version:
description:
- 'The version of Redis software. If not provided, latest supported version will
be used. Currently, the supported values are: - REDIS_4_0 for Redis 4.0 compatibility
- REDIS_3_2 for Redis 3.2 compatibility .'
be used. Currently, the supported values are: - REDIS_5_0 for Redis 5.0 compatibility
- REDIS_4_0 for Redis 4.0 compatibility - REDIS_3_2 for Redis 3.2 compatibility
.'
required: false
type: str
reserved_ip_range:
Expand Down Expand Up @@ -293,11 +294,20 @@
- The port number of the exposed Redis endpoint.
returned: success
type: int
persistenceIamIdentity:
description:
- Output only. Cloud IAM identity used by import / export operations to transfer
data to/from Cloud Storage. Format is "serviceAccount:".
- The value may change over time for a given instance so should be checked before
each import/export operation.
returned: success
type: str
redisVersion:
description:
- 'The version of Redis software. If not provided, latest supported version will
be used. Currently, the supported values are: - REDIS_4_0 for Redis 4.0 compatibility
- REDIS_3_2 for Redis 3.2 compatibility .'
be used. Currently, the supported values are: - REDIS_5_0 for Redis 5.0 compatibility
- REDIS_4_0 for Redis 4.0 compatibility - REDIS_3_2 for Redis 3.2 compatibility
.'
returned: success
type: str
reservedIpRange:
Expand Down Expand Up @@ -513,6 +523,7 @@ def response_to_hash(module, response):
u'name': module.params.get('name'),
u'memorySizeGb': response.get(u'memorySizeGb'),
u'port': response.get(u'port'),
u'persistenceIamIdentity': response.get(u'persistenceIamIdentity'),
u'redisVersion': module.params.get('redis_version'),
u'reservedIpRange': module.params.get('reserved_ip_range'),
u'tier': module.params.get('tier'),
Expand Down
13 changes: 11 additions & 2 deletions plugins/modules/gcp_redis_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,20 @@
- The port number of the exposed Redis endpoint.
returned: success
type: int
persistenceIamIdentity:
description:
- Output only. Cloud IAM identity used by import / export operations to transfer
data to/from Cloud Storage. Format is "serviceAccount:".
- The value may change over time for a given instance so should be checked before
each import/export operation.
returned: success
type: str
redisVersion:
description:
- 'The version of Redis software. If not provided, latest supported version
will be used. Currently, the supported values are: - REDIS_4_0 for Redis 4.0
compatibility - REDIS_3_2 for Redis 3.2 compatibility .'
will be used. Currently, the supported values are: - REDIS_5_0 for Redis 5.0
compatibility - REDIS_4_0 for Redis 4.0 compatibility - REDIS_3_2 for Redis
3.2 compatibility .'
returned: success
type: str
reservedIpRange:
Expand Down

0 comments on commit ff0e5c3

Please sign in to comment.