Bug fixes for GCP modules (#64827)

This commit is contained in:
The Magician 2019-11-25 16:19:26 -08:00 committed by ansibot
parent 161ad4bf2c
commit 01249b7fb1
3 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ options:
name: name:
description: description:
- The name specified for the version when it was created. - The name specified for the version when it was created.
required: false required: true
type: str type: str
regions: regions:
description: description:
@ -214,7 +214,7 @@ def main():
state=dict(default='present', choices=['present', 'absent'], type='str'), state=dict(default='present', choices=['present', 'absent'], type='str'),
name=dict(required=True, type='str'), name=dict(required=True, type='str'),
description=dict(type='str'), description=dict(type='str'),
default_version=dict(type='dict', options=dict(name=dict(type='str'))), default_version=dict(type='dict', options=dict(name=dict(required=True, type='str'))),
regions=dict(type='list', elements='str'), regions=dict(type='list', elements='str'),
online_prediction_logging=dict(type='bool'), online_prediction_logging=dict(type='bool'),
online_prediction_console_logging=dict(type='bool'), online_prediction_console_logging=dict(type='bool'),

View file

@ -175,7 +175,7 @@ options:
- A subscription is considered active as long as any connected subscriber is successfully - A subscription is considered active as long as any connected subscriber is successfully
consuming messages from the subscription or is issuing operations on the subscription. consuming messages from the subscription or is issuing operations on the subscription.
If expirationPolicy is not set, a default policy with ttl of 31 days will be If expirationPolicy is not set, a default policy with ttl of 31 days will be
used. If it is set but left empty, the resource never expires. The minimum allowed used. If it is set but ttl is "", the resource never expires. The minimum allowed
value for expirationPolicy.ttl is 1 day. value for expirationPolicy.ttl is 1 day.
required: false required: false
type: dict type: dict
@ -188,7 +188,7 @@ options:
- If ttl is not set, the associated resource never expires. - If ttl is not set, the associated resource never expires.
- A duration in seconds with up to nine fractional digits, terminated by 's'. - A duration in seconds with up to nine fractional digits, terminated by 's'.
- Example - "3.5s". - Example - "3.5s".
required: false required: true
type: str type: str
project: project:
description: description:
@ -379,7 +379,7 @@ expirationPolicy:
- A subscription is considered active as long as any connected subscriber is successfully - A subscription is considered active as long as any connected subscriber is successfully
consuming messages from the subscription or is issuing operations on the subscription. consuming messages from the subscription or is issuing operations on the subscription.
If expirationPolicy is not set, a default policy with ttl of 31 days will be used. If expirationPolicy is not set, a default policy with ttl of 31 days will be used.
If it is set but left empty, the resource never expires. The minimum allowed value If it is set but ttl is "", the resource never expires. The minimum allowed value
for expirationPolicy.ttl is 1 day. for expirationPolicy.ttl is 1 day.
returned: success returned: success
type: complex type: complex
@ -428,7 +428,7 @@ def main():
ack_deadline_seconds=dict(type='int'), ack_deadline_seconds=dict(type='int'),
message_retention_duration=dict(default='604800s', type='str'), message_retention_duration=dict(default='604800s', type='str'),
retain_acked_messages=dict(type='bool'), retain_acked_messages=dict(type='bool'),
expiration_policy=dict(type='dict', options=dict(ttl=dict(type='str'))), expiration_policy=dict(type='dict', options=dict(ttl=dict(required=True, type='str'))),
) )
) )

View file

@ -221,7 +221,7 @@ resources:
- A subscription is considered active as long as any connected subscriber is - A subscription is considered active as long as any connected subscriber is
successfully consuming messages from the subscription or is issuing operations successfully consuming messages from the subscription or is issuing operations
on the subscription. If expirationPolicy is not set, a default policy with on the subscription. If expirationPolicy is not set, a default policy with
ttl of 31 days will be used. If it is set but left empty, the resource never ttl of 31 days will be used. If it is set but ttl is "", the resource never
expires. The minimum allowed value for expirationPolicy.ttl is 1 day. expires. The minimum allowed value for expirationPolicy.ttl is 1 day.
returned: success returned: success
type: complex type: complex