on develop help sign in
Regenerating gogol-pubsub from updated service defintions
commit8efc984805d08c79d445269eba53e0d02e5ef48b authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent6e73b65
27 files changed+182−116
gogol-pubsub/gen/Network/Google/PubSub.hs+3 gogol-pubsub/gen/Network/Google/PubSub/Types.hs+3 gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+28−25 gogol-pubsub/gen/Network/Google/PubSub/Types/Sum.hs+29 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/GetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/SetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/TestIAMPermissions.hs+9−5 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Acknowledge.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Create.hs+11−7 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Delete.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Get.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/List.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyAckDeadline.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyPushConfig.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Pull.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+9−5 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Create.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Get.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/List.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Publish.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Subscriptions/List.hs+5−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+9−5
gogol-pubsub/gen/Network/Google/PubSub.hs+3
@@ -175,6 +175,9 @@ module Network.Google.PubSub
175175 , pubsubMessageAttributes
176176 , pmaAddtional
177177
178+ -- ** Xgafv
179+ , Xgafv (..)
180+
178181 -- ** TestIAMPermissionsRequest
179182 , TestIAMPermissionsRequest
180183 , testIAMPermissionsRequest
gogol-pubsub/gen/Network/Google/PubSub/Types.hs+3
@@ -96,6 +96,9 @@ module Network.Google.PubSub.Types
9696 , pubsubMessageAttributes
9797 , pmaAddtional
9898
99+ -- * Xgafv
100+ , Xgafv (..)
101+
99102 -- * TestIAMPermissionsRequest
100103 , TestIAMPermissionsRequest
101104 , testIAMPermissionsRequest
gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+28−25
@@ -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
gogol-pubsub/gen/Network/Google/PubSub/Types/Sum.hs+29
@@ -17,3 +17,32 @@
1717module Network.Google.PubSub.Types.Sum where
1818
1919import Network.Google.Prelude
20+
21+-- | V1 error format.
22+data Xgafv
23+ = X1
24+ -- ^ @1@
25+ -- v1 error format
26+ | X2
27+ -- ^ @2@
28+ -- v2 error format
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30+
31+instance Hashable Xgafv
32+
33+instance FromHttpApiData Xgafv where
34+ parseQueryParam = \case
35+ "1" -> Right X1
36+ "2" -> Right X2
37+ x -> Left ("Unable to parse Xgafv from: " <> x)
38+
39+instance ToHttpApiData Xgafv where
40+ toQueryParam = \case
41+ X1 -> "1"
42+ X2 -> "2"
43+
44+instance FromJSON Xgafv where
45+ parseJSON = parseJSONText "Xgafv"
46+
47+instance ToJSON Xgafv where
48+ toJSON = toJSONText
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/GetIAMPolicy.hs+3−3
@@ -52,7 +52,7 @@ import Network.Google.PubSub.Types
5252type ProjectsSnapshotsGetIAMPolicyResource =
5353 "v1" :>
5454 CaptureMode "resource" "getIamPolicy" Text :>
55− QueryParam "$.xgafv" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
5656 QueryParam "upload_protocol" Text :>
5757 QueryParam "pp" Bool :>
5858 QueryParam "access_token" Text :>
@@ -66,7 +66,7 @@ type ProjectsSnapshotsGetIAMPolicyResource =
6666--
6767-- /See:/ 'projectsSnapshotsGetIAMPolicy' smart constructor.
6868data ProjectsSnapshotsGetIAMPolicy = ProjectsSnapshotsGetIAMPolicy'
69− { _psgipXgafv :: !(Maybe Text)
69+ { _psgipXgafv :: !(Maybe Xgafv)
7070 , _psgipUploadProtocol :: !(Maybe Text)
7171 , _psgipPp :: !Bool
7272 , _psgipAccessToken :: !(Maybe Text)
@@ -111,7 +111,7 @@ projectsSnapshotsGetIAMPolicy pPsgipResource_ =
111111 }
112112
113113-- | V1 error format.
114−psgipXgafv :: Lens' ProjectsSnapshotsGetIAMPolicy (Maybe Text)
114+psgipXgafv :: Lens' ProjectsSnapshotsGetIAMPolicy (Maybe Xgafv)
115115psgipXgafv
116116 = lens _psgipXgafv (\ s a -> s{_psgipXgafv = a})
117117
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/SetIAMPolicy.hs+3−3
@@ -53,7 +53,7 @@ import Network.Google.PubSub.Types
5353type ProjectsSnapshotsSetIAMPolicyResource =
5454 "v1" :>
5555 CaptureMode "resource" "setIamPolicy" Text :>
56− QueryParam "$.xgafv" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
5757 QueryParam "upload_protocol" Text :>
5858 QueryParam "pp" Bool :>
5959 QueryParam "access_token" Text :>
@@ -69,7 +69,7 @@ type ProjectsSnapshotsSetIAMPolicyResource =
6969--
7070-- /See:/ 'projectsSnapshotsSetIAMPolicy' smart constructor.
7171data ProjectsSnapshotsSetIAMPolicy = ProjectsSnapshotsSetIAMPolicy'
72− { _pssiampXgafv :: !(Maybe Text)
72+ { _pssiampXgafv :: !(Maybe Xgafv)
7373 , _pssiampUploadProtocol :: !(Maybe Text)
7474 , _pssiampPp :: !Bool
7575 , _pssiampAccessToken :: !(Maybe Text)
@@ -119,7 +119,7 @@ projectsSnapshotsSetIAMPolicy pPssiampPayload_ pPssiampResource_ =
119119 }
120120
121121-- | V1 error format.
122−pssiampXgafv :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text)
122+pssiampXgafv :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Xgafv)
123123pssiampXgafv
124124 = lens _pssiampXgafv (\ s a -> s{_pssiampXgafv = a})
125125
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Snapshots/TestIAMPermissions.hs+9−5
@@ -20,7 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Returns permissions that a caller has on the specified resource.
23+-- Returns permissions that a caller has on the specified resource. If the
24+-- resource does not exist, this will return an empty set of permissions,
25+-- not a NOT_FOUND error.
2426--
2527-- /See:/ <https://cloud.google.com/pubsub/docs Google Cloud Pub/Sub API Reference> for @pubsub.projects.snapshots.testIamPermissions@.
2628module Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions
@@ -52,7 +54,7 @@ import Network.Google.PubSub.Types
5254type ProjectsSnapshotsTestIAMPermissionsResource =
5355 "v1" :>
5456 CaptureMode "resource" "testIamPermissions" Text :>
55− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5658 QueryParam "upload_protocol" Text :>
5759 QueryParam "pp" Bool :>
5860 QueryParam "access_token" Text :>
@@ -63,11 +65,13 @@ type ProjectsSnapshotsTestIAMPermissionsResource =
6365 ReqBody '[JSON] TestIAMPermissionsRequest :>
6466 Post '[JSON] TestIAMPermissionsResponse
6567
66−-- | Returns permissions that a caller has on the specified resource.
68+-- | Returns permissions that a caller has on the specified resource. If the
69+-- resource does not exist, this will return an empty set of permissions,
70+-- not a NOT_FOUND error.
6771--
6872-- /See:/ 'projectsSnapshotsTestIAMPermissions' smart constructor.
6973data ProjectsSnapshotsTestIAMPermissions = ProjectsSnapshotsTestIAMPermissions'
70− { _pstipXgafv :: !(Maybe Text)
74+ { _pstipXgafv :: !(Maybe Xgafv)
7175 , _pstipUploadProtocol :: !(Maybe Text)
7276 , _pstipPp :: !Bool
7377 , _pstipAccessToken :: !(Maybe Text)
@@ -117,7 +121,7 @@ projectsSnapshotsTestIAMPermissions pPstipPayload_ pPstipResource_ =
117121 }
118122
119123-- | V1 error format.
120−pstipXgafv :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text)
124+pstipXgafv :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Xgafv)
121125pstipXgafv
122126 = lens _pstipXgafv (\ s a -> s{_pstipXgafv = a})
123127
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Acknowledge.hs+5−4
@@ -57,7 +57,7 @@ import Network.Google.PubSub.Types
5757type ProjectsSubscriptionsAcknowledgeResource =
5858 "v1" :>
5959 CaptureMode "subscription" "acknowledge" Text :>
60− QueryParam "$.xgafv" Text :>
60+ QueryParam "$.xgafv" Xgafv :>
6161 QueryParam "upload_protocol" Text :>
6262 QueryParam "pp" Bool :>
6363 QueryParam "access_token" Text :>
@@ -77,7 +77,7 @@ type ProjectsSubscriptionsAcknowledgeResource =
7777--
7878-- /See:/ 'projectsSubscriptionsAcknowledge' smart constructor.
7979data ProjectsSubscriptionsAcknowledge = ProjectsSubscriptionsAcknowledge'
80− { _psaXgafv :: !(Maybe Text)
80+ { _psaXgafv :: !(Maybe Xgafv)
8181 , _psaUploadProtocol :: !(Maybe Text)
8282 , _psaPp :: !Bool
8383 , _psaAccessToken :: !(Maybe Text)
@@ -127,7 +127,7 @@ projectsSubscriptionsAcknowledge pPsaPayload_ pPsaSubscription_ =
127127 }
128128
129129-- | V1 error format.
130−psaXgafv :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text)
130+psaXgafv :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Xgafv)
131131psaXgafv = lens _psaXgafv (\ s a -> s{_psaXgafv = a})
132132
133133-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -163,7 +163,8 @@ psaBearerToken
163163 = lens _psaBearerToken
164164 (\ s a -> s{_psaBearerToken = a})
165165
166−-- | The subscription whose message is being acknowledged.
166+-- | The subscription whose message is being acknowledged. Format is
167+-- \`projects\/{project}\/subscriptions\/{sub}\`.
167168psaSubscription :: Lens' ProjectsSubscriptionsAcknowledge Text
168169psaSubscription
169170 = lens _psaSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Create.hs+11−7
@@ -24,8 +24,10 @@
2424-- exists, returns \`ALREADY_EXISTS\`. If the corresponding topic doesn\'t
2525-- exist, returns \`NOT_FOUND\`. If the name is not provided in the
2626-- request, the server will assign a random name for this subscription on
27−-- the same project as the topic. Note that for REST API requests, you must
28−-- specify a name.
27+-- the same project as the topic, conforming to the [resource name
28+-- format](https:\/\/cloud.google.com\/pubsub\/docs\/overview#names). The
29+-- generated name is populated in the returned Subscription object. Note
30+-- that for REST API requests, you must specify a name in the request.
2931--
3032-- /See:/ <https://cloud.google.com/pubsub/docs Google Cloud Pub/Sub API Reference> for @pubsub.projects.subscriptions.create@.
3133module Network.Google.Resource.PubSub.Projects.Subscriptions.Create
@@ -57,7 +59,7 @@ import Network.Google.PubSub.Types
5759type ProjectsSubscriptionsCreateResource =
5860 "v1" :>
5961 Capture "name" Text :>
60− QueryParam "$.xgafv" Text :>
62+ QueryParam "$.xgafv" Xgafv :>
6163 QueryParam "upload_protocol" Text :>
6264 QueryParam "pp" Bool :>
6365 QueryParam "access_token" Text :>
@@ -72,12 +74,14 @@ type ProjectsSubscriptionsCreateResource =
7274-- exists, returns \`ALREADY_EXISTS\`. If the corresponding topic doesn\'t
7375-- exist, returns \`NOT_FOUND\`. If the name is not provided in the
7476-- request, the server will assign a random name for this subscription on
75−-- the same project as the topic. Note that for REST API requests, you must
76−-- specify a name.
77+-- the same project as the topic, conforming to the [resource name
78+-- format](https:\/\/cloud.google.com\/pubsub\/docs\/overview#names). The
79+-- generated name is populated in the returned Subscription object. Note
80+-- that for REST API requests, you must specify a name in the request.
7781--
7882-- /See:/ 'projectsSubscriptionsCreate' smart constructor.
7983data ProjectsSubscriptionsCreate = ProjectsSubscriptionsCreate'
80− { _pscXgafv :: !(Maybe Text)
84+ { _pscXgafv :: !(Maybe Xgafv)
8185 , _pscUploadProtocol :: !(Maybe Text)
8286 , _pscPp :: !Bool
8387 , _pscAccessToken :: !(Maybe Text)
@@ -127,7 +131,7 @@ projectsSubscriptionsCreate pPscPayload_ pPscName_ =
127131 }
128132
129133-- | V1 error format.
130−pscXgafv :: Lens' ProjectsSubscriptionsCreate (Maybe Text)
134+pscXgafv :: Lens' ProjectsSubscriptionsCreate (Maybe Xgafv)
131135pscXgafv = lens _pscXgafv (\ s a -> s{_pscXgafv = a})
132136
133137-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Delete.hs+5−4
@@ -56,7 +56,7 @@ import Network.Google.PubSub.Types
5656type ProjectsSubscriptionsDeleteResource =
5757 "v1" :>
5858 Capture "subscription" Text :>
59− QueryParam "$.xgafv" Text :>
59+ QueryParam "$.xgafv" Xgafv :>
6060 QueryParam "upload_protocol" Text :>
6161 QueryParam "pp" Bool :>
6262 QueryParam "access_token" Text :>
@@ -74,7 +74,7 @@ type ProjectsSubscriptionsDeleteResource =
7474--
7575-- /See:/ 'projectsSubscriptionsDelete' smart constructor.
7676data ProjectsSubscriptionsDelete = ProjectsSubscriptionsDelete'
77− { _psdXgafv :: !(Maybe Text)
77+ { _psdXgafv :: !(Maybe Xgafv)
7878 , _psdUploadProtocol :: !(Maybe Text)
7979 , _psdPp :: !Bool
8080 , _psdAccessToken :: !(Maybe Text)
@@ -119,7 +119,7 @@ projectsSubscriptionsDelete pPsdSubscription_ =
119119 }
120120
121121-- | V1 error format.
122−psdXgafv :: Lens' ProjectsSubscriptionsDelete (Maybe Text)
122+psdXgafv :: Lens' ProjectsSubscriptionsDelete (Maybe Xgafv)
123123psdXgafv = lens _psdXgafv (\ s a -> s{_psdXgafv = a})
124124
125125-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -150,7 +150,8 @@ psdBearerToken
150150 = lens _psdBearerToken
151151 (\ s a -> s{_psdBearerToken = a})
152152
153−-- | The subscription to delete.
153+-- | The subscription to delete. Format is
154+-- \`projects\/{project}\/subscriptions\/{sub}\`.
154155psdSubscription :: Lens' ProjectsSubscriptionsDelete Text
155156psdSubscription
156157 = lens _psdSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Get.hs+5−4
@@ -51,7 +51,7 @@ import Network.Google.PubSub.Types
5151type ProjectsSubscriptionsGetResource =
5252 "v1" :>
5353 Capture "subscription" Text :>
54− QueryParam "$.xgafv" Text :>
54+ QueryParam "$.xgafv" Xgafv :>
5555 QueryParam "upload_protocol" Text :>
5656 QueryParam "pp" Bool :>
5757 QueryParam "access_token" Text :>
@@ -64,7 +64,7 @@ type ProjectsSubscriptionsGetResource =
6464--
6565-- /See:/ 'projectsSubscriptionsGet' smart constructor.
6666data ProjectsSubscriptionsGet = ProjectsSubscriptionsGet'
67− { _psgXgafv :: !(Maybe Text)
67+ { _psgXgafv :: !(Maybe Xgafv)
6868 , _psgUploadProtocol :: !(Maybe Text)
6969 , _psgPp :: !Bool
7070 , _psgAccessToken :: !(Maybe Text)
@@ -109,7 +109,7 @@ projectsSubscriptionsGet pPsgSubscription_ =
109109 }
110110
111111-- | V1 error format.
112−psgXgafv :: Lens' ProjectsSubscriptionsGet (Maybe Text)
112+psgXgafv :: Lens' ProjectsSubscriptionsGet (Maybe Xgafv)
113113psgXgafv = lens _psgXgafv (\ s a -> s{_psgXgafv = a})
114114
115115-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -140,7 +140,8 @@ psgBearerToken
140140 = lens _psgBearerToken
141141 (\ s a -> s{_psgBearerToken = a})
142142
143−-- | The name of the subscription to get.
143+-- | The name of the subscription to get. Format is
144+-- \`projects\/{project}\/subscriptions\/{sub}\`.
144145psgSubscription :: Lens' ProjectsSubscriptionsGet Text
145146psgSubscription
146147 = lens _psgSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+3−3
@@ -52,7 +52,7 @@ import Network.Google.PubSub.Types
5252type ProjectsSubscriptionsGetIAMPolicyResource =
5353 "v1" :>
5454 CaptureMode "resource" "getIamPolicy" Text :>
55− QueryParam "$.xgafv" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
5656 QueryParam "upload_protocol" Text :>
5757 QueryParam "pp" Bool :>
5858 QueryParam "access_token" Text :>
@@ -66,7 +66,7 @@ type ProjectsSubscriptionsGetIAMPolicyResource =
6666--
6767-- /See:/ 'projectsSubscriptionsGetIAMPolicy' smart constructor.
6868data ProjectsSubscriptionsGetIAMPolicy = ProjectsSubscriptionsGetIAMPolicy'
69− { _psgiampXgafv :: !(Maybe Text)
69+ { _psgiampXgafv :: !(Maybe Xgafv)
7070 , _psgiampUploadProtocol :: !(Maybe Text)
7171 , _psgiampPp :: !Bool
7272 , _psgiampAccessToken :: !(Maybe Text)
@@ -111,7 +111,7 @@ projectsSubscriptionsGetIAMPolicy pPsgiampResource_ =
111111 }
112112
113113-- | V1 error format.
114−psgiampXgafv :: Lens' ProjectsSubscriptionsGetIAMPolicy (Maybe Text)
114+psgiampXgafv :: Lens' ProjectsSubscriptionsGetIAMPolicy (Maybe Xgafv)
115115psgiampXgafv
116116 = lens _psgiampXgafv (\ s a -> s{_psgiampXgafv = a})
117117
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/List.hs+5−4
@@ -54,7 +54,7 @@ type ProjectsSubscriptionsListResource =
5454 "v1" :>
5555 Capture "project" Text :>
5656 "subscriptions" :>
57− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5858 QueryParam "upload_protocol" Text :>
5959 QueryParam "pp" Bool :>
6060 QueryParam "access_token" Text :>
@@ -70,7 +70,7 @@ type ProjectsSubscriptionsListResource =
7070--
7171-- /See:/ 'projectsSubscriptionsList' smart constructor.
7272data ProjectsSubscriptionsList = ProjectsSubscriptionsList'
73− { _pslXgafv :: !(Maybe Text)
73+ { _pslXgafv :: !(Maybe Xgafv)
7474 , _pslUploadProtocol :: !(Maybe Text)
7575 , _pslProject :: !Text
7676 , _pslPp :: !Bool
@@ -123,7 +123,7 @@ projectsSubscriptionsList pPslProject_ =
123123 }
124124
125125-- | V1 error format.
126−pslXgafv :: Lens' ProjectsSubscriptionsList (Maybe Text)
126+pslXgafv :: Lens' ProjectsSubscriptionsList (Maybe Xgafv)
127127pslXgafv = lens _pslXgafv (\ s a -> s{_pslXgafv = a})
128128
129129-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -132,7 +132,8 @@ pslUploadProtocol
132132 = lens _pslUploadProtocol
133133 (\ s a -> s{_pslUploadProtocol = a})
134134
135−-- | The name of the cloud project that subscriptions belong to.
135+-- | The name of the cloud project that subscriptions belong to. Format is
136+-- \`projects\/{project}\`.
136137pslProject :: Lens' ProjectsSubscriptionsList Text
137138pslProject
138139 = lens _pslProject (\ s a -> s{_pslProject = a})
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyAckDeadline.hs+5−4
@@ -57,7 +57,7 @@ type ProjectsSubscriptionsModifyAckDeadlineResource =
5757 "v1" :>
5858 CaptureMode "subscription" "modifyAckDeadline" Text
5959 :>
60− QueryParam "$.xgafv" Text :>
60+ QueryParam "$.xgafv" Xgafv :>
6161 QueryParam "upload_protocol" Text :>
6262 QueryParam "pp" Bool :>
6363 QueryParam "access_token" Text :>
@@ -76,7 +76,7 @@ type ProjectsSubscriptionsModifyAckDeadlineResource =
7676--
7777-- /See:/ 'projectsSubscriptionsModifyAckDeadline' smart constructor.
7878data ProjectsSubscriptionsModifyAckDeadline = ProjectsSubscriptionsModifyAckDeadline'
79− { _psmadXgafv :: !(Maybe Text)
79+ { _psmadXgafv :: !(Maybe Xgafv)
8080 , _psmadUploadProtocol :: !(Maybe Text)
8181 , _psmadPp :: !Bool
8282 , _psmadAccessToken :: !(Maybe Text)
@@ -126,7 +126,7 @@ projectsSubscriptionsModifyAckDeadline pPsmadPayload_ pPsmadSubscription_ =
126126 }
127127
128128-- | V1 error format.
129−psmadXgafv :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Text)
129+psmadXgafv :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Xgafv)
130130psmadXgafv
131131 = lens _psmadXgafv (\ s a -> s{_psmadXgafv = a})
132132
@@ -163,7 +163,8 @@ psmadBearerToken
163163 = lens _psmadBearerToken
164164 (\ s a -> s{_psmadBearerToken = a})
165165
166−-- | The name of the subscription.
166+-- | The name of the subscription. Format is
167+-- \`projects\/{project}\/subscriptions\/{sub}\`.
167168psmadSubscription :: Lens' ProjectsSubscriptionsModifyAckDeadline Text
168169psmadSubscription
169170 = lens _psmadSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyPushConfig.hs+5−4
@@ -57,7 +57,7 @@ import Network.Google.PubSub.Types
5757type ProjectsSubscriptionsModifyPushConfigResource =
5858 "v1" :>
5959 CaptureMode "subscription" "modifyPushConfig" Text :>
60− QueryParam "$.xgafv" Text :>
60+ QueryParam "$.xgafv" Xgafv :>
6161 QueryParam "upload_protocol" Text :>
6262 QueryParam "pp" Bool :>
6363 QueryParam "access_token" Text :>
@@ -77,7 +77,7 @@ type ProjectsSubscriptionsModifyPushConfigResource =
7777--
7878-- /See:/ 'projectsSubscriptionsModifyPushConfig' smart constructor.
7979data ProjectsSubscriptionsModifyPushConfig = ProjectsSubscriptionsModifyPushConfig'
80− { _psmpcXgafv :: !(Maybe Text)
80+ { _psmpcXgafv :: !(Maybe Xgafv)
8181 , _psmpcUploadProtocol :: !(Maybe Text)
8282 , _psmpcPp :: !Bool
8383 , _psmpcAccessToken :: !(Maybe Text)
@@ -127,7 +127,7 @@ projectsSubscriptionsModifyPushConfig pPsmpcPayload_ pPsmpcSubscription_ =
127127 }
128128
129129-- | V1 error format.
130−psmpcXgafv :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text)
130+psmpcXgafv :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Xgafv)
131131psmpcXgafv
132132 = lens _psmpcXgafv (\ s a -> s{_psmpcXgafv = a})
133133
@@ -164,7 +164,8 @@ psmpcBearerToken
164164 = lens _psmpcBearerToken
165165 (\ s a -> s{_psmpcBearerToken = a})
166166
167−-- | The name of the subscription.
167+-- | The name of the subscription. Format is
168+-- \`projects\/{project}\/subscriptions\/{sub}\`.
168169psmpcSubscription :: Lens' ProjectsSubscriptionsModifyPushConfig Text
169170psmpcSubscription
170171 = lens _psmpcSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Pull.hs+5−4
@@ -55,7 +55,7 @@ import Network.Google.PubSub.Types
5555type ProjectsSubscriptionsPullResource =
5656 "v1" :>
5757 CaptureMode "subscription" "pull" Text :>
58− QueryParam "$.xgafv" Text :>
58+ QueryParam "$.xgafv" Xgafv :>
5959 QueryParam "upload_protocol" Text :>
6060 QueryParam "pp" Bool :>
6161 QueryParam "access_token" Text :>
@@ -73,7 +73,7 @@ type ProjectsSubscriptionsPullResource =
7373--
7474-- /See:/ 'projectsSubscriptionsPull' smart constructor.
7575data ProjectsSubscriptionsPull = ProjectsSubscriptionsPull'
76− { _pspXgafv :: !(Maybe Text)
76+ { _pspXgafv :: !(Maybe Xgafv)
7777 , _pspUploadProtocol :: !(Maybe Text)
7878 , _pspPp :: !Bool
7979 , _pspAccessToken :: !(Maybe Text)
@@ -123,7 +123,7 @@ projectsSubscriptionsPull pPspPayload_ pPspSubscription_ =
123123 }
124124
125125-- | V1 error format.
126−pspXgafv :: Lens' ProjectsSubscriptionsPull (Maybe Text)
126+pspXgafv :: Lens' ProjectsSubscriptionsPull (Maybe Xgafv)
127127pspXgafv = lens _pspXgafv (\ s a -> s{_pspXgafv = a})
128128
129129-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -159,7 +159,8 @@ pspBearerToken
159159 = lens _pspBearerToken
160160 (\ s a -> s{_pspBearerToken = a})
161161
162−-- | The subscription from which messages should be pulled.
162+-- | The subscription from which messages should be pulled. Format is
163+-- \`projects\/{project}\/subscriptions\/{sub}\`.
163164pspSubscription :: Lens' ProjectsSubscriptionsPull Text
164165pspSubscription
165166 = lens _pspSubscription
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+3−3
@@ -53,7 +53,7 @@ import Network.Google.PubSub.Types
5353type ProjectsSubscriptionsSetIAMPolicyResource =
5454 "v1" :>
5555 CaptureMode "resource" "setIamPolicy" Text :>
56− QueryParam "$.xgafv" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
5757 QueryParam "upload_protocol" Text :>
5858 QueryParam "pp" Bool :>
5959 QueryParam "access_token" Text :>
@@ -69,7 +69,7 @@ type ProjectsSubscriptionsSetIAMPolicyResource =
6969--
7070-- /See:/ 'projectsSubscriptionsSetIAMPolicy' smart constructor.
7171data ProjectsSubscriptionsSetIAMPolicy = ProjectsSubscriptionsSetIAMPolicy'
72− { _pssipXgafv :: !(Maybe Text)
72+ { _pssipXgafv :: !(Maybe Xgafv)
7373 , _pssipUploadProtocol :: !(Maybe Text)
7474 , _pssipPp :: !Bool
7575 , _pssipAccessToken :: !(Maybe Text)
@@ -119,7 +119,7 @@ projectsSubscriptionsSetIAMPolicy pPssipPayload_ pPssipResource_ =
119119 }
120120
121121-- | V1 error format.
122−pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
122+pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Xgafv)
123123pssipXgafv
124124 = lens _pssipXgafv (\ s a -> s{_pssipXgafv = a})
125125
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+9−5
@@ -20,7 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Returns permissions that a caller has on the specified resource.
23+-- Returns permissions that a caller has on the specified resource. If the
24+-- resource does not exist, this will return an empty set of permissions,
25+-- not a NOT_FOUND error.
2426--
2527-- /See:/ <https://cloud.google.com/pubsub/docs Google Cloud Pub/Sub API Reference> for @pubsub.projects.subscriptions.testIamPermissions@.
2628module Network.Google.Resource.PubSub.Projects.Subscriptions.TestIAMPermissions
@@ -53,7 +55,7 @@ type ProjectsSubscriptionsTestIAMPermissionsResource
5355 =
5456 "v1" :>
5557 CaptureMode "resource" "testIamPermissions" Text :>
56− QueryParam "$.xgafv" Text :>
58+ QueryParam "$.xgafv" Xgafv :>
5759 QueryParam "upload_protocol" Text :>
5860 QueryParam "pp" Bool :>
5961 QueryParam "access_token" Text :>
@@ -64,11 +66,13 @@ type ProjectsSubscriptionsTestIAMPermissionsResource
6466 ReqBody '[JSON] TestIAMPermissionsRequest :>
6567 Post '[JSON] TestIAMPermissionsResponse
6668
67−-- | Returns permissions that a caller has on the specified resource.
69+-- | Returns permissions that a caller has on the specified resource. If the
70+-- resource does not exist, this will return an empty set of permissions,
71+-- not a NOT_FOUND error.
6872--
6973-- /See:/ 'projectsSubscriptionsTestIAMPermissions' smart constructor.
7074data ProjectsSubscriptionsTestIAMPermissions = ProjectsSubscriptionsTestIAMPermissions'
71− { _pstiampXgafv :: !(Maybe Text)
75+ { _pstiampXgafv :: !(Maybe Xgafv)
7276 , _pstiampUploadProtocol :: !(Maybe Text)
7377 , _pstiampPp :: !Bool
7478 , _pstiampAccessToken :: !(Maybe Text)
@@ -118,7 +122,7 @@ projectsSubscriptionsTestIAMPermissions pPstiampPayload_ pPstiampResource_ =
118122 }
119123
120124-- | V1 error format.
121−pstiampXgafv :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Text)
125+pstiampXgafv :: Lens' ProjectsSubscriptionsTestIAMPermissions (Maybe Xgafv)
122126pstiampXgafv
123127 = lens _pstiampXgafv (\ s a -> s{_pstiampXgafv = a})
124128
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Create.hs+3−3
@@ -52,7 +52,7 @@ import Network.Google.PubSub.Types
5252type ProjectsTopicsCreateResource =
5353 "v1" :>
5454 Capture "name" Text :>
55− QueryParam "$.xgafv" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
5656 QueryParam "upload_protocol" Text :>
5757 QueryParam "pp" Bool :>
5858 QueryParam "access_token" Text :>
@@ -66,7 +66,7 @@ type ProjectsTopicsCreateResource =
6666--
6767-- /See:/ 'projectsTopicsCreate' smart constructor.
6868data ProjectsTopicsCreate = ProjectsTopicsCreate'
69− { _ptcXgafv :: !(Maybe Text)
69+ { _ptcXgafv :: !(Maybe Xgafv)
7070 , _ptcUploadProtocol :: !(Maybe Text)
7171 , _ptcPp :: !Bool
7272 , _ptcAccessToken :: !(Maybe Text)
@@ -116,7 +116,7 @@ projectsTopicsCreate pPtcPayload_ pPtcName_ =
116116 }
117117
118118-- | V1 error format.
119−ptcXgafv :: Lens' ProjectsTopicsCreate (Maybe Text)
119+ptcXgafv :: Lens' ProjectsTopicsCreate (Maybe Xgafv)
120120ptcXgafv = lens _ptcXgafv (\ s a -> s{_ptcXgafv = a})
121121
122122-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs+5−4
@@ -56,7 +56,7 @@ import Network.Google.PubSub.Types
5656type ProjectsTopicsDeleteResource =
5757 "v1" :>
5858 Capture "topic" Text :>
59− QueryParam "$.xgafv" Text :>
59+ QueryParam "$.xgafv" Xgafv :>
6060 QueryParam "upload_protocol" Text :>
6161 QueryParam "pp" Bool :>
6262 QueryParam "access_token" Text :>
@@ -74,7 +74,7 @@ type ProjectsTopicsDeleteResource =
7474--
7575-- /See:/ 'projectsTopicsDelete' smart constructor.
7676data ProjectsTopicsDelete = ProjectsTopicsDelete'
77− { _ptdXgafv :: !(Maybe Text)
77+ { _ptdXgafv :: !(Maybe Xgafv)
7878 , _ptdUploadProtocol :: !(Maybe Text)
7979 , _ptdPp :: !Bool
8080 , _ptdAccessToken :: !(Maybe Text)
@@ -119,7 +119,7 @@ projectsTopicsDelete pPtdTopic_ =
119119 }
120120
121121-- | V1 error format.
122−ptdXgafv :: Lens' ProjectsTopicsDelete (Maybe Text)
122+ptdXgafv :: Lens' ProjectsTopicsDelete (Maybe Xgafv)
123123ptdXgafv = lens _ptdXgafv (\ s a -> s{_ptdXgafv = a})
124124
125125-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -144,7 +144,8 @@ ptdUploadType
144144 = lens _ptdUploadType
145145 (\ s a -> s{_ptdUploadType = a})
146146
147−-- | Name of the topic to delete.
147+-- | Name of the topic to delete. Format is
148+-- \`projects\/{project}\/topics\/{topic}\`.
148149ptdTopic :: Lens' ProjectsTopicsDelete Text
149150ptdTopic = lens _ptdTopic (\ s a -> s{_ptdTopic = a})
150151
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Get.hs+5−4
@@ -51,7 +51,7 @@ import Network.Google.PubSub.Types
5151type ProjectsTopicsGetResource =
5252 "v1" :>
5353 Capture "topic" Text :>
54− QueryParam "$.xgafv" Text :>
54+ QueryParam "$.xgafv" Xgafv :>
5555 QueryParam "upload_protocol" Text :>
5656 QueryParam "pp" Bool :>
5757 QueryParam "access_token" Text :>
@@ -64,7 +64,7 @@ type ProjectsTopicsGetResource =
6464--
6565-- /See:/ 'projectsTopicsGet' smart constructor.
6666data ProjectsTopicsGet = ProjectsTopicsGet'
67− { _ptgXgafv :: !(Maybe Text)
67+ { _ptgXgafv :: !(Maybe Xgafv)
6868 , _ptgUploadProtocol :: !(Maybe Text)
6969 , _ptgPp :: !Bool
7070 , _ptgAccessToken :: !(Maybe Text)
@@ -109,7 +109,7 @@ projectsTopicsGet pPtgTopic_ =
109109 }
110110
111111-- | V1 error format.
112−ptgXgafv :: Lens' ProjectsTopicsGet (Maybe Text)
112+ptgXgafv :: Lens' ProjectsTopicsGet (Maybe Xgafv)
113113ptgXgafv = lens _ptgXgafv (\ s a -> s{_ptgXgafv = a})
114114
115115-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -134,7 +134,8 @@ ptgUploadType
134134 = lens _ptgUploadType
135135 (\ s a -> s{_ptgUploadType = a})
136136
137−-- | The name of the topic to get.
137+-- | The name of the topic to get. Format is
138+-- \`projects\/{project}\/topics\/{topic}\`.
138139ptgTopic :: Lens' ProjectsTopicsGet Text
139140ptgTopic = lens _ptgTopic (\ s a -> s{_ptgTopic = a})
140141
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+3−3
@@ -52,7 +52,7 @@ import Network.Google.PubSub.Types
5252type ProjectsTopicsGetIAMPolicyResource =
5353 "v1" :>
5454 CaptureMode "resource" "getIamPolicy" Text :>
55− QueryParam "$.xgafv" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
5656 QueryParam "upload_protocol" Text :>
5757 QueryParam "pp" Bool :>
5858 QueryParam "access_token" Text :>
@@ -66,7 +66,7 @@ type ProjectsTopicsGetIAMPolicyResource =
6666--
6767-- /See:/ 'projectsTopicsGetIAMPolicy' smart constructor.
6868data ProjectsTopicsGetIAMPolicy = ProjectsTopicsGetIAMPolicy'
69− { _ptgipXgafv :: !(Maybe Text)
69+ { _ptgipXgafv :: !(Maybe Xgafv)
7070 , _ptgipUploadProtocol :: !(Maybe Text)
7171 , _ptgipPp :: !Bool
7272 , _ptgipAccessToken :: !(Maybe Text)
@@ -111,7 +111,7 @@ projectsTopicsGetIAMPolicy pPtgipResource_ =
111111 }
112112
113113-- | V1 error format.
114−ptgipXgafv :: Lens' ProjectsTopicsGetIAMPolicy (Maybe Text)
114+ptgipXgafv :: Lens' ProjectsTopicsGetIAMPolicy (Maybe Xgafv)
115115ptgipXgafv
116116 = lens _ptgipXgafv (\ s a -> s{_ptgipXgafv = a})
117117
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/List.hs+5−4
@@ -54,7 +54,7 @@ type ProjectsTopicsListResource =
5454 "v1" :>
5555 Capture "project" Text :>
5656 "topics" :>
57− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5858 QueryParam "upload_protocol" Text :>
5959 QueryParam "pp" Bool :>
6060 QueryParam "access_token" Text :>
@@ -70,7 +70,7 @@ type ProjectsTopicsListResource =
7070--
7171-- /See:/ 'projectsTopicsList' smart constructor.
7272data ProjectsTopicsList = ProjectsTopicsList'
73− { _ptlXgafv :: !(Maybe Text)
73+ { _ptlXgafv :: !(Maybe Xgafv)
7474 , _ptlUploadProtocol :: !(Maybe Text)
7575 , _ptlProject :: !Text
7676 , _ptlPp :: !Bool
@@ -123,7 +123,7 @@ projectsTopicsList pPtlProject_ =
123123 }
124124
125125-- | V1 error format.
126−ptlXgafv :: Lens' ProjectsTopicsList (Maybe Text)
126+ptlXgafv :: Lens' ProjectsTopicsList (Maybe Xgafv)
127127ptlXgafv = lens _ptlXgafv (\ s a -> s{_ptlXgafv = a})
128128
129129-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -132,7 +132,8 @@ ptlUploadProtocol
132132 = lens _ptlUploadProtocol
133133 (\ s a -> s{_ptlUploadProtocol = a})
134134
135−-- | The name of the cloud project that topics belong to.
135+-- | The name of the cloud project that topics belong to. Format is
136+-- \`projects\/{project}\`.
136137ptlProject :: Lens' ProjectsTopicsList Text
137138ptlProject
138139 = lens _ptlProject (\ s a -> s{_ptlProject = a})
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Publish.hs+5−4
@@ -54,7 +54,7 @@ import Network.Google.PubSub.Types
5454type ProjectsTopicsPublishResource =
5555 "v1" :>
5656 CaptureMode "topic" "publish" Text :>
57− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5858 QueryParam "upload_protocol" Text :>
5959 QueryParam "pp" Bool :>
6060 QueryParam "access_token" Text :>
@@ -71,7 +71,7 @@ type ProjectsTopicsPublishResource =
7171--
7272-- /See:/ 'projectsTopicsPublish' smart constructor.
7373data ProjectsTopicsPublish = ProjectsTopicsPublish'
74− { _ptpXgafv :: !(Maybe Text)
74+ { _ptpXgafv :: !(Maybe Xgafv)
7575 , _ptpUploadProtocol :: !(Maybe Text)
7676 , _ptpPp :: !Bool
7777 , _ptpAccessToken :: !(Maybe Text)
@@ -121,7 +121,7 @@ projectsTopicsPublish pPtpPayload_ pPtpTopic_ =
121121 }
122122
123123-- | V1 error format.
124−ptpXgafv :: Lens' ProjectsTopicsPublish (Maybe Text)
124+ptpXgafv :: Lens' ProjectsTopicsPublish (Maybe Xgafv)
125125ptpXgafv = lens _ptpXgafv (\ s a -> s{_ptpXgafv = a})
126126
127127-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -151,7 +151,8 @@ ptpPayload :: Lens' ProjectsTopicsPublish PublishRequest
151151ptpPayload
152152 = lens _ptpPayload (\ s a -> s{_ptpPayload = a})
153153
154−-- | The messages in the request will be published on this topic.
154+-- | The messages in the request will be published on this topic. Format is
155+-- \`projects\/{project}\/topics\/{topic}\`.
155156ptpTopic :: Lens' ProjectsTopicsPublish Text
156157ptpTopic = lens _ptpTopic (\ s a -> s{_ptpTopic = a})
157158
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+3−3
@@ -53,7 +53,7 @@ import Network.Google.PubSub.Types
5353type ProjectsTopicsSetIAMPolicyResource =
5454 "v1" :>
5555 CaptureMode "resource" "setIamPolicy" Text :>
56− QueryParam "$.xgafv" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
5757 QueryParam "upload_protocol" Text :>
5858 QueryParam "pp" Bool :>
5959 QueryParam "access_token" Text :>
@@ -69,7 +69,7 @@ type ProjectsTopicsSetIAMPolicyResource =
6969--
7070-- /See:/ 'projectsTopicsSetIAMPolicy' smart constructor.
7171data ProjectsTopicsSetIAMPolicy = ProjectsTopicsSetIAMPolicy'
72− { _ptsipXgafv :: !(Maybe Text)
72+ { _ptsipXgafv :: !(Maybe Xgafv)
7373 , _ptsipUploadProtocol :: !(Maybe Text)
7474 , _ptsipPp :: !Bool
7575 , _ptsipAccessToken :: !(Maybe Text)
@@ -119,7 +119,7 @@ projectsTopicsSetIAMPolicy pPtsipPayload_ pPtsipResource_ =
119119 }
120120
121121-- | V1 error format.
122−ptsipXgafv :: Lens' ProjectsTopicsSetIAMPolicy (Maybe Text)
122+ptsipXgafv :: Lens' ProjectsTopicsSetIAMPolicy (Maybe Xgafv)
123123ptsipXgafv
124124 = lens _ptsipXgafv (\ s a -> s{_ptsipXgafv = a})
125125
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Subscriptions/List.hs+5−4
@@ -54,7 +54,7 @@ type ProjectsTopicsSubscriptionsListResource =
5454 "v1" :>
5555 Capture "topic" Text :>
5656 "subscriptions" :>
57− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5858 QueryParam "upload_protocol" Text :>
5959 QueryParam "pp" Bool :>
6060 QueryParam "access_token" Text :>
@@ -70,7 +70,7 @@ type ProjectsTopicsSubscriptionsListResource =
7070--
7171-- /See:/ 'projectsTopicsSubscriptionsList' smart constructor.
7272data ProjectsTopicsSubscriptionsList = ProjectsTopicsSubscriptionsList'
73− { _ptslXgafv :: !(Maybe Text)
73+ { _ptslXgafv :: !(Maybe Xgafv)
7474 , _ptslUploadProtocol :: !(Maybe Text)
7575 , _ptslPp :: !Bool
7676 , _ptslAccessToken :: !(Maybe Text)
@@ -123,7 +123,7 @@ projectsTopicsSubscriptionsList pPtslTopic_ =
123123 }
124124
125125-- | V1 error format.
126−ptslXgafv :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
126+ptslXgafv :: Lens' ProjectsTopicsSubscriptionsList (Maybe Xgafv)
127127ptslXgafv
128128 = lens _ptslXgafv (\ s a -> s{_ptslXgafv = a})
129129
@@ -149,7 +149,8 @@ ptslUploadType
149149 = lens _ptslUploadType
150150 (\ s a -> s{_ptslUploadType = a})
151151
152−-- | The name of the topic that subscriptions are attached to.
152+-- | The name of the topic that subscriptions are attached to. Format is
153+-- \`projects\/{project}\/topics\/{topic}\`.
153154ptslTopic :: Lens' ProjectsTopicsSubscriptionsList Text
154155ptslTopic
155156 = lens _ptslTopic (\ s a -> s{_ptslTopic = a})
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+9−5
@@ -20,7 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Returns permissions that a caller has on the specified resource.
23+-- Returns permissions that a caller has on the specified resource. If the
24+-- resource does not exist, this will return an empty set of permissions,
25+-- not a NOT_FOUND error.
2426--
2527-- /See:/ <https://cloud.google.com/pubsub/docs Google Cloud Pub/Sub API Reference> for @pubsub.projects.topics.testIamPermissions@.
2628module Network.Google.Resource.PubSub.Projects.Topics.TestIAMPermissions
@@ -52,7 +54,7 @@ import Network.Google.PubSub.Types
5254type ProjectsTopicsTestIAMPermissionsResource =
5355 "v1" :>
5456 CaptureMode "resource" "testIamPermissions" Text :>
55− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
5658 QueryParam "upload_protocol" Text :>
5759 QueryParam "pp" Bool :>
5860 QueryParam "access_token" Text :>
@@ -63,11 +65,13 @@ type ProjectsTopicsTestIAMPermissionsResource =
6365 ReqBody '[JSON] TestIAMPermissionsRequest :>
6466 Post '[JSON] TestIAMPermissionsResponse
6567
66−-- | Returns permissions that a caller has on the specified resource.
68+-- | Returns permissions that a caller has on the specified resource. If the
69+-- resource does not exist, this will return an empty set of permissions,
70+-- not a NOT_FOUND error.
6771--
6872-- /See:/ 'projectsTopicsTestIAMPermissions' smart constructor.
6973data ProjectsTopicsTestIAMPermissions = ProjectsTopicsTestIAMPermissions'
70− { _pttipXgafv :: !(Maybe Text)
74+ { _pttipXgafv :: !(Maybe Xgafv)
7175 , _pttipUploadProtocol :: !(Maybe Text)
7276 , _pttipPp :: !Bool
7377 , _pttipAccessToken :: !(Maybe Text)
@@ -117,7 +121,7 @@ projectsTopicsTestIAMPermissions pPttipPayload_ pPttipResource_ =
117121 }
118122
119123-- | V1 error format.
120−pttipXgafv :: Lens' ProjectsTopicsTestIAMPermissions (Maybe Text)
124+pttipXgafv :: Lens' ProjectsTopicsTestIAMPermissions (Maybe Xgafv)
121125pttipXgafv
122126 = lens _pttipXgafv (\ s a -> s{_pttipXgafv = a})
123127