@@ -160,10 +160,11 @@ madrAckIds
160160 . _Coerce
161161
162162-- | The new ack deadline with respect to the time this request was sent to
163−-- the Pub\/Sub system. Must be >= 0. For example, if the value is 10, the
164−-- new ack deadline will expire 10 seconds after the \`ModifyAckDeadline\`
165−-- call was made. Specifying zero may immediately make the message
166−-- available for another pull request.
163+-- the Pub\/Sub system. For example, if the value is 10, the new ack
164+-- deadline will expire 10 seconds after the \`ModifyAckDeadline\` call was
165+-- made. Specifying zero may immediately make the message available for
166+-- another pull request. The minimum deadline you can specify is 0 seconds.
167+-- The maximum deadline you can specify is 600 seconds (10 minutes).
167168madrAckDeadlineSeconds :: Lens' ModifyAckDeadlineRequest (Maybe Int32)
168169madrAckDeadlineSeconds
169170 = lens _madrAckDeadlineSeconds
@@ -254,8 +255,8 @@ instance ToJSON Empty where
254255--
255256-- /See:/ 'pubsubMessage' smart constructor.
256257data PubsubMessage = PubsubMessage'
257− { _pmData :: !(Maybe Base64)
258− , _pmPublishTime :: !(Maybe Text)
258+ { _pmData :: !(Maybe Bytes)
259+ , _pmPublishTime :: !(Maybe DateTime')
259260 , _pmAttributes :: !(Maybe PubsubMessageAttributes)
260261 , _pmMessageId :: !(Maybe Text)
261262 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -281,20 +282,20 @@ pubsubMessage =
281282 , _pmMessageId = Nothing
282283 }
283284
284−-- | The message payload. For JSON requests, the value of this field must be
285−-- [base64-encoded](https:\/\/tools.ietf.org\/html\/rfc4648).
285+-- | The message payload.
286286pmData :: Lens' PubsubMessage (Maybe ByteString)
287287pmData
288288 = lens _pmData (\ s a -> s{_pmData = a}) .
289− mapping _Base64
289+ mapping _Bytes
290290
291291-- | The time at which the message was published, populated by the server
292292-- when it receives the \`Publish\` call. It must not be populated by the
293293-- publisher in a \`Publish\` call.
294−pmPublishTime :: Lens' PubsubMessage (Maybe Text)
294+pmPublishTime :: Lens' PubsubMessage (Maybe UTCTime)
295295pmPublishTime
296296 = lens _pmPublishTime
297297 (\ s a -> s{_pmPublishTime = a})
298+ . mapping _DateTime
298299
299300-- | Optional attributes for this message.
300301pmAttributes :: Lens' PubsubMessage (Maybe PubsubMessageAttributes)
@@ -583,11 +584,12 @@ prMaxMessages
583584 (\ s a -> s{_prMaxMessages = a})
584585 . mapping _Coerce
585586
586−-- | If this is specified as true the system will respond immediately even if
587−-- it is not able to return a message in the \`Pull\` response. Otherwise
588−-- the system is allowed to wait until at least one message is available
589−-- rather than returning no messages. The client may cancel the request if
590−-- it does not wish to wait any longer for the response.
587+-- | If this field set to true, the system will respond immediately even if
588+-- it there are no messages available to return in the \`Pull\` response.
589+-- Otherwise, the system may wait (for a bounded amount of time) until at
590+-- least one message is available, rather than returning no messages. The
591+-- client may cancel the request if it does not wish to wait any longer for
592+-- the response.
591593prReturnImmediately :: Lens' PullRequest (Maybe Bool)
592594prReturnImmediately
593595 = lens _prReturnImmediately
@@ -817,7 +819,7 @@ instance ToJSON TestIAMPermissionsResponse where
817819--
818820-- /See:/ 'policy' smart constructor.
819821data Policy = Policy'
820− { _pEtag :: !(Maybe Base64)
822+ { _pEtag :: !(Maybe Bytes)
821823 , _pVersion :: !(Maybe (Textual Int32))
822824 , _pBindings :: !(Maybe [Binding])
823825 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -852,7 +854,7 @@ policy =
852854pEtag :: Lens' Policy (Maybe ByteString)
853855pEtag
854856 = lens _pEtag (\ s a -> s{_pEtag = a}) .
855− mapping _Base64
857+ mapping _Bytes
856858
857859-- | Version of the \`Policy\`. The default version is 0.
858860pVersion :: Lens' Policy (Maybe Int32)
@@ -972,8 +974,8 @@ sPushConfig
972974 = lens _sPushConfig (\ s a -> s{_sPushConfig = a})
973975
974976-- | The name of the topic from which this subscription is receiving
975−-- messages. The value of this field will be \`_deleted-topic_\` if the
976−-- topic has been deleted.
977+-- messages. Format is \`projects\/{project}\/topics\/{topic}\`. The value
978+-- of this field will be \`_deleted-topic_\` if the topic has been deleted.
977979sTopic :: Lens' Subscription (Maybe Text)
978980sTopic = lens _sTopic (\ s a -> s{_sTopic = a})
979981
@@ -994,12 +996,13 @@ sName = lens _sName (\ s a -> s{_sName = a})
994996-- again during that time (on a best-effort basis). For pull subscriptions,
995997-- this value is used as the initial value for the ack deadline. To
996998-- override this value for a given message, call \`ModifyAckDeadline\` with
997−-- the corresponding \`ack_id\` if using pull. The maximum custom deadline
998−-- you can specify is 600 seconds (10 minutes). For push delivery, this
999−-- value is also used to set the request timeout for the call to the push
1000−-- endpoint. If the subscriber never acknowledges the message, the Pub\/Sub
1001−-- system will eventually redeliver the message. If this parameter is 0, a
1002−-- default value of 10 seconds is used.
999+-- the corresponding \`ack_id\` if using pull. The minimum custom deadline
1000+-- you can specify is 10 seconds. The maximum custom deadline you can
1001+-- specify is 600 seconds (10 minutes). If this parameter is 0, a default
1002+-- value of 10 seconds is used. For push delivery, this value is also used
1003+-- to set the request timeout for the call to the push endpoint. If the
1004+-- subscriber never acknowledges the message, the Pub\/Sub system will
1005+-- eventually redeliver the message.
10031006sAckDeadlineSeconds :: Lens' Subscription (Maybe Int32)
10041007sAckDeadlineSeconds
10051008 = lens _sAckDeadlineSeconds