@@ -128,8 +128,8 @@ function MetricServiceApi(gaxGrpc, grpcClients, opts) {
128128var PROJECT_PATH_TEMPLATE = new gax . PathTemplate (
129129 'projects/{project}' ) ;
130130
131- var METRIC_DESCRIPTOR_PATH_PATH_TEMPLATE = new gax . PathTemplate (
132- 'projects/{project}/metricDescriptors/{metric_descriptor_path =**}' ) ;
131+ var METRIC_DESCRIPTOR_PATH_TEMPLATE = new gax . PathTemplate (
132+ 'projects/{project}/metricDescriptors/{metric_descriptor =**}' ) ;
133133
134134var MONITORED_RESOURCE_DESCRIPTOR_PATH_TEMPLATE = new gax . PathTemplate (
135135 'projects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}' ) ;
@@ -139,7 +139,7 @@ var MONITORED_RESOURCE_DESCRIPTOR_PATH_TEMPLATE = new gax.PathTemplate(
139139 * @param {String } project
140140 * @returns {String }
141141 */
142- MetricServiceApi . prototype . projectPath = function projectPath ( project ) {
142+ MetricServiceApi . prototype . projectPath = function ( project ) {
143143 return PROJECT_PATH_TEMPLATE . render ( {
144144 project : project
145145 } ) ;
@@ -151,44 +151,41 @@ MetricServiceApi.prototype.projectPath = function projectPath(project) {
151151 * A fully-qualified path representing a project resources.
152152 * @returns {String } - A string representing the project.
153153 */
154- MetricServiceApi . prototype . matchProjectFromProjectName =
155- function matchProjectFromProjectName ( projectName ) {
154+ MetricServiceApi . prototype . matchProjectFromProjectName = function ( projectName ) {
156155 return PROJECT_PATH_TEMPLATE . match ( projectName ) . project ;
157156} ;
158157
159158/**
160- * Returns a fully-qualified metric_descriptor_path resource name string.
159+ * Returns a fully-qualified metric_descriptor resource name string.
161160 * @param {String } project
162- * @param {String } metric_descriptor_path
161+ * @param {String } metric_descriptor
163162 * @returns {String }
164163 */
165- MetricServiceApi . prototype . metricDescriptorPathPath = function metricDescriptorPathPath ( project , metric_descriptor_path ) {
166- return METRIC_DESCRIPTOR_PATH_PATH_TEMPLATE . render ( {
164+ MetricServiceApi . prototype . metricDescriptorPath = function ( project , metricDescriptor ) {
165+ return METRIC_DESCRIPTOR_PATH_TEMPLATE . render ( {
167166 project : project ,
168- metric_descriptor_path : metric_descriptor_path
167+ metric_descriptor : metricDescriptor
169168 } ) ;
170169} ;
171170
172171/**
173- * Parses the metricDescriptorPathName from a metric_descriptor_path resource.
174- * @param {String } metricDescriptorPathName
175- * A fully-qualified path representing a metric_descriptor_path resources.
172+ * Parses the metricDescriptorName from a metric_descriptor resource.
173+ * @param {String } metricDescriptorName
174+ * A fully-qualified path representing a metric_descriptor resources.
176175 * @returns {String } - A string representing the project.
177176 */
178- MetricServiceApi . prototype . matchProjectFromMetricDescriptorPathName =
179- function matchProjectFromMetricDescriptorPathName ( metricDescriptorPathName ) {
180- return METRIC_DESCRIPTOR_PATH_PATH_TEMPLATE . match ( metricDescriptorPathName ) . project ;
177+ MetricServiceApi . prototype . matchProjectFromMetricDescriptorName = function ( metricDescriptorName ) {
178+ return METRIC_DESCRIPTOR_PATH_TEMPLATE . match ( metricDescriptorName ) . project ;
181179} ;
182180
183181/**
184- * Parses the metricDescriptorPathName from a metric_descriptor_path resource.
185- * @param {String } metricDescriptorPathName
186- * A fully-qualified path representing a metric_descriptor_path resources.
187- * @returns {String } - A string representing the metric_descriptor_path .
182+ * Parses the metricDescriptorName from a metric_descriptor resource.
183+ * @param {String } metricDescriptorName
184+ * A fully-qualified path representing a metric_descriptor resources.
185+ * @returns {String } - A string representing the metric_descriptor .
188186 */
189- MetricServiceApi . prototype . matchMetricDescriptorPathFromMetricDescriptorPathName =
190- function matchMetricDescriptorPathFromMetricDescriptorPathName ( metricDescriptorPathName ) {
191- return METRIC_DESCRIPTOR_PATH_PATH_TEMPLATE . match ( metricDescriptorPathName ) . metric_descriptor_path ;
187+ MetricServiceApi . prototype . matchMetricDescriptorFromMetricDescriptorName = function ( metricDescriptorName ) {
188+ return METRIC_DESCRIPTOR_PATH_TEMPLATE . match ( metricDescriptorName ) . metric_descriptor ;
192189} ;
193190
194191/**
@@ -197,10 +194,10 @@ MetricServiceApi.prototype.matchMetricDescriptorPathFromMetricDescriptorPathName
197194 * @param {String } monitored_resource_descriptor
198195 * @returns {String }
199196 */
200- MetricServiceApi . prototype . monitoredResourceDescriptorPath = function monitoredResourceDescriptorPath ( project , monitored_resource_descriptor ) {
197+ MetricServiceApi . prototype . monitoredResourceDescriptorPath = function ( project , monitoredResourceDescriptor ) {
201198 return MONITORED_RESOURCE_DESCRIPTOR_PATH_TEMPLATE . render ( {
202199 project : project ,
203- monitored_resource_descriptor : monitored_resource_descriptor
200+ monitored_resource_descriptor : monitoredResourceDescriptor
204201 } ) ;
205202} ;
206203
@@ -210,8 +207,7 @@ MetricServiceApi.prototype.monitoredResourceDescriptorPath = function monitoredR
210207 * A fully-qualified path representing a monitored_resource_descriptor resources.
211208 * @returns {String } - A string representing the project.
212209 */
213- MetricServiceApi . prototype . matchProjectFromMonitoredResourceDescriptorName =
214- function matchProjectFromMonitoredResourceDescriptorName ( monitoredResourceDescriptorName ) {
210+ MetricServiceApi . prototype . matchProjectFromMonitoredResourceDescriptorName = function ( monitoredResourceDescriptorName ) {
215211 return MONITORED_RESOURCE_DESCRIPTOR_PATH_TEMPLATE . match ( monitoredResourceDescriptorName ) . project ;
216212} ;
217213
@@ -221,8 +217,7 @@ MetricServiceApi.prototype.matchProjectFromMonitoredResourceDescriptorName =
221217 * A fully-qualified path representing a monitored_resource_descriptor resources.
222218 * @returns {String } - A string representing the monitored_resource_descriptor.
223219 */
224- MetricServiceApi . prototype . matchMonitoredResourceDescriptorFromMonitoredResourceDescriptorName =
225- function matchMonitoredResourceDescriptorFromMonitoredResourceDescriptorName ( monitoredResourceDescriptorName ) {
220+ MetricServiceApi . prototype . matchMonitoredResourceDescriptorFromMonitoredResourceDescriptorName = function ( monitoredResourceDescriptorName ) {
226221 return MONITORED_RESOURCE_DESCRIPTOR_PATH_TEMPLATE . match ( monitoredResourceDescriptorName ) . monitored_resource_descriptor ;
227222} ;
228223
@@ -289,7 +284,7 @@ MetricServiceApi.prototype.matchMonitoredResourceDescriptorFromMonitoredResource
289284 * }
290285 * api.listMonitoredResourceDescriptors(formattedName, {flattenPages: false}, callback);
291286 */
292- MetricServiceApi . prototype . listMonitoredResourceDescriptors = function listMonitoredResourceDescriptors (
287+ MetricServiceApi . prototype . listMonitoredResourceDescriptors = function (
293288 name ,
294289 options ,
295290 callback ) {
@@ -342,7 +337,7 @@ MetricServiceApi.prototype.listMonitoredResourceDescriptors = function listMonit
342337 * // doThingsWith(response)
343338 * });
344339 */
345- MetricServiceApi . prototype . getMonitoredResourceDescriptor = function getMonitoredResourceDescriptor (
340+ MetricServiceApi . prototype . getMonitoredResourceDescriptor = function (
346341 name ,
347342 options ,
348343 callback ) {
@@ -421,7 +416,7 @@ MetricServiceApi.prototype.getMonitoredResourceDescriptor = function getMonitore
421416 * }
422417 * api.listMetricDescriptors(formattedName, {flattenPages: false}, callback);
423418 */
424- MetricServiceApi . prototype . listMetricDescriptors = function listMetricDescriptors (
419+ MetricServiceApi . prototype . listMetricDescriptors = function (
425420 name ,
426421 options ,
427422 callback ) {
@@ -465,7 +460,7 @@ MetricServiceApi.prototype.listMetricDescriptors = function listMetricDescriptor
465460 * @example
466461 *
467462 * var api = monitoringV3.metricServiceApi();
468- * var formattedName = api.metricDescriptorPathPath ("[PROJECT]", "[METRIC_DESCRIPTOR_PATH ]");
463+ * var formattedName = api.metricDescriptorPath ("[PROJECT]", "[METRIC_DESCRIPTOR ]");
469464 * api.getMetricDescriptor(formattedName, function(err, response) {
470465 * if (err) {
471466 * console.error(err);
@@ -474,7 +469,7 @@ MetricServiceApi.prototype.listMetricDescriptors = function listMetricDescriptor
474469 * // doThingsWith(response)
475470 * });
476471 */
477- MetricServiceApi . prototype . getMetricDescriptor = function getMetricDescriptor (
472+ MetricServiceApi . prototype . getMetricDescriptor = function (
478473 name ,
479474 options ,
480475 callback ) {
@@ -527,7 +522,7 @@ MetricServiceApi.prototype.getMetricDescriptor = function getMetricDescriptor(
527522 * // doThingsWith(response)
528523 * });
529524 */
530- MetricServiceApi . prototype . createMetricDescriptor = function createMetricDescriptor (
525+ MetricServiceApi . prototype . createMetricDescriptor = function (
531526 name ,
532527 metricDescriptor ,
533528 options ,
@@ -566,14 +561,14 @@ MetricServiceApi.prototype.createMetricDescriptor = function createMetricDescrip
566561 * @example
567562 *
568563 * var api = monitoringV3.metricServiceApi();
569- * var formattedName = api.metricDescriptorPathPath ("[PROJECT]", "[METRIC_DESCRIPTOR_PATH ]");
564+ * var formattedName = api.metricDescriptorPath ("[PROJECT]", "[METRIC_DESCRIPTOR ]");
570565 * api.deleteMetricDescriptor(formattedName, function(err) {
571566 * if (err) {
572567 * console.error(err);
573568 * }
574569 * });
575570 */
576- MetricServiceApi . prototype . deleteMetricDescriptor = function deleteMetricDescriptor (
571+ MetricServiceApi . prototype . deleteMetricDescriptor = function (
577572 name ,
578573 options ,
579574 callback ) {
@@ -674,7 +669,7 @@ MetricServiceApi.prototype.deleteMetricDescriptor = function deleteMetricDescrip
674669 * }
675670 * api.listTimeSeries(formattedName, filter, interval, view, {flattenPages: false}, callback);
676671 */
677- MetricServiceApi . prototype . listTimeSeries = function listTimeSeries (
672+ MetricServiceApi . prototype . listTimeSeries = function (
678673 name ,
679674 filter ,
680675 interval ,
@@ -742,7 +737,7 @@ MetricServiceApi.prototype.listTimeSeries = function listTimeSeries(
742737 * }
743738 * });
744739 */
745- MetricServiceApi . prototype . createTimeSeries = function createTimeSeries (
740+ MetricServiceApi . prototype . createTimeSeries = function (
746741 name ,
747742 timeSeries ,
748743 options ,
0 commit comments