diff --git a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py index 8963a6cf514..aa186d6fa19 100644 --- a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py +++ b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py @@ -175,7 +175,8 @@ options: - 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. If expirationPolicy is not set, a default policy with ttl of 31 days will be - used. The minimum allowed value for expirationPolicy.ttl is 1 day. + used. If it is set but left empty, the resource never expires. The minimum allowed + value for expirationPolicy.ttl is 1 day. required: false type: dict version_added: '2.9' @@ -183,10 +184,8 @@ options: ttl: description: - Specifies the "time-to-live" duration for an associated resource. The resource - expires if it is not active for a period of ttl. The definition of "activity" - depends on the type of the associated resource. The minimum and maximum - allowed values for ttl depend on the type of the associated resource, as - well. If ttl is not set, the associated resource never expires. + expires if it is not active for a period of ttl. + - If ttl is not set, the associated resource never expires. - A duration in seconds with up to nine fractional digits, terminated by 's'. - Example - "3.5s". required: false @@ -380,17 +379,16 @@ expirationPolicy: - 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. If expirationPolicy is not set, a default policy with ttl of 31 days will be used. - The minimum allowed value for expirationPolicy.ttl is 1 day. + If it is set but left empty, the resource never expires. The minimum allowed value + for expirationPolicy.ttl is 1 day. returned: success type: complex contains: ttl: description: - Specifies the "time-to-live" duration for an associated resource. The resource - expires if it is not active for a period of ttl. The definition of "activity" - depends on the type of the associated resource. The minimum and maximum allowed - values for ttl depend on the type of the associated resource, as well. If - ttl is not set, the associated resource never expires. + expires if it is not active for a period of ttl. + - If ttl is not set, the associated resource never expires. - A duration in seconds with up to nine fractional digits, terminated by 's'. - Example - "3.5s". returned: success diff --git a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription_info.py b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription_info.py index 44e51b231d2..64136e2521d 100644 --- a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription_info.py +++ b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription_info.py @@ -221,18 +221,16 @@ resources: - 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. If expirationPolicy is not set, a default policy with - ttl of 31 days will be used. The minimum allowed value for expirationPolicy.ttl - is 1 day. + ttl of 31 days will be used. If it is set but left empty, the resource never + expires. The minimum allowed value for expirationPolicy.ttl is 1 day. returned: success type: complex contains: ttl: description: - Specifies the "time-to-live" duration for an associated resource. The - resource expires if it is not active for a period of ttl. The definition - of "activity" depends on the type of the associated resource. The minimum - and maximum allowed values for ttl depend on the type of the associated - resource, as well. If ttl is not set, the associated resource never expires. + resource expires if it is not active for a period of ttl. + - If ttl is not set, the associated resource never expires. - A duration in seconds with up to nine fractional digits, terminated by 's'. - Example - "3.5s".