on develop help sign in
Regenerating gogol-monitoring from updated service defintions
commita52ba9975e6588cf6c11bf33cec9c702fab76ff6 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent2f8312f
18 files changed+2029−58
gogol-monitoring/gen/Network/Google/Monitoring.hs+72−2 gogol-monitoring/gen/Network/Google/Monitoring/Types.hs+28 gogol-monitoring/gen/Network/Google/Monitoring/Types/Product.hs+291−27 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Categories/List.hs+209 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Categories/MetricAssociations/List.hs+219 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/Create.hs+185 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/Delete.hs+170 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/List.hs+215 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/Create.hs+196 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/Delete.hs+182 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/List.hs+225 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Groups/Members/List.hs+5−5 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/Create.hs+2−2 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/Delete.hs+4−4 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/List.hs+3−5 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MonitoredResourceDescriptors/List.hs+5−5 gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/TimeSeries/List.hs+10−8 gogol-monitoring/gogol-monitoring.cabal+8
gogol-monitoring/gen/Network/Google/Monitoring.hs+72−2
@@ -34,6 +34,30 @@ module Network.Google.Monitoring
3434
3535 -- * Resources
3636
37+ -- ** monitoring.categories.list
38+ , module Network.Google.Resource.Monitoring.Categories.List
39+
40+ -- ** monitoring.categories.metricAssociations.list
41+ , module Network.Google.Resource.Monitoring.Categories.MetricAssociations.List
42+
43+ -- ** monitoring.projects.categories.create
44+ , module Network.Google.Resource.Monitoring.Projects.Categories.Create
45+
46+ -- ** monitoring.projects.categories.delete
47+ , module Network.Google.Resource.Monitoring.Projects.Categories.Delete
48+
49+ -- ** monitoring.projects.categories.list
50+ , module Network.Google.Resource.Monitoring.Projects.Categories.List
51+
52+ -- ** monitoring.projects.categories.metricAssociations.create
53+ , module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create
54+
55+ -- ** monitoring.projects.categories.metricAssociations.delete
56+ , module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Delete
57+
58+ -- ** monitoring.projects.categories.metricAssociations.list
59+ , module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.List
60+
3761 -- ** monitoring.projects.collectdTimeSeries.create
3862 , module Network.Google.Resource.Monitoring.Projects.CollectdTimeSeries.Create
3963
@@ -102,6 +126,12 @@ module Network.Google.Monitoring
102126 , ltsrNextPageToken
103127 , ltsrTimeSeries
104128
129+ -- ** ListMetricAssociationsResponse
130+ , ListMetricAssociationsResponse
131+ , listMetricAssociationsResponse
132+ , lmarNextPageToken
133+ , lmarMetricAssociations
134+
105135 -- ** MetricDescriptor
106136 , MetricDescriptor
107137 , metricDescriptor
@@ -169,6 +199,13 @@ module Network.Google.Monitoring
169199 -- ** FieldKind
170200 , FieldKind (..)
171201
202+ -- ** MetricAssociation
203+ , MetricAssociation
204+ , metricAssociation
205+ , maMetricType
206+ , maName
207+ , maIsDefault
208+
172209 -- ** Empty
173210 , Empty
174211 , empty
@@ -190,6 +227,15 @@ module Network.Google.Monitoring
190227 , optionValue
191228 , ovAddtional
192229
230+ -- ** Category
231+ , Category
232+ , category
233+ , cShortName
234+ , cName
235+ , cDisplayName
236+ , cDescription
237+ , cIsDefault
238+
193239 -- ** CreateTimeSeriesRequest
194240 , CreateTimeSeriesRequest
195241 , createTimeSeriesRequest
@@ -267,6 +313,12 @@ module Network.Google.Monitoring
267313 , eScale
268314 , eNumFiniteBuckets
269315
316+ -- ** ListCategoriesResponse
317+ , ListCategoriesResponse
318+ , listCategoriesResponse
319+ , lcrNextPageToken
320+ , lcrCategory
321+
270322 -- ** Range
271323 , Range
272324 , range
@@ -356,6 +408,14 @@ module Network.Google.Monitoring
356408
357409import Network.Google.Monitoring.Types
358410import Network.Google.Prelude
411+import Network.Google.Resource.Monitoring.Categories.List
412+import Network.Google.Resource.Monitoring.Categories.MetricAssociations.List
413+import Network.Google.Resource.Monitoring.Projects.Categories.Create
414+import Network.Google.Resource.Monitoring.Projects.Categories.Delete
415+import Network.Google.Resource.Monitoring.Projects.Categories.List
416+import Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create
417+import Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Delete
418+import Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.List
359419import Network.Google.Resource.Monitoring.Projects.CollectdTimeSeries.Create
360420import Network.Google.Resource.Monitoring.Projects.Groups.Create
361421import Network.Google.Resource.Monitoring.Projects.Groups.Delete
@@ -378,8 +438,10 @@ TODO
378438
379439-- | Represents the entirety of the methods and resources available for the Stackdriver Monitoring API service.
380440type MonitoringAPI =
381− ProjectsMetricDescriptorsListResource :<|>
382− ProjectsMetricDescriptorsGetResource
441+ CategoriesMetricAssociationsListResource :<|>
442+ CategoriesListResource
443+ :<|> ProjectsMetricDescriptorsListResource
444+ :<|> ProjectsMetricDescriptorsGetResource
383445 :<|> ProjectsMetricDescriptorsCreateResource
384446 :<|> ProjectsMetricDescriptorsDeleteResource
385447 :<|> ProjectsGroupsMembersListResource
@@ -389,6 +451,14 @@ type MonitoringAPI =
389451 :<|> ProjectsGroupsDeleteResource
390452 :<|> ProjectsGroupsUpdateResource
391453 :<|> ProjectsCollectdTimeSeriesCreateResource
454+ :<|> ProjectsCategoriesMetricAssociationsListResource
455+ :<|>
456+ ProjectsCategoriesMetricAssociationsCreateResource
457+ :<|>
458+ ProjectsCategoriesMetricAssociationsDeleteResource
459+ :<|> ProjectsCategoriesListResource
460+ :<|> ProjectsCategoriesCreateResource
461+ :<|> ProjectsCategoriesDeleteResource
392462 :<|> ProjectsMonitoredResourceDescriptorsListResource
393463 :<|> ProjectsMonitoredResourceDescriptorsGetResource
394464 :<|> ProjectsTimeSeriesListResource
gogol-monitoring/gen/Network/Google/Monitoring/Types.hs+28
@@ -46,6 +46,12 @@ module Network.Google.Monitoring.Types
4646 , ltsrNextPageToken
4747 , ltsrTimeSeries
4848
49+ -- * ListMetricAssociationsResponse
50+ , ListMetricAssociationsResponse
51+ , listMetricAssociationsResponse
52+ , lmarNextPageToken
53+ , lmarMetricAssociations
54+
4955 -- * MetricDescriptor
5056 , MetricDescriptor
5157 , metricDescriptor
@@ -113,6 +119,13 @@ module Network.Google.Monitoring.Types
113119 -- * FieldKind
114120 , FieldKind (..)
115121
122+ -- * MetricAssociation
123+ , MetricAssociation
124+ , metricAssociation
125+ , maMetricType
126+ , maName
127+ , maIsDefault
128+
116129 -- * Empty
117130 , Empty
118131 , empty
@@ -134,6 +147,15 @@ module Network.Google.Monitoring.Types
134147 , optionValue
135148 , ovAddtional
136149
150+ -- * Category
151+ , Category
152+ , category
153+ , cShortName
154+ , cName
155+ , cDisplayName
156+ , cDescription
157+ , cIsDefault
158+
137159 -- * CreateTimeSeriesRequest
138160 , CreateTimeSeriesRequest
139161 , createTimeSeriesRequest
@@ -211,6 +233,12 @@ module Network.Google.Monitoring.Types
211233 , eScale
212234 , eNumFiniteBuckets
213235
236+ -- * ListCategoriesResponse
237+ , ListCategoriesResponse
238+ , listCategoriesResponse
239+ , lcrNextPageToken
240+ , lcrCategory
241+
214242 -- * Range
215243 , Range
216244 , range
gogol-monitoring/gen/Network/Google/Monitoring/Types/Product.hs+291−27
@@ -175,7 +175,65 @@ instance ToJSON ListTimeSeriesResponse where
175175 [("nextPageToken" .=) <$> _ltsrNextPageToken,
176176 ("timeSeries" .=) <$> _ltsrTimeSeries])
177177
178−-- | Defines a metric type and its schema.
178+-- | The MetricAssociations response.
179+--
180+-- /See:/ 'listMetricAssociationsResponse' smart constructor.
181+data ListMetricAssociationsResponse = ListMetricAssociationsResponse'
182+ { _lmarNextPageToken :: !(Maybe Text)
183+ , _lmarMetricAssociations :: !(Maybe [MetricAssociation])
184+ } deriving (Eq,Show,Data,Typeable,Generic)
185+
186+-- | Creates a value of 'ListMetricAssociationsResponse' with the minimum fields required to make a request.
187+--
188+-- Use one of the following lenses to modify other fields as desired:
189+--
190+-- * 'lmarNextPageToken'
191+--
192+-- * 'lmarMetricAssociations'
193+listMetricAssociationsResponse
194+ :: ListMetricAssociationsResponse
195+listMetricAssociationsResponse =
196+ ListMetricAssociationsResponse'
197+ { _lmarNextPageToken = Nothing
198+ , _lmarMetricAssociations = Nothing
199+ }
200+
201+-- | If there are more results than have been returned, then this field is
202+-- set to a non-empty value. To see the additional results, use that value
203+-- as pageToken in the next call to this method.
204+lmarNextPageToken :: Lens' ListMetricAssociationsResponse (Maybe Text)
205+lmarNextPageToken
206+ = lens _lmarNextPageToken
207+ (\ s a -> s{_lmarNextPageToken = a})
208+
209+-- | The MetricAssociations that match the specified filters.
210+lmarMetricAssociations :: Lens' ListMetricAssociationsResponse [MetricAssociation]
211+lmarMetricAssociations
212+ = lens _lmarMetricAssociations
213+ (\ s a -> s{_lmarMetricAssociations = a})
214+ . _Default
215+ . _Coerce
216+
217+instance FromJSON ListMetricAssociationsResponse
218+ where
219+ parseJSON
220+ = withObject "ListMetricAssociationsResponse"
221+ (\ o ->
222+ ListMetricAssociationsResponse' <$>
223+ (o .:? "nextPageToken") <*>
224+ (o .:? "metricAssociations" .!= mempty))
225+
226+instance ToJSON ListMetricAssociationsResponse where
227+ toJSON ListMetricAssociationsResponse'{..}
228+ = object
229+ (catMaybes
230+ [("nextPageToken" .=) <$> _lmarNextPageToken,
231+ ("metricAssociations" .=) <$>
232+ _lmarMetricAssociations])
233+
234+-- | Defines a metric type and its schema. Once a metric descriptor is
235+-- created, deleting or altering it stops data collection and makes the
236+-- metric type\'s existing data unusable.
179237--
180238-- /See:/ 'metricDescriptor' smart constructor.
181239data MetricDescriptor = MetricDescriptor'
@@ -229,10 +287,13 @@ mdMetricKind :: Lens' MetricDescriptor (Maybe MetricDescriptorMetricKind)
229287mdMetricKind
230288 = lens _mdMetricKind (\ s a -> s{_mdMetricKind = a})
231289
232−-- | Resource name. The format of the name may vary between different
233−-- implementations. For examples:
234−-- projects\/{project_id}\/metricDescriptors\/{type=**}
235−-- metricDescriptors\/{type=**}
290+-- | The resource name of the metric descriptor. Depending on the
291+-- implementation, the name typically includes: (1) the parent resource
292+-- name that defines the scope of the metric type or of its data; and (2)
293+-- the metric\'s URL-encoded type, which also appears in the type field of
294+-- this descriptor. For example, following is the resource name of a custom
295+-- metric within the GCP project my-project-id:
296+-- \"projects\/my-project-id\/metricDescriptors\/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"
236297mdName :: Lens' MetricDescriptor (Maybe Text)
237298mdName = lens _mdName (\ s a -> s{_mdName = a})
238299
@@ -246,25 +307,20 @@ mdDisplayName
246307
247308-- | The set of labels that can be used to describe a specific instance of
248309-- this metric type. For example, the
249−-- compute.googleapis.com\/instance\/network\/received_bytes_count metric
250−-- type has a label, loadbalanced, that specifies whether the traffic was
251−-- received through a load balanced IP address.
310+-- appengine.googleapis.com\/http\/server\/response_latencies metric type
311+-- has a label for the HTTP response code, response_code, so you can look
312+-- at latencies for successful responses or just for responses that failed.
252313mdLabels :: Lens' MetricDescriptor [LabelDescriptor]
253314mdLabels
254315 = lens _mdLabels (\ s a -> s{_mdLabels = a}) .
255316 _Default
256317 . _Coerce
257318
258−-- | The metric type including a DNS name prefix, for example
259−-- \"compute.googleapis.com\/instance\/cpu\/utilization\". Metric types
260−-- should use a natural hierarchical grouping such as the following:
261−-- compute.googleapis.com\/instance\/cpu\/utilization
262−-- compute.googleapis.com\/instance\/disk\/read_ops_count
263−-- compute.googleapis.com\/instance\/network\/received_bytes_count Note
264−-- that if the metric type changes, the monitoring data will be
265−-- discontinued, and anything depends on it will break, such as monitoring
266−-- dashboards, alerting rules and quota limits. Therefore, once a metric
267−-- has been published, its type should be immutable.
319+-- | The metric type, including its DNS name prefix. The type is not
320+-- URL-encoded. All user-defined custom metric types have the DNS name
321+-- custom.googleapis.com. Metric types should use a natural hierarchical
322+-- grouping. For example: \"custom.googleapis.com\/invoice\/paid\/amount\"
323+-- \"appengine.googleapis.com\/http\/server\/response_latencies\"
268324mdType :: Lens' MetricDescriptor (Maybe Text)
269325mdType = lens _mdType (\ s a -> s{_mdType = a})
270326
@@ -858,6 +914,66 @@ instance ToJSON Field where
858914 ("number" .=) <$> _fNumber,
859915 ("typeUrl" .=) <$> _fTypeURL])
860916
917+-- | A Vital Signs MetricAssociation, representing the inclusion of its
918+-- referenced metric type within its parent category.
919+--
920+-- /See:/ 'metricAssociation' smart constructor.
921+data MetricAssociation = MetricAssociation'
922+ { _maMetricType :: !(Maybe Text)
923+ , _maName :: !(Maybe Text)
924+ , _maIsDefault :: !(Maybe Bool)
925+ } deriving (Eq,Show,Data,Typeable,Generic)
926+
927+-- | Creates a value of 'MetricAssociation' with the minimum fields required to make a request.
928+--
929+-- Use one of the following lenses to modify other fields as desired:
930+--
931+-- * 'maMetricType'
932+--
933+-- * 'maName'
934+--
935+-- * 'maIsDefault'
936+metricAssociation
937+ :: MetricAssociation
938+metricAssociation =
939+ MetricAssociation'
940+ { _maMetricType = Nothing
941+ , _maName = Nothing
942+ , _maIsDefault = Nothing
943+ }
944+
945+-- | Resource name of the metric. It must be the full resource name. For
946+-- example, \"compute.googleapis.com\/instance\/cpu\/utilization\".
947+maMetricType :: Lens' MetricAssociation (Maybe Text)
948+maMetricType
949+ = lens _maMetricType (\ s a -> s{_maMetricType = a})
950+
951+-- | Resource name for the metric association.
952+maName :: Lens' MetricAssociation (Maybe Text)
953+maName = lens _maName (\ s a -> s{_maName = a})
954+
955+-- | A flag to indicate whether this association is part of Stackdriver\'s
956+-- default taxonomy.
957+maIsDefault :: Lens' MetricAssociation (Maybe Bool)
958+maIsDefault
959+ = lens _maIsDefault (\ s a -> s{_maIsDefault = a})
960+
961+instance FromJSON MetricAssociation where
962+ parseJSON
963+ = withObject "MetricAssociation"
964+ (\ o ->
965+ MetricAssociation' <$>
966+ (o .:? "metricType") <*> (o .:? "name") <*>
967+ (o .:? "isDefault"))
968+
969+instance ToJSON MetricAssociation where
970+ toJSON MetricAssociation'{..}
971+ = object
972+ (catMaybes
973+ [("metricType" .=) <$> _maMetricType,
974+ ("name" .=) <$> _maName,
975+ ("isDefault" .=) <$> _maIsDefault])
976+
861977-- | A generic empty message that you can re-use to avoid defining duplicated
862978-- empty messages in your APIs. A typical example is to use it as the
863979-- request or the response type of an API method. For instance: service Foo
@@ -989,7 +1105,11 @@ instance ToJSON ListMetricDescriptorsResponse where
9891105 [("metricDescriptors" .=) <$> _lmdrMetricDescriptors,
9901106 ("nextPageToken" .=) <$> _lmdrNextPageToken])
9911107
992−-- | The option\'s value. For example, \"com.google.protobuf\".
1108+-- | The option\'s value packed in an Any message. If the value is a
1109+-- primitive, the corresponding wrapper type defined in
1110+-- google\/protobuf\/wrappers.proto should be used. If the value is an
1111+-- enum, it should be stored as an int32 value using the
1112+-- google.protobuf.Int32Value type.
9931113--
9941114-- /See:/ 'optionValue' smart constructor.
9951115newtype OptionValue = OptionValue'
@@ -1023,6 +1143,90 @@ instance FromJSON OptionValue where
10231143instance ToJSON OptionValue where
10241144 toJSON = toJSON . _ovAddtional
10251145
1146+-- | A Vital Signs Category.
1147+--
1148+-- /See:/ 'category' smart constructor.
1149+data Category = Category'
1150+ { _cShortName :: !(Maybe Text)
1151+ , _cName :: !(Maybe Text)
1152+ , _cDisplayName :: !(Maybe Text)
1153+ , _cDescription :: !(Maybe Text)
1154+ , _cIsDefault :: !(Maybe Bool)
1155+ } deriving (Eq,Show,Data,Typeable,Generic)
1156+
1157+-- | Creates a value of 'Category' with the minimum fields required to make a request.
1158+--
1159+-- Use one of the following lenses to modify other fields as desired:
1160+--
1161+-- * 'cShortName'
1162+--
1163+-- * 'cName'
1164+--
1165+-- * 'cDisplayName'
1166+--
1167+-- * 'cDescription'
1168+--
1169+-- * 'cIsDefault'
1170+category
1171+ :: Category
1172+category =
1173+ Category'
1174+ { _cShortName = Nothing
1175+ , _cName = Nothing
1176+ , _cDisplayName = Nothing
1177+ , _cDescription = Nothing
1178+ , _cIsDefault = Nothing
1179+ }
1180+
1181+-- | Unique usually one-word name for this category. e.g. latency or
1182+-- custom:goodness
1183+cShortName :: Lens' Category (Maybe Text)
1184+cShortName
1185+ = lens _cShortName (\ s a -> s{_cShortName = a})
1186+
1187+-- | Resource name for the category. e.g.
1188+-- projects\/91091\/categories\/latency or
1189+-- projects\/91091\/categories\/custom:goodness
1190+cName :: Lens' Category (Maybe Text)
1191+cName = lens _cName (\ s a -> s{_cName = a})
1192+
1193+-- | A human-readable name for the category.
1194+cDisplayName :: Lens' Category (Maybe Text)
1195+cDisplayName
1196+ = lens _cDisplayName (\ s a -> s{_cDisplayName = a})
1197+
1198+-- | A human-readable description for the category. The description can be
1199+-- longer and contain more details.
1200+cDescription :: Lens' Category (Maybe Text)
1201+cDescription
1202+ = lens _cDescription (\ s a -> s{_cDescription = a})
1203+
1204+-- | A flag to indicate whether this category is part of Stackdriver\'s
1205+-- default taxonomy.
1206+cIsDefault :: Lens' Category (Maybe Bool)
1207+cIsDefault
1208+ = lens _cIsDefault (\ s a -> s{_cIsDefault = a})
1209+
1210+instance FromJSON Category where
1211+ parseJSON
1212+ = withObject "Category"
1213+ (\ o ->
1214+ Category' <$>
1215+ (o .:? "shortName") <*> (o .:? "name") <*>
1216+ (o .:? "displayName")
1217+ <*> (o .:? "description")
1218+ <*> (o .:? "isDefault"))
1219+
1220+instance ToJSON Category where
1221+ toJSON Category'{..}
1222+ = object
1223+ (catMaybes
1224+ [("shortName" .=) <$> _cShortName,
1225+ ("name" .=) <$> _cName,
1226+ ("displayName" .=) <$> _cDisplayName,
1227+ ("description" .=) <$> _cDescription,
1228+ ("isDefault" .=) <$> _cIsDefault])
1229+
10261230-- | The CreateTimeSeries request.
10271231--
10281232-- /See:/ 'createTimeSeriesRequest' smart constructor.
@@ -1164,8 +1368,8 @@ instance ToJSON Explicit where
11641368 toJSON Explicit'{..}
11651369 = object (catMaybes [("bounds" .=) <$> _eBounds])
11661370
1167−-- | The set of labels that uniquely identify a metric. To specify a metric,
1168−-- all labels enumerated in the MetricDescriptor must be assigned values.
1371+-- | The set of label values that uniquely identify this metric. All labels
1372+-- listed in the MetricDescriptor must be assigned values.
11691373--
11701374-- /See:/ 'metricLabels' smart constructor.
11711375newtype MetricLabels = MetricLabels'
@@ -1532,7 +1736,7 @@ instance ToJSON CollectdPayload where
15321736 ("type" .=) <$> _cpType,
15331737 ("plugin" .=) <$> _cpPlugin])
15341738
1535−-- | A specific metric identified by specifying values for all of the labels
1739+-- | A specific metric, identified by specifying values for all of the labels
15361740-- of a MetricDescriptor.
15371741--
15381742-- /See:/ 'metric' smart constructor.
@@ -1556,13 +1760,13 @@ metric =
15561760 , _mType = Nothing
15571761 }
15581762
1559−-- | The set of labels that uniquely identify a metric. To specify a metric,
1560−-- all labels enumerated in the MetricDescriptor must be assigned values.
1763+-- | The set of label values that uniquely identify this metric. All labels
1764+-- listed in the MetricDescriptor must be assigned values.
15611765mLabels :: Lens' Metric (Maybe MetricLabels)
15621766mLabels = lens _mLabels (\ s a -> s{_mLabels = a})
15631767
15641768-- | An existing metric type, see google.api.MetricDescriptor. For example,
1565−-- compute.googleapis.com\/instance\/cpu\/usage_time.
1769+-- custom.googleapis.com\/invoice\/paid\/amount.
15661770mType :: Lens' Metric (Maybe Text)
15671771mType = lens _mType (\ s a -> s{_mType = a})
15681772
@@ -1646,6 +1850,59 @@ instance ToJSON Exponential where
16461850 ("scale" .=) <$> _eScale,
16471851 ("numFiniteBuckets" .=) <$> _eNumFiniteBuckets])
16481852
1853+-- | The ListCategories response.
1854+--
1855+-- /See:/ 'listCategoriesResponse' smart constructor.
1856+data ListCategoriesResponse = ListCategoriesResponse'
1857+ { _lcrNextPageToken :: !(Maybe Text)
1858+ , _lcrCategory :: !(Maybe [Category])
1859+ } deriving (Eq,Show,Data,Typeable,Generic)
1860+
1861+-- | Creates a value of 'ListCategoriesResponse' with the minimum fields required to make a request.
1862+--
1863+-- Use one of the following lenses to modify other fields as desired:
1864+--
1865+-- * 'lcrNextPageToken'
1866+--
1867+-- * 'lcrCategory'
1868+listCategoriesResponse
1869+ :: ListCategoriesResponse
1870+listCategoriesResponse =
1871+ ListCategoriesResponse'
1872+ { _lcrNextPageToken = Nothing
1873+ , _lcrCategory = Nothing
1874+ }
1875+
1876+-- | If there are more results than have been returned, then this field is
1877+-- set to a non-empty value. To see the additional results, use that value
1878+-- as pageToken in the next call to this method.
1879+lcrNextPageToken :: Lens' ListCategoriesResponse (Maybe Text)
1880+lcrNextPageToken
1881+ = lens _lcrNextPageToken
1882+ (\ s a -> s{_lcrNextPageToken = a})
1883+
1884+-- | The Categories that match the specified filters.
1885+lcrCategory :: Lens' ListCategoriesResponse [Category]
1886+lcrCategory
1887+ = lens _lcrCategory (\ s a -> s{_lcrCategory = a}) .
1888+ _Default
1889+ . _Coerce
1890+
1891+instance FromJSON ListCategoriesResponse where
1892+ parseJSON
1893+ = withObject "ListCategoriesResponse"
1894+ (\ o ->
1895+ ListCategoriesResponse' <$>
1896+ (o .:? "nextPageToken") <*>
1897+ (o .:? "category" .!= mempty))
1898+
1899+instance ToJSON ListCategoriesResponse where
1900+ toJSON ListCategoriesResponse'{..}
1901+ = object
1902+ (catMaybes
1903+ [("nextPageToken" .=) <$> _lcrNextPageToken,
1904+ ("category" .=) <$> _lcrCategory])
1905+
16491906-- | The range of the population values.
16501907--
16511908-- /See:/ 'range' smart constructor.
@@ -2113,11 +2370,18 @@ option =
21132370 , _oName = Nothing
21142371 }
21152372
2116−-- | The option\'s value. For example, \"com.google.protobuf\".
2373+-- | The option\'s value packed in an Any message. If the value is a
2374+-- primitive, the corresponding wrapper type defined in
2375+-- google\/protobuf\/wrappers.proto should be used. If the value is an
2376+-- enum, it should be stored as an int32 value using the
2377+-- google.protobuf.Int32Value type.
21172378oValue :: Lens' Option (Maybe OptionValue)
21182379oValue = lens _oValue (\ s a -> s{_oValue = a})
21192380
2120−-- | The option\'s name. For example, \"java_package\".
2381+-- | The option\'s name. For protobuf built-in options (options defined in
2382+-- descriptor.proto), this is the short name. For example, \"map_entry\".
2383+-- For custom options, it should be the fully-qualified name. For example,
2384+-- \"google.api.http\".
21212385oName :: Lens' Option (Maybe Text)
21222386oName = lens _oName (\ s a -> s{_oName = a})
21232387
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Categories/List.hsnew file+209
@@ -0,0 +1,209 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Categories.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- List all Categories for a host project.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.categories.list@.
26+module Network.Google.Resource.Monitoring.Categories.List
27+ (
28+ -- * REST Resource
29+ CategoriesListResource
30+
31+ -- * Creating a Request
32+ , categoriesList
33+ , CategoriesList
34+
35+ -- * Request Lenses
36+ , clParent
37+ , clXgafv
38+ , clUploadProtocol
39+ , clPp
40+ , clAccessToken
41+ , clUploadType
42+ , clBearerToken
43+ , clFilter
44+ , clPageToken
45+ , clPageSize
46+ , clCallback
47+ ) where
48+
49+import Network.Google.Monitoring.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @monitoring.categories.list@ method which the
53+-- 'CategoriesList' request conforms to.
54+type CategoriesListResource =
55+ "v3" :>
56+ "categories" :>
57+ QueryParam "parent" Text :>
58+ QueryParam "$.xgafv" Xgafv :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "filter" Text :>
65+ QueryParam "pageToken" Text :>
66+ QueryParam "pageSize" (Textual Int32) :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ Get '[JSON] ListCategoriesResponse
70+
71+-- | List all Categories for a host project.
72+--
73+-- /See:/ 'categoriesList' smart constructor.
74+data CategoriesList = CategoriesList'
75+ { _clParent :: !(Maybe Text)
76+ , _clXgafv :: !(Maybe Xgafv)
77+ , _clUploadProtocol :: !(Maybe Text)
78+ , _clPp :: !Bool
79+ , _clAccessToken :: !(Maybe Text)
80+ , _clUploadType :: !(Maybe Text)
81+ , _clBearerToken :: !(Maybe Text)
82+ , _clFilter :: !(Maybe Text)
83+ , _clPageToken :: !(Maybe Text)
84+ , _clPageSize :: !(Maybe (Textual Int32))
85+ , _clCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'CategoriesList' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'clParent'
93+--
94+-- * 'clXgafv'
95+--
96+-- * 'clUploadProtocol'
97+--
98+-- * 'clPp'
99+--
100+-- * 'clAccessToken'
101+--
102+-- * 'clUploadType'
103+--
104+-- * 'clBearerToken'
105+--
106+-- * 'clFilter'
107+--
108+-- * 'clPageToken'
109+--
110+-- * 'clPageSize'
111+--
112+-- * 'clCallback'
113+categoriesList
114+ :: CategoriesList
115+categoriesList =
116+ CategoriesList'
117+ { _clParent = Nothing
118+ , _clXgafv = Nothing
119+ , _clUploadProtocol = Nothing
120+ , _clPp = True
121+ , _clAccessToken = Nothing
122+ , _clUploadType = Nothing
123+ , _clBearerToken = Nothing
124+ , _clFilter = Nothing
125+ , _clPageToken = Nothing
126+ , _clPageSize = Nothing
127+ , _clCallback = Nothing
128+ }
129+
130+-- | Resource parent of the project to get. Resource parent form is
131+-- projects\/{project_id_or_number}.
132+clParent :: Lens' CategoriesList (Maybe Text)
133+clParent = lens _clParent (\ s a -> s{_clParent = a})
134+
135+-- | V1 error format.
136+clXgafv :: Lens' CategoriesList (Maybe Xgafv)
137+clXgafv = lens _clXgafv (\ s a -> s{_clXgafv = a})
138+
139+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
140+clUploadProtocol :: Lens' CategoriesList (Maybe Text)
141+clUploadProtocol
142+ = lens _clUploadProtocol
143+ (\ s a -> s{_clUploadProtocol = a})
144+
145+-- | Pretty-print response.
146+clPp :: Lens' CategoriesList Bool
147+clPp = lens _clPp (\ s a -> s{_clPp = a})
148+
149+-- | OAuth access token.
150+clAccessToken :: Lens' CategoriesList (Maybe Text)
151+clAccessToken
152+ = lens _clAccessToken
153+ (\ s a -> s{_clAccessToken = a})
154+
155+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
156+clUploadType :: Lens' CategoriesList (Maybe Text)
157+clUploadType
158+ = lens _clUploadType (\ s a -> s{_clUploadType = a})
159+
160+-- | OAuth bearer token.
161+clBearerToken :: Lens' CategoriesList (Maybe Text)
162+clBearerToken
163+ = lens _clBearerToken
164+ (\ s a -> s{_clBearerToken = a})
165+
166+-- | A filter that specifies what Categories to return.
167+clFilter :: Lens' CategoriesList (Maybe Text)
168+clFilter = lens _clFilter (\ s a -> s{_clFilter = a})
169+
170+-- | If this field is not empty then it must contain the nextPageToken value
171+-- returned by a previous call to this method. Using this field causes the
172+-- method to return additional results from the previous method call.
173+clPageToken :: Lens' CategoriesList (Maybe Text)
174+clPageToken
175+ = lens _clPageToken (\ s a -> s{_clPageToken = a})
176+
177+-- | A positive number that is the maximum number of results to return. When
178+-- 0, use default page size.
179+clPageSize :: Lens' CategoriesList (Maybe Int32)
180+clPageSize
181+ = lens _clPageSize (\ s a -> s{_clPageSize = a}) .
182+ mapping _Coerce
183+
184+-- | JSONP
185+clCallback :: Lens' CategoriesList (Maybe Text)
186+clCallback
187+ = lens _clCallback (\ s a -> s{_clCallback = a})
188+
189+instance GoogleRequest CategoriesList where
190+ type Rs CategoriesList = ListCategoriesResponse
191+ type Scopes CategoriesList =
192+ '["https://www.googleapis.com/auth/cloud-platform",
193+ "https://www.googleapis.com/auth/monitoring",
194+ "https://www.googleapis.com/auth/monitoring.read"]
195+ requestClient CategoriesList'{..}
196+ = go _clParent _clXgafv _clUploadProtocol
197+ (Just _clPp)
198+ _clAccessToken
199+ _clUploadType
200+ _clBearerToken
201+ _clFilter
202+ _clPageToken
203+ _clPageSize
204+ _clCallback
205+ (Just AltJSON)
206+ monitoringService
207+ where go
208+ = buildClient (Proxy :: Proxy CategoriesListResource)
209+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Categories/MetricAssociations/List.hsnew file+219
@@ -0,0 +1,219 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Categories.MetricAssociations.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- List the MetricAssociations in a given Category.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.categories.metricAssociations.list@.
26+module Network.Google.Resource.Monitoring.Categories.MetricAssociations.List
27+ (
28+ -- * REST Resource
29+ CategoriesMetricAssociationsListResource
30+
31+ -- * Creating a Request
32+ , categoriesMetricAssociationsList
33+ , CategoriesMetricAssociationsList
34+
35+ -- * Request Lenses
36+ , cmalParent
37+ , cmalXgafv
38+ , cmalUploadProtocol
39+ , cmalPp
40+ , cmalAccessToken
41+ , cmalUploadType
42+ , cmalBearerToken
43+ , cmalFilter
44+ , cmalPageToken
45+ , cmalPageSize
46+ , cmalCallback
47+ ) where
48+
49+import Network.Google.Monitoring.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @monitoring.categories.metricAssociations.list@ method which the
53+-- 'CategoriesMetricAssociationsList' request conforms to.
54+type CategoriesMetricAssociationsListResource =
55+ "v3" :>
56+ Capture "parent" Text :>
57+ "metricAssociations" :>
58+ QueryParam "$.xgafv" Xgafv :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "filter" Text :>
65+ QueryParam "pageToken" Text :>
66+ QueryParam "pageSize" (Textual Int32) :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ Get '[JSON] ListMetricAssociationsResponse
70+
71+-- | List the MetricAssociations in a given Category.
72+--
73+-- /See:/ 'categoriesMetricAssociationsList' smart constructor.
74+data CategoriesMetricAssociationsList = CategoriesMetricAssociationsList'
75+ { _cmalParent :: !Text
76+ , _cmalXgafv :: !(Maybe Xgafv)
77+ , _cmalUploadProtocol :: !(Maybe Text)
78+ , _cmalPp :: !Bool
79+ , _cmalAccessToken :: !(Maybe Text)
80+ , _cmalUploadType :: !(Maybe Text)
81+ , _cmalBearerToken :: !(Maybe Text)
82+ , _cmalFilter :: !(Maybe Text)
83+ , _cmalPageToken :: !(Maybe Text)
84+ , _cmalPageSize :: !(Maybe (Textual Int32))
85+ , _cmalCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'CategoriesMetricAssociationsList' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'cmalParent'
93+--
94+-- * 'cmalXgafv'
95+--
96+-- * 'cmalUploadProtocol'
97+--
98+-- * 'cmalPp'
99+--
100+-- * 'cmalAccessToken'
101+--
102+-- * 'cmalUploadType'
103+--
104+-- * 'cmalBearerToken'
105+--
106+-- * 'cmalFilter'
107+--
108+-- * 'cmalPageToken'
109+--
110+-- * 'cmalPageSize'
111+--
112+-- * 'cmalCallback'
113+categoriesMetricAssociationsList
114+ :: Text -- ^ 'cmalParent'
115+ -> CategoriesMetricAssociationsList
116+categoriesMetricAssociationsList pCmalParent_ =
117+ CategoriesMetricAssociationsList'
118+ { _cmalParent = pCmalParent_
119+ , _cmalXgafv = Nothing
120+ , _cmalUploadProtocol = Nothing
121+ , _cmalPp = True
122+ , _cmalAccessToken = Nothing
123+ , _cmalUploadType = Nothing
124+ , _cmalBearerToken = Nothing
125+ , _cmalFilter = Nothing
126+ , _cmalPageToken = Nothing
127+ , _cmalPageSize = Nothing
128+ , _cmalCallback = Nothing
129+ }
130+
131+-- | Resource parent of the category to get. Resource parent form is
132+-- projects\/{project_id_or_number}\/categories\/{short_name}.
133+cmalParent :: Lens' CategoriesMetricAssociationsList Text
134+cmalParent
135+ = lens _cmalParent (\ s a -> s{_cmalParent = a})
136+
137+-- | V1 error format.
138+cmalXgafv :: Lens' CategoriesMetricAssociationsList (Maybe Xgafv)
139+cmalXgafv
140+ = lens _cmalXgafv (\ s a -> s{_cmalXgafv = a})
141+
142+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
143+cmalUploadProtocol :: Lens' CategoriesMetricAssociationsList (Maybe Text)
144+cmalUploadProtocol
145+ = lens _cmalUploadProtocol
146+ (\ s a -> s{_cmalUploadProtocol = a})
147+
148+-- | Pretty-print response.
149+cmalPp :: Lens' CategoriesMetricAssociationsList Bool
150+cmalPp = lens _cmalPp (\ s a -> s{_cmalPp = a})
151+
152+-- | OAuth access token.
153+cmalAccessToken :: Lens' CategoriesMetricAssociationsList (Maybe Text)
154+cmalAccessToken
155+ = lens _cmalAccessToken
156+ (\ s a -> s{_cmalAccessToken = a})
157+
158+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
159+cmalUploadType :: Lens' CategoriesMetricAssociationsList (Maybe Text)
160+cmalUploadType
161+ = lens _cmalUploadType
162+ (\ s a -> s{_cmalUploadType = a})
163+
164+-- | OAuth bearer token.
165+cmalBearerToken :: Lens' CategoriesMetricAssociationsList (Maybe Text)
166+cmalBearerToken
167+ = lens _cmalBearerToken
168+ (\ s a -> s{_cmalBearerToken = a})
169+
170+-- | A filter that specifies what MetricAssociations to return.
171+cmalFilter :: Lens' CategoriesMetricAssociationsList (Maybe Text)
172+cmalFilter
173+ = lens _cmalFilter (\ s a -> s{_cmalFilter = a})
174+
175+-- | If this field is not empty then it must contain the nextPageToken value
176+-- returned by a previous call to this method. Using this field causes the
177+-- method to return additional results from the previous method call.
178+cmalPageToken :: Lens' CategoriesMetricAssociationsList (Maybe Text)
179+cmalPageToken
180+ = lens _cmalPageToken
181+ (\ s a -> s{_cmalPageToken = a})
182+
183+-- | A positive number that is the maximum number of results to return. When
184+-- 0, use default page size.
185+cmalPageSize :: Lens' CategoriesMetricAssociationsList (Maybe Int32)
186+cmalPageSize
187+ = lens _cmalPageSize (\ s a -> s{_cmalPageSize = a})
188+ . mapping _Coerce
189+
190+-- | JSONP
191+cmalCallback :: Lens' CategoriesMetricAssociationsList (Maybe Text)
192+cmalCallback
193+ = lens _cmalCallback (\ s a -> s{_cmalCallback = a})
194+
195+instance GoogleRequest
196+ CategoriesMetricAssociationsList where
197+ type Rs CategoriesMetricAssociationsList =
198+ ListMetricAssociationsResponse
199+ type Scopes CategoriesMetricAssociationsList =
200+ '["https://www.googleapis.com/auth/cloud-platform",
201+ "https://www.googleapis.com/auth/monitoring",
202+ "https://www.googleapis.com/auth/monitoring.read"]
203+ requestClient CategoriesMetricAssociationsList'{..}
204+ = go _cmalParent _cmalXgafv _cmalUploadProtocol
205+ (Just _cmalPp)
206+ _cmalAccessToken
207+ _cmalUploadType
208+ _cmalBearerToken
209+ _cmalFilter
210+ _cmalPageToken
211+ _cmalPageSize
212+ _cmalCallback
213+ (Just AltJSON)
214+ monitoringService
215+ where go
216+ = buildClient
217+ (Proxy ::
218+ Proxy CategoriesMetricAssociationsListResource)
219+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/Create.hsnew file+185
@@ -0,0 +1,185 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.Create
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Create a new Category.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.create@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.Create
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesCreateResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesCreate
33+ , ProjectsCategoriesCreate
34+
35+ -- * Request Lenses
36+ , pccParent
37+ , pccXgafv
38+ , pccUploadProtocol
39+ , pccPp
40+ , pccAccessToken
41+ , pccUploadType
42+ , pccPayload
43+ , pccBearerToken
44+ , pccCallback
45+ ) where
46+
47+import Network.Google.Monitoring.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @monitoring.projects.categories.create@ method which the
51+-- 'ProjectsCategoriesCreate' request conforms to.
52+type ProjectsCategoriesCreateResource =
53+ "v3" :>
54+ Capture "parent" Text :>
55+ "categories" :>
56+ QueryParam "$.xgafv" Xgafv :>
57+ QueryParam "upload_protocol" Text :>
58+ QueryParam "pp" Bool :>
59+ QueryParam "access_token" Text :>
60+ QueryParam "uploadType" Text :>
61+ QueryParam "bearer_token" Text :>
62+ QueryParam "callback" Text :>
63+ QueryParam "alt" AltJSON :>
64+ ReqBody '[JSON] Category :> Post '[JSON] Category
65+
66+-- | Create a new Category.
67+--
68+-- /See:/ 'projectsCategoriesCreate' smart constructor.
69+data ProjectsCategoriesCreate = ProjectsCategoriesCreate'
70+ { _pccParent :: !Text
71+ , _pccXgafv :: !(Maybe Xgafv)
72+ , _pccUploadProtocol :: !(Maybe Text)
73+ , _pccPp :: !Bool
74+ , _pccAccessToken :: !(Maybe Text)
75+ , _pccUploadType :: !(Maybe Text)
76+ , _pccPayload :: !Category
77+ , _pccBearerToken :: !(Maybe Text)
78+ , _pccCallback :: !(Maybe Text)
79+ } deriving (Eq,Show,Data,Typeable,Generic)
80+
81+-- | Creates a value of 'ProjectsCategoriesCreate' with the minimum fields required to make a request.
82+--
83+-- Use one of the following lenses to modify other fields as desired:
84+--
85+-- * 'pccParent'
86+--
87+-- * 'pccXgafv'
88+--
89+-- * 'pccUploadProtocol'
90+--
91+-- * 'pccPp'
92+--
93+-- * 'pccAccessToken'
94+--
95+-- * 'pccUploadType'
96+--
97+-- * 'pccPayload'
98+--
99+-- * 'pccBearerToken'
100+--
101+-- * 'pccCallback'
102+projectsCategoriesCreate
103+ :: Text -- ^ 'pccParent'
104+ -> Category -- ^ 'pccPayload'
105+ -> ProjectsCategoriesCreate
106+projectsCategoriesCreate pPccParent_ pPccPayload_ =
107+ ProjectsCategoriesCreate'
108+ { _pccParent = pPccParent_
109+ , _pccXgafv = Nothing
110+ , _pccUploadProtocol = Nothing
111+ , _pccPp = True
112+ , _pccAccessToken = Nothing
113+ , _pccUploadType = Nothing
114+ , _pccPayload = pPccPayload_
115+ , _pccBearerToken = Nothing
116+ , _pccCallback = Nothing
117+ }
118+
119+-- | Resource parent of the project to get. Resource parent form is
120+-- projects\/{project_id_or_number}.
121+pccParent :: Lens' ProjectsCategoriesCreate Text
122+pccParent
123+ = lens _pccParent (\ s a -> s{_pccParent = a})
124+
125+-- | V1 error format.
126+pccXgafv :: Lens' ProjectsCategoriesCreate (Maybe Xgafv)
127+pccXgafv = lens _pccXgafv (\ s a -> s{_pccXgafv = a})
128+
129+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
130+pccUploadProtocol :: Lens' ProjectsCategoriesCreate (Maybe Text)
131+pccUploadProtocol
132+ = lens _pccUploadProtocol
133+ (\ s a -> s{_pccUploadProtocol = a})
134+
135+-- | Pretty-print response.
136+pccPp :: Lens' ProjectsCategoriesCreate Bool
137+pccPp = lens _pccPp (\ s a -> s{_pccPp = a})
138+
139+-- | OAuth access token.
140+pccAccessToken :: Lens' ProjectsCategoriesCreate (Maybe Text)
141+pccAccessToken
142+ = lens _pccAccessToken
143+ (\ s a -> s{_pccAccessToken = a})
144+
145+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
146+pccUploadType :: Lens' ProjectsCategoriesCreate (Maybe Text)
147+pccUploadType
148+ = lens _pccUploadType
149+ (\ s a -> s{_pccUploadType = a})
150+
151+-- | Multipart request metadata.
152+pccPayload :: Lens' ProjectsCategoriesCreate Category
153+pccPayload
154+ = lens _pccPayload (\ s a -> s{_pccPayload = a})
155+
156+-- | OAuth bearer token.
157+pccBearerToken :: Lens' ProjectsCategoriesCreate (Maybe Text)
158+pccBearerToken
159+ = lens _pccBearerToken
160+ (\ s a -> s{_pccBearerToken = a})
161+
162+-- | JSONP
163+pccCallback :: Lens' ProjectsCategoriesCreate (Maybe Text)
164+pccCallback
165+ = lens _pccCallback (\ s a -> s{_pccCallback = a})
166+
167+instance GoogleRequest ProjectsCategoriesCreate where
168+ type Rs ProjectsCategoriesCreate = Category
169+ type Scopes ProjectsCategoriesCreate =
170+ '["https://www.googleapis.com/auth/cloud-platform",
171+ "https://www.googleapis.com/auth/monitoring"]
172+ requestClient ProjectsCategoriesCreate'{..}
173+ = go _pccParent _pccXgafv _pccUploadProtocol
174+ (Just _pccPp)
175+ _pccAccessToken
176+ _pccUploadType
177+ _pccBearerToken
178+ _pccCallback
179+ (Just AltJSON)
180+ _pccPayload
181+ monitoringService
182+ where go
183+ = buildClient
184+ (Proxy :: Proxy ProjectsCategoriesCreateResource)
185+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/Delete.hsnew file+170
@@ -0,0 +1,170 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.Delete
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Delete a Category.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.delete@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.Delete
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesDeleteResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesDelete
33+ , ProjectsCategoriesDelete
34+
35+ -- * Request Lenses
36+ , pcdXgafv
37+ , pcdUploadProtocol
38+ , pcdPp
39+ , pcdAccessToken
40+ , pcdUploadType
41+ , pcdBearerToken
42+ , pcdName
43+ , pcdCallback
44+ ) where
45+
46+import Network.Google.Monitoring.Types
47+import Network.Google.Prelude
48+
49+-- | A resource alias for @monitoring.projects.categories.delete@ method which the
50+-- 'ProjectsCategoriesDelete' request conforms to.
51+type ProjectsCategoriesDeleteResource =
52+ "v3" :>
53+ Capture "name" Text :>
54+ QueryParam "$.xgafv" Xgafv :>
55+ QueryParam "upload_protocol" Text :>
56+ QueryParam "pp" Bool :>
57+ QueryParam "access_token" Text :>
58+ QueryParam "uploadType" Text :>
59+ QueryParam "bearer_token" Text :>
60+ QueryParam "callback" Text :>
61+ QueryParam "alt" AltJSON :> Delete '[JSON] Empty
62+
63+-- | Delete a Category.
64+--
65+-- /See:/ 'projectsCategoriesDelete' smart constructor.
66+data ProjectsCategoriesDelete = ProjectsCategoriesDelete'
67+ { _pcdXgafv :: !(Maybe Xgafv)
68+ , _pcdUploadProtocol :: !(Maybe Text)
69+ , _pcdPp :: !Bool
70+ , _pcdAccessToken :: !(Maybe Text)
71+ , _pcdUploadType :: !(Maybe Text)
72+ , _pcdBearerToken :: !(Maybe Text)
73+ , _pcdName :: !Text
74+ , _pcdCallback :: !(Maybe Text)
75+ } deriving (Eq,Show,Data,Typeable,Generic)
76+
77+-- | Creates a value of 'ProjectsCategoriesDelete' with the minimum fields required to make a request.
78+--
79+-- Use one of the following lenses to modify other fields as desired:
80+--
81+-- * 'pcdXgafv'
82+--
83+-- * 'pcdUploadProtocol'
84+--
85+-- * 'pcdPp'
86+--
87+-- * 'pcdAccessToken'
88+--
89+-- * 'pcdUploadType'
90+--
91+-- * 'pcdBearerToken'
92+--
93+-- * 'pcdName'
94+--
95+-- * 'pcdCallback'
96+projectsCategoriesDelete
97+ :: Text -- ^ 'pcdName'
98+ -> ProjectsCategoriesDelete
99+projectsCategoriesDelete pPcdName_ =
100+ ProjectsCategoriesDelete'
101+ { _pcdXgafv = Nothing
102+ , _pcdUploadProtocol = Nothing
103+ , _pcdPp = True
104+ , _pcdAccessToken = Nothing
105+ , _pcdUploadType = Nothing
106+ , _pcdBearerToken = Nothing
107+ , _pcdName = pPcdName_
108+ , _pcdCallback = Nothing
109+ }
110+
111+-- | V1 error format.
112+pcdXgafv :: Lens' ProjectsCategoriesDelete (Maybe Xgafv)
113+pcdXgafv = lens _pcdXgafv (\ s a -> s{_pcdXgafv = a})
114+
115+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
116+pcdUploadProtocol :: Lens' ProjectsCategoriesDelete (Maybe Text)
117+pcdUploadProtocol
118+ = lens _pcdUploadProtocol
119+ (\ s a -> s{_pcdUploadProtocol = a})
120+
121+-- | Pretty-print response.
122+pcdPp :: Lens' ProjectsCategoriesDelete Bool
123+pcdPp = lens _pcdPp (\ s a -> s{_pcdPp = a})
124+
125+-- | OAuth access token.
126+pcdAccessToken :: Lens' ProjectsCategoriesDelete (Maybe Text)
127+pcdAccessToken
128+ = lens _pcdAccessToken
129+ (\ s a -> s{_pcdAccessToken = a})
130+
131+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
132+pcdUploadType :: Lens' ProjectsCategoriesDelete (Maybe Text)
133+pcdUploadType
134+ = lens _pcdUploadType
135+ (\ s a -> s{_pcdUploadType = a})
136+
137+-- | OAuth bearer token.
138+pcdBearerToken :: Lens' ProjectsCategoriesDelete (Maybe Text)
139+pcdBearerToken
140+ = lens _pcdBearerToken
141+ (\ s a -> s{_pcdBearerToken = a})
142+
143+-- | Resource name of category to delete. Resource name form is
144+-- projects\/{project_id_or_number}\/categories\/{short_name}.
145+pcdName :: Lens' ProjectsCategoriesDelete Text
146+pcdName = lens _pcdName (\ s a -> s{_pcdName = a})
147+
148+-- | JSONP
149+pcdCallback :: Lens' ProjectsCategoriesDelete (Maybe Text)
150+pcdCallback
151+ = lens _pcdCallback (\ s a -> s{_pcdCallback = a})
152+
153+instance GoogleRequest ProjectsCategoriesDelete where
154+ type Rs ProjectsCategoriesDelete = Empty
155+ type Scopes ProjectsCategoriesDelete =
156+ '["https://www.googleapis.com/auth/cloud-platform",
157+ "https://www.googleapis.com/auth/monitoring"]
158+ requestClient ProjectsCategoriesDelete'{..}
159+ = go _pcdName _pcdXgafv _pcdUploadProtocol
160+ (Just _pcdPp)
161+ _pcdAccessToken
162+ _pcdUploadType
163+ _pcdBearerToken
164+ _pcdCallback
165+ (Just AltJSON)
166+ monitoringService
167+ where go
168+ = buildClient
169+ (Proxy :: Proxy ProjectsCategoriesDeleteResource)
170+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/List.hsnew file+215
@@ -0,0 +1,215 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- List all Categories for a host project.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.list@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.List
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesListResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesList
33+ , ProjectsCategoriesList
34+
35+ -- * Request Lenses
36+ , pclParent
37+ , pclXgafv
38+ , pclUploadProtocol
39+ , pclPp
40+ , pclAccessToken
41+ , pclUploadType
42+ , pclBearerToken
43+ , pclFilter
44+ , pclPageToken
45+ , pclPageSize
46+ , pclCallback
47+ ) where
48+
49+import Network.Google.Monitoring.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @monitoring.projects.categories.list@ method which the
53+-- 'ProjectsCategoriesList' request conforms to.
54+type ProjectsCategoriesListResource =
55+ "v3" :>
56+ Capture "parent" Text :>
57+ "categories" :>
58+ QueryParam "$.xgafv" Xgafv :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "filter" Text :>
65+ QueryParam "pageToken" Text :>
66+ QueryParam "pageSize" (Textual Int32) :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ Get '[JSON] ListCategoriesResponse
70+
71+-- | List all Categories for a host project.
72+--
73+-- /See:/ 'projectsCategoriesList' smart constructor.
74+data ProjectsCategoriesList = ProjectsCategoriesList'
75+ { _pclParent :: !Text
76+ , _pclXgafv :: !(Maybe Xgafv)
77+ , _pclUploadProtocol :: !(Maybe Text)
78+ , _pclPp :: !Bool
79+ , _pclAccessToken :: !(Maybe Text)
80+ , _pclUploadType :: !(Maybe Text)
81+ , _pclBearerToken :: !(Maybe Text)
82+ , _pclFilter :: !(Maybe Text)
83+ , _pclPageToken :: !(Maybe Text)
84+ , _pclPageSize :: !(Maybe (Textual Int32))
85+ , _pclCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'ProjectsCategoriesList' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'pclParent'
93+--
94+-- * 'pclXgafv'
95+--
96+-- * 'pclUploadProtocol'
97+--
98+-- * 'pclPp'
99+--
100+-- * 'pclAccessToken'
101+--
102+-- * 'pclUploadType'
103+--
104+-- * 'pclBearerToken'
105+--
106+-- * 'pclFilter'
107+--
108+-- * 'pclPageToken'
109+--
110+-- * 'pclPageSize'
111+--
112+-- * 'pclCallback'
113+projectsCategoriesList
114+ :: Text -- ^ 'pclParent'
115+ -> ProjectsCategoriesList
116+projectsCategoriesList pPclParent_ =
117+ ProjectsCategoriesList'
118+ { _pclParent = pPclParent_
119+ , _pclXgafv = Nothing
120+ , _pclUploadProtocol = Nothing
121+ , _pclPp = True
122+ , _pclAccessToken = Nothing
123+ , _pclUploadType = Nothing
124+ , _pclBearerToken = Nothing
125+ , _pclFilter = Nothing
126+ , _pclPageToken = Nothing
127+ , _pclPageSize = Nothing
128+ , _pclCallback = Nothing
129+ }
130+
131+-- | Resource parent of the project to get. Resource parent form is
132+-- projects\/{project_id_or_number}.
133+pclParent :: Lens' ProjectsCategoriesList Text
134+pclParent
135+ = lens _pclParent (\ s a -> s{_pclParent = a})
136+
137+-- | V1 error format.
138+pclXgafv :: Lens' ProjectsCategoriesList (Maybe Xgafv)
139+pclXgafv = lens _pclXgafv (\ s a -> s{_pclXgafv = a})
140+
141+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
142+pclUploadProtocol :: Lens' ProjectsCategoriesList (Maybe Text)
143+pclUploadProtocol
144+ = lens _pclUploadProtocol
145+ (\ s a -> s{_pclUploadProtocol = a})
146+
147+-- | Pretty-print response.
148+pclPp :: Lens' ProjectsCategoriesList Bool
149+pclPp = lens _pclPp (\ s a -> s{_pclPp = a})
150+
151+-- | OAuth access token.
152+pclAccessToken :: Lens' ProjectsCategoriesList (Maybe Text)
153+pclAccessToken
154+ = lens _pclAccessToken
155+ (\ s a -> s{_pclAccessToken = a})
156+
157+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
158+pclUploadType :: Lens' ProjectsCategoriesList (Maybe Text)
159+pclUploadType
160+ = lens _pclUploadType
161+ (\ s a -> s{_pclUploadType = a})
162+
163+-- | OAuth bearer token.
164+pclBearerToken :: Lens' ProjectsCategoriesList (Maybe Text)
165+pclBearerToken
166+ = lens _pclBearerToken
167+ (\ s a -> s{_pclBearerToken = a})
168+
169+-- | A filter that specifies what Categories to return.
170+pclFilter :: Lens' ProjectsCategoriesList (Maybe Text)
171+pclFilter
172+ = lens _pclFilter (\ s a -> s{_pclFilter = a})
173+
174+-- | If this field is not empty then it must contain the nextPageToken value
175+-- returned by a previous call to this method. Using this field causes the
176+-- method to return additional results from the previous method call.
177+pclPageToken :: Lens' ProjectsCategoriesList (Maybe Text)
178+pclPageToken
179+ = lens _pclPageToken (\ s a -> s{_pclPageToken = a})
180+
181+-- | A positive number that is the maximum number of results to return. When
182+-- 0, use default page size.
183+pclPageSize :: Lens' ProjectsCategoriesList (Maybe Int32)
184+pclPageSize
185+ = lens _pclPageSize (\ s a -> s{_pclPageSize = a}) .
186+ mapping _Coerce
187+
188+-- | JSONP
189+pclCallback :: Lens' ProjectsCategoriesList (Maybe Text)
190+pclCallback
191+ = lens _pclCallback (\ s a -> s{_pclCallback = a})
192+
193+instance GoogleRequest ProjectsCategoriesList where
194+ type Rs ProjectsCategoriesList =
195+ ListCategoriesResponse
196+ type Scopes ProjectsCategoriesList =
197+ '["https://www.googleapis.com/auth/cloud-platform",
198+ "https://www.googleapis.com/auth/monitoring",
199+ "https://www.googleapis.com/auth/monitoring.read"]
200+ requestClient ProjectsCategoriesList'{..}
201+ = go _pclParent _pclXgafv _pclUploadProtocol
202+ (Just _pclPp)
203+ _pclAccessToken
204+ _pclUploadType
205+ _pclBearerToken
206+ _pclFilter
207+ _pclPageToken
208+ _pclPageSize
209+ _pclCallback
210+ (Just AltJSON)
211+ monitoringService
212+ where go
213+ = buildClient
214+ (Proxy :: Proxy ProjectsCategoriesListResource)
215+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/Create.hsnew file+196
@@ -0,0 +1,196 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Create a MetricAssociation.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.metricAssociations.create@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesMetricAssociationsCreateResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesMetricAssociationsCreate
33+ , ProjectsCategoriesMetricAssociationsCreate
34+
35+ -- * Request Lenses
36+ , pcmacParent
37+ , pcmacXgafv
38+ , pcmacUploadProtocol
39+ , pcmacPp
40+ , pcmacAccessToken
41+ , pcmacUploadType
42+ , pcmacPayload
43+ , pcmacBearerToken
44+ , pcmacCallback
45+ ) where
46+
47+import Network.Google.Monitoring.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @monitoring.projects.categories.metricAssociations.create@ method which the
51+-- 'ProjectsCategoriesMetricAssociationsCreate' request conforms to.
52+type ProjectsCategoriesMetricAssociationsCreateResource
53+ =
54+ "v3" :>
55+ Capture "parent" Text :>
56+ "metricAssociations" :>
57+ QueryParam "$.xgafv" Xgafv :>
58+ QueryParam "upload_protocol" Text :>
59+ QueryParam "pp" Bool :>
60+ QueryParam "access_token" Text :>
61+ QueryParam "uploadType" Text :>
62+ QueryParam "bearer_token" Text :>
63+ QueryParam "callback" Text :>
64+ QueryParam "alt" AltJSON :>
65+ ReqBody '[JSON] MetricAssociation :>
66+ Post '[JSON] MetricAssociation
67+
68+-- | Create a MetricAssociation.
69+--
70+-- /See:/ 'projectsCategoriesMetricAssociationsCreate' smart constructor.
71+data ProjectsCategoriesMetricAssociationsCreate = ProjectsCategoriesMetricAssociationsCreate'
72+ { _pcmacParent :: !Text
73+ , _pcmacXgafv :: !(Maybe Xgafv)
74+ , _pcmacUploadProtocol :: !(Maybe Text)
75+ , _pcmacPp :: !Bool
76+ , _pcmacAccessToken :: !(Maybe Text)
77+ , _pcmacUploadType :: !(Maybe Text)
78+ , _pcmacPayload :: !MetricAssociation
79+ , _pcmacBearerToken :: !(Maybe Text)
80+ , _pcmacCallback :: !(Maybe Text)
81+ } deriving (Eq,Show,Data,Typeable,Generic)
82+
83+-- | Creates a value of 'ProjectsCategoriesMetricAssociationsCreate' with the minimum fields required to make a request.
84+--
85+-- Use one of the following lenses to modify other fields as desired:
86+--
87+-- * 'pcmacParent'
88+--
89+-- * 'pcmacXgafv'
90+--
91+-- * 'pcmacUploadProtocol'
92+--
93+-- * 'pcmacPp'
94+--
95+-- * 'pcmacAccessToken'
96+--
97+-- * 'pcmacUploadType'
98+--
99+-- * 'pcmacPayload'
100+--
101+-- * 'pcmacBearerToken'
102+--
103+-- * 'pcmacCallback'
104+projectsCategoriesMetricAssociationsCreate
105+ :: Text -- ^ 'pcmacParent'
106+ -> MetricAssociation -- ^ 'pcmacPayload'
107+ -> ProjectsCategoriesMetricAssociationsCreate
108+projectsCategoriesMetricAssociationsCreate pPcmacParent_ pPcmacPayload_ =
109+ ProjectsCategoriesMetricAssociationsCreate'
110+ { _pcmacParent = pPcmacParent_
111+ , _pcmacXgafv = Nothing
112+ , _pcmacUploadProtocol = Nothing
113+ , _pcmacPp = True
114+ , _pcmacAccessToken = Nothing
115+ , _pcmacUploadType = Nothing
116+ , _pcmacPayload = pPcmacPayload_
117+ , _pcmacBearerToken = Nothing
118+ , _pcmacCallback = Nothing
119+ }
120+
121+-- | Resource parent of the category to get. Resource parent form is
122+-- projects\/{project_id_or_number}\/categories\/{short_name}.
123+pcmacParent :: Lens' ProjectsCategoriesMetricAssociationsCreate Text
124+pcmacParent
125+ = lens _pcmacParent (\ s a -> s{_pcmacParent = a})
126+
127+-- | V1 error format.
128+pcmacXgafv :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Xgafv)
129+pcmacXgafv
130+ = lens _pcmacXgafv (\ s a -> s{_pcmacXgafv = a})
131+
132+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
133+pcmacUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
134+pcmacUploadProtocol
135+ = lens _pcmacUploadProtocol
136+ (\ s a -> s{_pcmacUploadProtocol = a})
137+
138+-- | Pretty-print response.
139+pcmacPp :: Lens' ProjectsCategoriesMetricAssociationsCreate Bool
140+pcmacPp = lens _pcmacPp (\ s a -> s{_pcmacPp = a})
141+
142+-- | OAuth access token.
143+pcmacAccessToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
144+pcmacAccessToken
145+ = lens _pcmacAccessToken
146+ (\ s a -> s{_pcmacAccessToken = a})
147+
148+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
149+pcmacUploadType :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
150+pcmacUploadType
151+ = lens _pcmacUploadType
152+ (\ s a -> s{_pcmacUploadType = a})
153+
154+-- | Multipart request metadata.
155+pcmacPayload :: Lens' ProjectsCategoriesMetricAssociationsCreate MetricAssociation
156+pcmacPayload
157+ = lens _pcmacPayload (\ s a -> s{_pcmacPayload = a})
158+
159+-- | OAuth bearer token.
160+pcmacBearerToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
161+pcmacBearerToken
162+ = lens _pcmacBearerToken
163+ (\ s a -> s{_pcmacBearerToken = a})
164+
165+-- | JSONP
166+pcmacCallback :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
167+pcmacCallback
168+ = lens _pcmacCallback
169+ (\ s a -> s{_pcmacCallback = a})
170+
171+instance GoogleRequest
172+ ProjectsCategoriesMetricAssociationsCreate where
173+ type Rs ProjectsCategoriesMetricAssociationsCreate =
174+ MetricAssociation
175+ type Scopes
176+ ProjectsCategoriesMetricAssociationsCreate
177+ =
178+ '["https://www.googleapis.com/auth/cloud-platform",
179+ "https://www.googleapis.com/auth/monitoring"]
180+ requestClient
181+ ProjectsCategoriesMetricAssociationsCreate'{..}
182+ = go _pcmacParent _pcmacXgafv _pcmacUploadProtocol
183+ (Just _pcmacPp)
184+ _pcmacAccessToken
185+ _pcmacUploadType
186+ _pcmacBearerToken
187+ _pcmacCallback
188+ (Just AltJSON)
189+ _pcmacPayload
190+ monitoringService
191+ where go
192+ = buildClient
193+ (Proxy ::
194+ Proxy
195+ ProjectsCategoriesMetricAssociationsCreateResource)
196+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/Delete.hsnew file+182
@@ -0,0 +1,182 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Delete
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Delete a MetricAssociation.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.metricAssociations.delete@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Delete
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesMetricAssociationsDeleteResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesMetricAssociationsDelete
33+ , ProjectsCategoriesMetricAssociationsDelete
34+
35+ -- * Request Lenses
36+ , pcmadXgafv
37+ , pcmadUploadProtocol
38+ , pcmadPp
39+ , pcmadAccessToken
40+ , pcmadUploadType
41+ , pcmadBearerToken
42+ , pcmadName
43+ , pcmadCallback
44+ ) where
45+
46+import Network.Google.Monitoring.Types
47+import Network.Google.Prelude
48+
49+-- | A resource alias for @monitoring.projects.categories.metricAssociations.delete@ method which the
50+-- 'ProjectsCategoriesMetricAssociationsDelete' request conforms to.
51+type ProjectsCategoriesMetricAssociationsDeleteResource
52+ =
53+ "v3" :>
54+ Capture "name" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
56+ QueryParam "upload_protocol" Text :>
57+ QueryParam "pp" Bool :>
58+ QueryParam "access_token" Text :>
59+ QueryParam "uploadType" Text :>
60+ QueryParam "bearer_token" Text :>
61+ QueryParam "callback" Text :>
62+ QueryParam "alt" AltJSON :> Delete '[JSON] Empty
63+
64+-- | Delete a MetricAssociation.
65+--
66+-- /See:/ 'projectsCategoriesMetricAssociationsDelete' smart constructor.
67+data ProjectsCategoriesMetricAssociationsDelete = ProjectsCategoriesMetricAssociationsDelete'
68+ { _pcmadXgafv :: !(Maybe Xgafv)
69+ , _pcmadUploadProtocol :: !(Maybe Text)
70+ , _pcmadPp :: !Bool
71+ , _pcmadAccessToken :: !(Maybe Text)
72+ , _pcmadUploadType :: !(Maybe Text)
73+ , _pcmadBearerToken :: !(Maybe Text)
74+ , _pcmadName :: !Text
75+ , _pcmadCallback :: !(Maybe Text)
76+ } deriving (Eq,Show,Data,Typeable,Generic)
77+
78+-- | Creates a value of 'ProjectsCategoriesMetricAssociationsDelete' with the minimum fields required to make a request.
79+--
80+-- Use one of the following lenses to modify other fields as desired:
81+--
82+-- * 'pcmadXgafv'
83+--
84+-- * 'pcmadUploadProtocol'
85+--
86+-- * 'pcmadPp'
87+--
88+-- * 'pcmadAccessToken'
89+--
90+-- * 'pcmadUploadType'
91+--
92+-- * 'pcmadBearerToken'
93+--
94+-- * 'pcmadName'
95+--
96+-- * 'pcmadCallback'
97+projectsCategoriesMetricAssociationsDelete
98+ :: Text -- ^ 'pcmadName'
99+ -> ProjectsCategoriesMetricAssociationsDelete
100+projectsCategoriesMetricAssociationsDelete pPcmadName_ =
101+ ProjectsCategoriesMetricAssociationsDelete'
102+ { _pcmadXgafv = Nothing
103+ , _pcmadUploadProtocol = Nothing
104+ , _pcmadPp = True
105+ , _pcmadAccessToken = Nothing
106+ , _pcmadUploadType = Nothing
107+ , _pcmadBearerToken = Nothing
108+ , _pcmadName = pPcmadName_
109+ , _pcmadCallback = Nothing
110+ }
111+
112+-- | V1 error format.
113+pcmadXgafv :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Xgafv)
114+pcmadXgafv
115+ = lens _pcmadXgafv (\ s a -> s{_pcmadXgafv = a})
116+
117+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
118+pcmadUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Text)
119+pcmadUploadProtocol
120+ = lens _pcmadUploadProtocol
121+ (\ s a -> s{_pcmadUploadProtocol = a})
122+
123+-- | Pretty-print response.
124+pcmadPp :: Lens' ProjectsCategoriesMetricAssociationsDelete Bool
125+pcmadPp = lens _pcmadPp (\ s a -> s{_pcmadPp = a})
126+
127+-- | OAuth access token.
128+pcmadAccessToken :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Text)
129+pcmadAccessToken
130+ = lens _pcmadAccessToken
131+ (\ s a -> s{_pcmadAccessToken = a})
132+
133+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
134+pcmadUploadType :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Text)
135+pcmadUploadType
136+ = lens _pcmadUploadType
137+ (\ s a -> s{_pcmadUploadType = a})
138+
139+-- | OAuth bearer token.
140+pcmadBearerToken :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Text)
141+pcmadBearerToken
142+ = lens _pcmadBearerToken
143+ (\ s a -> s{_pcmadBearerToken = a})
144+
145+-- | Resource name of metric association to delete. Resource name form is
146+-- projects\/{project_id_or_number}\/
147+-- categories\/{short_name}\/metricAssociations\/{metric_name}.
148+pcmadName :: Lens' ProjectsCategoriesMetricAssociationsDelete Text
149+pcmadName
150+ = lens _pcmadName (\ s a -> s{_pcmadName = a})
151+
152+-- | JSONP
153+pcmadCallback :: Lens' ProjectsCategoriesMetricAssociationsDelete (Maybe Text)
154+pcmadCallback
155+ = lens _pcmadCallback
156+ (\ s a -> s{_pcmadCallback = a})
157+
158+instance GoogleRequest
159+ ProjectsCategoriesMetricAssociationsDelete where
160+ type Rs ProjectsCategoriesMetricAssociationsDelete =
161+ Empty
162+ type Scopes
163+ ProjectsCategoriesMetricAssociationsDelete
164+ =
165+ '["https://www.googleapis.com/auth/cloud-platform",
166+ "https://www.googleapis.com/auth/monitoring"]
167+ requestClient
168+ ProjectsCategoriesMetricAssociationsDelete'{..}
169+ = go _pcmadName _pcmadXgafv _pcmadUploadProtocol
170+ (Just _pcmadPp)
171+ _pcmadAccessToken
172+ _pcmadUploadType
173+ _pcmadBearerToken
174+ _pcmadCallback
175+ (Just AltJSON)
176+ monitoringService
177+ where go
178+ = buildClient
179+ (Proxy ::
180+ Proxy
181+ ProjectsCategoriesMetricAssociationsDeleteResource)
182+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Categories/MetricAssociations/List.hsnew file+225
@@ -0,0 +1,225 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- List the MetricAssociations in a given Category.
24+--
25+-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.categories.metricAssociations.list@.
26+module Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.List
27+ (
28+ -- * REST Resource
29+ ProjectsCategoriesMetricAssociationsListResource
30+
31+ -- * Creating a Request
32+ , projectsCategoriesMetricAssociationsList
33+ , ProjectsCategoriesMetricAssociationsList
34+
35+ -- * Request Lenses
36+ , pcmalParent
37+ , pcmalXgafv
38+ , pcmalUploadProtocol
39+ , pcmalPp
40+ , pcmalAccessToken
41+ , pcmalUploadType
42+ , pcmalBearerToken
43+ , pcmalFilter
44+ , pcmalPageToken
45+ , pcmalPageSize
46+ , pcmalCallback
47+ ) where
48+
49+import Network.Google.Monitoring.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @monitoring.projects.categories.metricAssociations.list@ method which the
53+-- 'ProjectsCategoriesMetricAssociationsList' request conforms to.
54+type ProjectsCategoriesMetricAssociationsListResource
55+ =
56+ "v3" :>
57+ Capture "parent" Text :>
58+ "metricAssociations" :>
59+ QueryParam "$.xgafv" Xgafv :>
60+ QueryParam "upload_protocol" Text :>
61+ QueryParam "pp" Bool :>
62+ QueryParam "access_token" Text :>
63+ QueryParam "uploadType" Text :>
64+ QueryParam "bearer_token" Text :>
65+ QueryParam "filter" Text :>
66+ QueryParam "pageToken" Text :>
67+ QueryParam "pageSize" (Textual Int32) :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :>
70+ Get '[JSON] ListMetricAssociationsResponse
71+
72+-- | List the MetricAssociations in a given Category.
73+--
74+-- /See:/ 'projectsCategoriesMetricAssociationsList' smart constructor.
75+data ProjectsCategoriesMetricAssociationsList = ProjectsCategoriesMetricAssociationsList'
76+ { _pcmalParent :: !Text
77+ , _pcmalXgafv :: !(Maybe Xgafv)
78+ , _pcmalUploadProtocol :: !(Maybe Text)
79+ , _pcmalPp :: !Bool
80+ , _pcmalAccessToken :: !(Maybe Text)
81+ , _pcmalUploadType :: !(Maybe Text)
82+ , _pcmalBearerToken :: !(Maybe Text)
83+ , _pcmalFilter :: !(Maybe Text)
84+ , _pcmalPageToken :: !(Maybe Text)
85+ , _pcmalPageSize :: !(Maybe (Textual Int32))
86+ , _pcmalCallback :: !(Maybe Text)
87+ } deriving (Eq,Show,Data,Typeable,Generic)
88+
89+-- | Creates a value of 'ProjectsCategoriesMetricAssociationsList' with the minimum fields required to make a request.
90+--
91+-- Use one of the following lenses to modify other fields as desired:
92+--
93+-- * 'pcmalParent'
94+--
95+-- * 'pcmalXgafv'
96+--
97+-- * 'pcmalUploadProtocol'
98+--
99+-- * 'pcmalPp'
100+--
101+-- * 'pcmalAccessToken'
102+--
103+-- * 'pcmalUploadType'
104+--
105+-- * 'pcmalBearerToken'
106+--
107+-- * 'pcmalFilter'
108+--
109+-- * 'pcmalPageToken'
110+--
111+-- * 'pcmalPageSize'
112+--
113+-- * 'pcmalCallback'
114+projectsCategoriesMetricAssociationsList
115+ :: Text -- ^ 'pcmalParent'
116+ -> ProjectsCategoriesMetricAssociationsList
117+projectsCategoriesMetricAssociationsList pPcmalParent_ =
118+ ProjectsCategoriesMetricAssociationsList'
119+ { _pcmalParent = pPcmalParent_
120+ , _pcmalXgafv = Nothing
121+ , _pcmalUploadProtocol = Nothing
122+ , _pcmalPp = True
123+ , _pcmalAccessToken = Nothing
124+ , _pcmalUploadType = Nothing
125+ , _pcmalBearerToken = Nothing
126+ , _pcmalFilter = Nothing
127+ , _pcmalPageToken = Nothing
128+ , _pcmalPageSize = Nothing
129+ , _pcmalCallback = Nothing
130+ }
131+
132+-- | Resource parent of the category to get. Resource parent form is
133+-- projects\/{project_id_or_number}\/categories\/{short_name}.
134+pcmalParent :: Lens' ProjectsCategoriesMetricAssociationsList Text
135+pcmalParent
136+ = lens _pcmalParent (\ s a -> s{_pcmalParent = a})
137+
138+-- | V1 error format.
139+pcmalXgafv :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Xgafv)
140+pcmalXgafv
141+ = lens _pcmalXgafv (\ s a -> s{_pcmalXgafv = a})
142+
143+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
144+pcmalUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
145+pcmalUploadProtocol
146+ = lens _pcmalUploadProtocol
147+ (\ s a -> s{_pcmalUploadProtocol = a})
148+
149+-- | Pretty-print response.
150+pcmalPp :: Lens' ProjectsCategoriesMetricAssociationsList Bool
151+pcmalPp = lens _pcmalPp (\ s a -> s{_pcmalPp = a})
152+
153+-- | OAuth access token.
154+pcmalAccessToken :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
155+pcmalAccessToken
156+ = lens _pcmalAccessToken
157+ (\ s a -> s{_pcmalAccessToken = a})
158+
159+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
160+pcmalUploadType :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
161+pcmalUploadType
162+ = lens _pcmalUploadType
163+ (\ s a -> s{_pcmalUploadType = a})
164+
165+-- | OAuth bearer token.
166+pcmalBearerToken :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
167+pcmalBearerToken
168+ = lens _pcmalBearerToken
169+ (\ s a -> s{_pcmalBearerToken = a})
170+
171+-- | A filter that specifies what MetricAssociations to return.
172+pcmalFilter :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
173+pcmalFilter
174+ = lens _pcmalFilter (\ s a -> s{_pcmalFilter = a})
175+
176+-- | If this field is not empty then it must contain the nextPageToken value
177+-- returned by a previous call to this method. Using this field causes the
178+-- method to return additional results from the previous method call.
179+pcmalPageToken :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
180+pcmalPageToken
181+ = lens _pcmalPageToken
182+ (\ s a -> s{_pcmalPageToken = a})
183+
184+-- | A positive number that is the maximum number of results to return. When
185+-- 0, use default page size.
186+pcmalPageSize :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Int32)
187+pcmalPageSize
188+ = lens _pcmalPageSize
189+ (\ s a -> s{_pcmalPageSize = a})
190+ . mapping _Coerce
191+
192+-- | JSONP
193+pcmalCallback :: Lens' ProjectsCategoriesMetricAssociationsList (Maybe Text)
194+pcmalCallback
195+ = lens _pcmalCallback
196+ (\ s a -> s{_pcmalCallback = a})
197+
198+instance GoogleRequest
199+ ProjectsCategoriesMetricAssociationsList where
200+ type Rs ProjectsCategoriesMetricAssociationsList =
201+ ListMetricAssociationsResponse
202+ type Scopes ProjectsCategoriesMetricAssociationsList
203+ =
204+ '["https://www.googleapis.com/auth/cloud-platform",
205+ "https://www.googleapis.com/auth/monitoring",
206+ "https://www.googleapis.com/auth/monitoring.read"]
207+ requestClient
208+ ProjectsCategoriesMetricAssociationsList'{..}
209+ = go _pcmalParent _pcmalXgafv _pcmalUploadProtocol
210+ (Just _pcmalPp)
211+ _pcmalAccessToken
212+ _pcmalUploadType
213+ _pcmalBearerToken
214+ _pcmalFilter
215+ _pcmalPageToken
216+ _pcmalPageSize
217+ _pcmalCallback
218+ (Just AltJSON)
219+ monitoringService
220+ where go
221+ = buildClient
222+ (Proxy ::
223+ Proxy
224+ ProjectsCategoriesMetricAssociationsListResource)
225+ mempty
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Groups/Members/List.hs+5−5
@@ -187,11 +187,11 @@ pgmlBearerToken
187187pgmlName :: Lens' ProjectsGroupsMembersList Text
188188pgmlName = lens _pgmlName (\ s a -> s{_pgmlName = a})
189189
190−-- | An optional list filter (\/monitoring\/api\/learn_more#filtering)
191−-- describing the members to be returned. The filter may reference the
192−-- type, labels, and metadata of monitored resources that comprise the
193−-- group. For example, to return only resources representing Compute Engine
194−-- VM instances, use this filter: resource.type = \"gce_instance\"
190+-- | An optional list filter describing the members to be returned. The
191+-- filter may reference the type, labels, and metadata of monitored
192+-- resources that comprise the group. For example, to return only resources
193+-- representing Compute Engine VM instances, use this filter: resource.type
194+-- = \"gce_instance\"
195195pgmlFilter :: Lens' ProjectsGroupsMembersList (Maybe Text)
196196pgmlFilter
197197 = lens _pgmlFilter (\ s a -> s{_pgmlFilter = a})
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/Create.hs+2−2
@@ -21,7 +21,7 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- Creates a new metric descriptor. User-created metric descriptors define
24−-- custom metrics (\/monitoring\/custom-metrics).
24+-- custom metrics.
2525--
2626-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.metricDescriptors.create@.
2727module Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Create
@@ -66,7 +66,7 @@ type ProjectsMetricDescriptorsCreateResource =
6666 Post '[JSON] MetricDescriptor
6767
6868-- | Creates a new metric descriptor. User-created metric descriptors define
69−-- custom metrics (\/monitoring\/custom-metrics).
69+-- custom metrics.
7070--
7171-- /See:/ 'projectsMetricDescriptorsCreate' smart constructor.
7272data ProjectsMetricDescriptorsCreate = ProjectsMetricDescriptorsCreate'
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/Delete.hs+4−4
@@ -20,8 +20,8 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Deletes a metric descriptor. Only user-created custom metrics
24−-- (\/monitoring\/custom-metrics) can be deleted.
23+-- Deletes a metric descriptor. Only user-created custom metrics can be
24+-- deleted.
2525--
2626-- /See:/ <https://cloud.google.com/monitoring/api/ Stackdriver Monitoring API Reference> for @monitoring.projects.metricDescriptors.delete@.
2727module Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete
@@ -61,8 +61,8 @@ type ProjectsMetricDescriptorsDeleteResource =
6161 QueryParam "callback" Text :>
6262 QueryParam "alt" AltJSON :> Delete '[JSON] Empty
6363
64−-- | Deletes a metric descriptor. Only user-created custom metrics
65−-- (\/monitoring\/custom-metrics) can be deleted.
64+-- | Deletes a metric descriptor. Only user-created custom metrics can be
65+-- deleted.
6666--
6767-- /See:/ 'projectsMetricDescriptorsDelete' smart constructor.
6868data ProjectsMetricDescriptorsDelete = ProjectsMetricDescriptorsDelete'
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/List.hs+3−5
@@ -169,11 +169,9 @@ pmdlName :: Lens' ProjectsMetricDescriptorsList Text
169169pmdlName = lens _pmdlName (\ s a -> s{_pmdlName = a})
170170
171171-- | If this field is empty, all custom and system-defined metric descriptors
172−-- are returned. Otherwise, the filter (\/monitoring\/api\/v3\/filters)
173−-- specifies which metric descriptors are to be returned. For example, the
174−-- following filter matches all custom metrics
175−-- (\/monitoring\/custom-metrics): metric.type =
176−-- starts_with(\"custom.googleapis.com\/\")
172+-- are returned. Otherwise, the filter specifies which metric descriptors
173+-- are to be returned. For example, the following filter matches all custom
174+-- metrics: metric.type = starts_with(\"custom.googleapis.com\/\")
177175pmdlFilter :: Lens' ProjectsMetricDescriptorsList (Maybe Text)
178176pmdlFilter
179177 = lens _pmdlFilter (\ s a -> s{_pmdlFilter = a})
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MonitoredResourceDescriptors/List.hs+5−5
@@ -171,11 +171,11 @@ pmrdlName :: Lens' ProjectsMonitoredResourceDescriptorsList Text
171171pmrdlName
172172 = lens _pmrdlName (\ s a -> s{_pmrdlName = a})
173173
174−-- | An optional filter (\/monitoring\/api\/v3\/filters) describing the
175−-- descriptors to be returned. The filter can reference the descriptor\'s
176−-- type and labels. For example, the following filter returns only Google
177−-- Compute Engine descriptors that have an id label: resource.type =
178−-- starts_with(\"gce_\") AND resource.label:id
174+-- | An optional filter describing the descriptors to be returned. The filter
175+-- can reference the descriptor\'s type and labels. For example, the
176+-- following filter returns only Google Compute Engine descriptors that
177+-- have an id label: resource.type = starts_with(\"gce_\") AND
178+-- resource.label:id
179179pmrdlFilter :: Lens' ProjectsMonitoredResourceDescriptorsList (Maybe Text)
180180pmrdlFilter
181181 = lens _pmrdlFilter (\ s a -> s{_pmrdlFilter = a})
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/TimeSeries/List.hs+10−8
@@ -257,10 +257,13 @@ ptslName = lens _ptslName (\ s a -> s{_ptslName = a})
257257-- prior to applying the aggregation function. Each subset contains time
258258-- series that have the same value for each of the grouping fields. Each
259259-- individual time series is a member of exactly one subset. The
260−-- crossSeriesReducer is applied to each subset of time series. Fields not
261−-- specified in groupByFields are aggregated away. If groupByFields is not
262−-- specified, the time series are aggregated into a single output time
263−-- series. If crossSeriesReducer is not defined, this field is ignored.
260+-- crossSeriesReducer is applied to each subset of time series. It is not
261+-- possible to reduce across different resource types, so this field
262+-- implicitly contains resource.type. Fields not specified in groupByFields
263+-- are aggregated away. If groupByFields is not specified and all the time
264+-- series have the same resource type, then the time series are aggregated
265+-- into a single output time series. If crossSeriesReducer is not defined,
266+-- this field is ignored.
264267ptslAggregationGroupByFields :: Lens' ProjectsTimeSeriesList [Text]
265268ptslAggregationGroupByFields
266269 = lens _ptslAggregationGroupByFields
@@ -285,10 +288,9 @@ ptslAggregationCrossSeriesReducer
285288 = lens _ptslAggregationCrossSeriesReducer
286289 (\ s a -> s{_ptslAggregationCrossSeriesReducer = a})
287290
288−-- | A monitoring filter (\/monitoring\/api\/v3\/filters) that specifies
289−-- which time series should be returned. The filter must specify a single
290−-- metric type, and can additionally specify metric labels and other
291−-- information. For example: metric.type =
291+-- | A monitoring filter that specifies which time series should be returned.
292+-- The filter must specify a single metric type, and can additionally
293+-- specify metric labels and other information. For example: metric.type =
292294-- \"compute.googleapis.com\/instance\/cpu\/usage_time\" AND
293295-- metric.label.instance_name = \"my-instance-name\"
294296ptslFilter :: Lens' ProjectsTimeSeriesList (Maybe Text)
gogol-monitoring/gogol-monitoring.cabal+8
@@ -37,6 +37,14 @@ library
3737 exposed-modules:
3838 Network.Google.Monitoring
3939 , Network.Google.Monitoring.Types
40+ , Network.Google.Resource.Monitoring.Categories.List
41+ , Network.Google.Resource.Monitoring.Categories.MetricAssociations.List
42+ , Network.Google.Resource.Monitoring.Projects.Categories.Create
43+ , Network.Google.Resource.Monitoring.Projects.Categories.Delete
44+ , Network.Google.Resource.Monitoring.Projects.Categories.List
45+ , Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Create
46+ , Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.Delete
47+ , Network.Google.Resource.Monitoring.Projects.Categories.MetricAssociations.List
4048 , Network.Google.Resource.Monitoring.Projects.CollectdTimeSeries.Create
4149 , Network.Google.Resource.Monitoring.Projects.Groups.Create
4250 , Network.Google.Resource.Monitoring.Projects.Groups.Delete