@@ -20,11 +20,19 @@ module Network.Google.Logging.Types.Product where
20import Network.Google.Logging.Types.Sum
20import Network.Google.Logging.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
23+-- | An object that describes the schema of a MonitoredResource object using
24+-- a type name and a set of labels. For example, the monitored resource
25+-- descriptor for Google Compute Engine VM instances has a type of
26+-- \`\"gce_instance\"\` and specifies the use of the labels
27+-- \`\"instance_id\"\` and \`\"zone\"\` to identify particular VM
28+-- instances. Different APIs can support different monitored resource
29+-- types. APIs generally provide a \`list\` method that returns the
23−-- | A description of a type of monitored resource.
30+-- monitored resource descriptors used by the API.
25-- /See:/ 'monitoredResourceDescriptor' smart constructor.
32-- /See:/ 'monitoredResourceDescriptor' smart constructor.
26data MonitoredResourceDescriptor = MonitoredResourceDescriptor'
33data MonitoredResourceDescriptor = MonitoredResourceDescriptor'
34+ { _mrdName :: !(Maybe Text)
27− { _mrdDisplayName :: !(Maybe Text)
35+ , _mrdDisplayName :: !(Maybe Text)
28 , _mrdLabels :: !(Maybe [LabelDescriptor])
36 , _mrdLabels :: !(Maybe [LabelDescriptor])
29 , _mrdType :: !(Maybe Text)
37 , _mrdType :: !(Maybe Text)
30 , _mrdDescription :: !(Maybe Text)
38 , _mrdDescription :: !(Maybe Text)
@@ -34,6 +42,8 @@ data MonitoredResourceDescriptor = MonitoredResourceDescriptor'
35-- Use one of the following lenses to modify other fields as desired:
43-- Use one of the following lenses to modify other fields as desired:
37-- * 'mrdDisplayName'
47-- * 'mrdDisplayName'
39-- * 'mrdLabels'
49-- * 'mrdLabels'
@@ -45,35 +55,47 @@ monitoredResourceDescriptor
45 :: MonitoredResourceDescriptor
55 :: MonitoredResourceDescriptor
46monitoredResourceDescriptor =
56monitoredResourceDescriptor =
47 MonitoredResourceDescriptor'
57 MonitoredResourceDescriptor'
48− { _mrdDisplayName = Nothing
59+ , _mrdDisplayName = Nothing
49 , _mrdLabels = Nothing
60 , _mrdLabels = Nothing
50 , _mrdType = Nothing
61 , _mrdType = Nothing
51 , _mrdDescription = Nothing
62 , _mrdDescription = Nothing
65+-- | Optional. The resource name of the monitored resource descriptor:
66+-- \`\"projects\/{project_id}\/monitoredResourceDescriptors\/{type}\"\`
67+-- where {type} is the value of the \`type\` field in this object and
68+-- {project_id} is a project ID that provides API-specific context for
69+-- accessing the type. APIs that do not use project information can use the
70+-- resource name format \`\"monitoredResourceDescriptors\/{type}\"\`.
71+mrdName :: Lens' MonitoredResourceDescriptor (Maybe Text)
72+mrdName = lens _mrdName (\ s a -> s{_mrdName = a})
54−-- | A concise name for the monitored resource type, which is displayed in
74+-- | Optional. A concise name for the monitored resource type that might be
55−-- user interfaces. For example, \`\"Cloud SQL Database\"\`.
75+-- displayed in user interfaces. For example, \`\"Google Cloud SQL
56mrdDisplayName :: Lens' MonitoredResourceDescriptor (Maybe Text)
77mrdDisplayName :: Lens' MonitoredResourceDescriptor (Maybe Text)
57mrdDisplayName
78mrdDisplayName
58 = lens _mrdDisplayName
79 = lens _mrdDisplayName
59 (\ s a -> s{_mrdDisplayName = a})
80 (\ s a -> s{_mrdDisplayName = a})
61−-- | A set of labels that can be used to describe instances of this monitored
82+-- | Required. A set of labels used to describe instances of this monitored
62−-- resource type. For example, Cloud SQL databases can be labeled with
83+-- resource type. For example, an individual Google Cloud SQL database is
63−-- their \`\"database_id\"\` and their \`\"zone\"\`.
84+-- identified by values for the labels \`\"database_id\"\` and
64mrdLabels :: Lens' MonitoredResourceDescriptor [LabelDescriptor]
86mrdLabels :: Lens' MonitoredResourceDescriptor [LabelDescriptor]
66 = lens _mrdLabels (\ s a -> s{_mrdLabels = a}) .
88 = lens _mrdLabels (\ s a -> s{_mrdLabels = a}) .
70−-- | The monitored resource type. For example, the type
92+-- | Required. The monitored resource type. For example, the type
71-- \`\"cloudsql_database\"\` represents databases in Google Cloud SQL.
93-- \`\"cloudsql_database\"\` represents databases in Google Cloud SQL.
72mrdType :: Lens' MonitoredResourceDescriptor (Maybe Text)
94mrdType :: Lens' MonitoredResourceDescriptor (Maybe Text)
73mrdType = lens _mrdType (\ s a -> s{_mrdType = a})
95mrdType = lens _mrdType (\ s a -> s{_mrdType = a})
75−-- | A detailed description of the monitored resource type, which is used in
97+-- | Optional. A detailed description of the monitored resource type that
76−-- documentation.
98+-- might be used in documentation.
77mrdDescription :: Lens' MonitoredResourceDescriptor (Maybe Text)
99mrdDescription :: Lens' MonitoredResourceDescriptor (Maybe Text)
78mrdDescription
100mrdDescription
79 = lens _mrdDescription
101 = lens _mrdDescription
@@ -84,7 +106,8 @@ instance FromJSON MonitoredResourceDescriptor where
84 = withObject "MonitoredResourceDescriptor"
106 = withObject "MonitoredResourceDescriptor"
86 MonitoredResourceDescriptor' <$>
108 MonitoredResourceDescriptor' <$>
109+ (o .:? "name") <*> (o .:? "displayName") <*>
87− (o .:? "displayName") <*> (o .:? "labels" .!= mempty)
110+ (o .:? "labels" .!= mempty)
88 <*> (o .:? "type")
111 <*> (o .:? "type")
89 <*> (o .:? "description"))
112 <*> (o .:? "description"))
@@ -92,17 +115,116 @@ instance ToJSON MonitoredResourceDescriptor where
92 toJSON MonitoredResourceDescriptor'{..}
115 toJSON MonitoredResourceDescriptor'{..}
94 (catMaybes
117 (catMaybes
118+ [("name" .=) <$> _mrdName,
95− [("displayName" .=) <$> _mrdDisplayName,
119+ ("displayName" .=) <$> _mrdDisplayName,
96 ("labels" .=) <$> _mrdLabels,
120 ("labels" .=) <$> _mrdLabels,
97 ("type" .=) <$> _mrdType,
121 ("type" .=) <$> _mrdType,
98 ("description" .=) <$> _mrdDescription])
122 ("description" .=) <$> _mrdDescription])
124+-- | The \`Status\` type defines a logical error model that is suitable for
125+-- different programming environments, including REST APIs and RPC APIs. It
126+-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
127+-- designed to be: - Simple to use and understand for most users - Flexible
128+-- enough to meet unexpected needs # Overview The \`Status\` message
129+-- contains three pieces of data: error code, error message, and error
130+-- details. The error code should be an enum value of google.rpc.Code, but
131+-- it may accept additional error codes if needed. The error message should
132+-- be a developer-facing English message that helps developers *understand*
133+-- and *resolve* the error. If a localized user-facing error message is
134+-- needed, put the localized message in the error details or localize it in
135+-- the client. The optional error details may contain arbitrary information
136+-- about the error. There is a predefined set of error detail types in the
137+-- package \`google.rpc\` which can be used for common error conditions. #
138+-- Language mapping The \`Status\` message is the logical representation of
139+-- the error model, but it is not necessarily the actual wire format. When
140+-- the \`Status\` message is exposed in different client libraries and
141+-- different wire protocols, it can be mapped differently. For example, it
142+-- will likely be mapped to some exceptions in Java, but more likely mapped
143+-- to some error codes in C. # Other uses The error model and the
144+-- \`Status\` message can be used in a variety of environments, either with
145+-- or without APIs, to provide a consistent developer experience across
146+-- different environments. Example uses of this error model include: -
147+-- Partial errors. If a service needs to return partial errors to the
148+-- client, it may embed the \`Status\` in the normal response to indicate
149+-- the partial errors. - Workflow errors. A typical workflow has multiple
150+-- steps. Each step may have a \`Status\` message for error reporting
151+-- purpose. - Batch operations. If a client uses batch request and batch
152+-- response, the \`Status\` message should be used directly inside batch
153+-- response, one for each error sub-response. - Asynchronous operations. If
154+-- an API call embeds asynchronous operation results in its response, the
155+-- status of those operations should be represented directly using the
156+-- \`Status\` message. - Logging. If some API errors are stored in logs,
157+-- the message \`Status\` could be used directly after any stripping needed
158+-- for security\/privacy reasons.
160+-- /See:/ 'status' smart constructor.
161+data Status = Status'
162+ { _sDetails :: !(Maybe [StatusDetailsItem])
163+ , _sCode :: !(Maybe (Textual Int32))
164+ , _sMessage :: !(Maybe Text)
165+ } deriving (Eq,Show,Data,Typeable,Generic)
167+-- | Creates a value of 'Status' with the minimum fields required to make a request.
169+-- Use one of the following lenses to modify other fields as desired:
180+ { _sDetails = Nothing
182+ , _sMessage = Nothing
185+-- | A list of messages that carry the error details. There will be a common
186+-- set of message types for APIs to use.
187+sDetails :: Lens' Status [StatusDetailsItem]
189+ = lens _sDetails (\ s a -> s{_sDetails = a}) .
193+-- | The status code, which should be an enum value of google.rpc.Code.
194+sCode :: Lens' Status (Maybe Int32)
196+ = lens _sCode (\ s a -> s{_sCode = a}) .
199+-- | A developer-facing error message, which should be in English. Any
200+-- user-facing error message should be localized and sent in the
201+-- google.rpc.Status.details field, or localized by the client.
202+sMessage :: Lens' Status (Maybe Text)
203+sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
205+instance FromJSON Status where
207+ = withObject "Status"
210+ (o .:? "details" .!= mempty) <*> (o .:? "code") <*>
213+instance ToJSON Status where
217+ [("details" .=) <$> _sDetails,
218+ ("code" .=) <$> _sCode,
219+ ("message" .=) <$> _sMessage])
100-- | Result returned from \`ListLogEntries\`.
221-- | Result returned from \`ListLogEntries\`.
102-- /See:/ 'listLogEntriesResponse' smart constructor.
223-- /See:/ 'listLogEntriesResponse' smart constructor.
103data ListLogEntriesResponse = ListLogEntriesResponse'
224data ListLogEntriesResponse = ListLogEntriesResponse'
104− { _llerNextPageToken :: !(Maybe Text)
225+ { _llerNextPageToken :: !(Maybe Text)
105− , _llerEntries :: !(Maybe [LogEntry])
226+ , _llerEntries :: !(Maybe [LogEntry])
227+ , _llerProjectIdErrors :: !(Maybe ListLogEntriesResponseProjectIdErrors)
106 } deriving (Eq,Show,Data,Typeable,Generic)
228 } deriving (Eq,Show,Data,Typeable,Generic)
108-- | Creates a value of 'ListLogEntriesResponse' with the minimum fields required to make a request.
230-- | Creates a value of 'ListLogEntriesResponse' with the minimum fields required to make a request.
@@ -112,17 +234,20 @@ data ListLogEntriesResponse = ListLogEntriesResponse'
112-- * 'llerNextPageToken'
234-- * 'llerNextPageToken'
114-- * 'llerEntries'
236-- * 'llerEntries'
238+-- * 'llerProjectIdErrors'
115listLogEntriesResponse
239listLogEntriesResponse
116 :: ListLogEntriesResponse
240 :: ListLogEntriesResponse
117listLogEntriesResponse =
241listLogEntriesResponse =
118 ListLogEntriesResponse'
242 ListLogEntriesResponse'
119 { _llerNextPageToken = Nothing
243 { _llerNextPageToken = Nothing
120 , _llerEntries = Nothing
244 , _llerEntries = Nothing
245+ , _llerProjectIdErrors = Nothing
123-- | If there are more results than were returned, then \`nextPageToken\` is
248-- | If there are more results than were returned, then \`nextPageToken\` is
124−-- given a value in the response. To get the next batch of results, call
249+-- included in the response. To get the next set of results, call this
125−-- this method again using the value of \`nextPageToken\` as \`pageToken\`.
250+-- method again using the value of \`nextPageToken\` as \`pageToken\`.
126llerNextPageToken :: Lens' ListLogEntriesResponse (Maybe Text)
251llerNextPageToken :: Lens' ListLogEntriesResponse (Maybe Text)
127llerNextPageToken
252llerNextPageToken
128 = lens _llerNextPageToken
253 = lens _llerNextPageToken
@@ -135,26 +260,33 @@ llerEntries
136 . _Coerce
261 . _Coerce
263+-- | If partial_success is true, contains the project ids that had errors and
264+-- the associated errors.
265+llerProjectIdErrors :: Lens' ListLogEntriesResponse (Maybe ListLogEntriesResponseProjectIdErrors)
267+ = lens _llerProjectIdErrors
268+ (\ s a -> s{_llerProjectIdErrors = a})
138instance FromJSON ListLogEntriesResponse where
270instance FromJSON ListLogEntriesResponse where
139 parseJSON
271 parseJSON
140 = withObject "ListLogEntriesResponse"
272 = withObject "ListLogEntriesResponse"
142 ListLogEntriesResponse' <$>
274 ListLogEntriesResponse' <$>
143 (o .:? "nextPageToken") <*>
275 (o .:? "nextPageToken") <*>
144− (o .:? "entries" .!= mempty))
276+ (o .:? "entries" .!= mempty)
277+ <*> (o .:? "projectIdErrors"))
146instance ToJSON ListLogEntriesResponse where
279instance ToJSON ListLogEntriesResponse where
147 toJSON ListLogEntriesResponse'{..}
280 toJSON ListLogEntriesResponse'{..}
149 (catMaybes
282 (catMaybes
150 [("nextPageToken" .=) <$> _llerNextPageToken,
283 [("nextPageToken" .=) <$> _llerNextPageToken,
151− ("entries" .=) <$> _llerEntries])
284+ ("entries" .=) <$> _llerEntries,
285+ ("projectIdErrors" .=) <$> _llerProjectIdErrors])
153−-- | Values for some or all of the labels listed in the associated monitored
287+-- | Required. Values for all of the labels listed in the associated
154−-- resource descriptor. For example, specify a specific Cloud SQL database
288+-- monitored resource descriptor. For example, Cloud SQL databases use the
155−-- by supplying values for both the \`\"database_id\"\` and \`\"zone\"\`
289+-- labels \`\"database_id\"\` and \`\"zone\"\`.
156−-- labels. Specify the set of all Cloud SQL databases in a particular
157−-- location by supplying a value for only the \`\"zone\"\` label.
159-- /See:/ 'monitoredResourceLabels' smart constructor.
291-- /See:/ 'monitoredResourceLabels' smart constructor.
160newtype MonitoredResourceLabels = MonitoredResourceLabels'
292newtype MonitoredResourceLabels = MonitoredResourceLabels'
@@ -219,8 +351,8 @@ llmrMetrics
219 . _Coerce
351 . _Coerce
221-- | If there are more results than were returned, then \`nextPageToken\` is
353-- | If there are more results than were returned, then \`nextPageToken\` is
222−-- given a value in the response. To get the next batch of results, call
354+-- included in the response. To get the next set of results, call this
223−-- this method again using the value of \`nextPageToken\` as \`pageToken\`.
355+-- method again using the value of \`nextPageToken\` as \`pageToken\`.
224llmrNextPageToken :: Lens' ListLogMetricsResponse (Maybe Text)
356llmrNextPageToken :: Lens' ListLogMetricsResponse (Maybe Text)
225llmrNextPageToken
357llmrNextPageToken
226 = lens _llmrNextPageToken
358 = lens _llmrNextPageToken
@@ -245,10 +377,11 @@ instance ToJSON ListLogMetricsResponse where
246-- /See:/ 'writeLogEntriesRequest' smart constructor.
378-- /See:/ 'writeLogEntriesRequest' smart constructor.
247data WriteLogEntriesRequest = WriteLogEntriesRequest'
379data WriteLogEntriesRequest = WriteLogEntriesRequest'
248− { _wlerEntries :: !(Maybe [LogEntry])
380+ { _wlerEntries :: !(Maybe [LogEntry])
381+ , _wlerPartialSuccess :: !(Maybe Bool)
249− , _wlerResource :: !(Maybe MonitoredResource)
382+ , _wlerResource :: !(Maybe MonitoredResource)
250− , _wlerLabels :: !(Maybe WriteLogEntriesRequestLabels)
383+ , _wlerLabels :: !(Maybe WriteLogEntriesRequestLabels)
251− , _wlerLogName :: !(Maybe Text)
384+ , _wlerLogName :: !(Maybe Text)
252 } deriving (Eq,Show,Data,Typeable,Generic)
385 } deriving (Eq,Show,Data,Typeable,Generic)
254-- | Creates a value of 'WriteLogEntriesRequest' with the minimum fields required to make a request.
387-- | Creates a value of 'WriteLogEntriesRequest' with the minimum fields required to make a request.
@@ -257,6 +390,8 @@ data WriteLogEntriesRequest = WriteLogEntriesRequest'
258-- * 'wlerEntries'
391-- * 'wlerEntries'
393+-- * 'wlerPartialSuccess'
260-- * 'wlerResource'
395-- * 'wlerResource'
262-- * 'wlerLabels'
397-- * 'wlerLabels'
@@ -267,6 +402,7 @@ writeLogEntriesRequest
267writeLogEntriesRequest =
402writeLogEntriesRequest =
268 WriteLogEntriesRequest'
403 WriteLogEntriesRequest'
269 { _wlerEntries = Nothing
404 { _wlerEntries = Nothing
405+ , _wlerPartialSuccess = Nothing
270 , _wlerResource = Nothing
406 , _wlerResource = Nothing
271 , _wlerLabels = Nothing
407 , _wlerLabels = Nothing
272 , _wlerLogName = Nothing
408 , _wlerLogName = Nothing
@@ -280,6 +416,16 @@ wlerEntries
281 . _Coerce
417 . _Coerce
419+-- | Optional. Whether valid entries should be written even if some other
420+-- entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
421+-- entry is not written, the response status will be the error associated
422+-- with one of the failed entries and include error details in the form of
423+-- WriteLogEntriesPartialErrors.
424+wlerPartialSuccess :: Lens' WriteLogEntriesRequest (Maybe Bool)
426+ = lens _wlerPartialSuccess
427+ (\ s a -> s{_wlerPartialSuccess = a})
283-- | Optional. A default monitored resource for those log entries in
429-- | Optional. A default monitored resource for those log entries in
284-- \`entries\` that do not specify their own \`resource\`.
430-- \`entries\` that do not specify their own \`resource\`.
285wlerResource :: Lens' WriteLogEntriesRequest (Maybe MonitoredResource)
431wlerResource :: Lens' WriteLogEntriesRequest (Maybe MonitoredResource)
@@ -306,7 +452,9 @@ instance FromJSON WriteLogEntriesRequest where
306 = withObject "WriteLogEntriesRequest"
452 = withObject "WriteLogEntriesRequest"
308 WriteLogEntriesRequest' <$>
454 WriteLogEntriesRequest' <$>
309− (o .:? "entries" .!= mempty) <*> (o .:? "resource")
455+ (o .:? "entries" .!= mempty) <*>
456+ (o .:? "partialSuccess")
457+ <*> (o .:? "resource")
310 <*> (o .:? "labels")
458 <*> (o .:? "labels")
311 <*> (o .:? "logName"))
459 <*> (o .:? "logName"))
@@ -315,6 +463,7 @@ instance ToJSON WriteLogEntriesRequest where
316 (catMaybes
464 (catMaybes
317 [("entries" .=) <$> _wlerEntries,
465 [("entries" .=) <$> _wlerEntries,
466+ ("partialSuccess" .=) <$> _wlerPartialSuccess,
318 ("resource" .=) <$> _wlerResource,
467 ("resource" .=) <$> _wlerResource,
319 ("labels" .=) <$> _wlerLabels,
468 ("labels" .=) <$> _wlerLabels,
320 ("logName" .=) <$> _wlerLogName])
469 ("logName" .=) <$> _wlerLogName])
@@ -407,8 +556,8 @@ lsrSinks
407 . _Coerce
556 . _Coerce
409-- | If there are more results than were returned, then \`nextPageToken\` is
558-- | If there are more results than were returned, then \`nextPageToken\` is
410−-- given a value in the response. To get the next batch of results, call
559+-- included in the response. To get the next set of results, call this
411−-- this method again using the value of \`nextPageToken\` as \`pageToken\`.
560+-- method again using the value of \`nextPageToken\` as \`pageToken\`.
412lsrNextPageToken :: Lens' ListSinksResponse (Maybe Text)
561lsrNextPageToken :: Lens' ListSinksResponse (Maybe Text)
413lsrNextPageToken
562lsrNextPageToken
414 = lens _lsrNextPageToken
563 = lens _lsrNextPageToken
@@ -445,6 +594,7 @@ data RequestLog = RequestLog'
445 , _rlTaskName :: !(Maybe Text)
594 , _rlTaskName :: !(Maybe Text)
446 , _rlPendingTime :: !(Maybe Text)
595 , _rlPendingTime :: !(Maybe Text)
447 , _rlWasLoadingRequest :: !(Maybe Bool)
596 , _rlWasLoadingRequest :: !(Maybe Bool)
597+ , _rlFirst :: !(Maybe Bool)
448 , _rlStartTime :: !(Maybe Text)
598 , _rlStartTime :: !(Maybe Text)
449 , _rlLatency :: !(Maybe Text)
599 , _rlLatency :: !(Maybe Text)
450 , _rlURLMapEntry :: !(Maybe Text)
600 , _rlURLMapEntry :: !(Maybe Text)
@@ -493,6 +643,8 @@ data RequestLog = RequestLog'
494-- * 'rlWasLoadingRequest'
644-- * 'rlWasLoadingRequest'
496-- * 'rlStartTime'
648-- * 'rlStartTime'
498-- * 'rlLatency'
650-- * 'rlLatency'
@@ -547,6 +699,7 @@ requestLog =
547 , _rlTaskName = Nothing
699 , _rlTaskName = Nothing
548 , _rlPendingTime = Nothing
700 , _rlPendingTime = Nothing
549 , _rlWasLoadingRequest = Nothing
701 , _rlWasLoadingRequest = Nothing
702+ , _rlFirst = Nothing
550 , _rlStartTime = Nothing
703 , _rlStartTime = Nothing
551 , _rlLatency = Nothing
704 , _rlLatency = Nothing
552 , _rlURLMapEntry = Nothing
705 , _rlURLMapEntry = Nothing
@@ -634,6 +787,12 @@ rlWasLoadingRequest
634 = lens _rlWasLoadingRequest
787 = lens _rlWasLoadingRequest
635 (\ s a -> s{_rlWasLoadingRequest = a})
788 (\ s a -> s{_rlWasLoadingRequest = a})
790+-- | Whether this is the first RequestLog entry for this request. If an
791+-- active request has several RequestLog entries written to Cloud Logging,
792+-- this field will be set for one of them.
793+rlFirst :: Lens' RequestLog (Maybe Bool)
794+rlFirst = lens _rlFirst (\ s a -> s{_rlFirst = a})
637-- | Time when the request started.
796-- | Time when the request started.
638rlStartTime :: Lens' RequestLog (Maybe Text)
797rlStartTime :: Lens' RequestLog (Maybe Text)
639rlStartTime
798rlStartTime
@@ -768,6 +927,7 @@ instance FromJSON RequestLog where
768 <*> (o .:? "taskName")
927 <*> (o .:? "taskName")
769 <*> (o .:? "pendingTime")
928 <*> (o .:? "pendingTime")
770 <*> (o .:? "wasLoadingRequest")
929 <*> (o .:? "wasLoadingRequest")
771 <*> (o .:? "startTime")
931 <*> (o .:? "startTime")
772 <*> (o .:? "latency")
932 <*> (o .:? "latency")
773 <*> (o .:? "urlMapEntry")
933 <*> (o .:? "urlMapEntry")
@@ -804,6 +964,7 @@ instance ToJSON RequestLog where
804 ("taskName" .=) <$> _rlTaskName,
964 ("taskName" .=) <$> _rlTaskName,
805 ("pendingTime" .=) <$> _rlPendingTime,
965 ("pendingTime" .=) <$> _rlPendingTime,
806 ("wasLoadingRequest" .=) <$> _rlWasLoadingRequest,
966 ("wasLoadingRequest" .=) <$> _rlWasLoadingRequest,
967+ ("first" .=) <$> _rlFirst,
807 ("startTime" .=) <$> _rlStartTime,
968 ("startTime" .=) <$> _rlStartTime,
808 ("latency" .=) <$> _rlLatency,
969 ("latency" .=) <$> _rlLatency,
809 ("urlMapEntry" .=) <$> _rlURLMapEntry,
970 ("urlMapEntry" .=) <$> _rlURLMapEntry,
@@ -922,9 +1083,9 @@ lsDestination
922 = lens _lsDestination
1083 = lens _lsDestination
923 (\ s a -> s{_lsDestination = a})
1084 (\ s a -> s{_lsDestination = a})
925−-- | The log entry version used when exporting log entries from this sink.
1086+-- | The log entry version to use for this sink\'s exported log entries. This
926−-- This version does not have to correspond to the version of the log entry
1087+-- version does not have to correspond to the version of the log entry when
927−-- when it was written to Cloud Logging.
1088+-- it was written to Cloud Logging.
928lsOutputVersionFormat :: Lens' LogSink (Maybe Text)
1089lsOutputVersionFormat :: Lens' LogSink (Maybe Text)
929lsOutputVersionFormat
1090lsOutputVersionFormat
930 = lens _lsOutputVersionFormat
1091 = lens _lsOutputVersionFormat
@@ -937,11 +1098,12 @@ lsOutputVersionFormat
937lsName :: Lens' LogSink (Maybe Text)
1098lsName :: Lens' LogSink (Maybe Text)
938lsName = lens _lsName (\ s a -> s{_lsName = a})
1099lsName = lens _lsName (\ s a -> s{_lsName = a})
940−-- | An [advanced logs filter](\/logging\/docs\/view\/advanced_filters) that
1101+-- | An [advanced logs filter](\/logging\/docs\/view\/advanced_filters). Only
941−-- defines the log entries to be exported. The filter must be consistent
1102+-- log entries matching that filter are exported. The filter must be
942−-- with the log entry format designed by the \`outputVersionFormat\`
1103+-- consistent with the log entry format specified by the
943−-- parameter, regardless of the format of the log entry that was originally
1104+-- \`outputVersionFormat\` parameter, regardless of the format of the log
944−-- written to Cloud Logging. Example: \`\"logName:syslog AND
1105+-- entry that was originally written to Cloud Logging. Example (V2 format):
1106+-- \`\"logName=projects\/my-projectid\/logs\/syslog AND
945-- severity>=ERROR\"\`.
1107-- severity>=ERROR\"\`.
946lsFilter :: Lens' LogSink (Maybe Text)
1108lsFilter :: Lens' LogSink (Maybe Text)
947lsFilter = lens _lsFilter (\ s a -> s{_lsFilter = a})
1109lsFilter = lens _lsFilter (\ s a -> s{_lsFilter = a})
@@ -966,6 +1128,39 @@ instance ToJSON LogSink where
966 ("name" .=) <$> _lsName,
1128 ("name" .=) <$> _lsName,
967 ("filter" .=) <$> _lsFilter])
1129 ("filter" .=) <$> _lsFilter])
1132+-- /See:/ 'statusDetailsItem' smart constructor.
1133+newtype StatusDetailsItem = StatusDetailsItem'
1134+ { _sdiAddtional :: HashMap Text JSONValue
1135+ } deriving (Eq,Show,Data,Typeable,Generic)
1137+-- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.
1139+-- Use one of the following lenses to modify other fields as desired:
1143+ :: HashMap Text JSONValue -- ^ 'sdiAddtional'
1144+ -> StatusDetailsItem
1145+statusDetailsItem pSdiAddtional_ =
1147+ { _sdiAddtional = _Coerce # pSdiAddtional_
1150+-- | Properties of the object. Contains field \'ype with type URL.
1151+sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1153+ = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
1156+instance FromJSON StatusDetailsItem where
1158+ = withObject "StatusDetailsItem"
1159+ (\ o -> StatusDetailsItem' <$> (parseJSONObject o))
1161+instance ToJSON StatusDetailsItem where
1162+ toJSON = toJSON . _sdiAddtional
969-- | Result returned from ListMonitoredResourceDescriptors.
1164-- | Result returned from ListMonitoredResourceDescriptors.
971-- /See:/ 'listMonitoredResourceDescriptorsResponse' smart constructor.
1166-- /See:/ 'listMonitoredResourceDescriptorsResponse' smart constructor.
@@ -990,7 +1185,7 @@ listMonitoredResourceDescriptorsResponse =
992-- | If there are more results than were returned, then \`nextPageToken\` is
1187-- | If there are more results than were returned, then \`nextPageToken\` is
993−-- returned in the response. To get the next batch of results, call this
1188+-- included in the response. To get the next set of results, call this
994-- method again using the value of \`nextPageToken\` as \`pageToken\`.
1189-- method again using the value of \`nextPageToken\` as \`pageToken\`.
995lmrdrNextPageToken :: Lens' ListMonitoredResourceDescriptorsResponse (Maybe Text)
1190lmrdrNextPageToken :: Lens' ListMonitoredResourceDescriptorsResponse (Maybe Text)
996lmrdrNextPageToken
1191lmrdrNextPageToken
@@ -1028,16 +1223,18 @@ instance ToJSON
1029-- /See:/ 'hTTPRequest' smart constructor.
1224-- /See:/ 'hTTPRequest' smart constructor.
1030data HTTPRequest = HTTPRequest'
1225data HTTPRequest = HTTPRequest'
1031− { _httprStatus :: !(Maybe (Textual Int32))
1226+ { _httprStatus :: !(Maybe (Textual Int32))
1032− , _httprRequestURL :: !(Maybe Text)
1227+ , _httprRequestURL :: !(Maybe Text)
1228+ , _httprCacheFillBytes :: !(Maybe (Textual Int64))
1033− , _httprRemoteIP :: !(Maybe Text)
1229+ , _httprRemoteIP :: !(Maybe Text)
1034− , _httprValidatedWithOriginServer :: !(Maybe Bool)
1035− , _httprRequestSize :: !(Maybe (Textual Int64))
1230+ , _httprRequestSize :: !(Maybe (Textual Int64))
1231+ , _httprCacheValidatedWithOriginServer :: !(Maybe Bool)
1036− , _httprUserAgent :: !(Maybe Text)
1232+ , _httprUserAgent :: !(Maybe Text)
1233+ , _httprCacheLookup :: !(Maybe Bool)
1037− , _httprResponseSize :: !(Maybe (Textual Int64))
1234+ , _httprResponseSize :: !(Maybe (Textual Int64))
1038− , _httprRequestMethod :: !(Maybe Text)
1235+ , _httprRequestMethod :: !(Maybe Text)
1039− , _httprCacheHit :: !(Maybe Bool)
1236+ , _httprCacheHit :: !(Maybe Bool)
1040− , _httprReferer :: !(Maybe Text)
1237+ , _httprReferer :: !(Maybe Text)
1041 } deriving (Eq,Show,Data,Typeable,Generic)
1238 } deriving (Eq,Show,Data,Typeable,Generic)
1043-- | Creates a value of 'HTTPRequest' with the minimum fields required to make a request.
1240-- | Creates a value of 'HTTPRequest' with the minimum fields required to make a request.
@@ -1048,14 +1245,18 @@ data HTTPRequest = HTTPRequest'
1049-- * 'httprRequestURL'
1246-- * 'httprRequestURL'
1051−-- * 'httprRemoteIP'
1248+-- * 'httprCacheFillBytes'
1053−-- * 'httprValidatedWithOriginServer'
1250+-- * 'httprRemoteIP'
1055-- * 'httprRequestSize'
1252-- * 'httprRequestSize'
1254+-- * 'httprCacheValidatedWithOriginServer'
1057-- * 'httprUserAgent'
1256-- * 'httprUserAgent'
1258+-- * 'httprCacheLookup'
1059-- * 'httprResponseSize'
1260-- * 'httprResponseSize'
1061-- * 'httprRequestMethod'
1262-- * 'httprRequestMethod'
@@ -1069,10 +1270,12 @@ hTTPRequest =
1069 HTTPRequest'
1270 HTTPRequest'
1070 { _httprStatus = Nothing
1271 { _httprStatus = Nothing
1071 , _httprRequestURL = Nothing
1272 , _httprRequestURL = Nothing
1273+ , _httprCacheFillBytes = Nothing
1072 , _httprRemoteIP = Nothing
1274 , _httprRemoteIP = Nothing
1073− , _httprValidatedWithOriginServer = Nothing
1074 , _httprRequestSize = Nothing
1275 , _httprRequestSize = Nothing
1276+ , _httprCacheValidatedWithOriginServer = Nothing
1075 , _httprUserAgent = Nothing
1277 , _httprUserAgent = Nothing
1278+ , _httprCacheLookup = Nothing
1076 , _httprResponseSize = Nothing
1279 , _httprResponseSize = Nothing
1077 , _httprRequestMethod = Nothing
1280 , _httprRequestMethod = Nothing
1078 , _httprCacheHit = Nothing
1281 , _httprCacheHit = Nothing
@@ -1093,6 +1296,14 @@ httprRequestURL
1093 = lens _httprRequestURL
1296 = lens _httprRequestURL
1094 (\ s a -> s{_httprRequestURL = a})
1297 (\ s a -> s{_httprRequestURL = a})
1299+-- | The number of HTTP response bytes inserted into cache. Set only when a
1300+-- cache fill was attempted.
1301+httprCacheFillBytes :: Lens' HTTPRequest (Maybe Int64)
1303+ = lens _httprCacheFillBytes
1304+ (\ s a -> s{_httprCacheFillBytes = a})
1096-- | The IP address (IPv4 or IPv6) of the client that issued the HTTP
1307-- | The IP address (IPv4 or IPv6) of the client that issued the HTTP
1097-- request. Examples: \`\"192.168.1.1\"\`,
1308-- request. Examples: \`\"192.168.1.1\"\`,
1098-- \`\"FE80::0202:B3FF:FE1E:8329\"\`.
1309-- \`\"FE80::0202:B3FF:FE1E:8329\"\`.
@@ -1101,14 +1312,6 @@ httprRemoteIP
1101 = lens _httprRemoteIP
1312 = lens _httprRemoteIP
1102 (\ s a -> s{_httprRemoteIP = a})
1313 (\ s a -> s{_httprRemoteIP = a})
1104−-- | Whether or not the response was validated with the origin server before
1105−-- being served from cache. This field is only meaningful if \`cache_hit\`
1107−httprValidatedWithOriginServer :: Lens' HTTPRequest (Maybe Bool)
1108−httprValidatedWithOriginServer
1109− = lens _httprValidatedWithOriginServer
1110− (\ s a -> s{_httprValidatedWithOriginServer = a})
1112-- | The size of the HTTP request message in bytes, including the request
1315-- | The size of the HTTP request message in bytes, including the request
1113-- headers and the request body.
1316-- headers and the request body.
1114httprRequestSize :: Lens' HTTPRequest (Maybe Int64)
1317httprRequestSize :: Lens' HTTPRequest (Maybe Int64)
@@ -1117,6 +1320,15 @@ httprRequestSize
1117 (\ s a -> s{_httprRequestSize = a})
1320 (\ s a -> s{_httprRequestSize = a})
1118 . mapping _Coerce
1321 . mapping _Coerce
1323+-- | Whether or not the response was validated with the origin server before
1324+-- being served from cache. This field is only meaningful if \`cache_hit\`
1326+httprCacheValidatedWithOriginServer :: Lens' HTTPRequest (Maybe Bool)
1327+httprCacheValidatedWithOriginServer
1328+ = lens _httprCacheValidatedWithOriginServer
1330+ s{_httprCacheValidatedWithOriginServer = a})
1120-- | The user agent sent by the client. Example: \`\"Mozilla\/4.0
1332-- | The user agent sent by the client. Example: \`\"Mozilla\/4.0
1121-- (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"\`.
1333-- (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"\`.
1122httprUserAgent :: Lens' HTTPRequest (Maybe Text)
1334httprUserAgent :: Lens' HTTPRequest (Maybe Text)
@@ -1124,6 +1336,12 @@ httprUserAgent
1124 = lens _httprUserAgent
1336 = lens _httprUserAgent
1125 (\ s a -> s{_httprUserAgent = a})
1337 (\ s a -> s{_httprUserAgent = a})
1339+-- | Whether or not a cache lookup was attempted.
1340+httprCacheLookup :: Lens' HTTPRequest (Maybe Bool)
1342+ = lens _httprCacheLookup
1343+ (\ s a -> s{_httprCacheLookup = a})
1127-- | The size of the HTTP response message sent back to the client, in bytes,
1345-- | The size of the HTTP response message sent back to the client, in bytes,
1128-- including the response headers and the response body.
1346-- including the response headers and the response body.
1129httprResponseSize :: Lens' HTTPRequest (Maybe Int64)
1347httprResponseSize :: Lens' HTTPRequest (Maybe Int64)
@@ -1158,10 +1376,12 @@ instance FromJSON HTTPRequest where
1159 HTTPRequest' <$>
1377 HTTPRequest' <$>
1160 (o .:? "status") <*> (o .:? "requestUrl") <*>
1378 (o .:? "status") <*> (o .:? "requestUrl") <*>
1161− (o .:? "remoteIp")
1379+ (o .:? "cacheFillBytes")
1162− <*> (o .:? "validatedWithOriginServer")
1380+ <*> (o .:? "remoteIp")
1163 <*> (o .:? "requestSize")
1381 <*> (o .:? "requestSize")
1382+ <*> (o .:? "cacheValidatedWithOriginServer")
1164 <*> (o .:? "userAgent")
1383 <*> (o .:? "userAgent")
1384+ <*> (o .:? "cacheLookup")
1165 <*> (o .:? "responseSize")
1385 <*> (o .:? "responseSize")
1166 <*> (o .:? "requestMethod")
1386 <*> (o .:? "requestMethod")
1167 <*> (o .:? "cacheHit")
1387 <*> (o .:? "cacheHit")
@@ -1173,16 +1393,57 @@ instance ToJSON HTTPRequest where
1173 (catMaybes
1393 (catMaybes
1174 [("status" .=) <$> _httprStatus,
1394 [("status" .=) <$> _httprStatus,
1175 ("requestUrl" .=) <$> _httprRequestURL,
1395 ("requestUrl" .=) <$> _httprRequestURL,
1396+ ("cacheFillBytes" .=) <$> _httprCacheFillBytes,
1176 ("remoteIp" .=) <$> _httprRemoteIP,
1397 ("remoteIp" .=) <$> _httprRemoteIP,
1177− ("validatedWithOriginServer" .=) <$>
1178− _httprValidatedWithOriginServer,
1179 ("requestSize" .=) <$> _httprRequestSize,
1398 ("requestSize" .=) <$> _httprRequestSize,
1399+ ("cacheValidatedWithOriginServer" .=) <$>
1400+ _httprCacheValidatedWithOriginServer,
1180 ("userAgent" .=) <$> _httprUserAgent,
1401 ("userAgent" .=) <$> _httprUserAgent,
1402+ ("cacheLookup" .=) <$> _httprCacheLookup,
1181 ("responseSize" .=) <$> _httprResponseSize,
1403 ("responseSize" .=) <$> _httprResponseSize,
1182 ("requestMethod" .=) <$> _httprRequestMethod,
1404 ("requestMethod" .=) <$> _httprRequestMethod,
1183 ("cacheHit" .=) <$> _httprCacheHit,
1405 ("cacheHit" .=) <$> _httprCacheHit,
1184 ("referer" .=) <$> _httprReferer])
1406 ("referer" .=) <$> _httprReferer])
1408+-- | If partial_success is true, contains the project ids that had errors and
1409+-- the associated errors.
1411+-- /See:/ 'listLogEntriesResponseProjectIdErrors' smart constructor.
1412+newtype ListLogEntriesResponseProjectIdErrors = ListLogEntriesResponseProjectIdErrors'
1413+ { _llerpieAddtional :: HashMap Text Status
1414+ } deriving (Eq,Show,Data,Typeable,Generic)
1416+-- | Creates a value of 'ListLogEntriesResponseProjectIdErrors' with the minimum fields required to make a request.
1418+-- Use one of the following lenses to modify other fields as desired:
1420+-- * 'llerpieAddtional'
1421+listLogEntriesResponseProjectIdErrors
1422+ :: HashMap Text Status -- ^ 'llerpieAddtional'
1423+ -> ListLogEntriesResponseProjectIdErrors
1424+listLogEntriesResponseProjectIdErrors pLlerpieAddtional_ =
1425+ ListLogEntriesResponseProjectIdErrors'
1426+ { _llerpieAddtional = _Coerce # pLlerpieAddtional_
1429+llerpieAddtional :: Lens' ListLogEntriesResponseProjectIdErrors (HashMap Text Status)
1431+ = lens _llerpieAddtional
1432+ (\ s a -> s{_llerpieAddtional = a})
1436+ ListLogEntriesResponseProjectIdErrors where
1438+ = withObject "ListLogEntriesResponseProjectIdErrors"
1440+ ListLogEntriesResponseProjectIdErrors' <$>
1441+ (parseJSONObject o))
1443+instance ToJSON ListLogEntriesResponseProjectIdErrors
1445+ toJSON = toJSON . _llerpieAddtional
1186-- | Optional. User-defined \`key:value\` items that are added to the
1447-- | Optional. User-defined \`key:value\` items that are added to the
1187-- \`labels\` field of each log entry in \`entries\`, except when a log
1448-- \`labels\` field of each log entry in \`entries\`, except when a log
1188-- entry specifies its own \`key:value\` item with the same key. Example:
1449-- entry specifies its own \`key:value\` item with the same key. Example:
@@ -1222,7 +1483,17 @@ instance FromJSON WriteLogEntriesRequestLabels where
1222instance ToJSON WriteLogEntriesRequestLabels where
1483instance ToJSON WriteLogEntriesRequestLabels where
1223 toJSON = toJSON . _wlerlAddtional
1484 toJSON = toJSON . _wlerlAddtional
1225−-- | A specific monitored resource or a group of monitored resources.
1486+-- | An object representing a resource that can be used for monitoring,
1487+-- logging, billing, or other purposes. Examples include virtual machine
1488+-- instances, databases, and storage devices such as disks. The \`type\`
1489+-- field identifies a MonitoredResourceDescriptor object that describes the
1490+-- resource\'s schema. Information in the \`labels\` field identifies the
1491+-- actual resource and its attributes according to the schema. For example,
1492+-- a particular Compute Engine VM instance could be represented by the
1493+-- following object, because the MonitoredResourceDescriptor for
1494+-- \`\"gce_instance\"\` has labels \`\"instance_id\"\` and \`\"zone\"\`: {
1495+-- \"type\": \"gce_instance\", \"labels\": { \"instance_id\":
1496+-- \"my-instance\", \"zone\": \"us-central1-a\" }}
1227-- /See:/ 'monitoredResource' smart constructor.
1498-- /See:/ 'monitoredResource' smart constructor.
1228data MonitoredResource = MonitoredResource'
1499data MonitoredResource = MonitoredResource'
@@ -1245,17 +1516,15 @@ monitoredResource =
1245 , _mrType = Nothing
1516 , _mrType = Nothing
1248−-- | Values for some or all of the labels listed in the associated monitored
1519+-- | Required. Values for all of the labels listed in the associated
1249−-- resource descriptor. For example, specify a specific Cloud SQL database
1520+-- monitored resource descriptor. For example, Cloud SQL databases use the
1250−-- by supplying values for both the \`\"database_id\"\` and \`\"zone\"\`
1521+-- labels \`\"database_id\"\` and \`\"zone\"\`.
1251−-- labels. Specify the set of all Cloud SQL databases in a particular
1252−-- location by supplying a value for only the \`\"zone\"\` label.
1253mrLabels :: Lens' MonitoredResource (Maybe MonitoredResourceLabels)
1522mrLabels :: Lens' MonitoredResource (Maybe MonitoredResourceLabels)
1254mrLabels = lens _mrLabels (\ s a -> s{_mrLabels = a})
1523mrLabels = lens _mrLabels (\ s a -> s{_mrLabels = a})
1256−-- | The type of monitored resource. This field must match the value of the
1525+-- | Required. The monitored resource type. This field must match the
1257−-- \`type\` field in a MonitoredResourceDescriptor object. For example,
1526+-- \`type\` field of a MonitoredResourceDescriptor object. For example, the
1258−-- \`\"cloudsql_database\"\` represents Cloud SQL databases.
1527+-- type of a Cloud SQL database is \`\"cloudsql_database\"\`.
1259mrType :: Lens' MonitoredResource (Maybe Text)
1528mrType :: Lens' MonitoredResource (Maybe Text)
1260mrType = lens _mrType (\ s a -> s{_mrType = a})
1529mrType = lens _mrType (\ s a -> s{_mrType = a})
@@ -1404,11 +1673,12 @@ instance ToJSON LabelDescriptor where
1405-- /See:/ 'listLogEntriesRequest' smart constructor.
1674-- /See:/ 'listLogEntriesRequest' smart constructor.
1406data ListLogEntriesRequest = ListLogEntriesRequest'
1675data ListLogEntriesRequest = ListLogEntriesRequest'
1407− { _llerOrderBy :: !(Maybe Text)
1676+ { _llerOrderBy :: !(Maybe Text)
1677+ , _llerPartialSuccess :: !(Maybe Bool)
1408− , _llerProjectIds :: !(Maybe [Text])
1678+ , _llerProjectIds :: !(Maybe [Text])
1409− , _llerFilter :: !(Maybe Text)
1679+ , _llerFilter :: !(Maybe Text)
1410− , _llerPageToken :: !(Maybe Text)
1680+ , _llerPageToken :: !(Maybe Text)
1411− , _llerPageSize :: !(Maybe (Textual Int32))
1681+ , _llerPageSize :: !(Maybe (Textual Int32))
1412 } deriving (Eq,Show,Data,Typeable,Generic)
1682 } deriving (Eq,Show,Data,Typeable,Generic)
1414-- | Creates a value of 'ListLogEntriesRequest' with the minimum fields required to make a request.
1684-- | Creates a value of 'ListLogEntriesRequest' with the minimum fields required to make a request.
@@ -1417,6 +1687,8 @@ data ListLogEntriesRequest = ListLogEntriesRequest'
1418-- * 'llerOrderBy'
1688-- * 'llerOrderBy'
1690+-- * 'llerPartialSuccess'
1420-- * 'llerProjectIds'
1692-- * 'llerProjectIds'
1422-- * 'llerFilter'
1694-- * 'llerFilter'
@@ -1429,6 +1701,7 @@ listLogEntriesRequest
1429listLogEntriesRequest =
1701listLogEntriesRequest =
1430 ListLogEntriesRequest'
1702 ListLogEntriesRequest'
1431 { _llerOrderBy = Nothing
1703 { _llerOrderBy = Nothing
1704+ , _llerPartialSuccess = Nothing
1432 , _llerProjectIds = Nothing
1705 , _llerProjectIds = Nothing
1433 , _llerFilter = Nothing
1706 , _llerFilter = Nothing
1434 , _llerPageToken = Nothing
1707 , _llerPageToken = Nothing
@@ -1436,7 +1709,7 @@ listLogEntriesRequest =
1438-- | Optional. How the results should be sorted. Presently, the only
1711-- | Optional. How the results should be sorted. Presently, the only
1439−-- permitted values are \`\"timestamp\"\` (default) and \`\"timestamp
1712+-- permitted values are \`\"timestamp asc\"\` (default) and \`\"timestamp
1440-- desc\"\`. The first option returns entries in order of increasing values
1713-- desc\"\`. The first option returns entries in order of increasing values
1441-- of \`LogEntry.timestamp\` (oldest first), and the second option returns
1714-- of \`LogEntry.timestamp\` (oldest first), and the second option returns
1442-- entries in order of decreasing timestamps (newest first). Entries with
1715-- entries in order of decreasing timestamps (newest first). Entries with
@@ -1445,6 +1718,14 @@ llerOrderBy :: Lens' ListLogEntriesRequest (Maybe Text)
1445llerOrderBy
1718llerOrderBy
1446 = lens _llerOrderBy (\ s a -> s{_llerOrderBy = a})
1719 = lens _llerOrderBy (\ s a -> s{_llerOrderBy = a})
1721+-- | Optional. If true, read access to all projects is not required and
1722+-- results will be returned for the subset of projects for which read
1723+-- access is permitted (empty subset is permitted).
1724+llerPartialSuccess :: Lens' ListLogEntriesRequest (Maybe Bool)
1726+ = lens _llerPartialSuccess
1727+ (\ s a -> s{_llerPartialSuccess = a})
1448-- | Required. One or more project IDs or project numbers from which to
1729-- | Required. One or more project IDs or project numbers from which to
1449-- retrieve log entries. Examples of a project ID: \`\"my-project-1A\"\`,
1730-- retrieve log entries. Examples of a project ID: \`\"my-project-1A\"\`,
1450-- \`\"1234567890\"\`.
1731-- \`\"1234567890\"\`.
@@ -1464,21 +1745,21 @@ llerFilter :: Lens' ListLogEntriesRequest (Maybe Text)
1464llerFilter
1745llerFilter
1465 = lens _llerFilter (\ s a -> s{_llerFilter = a})
1746 = lens _llerFilter (\ s a -> s{_llerFilter = a})
1467−-- | Optional. If the \`pageToken\` request parameter is supplied, then the
1748+-- | Optional. If the \`pageToken\` parameter is supplied, then the next page
1468−-- next page of results in the set are retrieved. The \`pageToken\`
1749+-- of results is retrieved. The \`pageToken\` parameter must be set to the
1469−-- parameter must be set with the value of the \`nextPageToken\` result
1470−-- parameter from the previous request. The values of \`projectIds\`,
1750+-- value of the \`nextPageToken\` from the previous response. The values of
1471−-- \`filter\`, and \`orderBy\` must be the same as in the previous request.
1751+-- \`projectIds\`, \`filter\`, and \`orderBy\` must be the same as in the
1752+-- previous request.
1472llerPageToken :: Lens' ListLogEntriesRequest (Maybe Text)
1753llerPageToken :: Lens' ListLogEntriesRequest (Maybe Text)
1473llerPageToken
1754llerPageToken
1474 = lens _llerPageToken
1755 = lens _llerPageToken
1475 (\ s a -> s{_llerPageToken = a})
1756 (\ s a -> s{_llerPageToken = a})
1477−-- | Optional. The maximum number of results to return from this request.
1758+-- | Optional. The maximum number of results to return from this request. You
1478−-- Fewer results might be returned. You must check for the
1479−-- \`nextPageToken\` result to determine if additional results are
1759+-- must check for presence of \`nextPageToken\` to determine if additional
1480−-- available, which you can retrieve by passing the \`nextPageToken\` value
1760+-- results are available, which you can retrieve by passing the
1481−-- in the \`pageToken\` parameter to the next request.
1761+-- \`nextPageToken\` value as the \`pageToken\` parameter in the next
1482llerPageSize :: Lens' ListLogEntriesRequest (Maybe Int32)
1763llerPageSize :: Lens' ListLogEntriesRequest (Maybe Int32)
1483llerPageSize
1764llerPageSize
1484 = lens _llerPageSize (\ s a -> s{_llerPageSize = a})
1765 = lens _llerPageSize (\ s a -> s{_llerPageSize = a})
@@ -1489,7 +1770,8 @@ instance FromJSON ListLogEntriesRequest where
1489 = withObject "ListLogEntriesRequest"
1770 = withObject "ListLogEntriesRequest"
1491 ListLogEntriesRequest' <$>
1772 ListLogEntriesRequest' <$>
1773+ (o .:? "orderBy") <*> (o .:? "partialSuccess") <*>
1492− (o .:? "orderBy") <*> (o .:? "projectIds" .!= mempty)
1774+ (o .:? "projectIds" .!= mempty)
1493 <*> (o .:? "filter")
1775 <*> (o .:? "filter")
1494 <*> (o .:? "pageToken")
1776 <*> (o .:? "pageToken")
1495 <*> (o .:? "pageSize"))
1777 <*> (o .:? "pageSize"))
@@ -1499,6 +1781,7 @@ instance ToJSON ListLogEntriesRequest where
1499 = object
1781 = object
1500 (catMaybes
1782 (catMaybes
1501 [("orderBy" .=) <$> _llerOrderBy,
1783 [("orderBy" .=) <$> _llerOrderBy,
1784+ ("partialSuccess" .=) <$> _llerPartialSuccess,
1502 ("projectIds" .=) <$> _llerProjectIds,
1785 ("projectIds" .=) <$> _llerProjectIds,
1503 ("filter" .=) <$> _llerFilter,
1786 ("filter" .=) <$> _llerFilter,
1504 ("pageToken" .=) <$> _llerPageToken,
1787 ("pageToken" .=) <$> _llerPageToken,
@@ -1760,7 +2043,14 @@ leProtoPayload
1760 (\ s a -> s{_leProtoPayload = a})
2043 (\ s a -> s{_leProtoPayload = a})
1762-- | Required. The resource name of the log to which this log entry belongs.
2045-- | Required. The resource name of the log to which this log entry belongs.
1763−-- The format of the name is \`projects\/\/logs\/
2046+-- The format of the name is \`\"projects\/ \/logs\/\"\`. Examples:
2047+-- \`\"projects\/my-projectid\/logs\/syslog\"\`,
2048+-- \`\"projects\/1234567890\/logs\/library.googleapis.com%2Fbook_log\"\`.
2049+-- The log ID part of resource name must be less than 512 characters long
2050+-- and can only include the following characters: upper and lower case
2051+-- alphanumeric characters: [A-Za-z0-9]; and punctuation characters:
2052+-- forward-slash, underscore, hyphen, and period. Forward-slash (\`\/\`)
2053+-- characters in the log ID must be URL-encoded.
1764leLogName :: Lens' LogEntry (Maybe Text)
2054leLogName :: Lens' LogEntry (Maybe Text)
1765leLogName
2055leLogName
1766 = lens _leLogName (\ s a -> s{_leLogName = a})
2056 = lens _leLogName (\ s a -> s{_leLogName = a})