Skip to content

Commit 9efe9b1

Browse files
committed
Regenerated per toolkit revisions
1 parent 0b3635d commit 9efe9b1

3 files changed

Lines changed: 46 additions & 54 deletions

File tree

packages/monitoring/src/v3/group_service_api.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ var GROUP_PATH_TEMPLATE = new gax.PathTemplate(
140140
* @param {String} project
141141
* @returns {String}
142142
*/
143-
GroupServiceApi.prototype.projectPath = function projectPath(project) {
143+
GroupServiceApi.prototype.projectPath = function(project) {
144144
return PROJECT_PATH_TEMPLATE.render({
145145
project: project
146146
});
@@ -152,8 +152,7 @@ GroupServiceApi.prototype.projectPath = function projectPath(project) {
152152
* A fully-qualified path representing a project resources.
153153
* @returns {String} - A string representing the project.
154154
*/
155-
GroupServiceApi.prototype.matchProjectFromProjectName =
156-
function matchProjectFromProjectName(projectName) {
155+
GroupServiceApi.prototype.matchProjectFromProjectName = function(projectName) {
157156
return PROJECT_PATH_TEMPLATE.match(projectName).project;
158157
};
159158

@@ -163,7 +162,7 @@ GroupServiceApi.prototype.matchProjectFromProjectName =
163162
* @param {String} group
164163
* @returns {String}
165164
*/
166-
GroupServiceApi.prototype.groupPath = function groupPath(project, group) {
165+
GroupServiceApi.prototype.groupPath = function(project, group) {
167166
return GROUP_PATH_TEMPLATE.render({
168167
project: project,
169168
group: group
@@ -176,8 +175,7 @@ GroupServiceApi.prototype.groupPath = function groupPath(project, group) {
176175
* A fully-qualified path representing a group resources.
177176
* @returns {String} - A string representing the project.
178177
*/
179-
GroupServiceApi.prototype.matchProjectFromGroupName =
180-
function matchProjectFromGroupName(groupName) {
178+
GroupServiceApi.prototype.matchProjectFromGroupName = function(groupName) {
181179
return GROUP_PATH_TEMPLATE.match(groupName).project;
182180
};
183181

@@ -187,8 +185,7 @@ GroupServiceApi.prototype.matchProjectFromGroupName =
187185
* A fully-qualified path representing a group resources.
188186
* @returns {String} - A string representing the group.
189187
*/
190-
GroupServiceApi.prototype.matchGroupFromGroupName =
191-
function matchGroupFromGroupName(groupName) {
188+
GroupServiceApi.prototype.matchGroupFromGroupName = function(groupName) {
192189
return GROUP_PATH_TEMPLATE.match(groupName).group;
193190
};
194191

@@ -262,7 +259,7 @@ GroupServiceApi.prototype.matchGroupFromGroupName =
262259
* }
263260
* api.listGroups(formattedName, {flattenPages: false}, callback);
264261
*/
265-
GroupServiceApi.prototype.listGroups = function listGroups(
262+
GroupServiceApi.prototype.listGroups = function(
266263
name,
267264
options,
268265
callback) {
@@ -319,7 +316,7 @@ GroupServiceApi.prototype.listGroups = function listGroups(
319316
* // doThingsWith(response)
320317
* });
321318
*/
322-
GroupServiceApi.prototype.getGroup = function getGroup(
319+
GroupServiceApi.prototype.getGroup = function(
323320
name,
324321
options,
325322
callback) {
@@ -375,7 +372,7 @@ GroupServiceApi.prototype.getGroup = function getGroup(
375372
* // doThingsWith(response)
376373
* });
377374
*/
378-
GroupServiceApi.prototype.createGroup = function createGroup(
375+
GroupServiceApi.prototype.createGroup = function(
379376
name,
380377
group,
381378
options,
@@ -433,7 +430,7 @@ GroupServiceApi.prototype.createGroup = function createGroup(
433430
* // doThingsWith(response)
434431
* });
435432
*/
436-
GroupServiceApi.prototype.updateGroup = function updateGroup(
433+
GroupServiceApi.prototype.updateGroup = function(
437434
group,
438435
options,
439436
callback) {
@@ -477,7 +474,7 @@ GroupServiceApi.prototype.updateGroup = function updateGroup(
477474
* }
478475
* });
479476
*/
480-
GroupServiceApi.prototype.deleteGroup = function deleteGroup(
477+
GroupServiceApi.prototype.deleteGroup = function(
481478
name,
482479
options,
483480
callback) {
@@ -562,7 +559,7 @@ GroupServiceApi.prototype.deleteGroup = function deleteGroup(
562559
* }
563560
* api.listGroupMembers(formattedName, {flattenPages: false}, callback);
564561
*/
565-
GroupServiceApi.prototype.listGroupMembers = function listGroupMembers(
562+
GroupServiceApi.prototype.listGroupMembers = function(
566563
name,
567564
options,
568565
callback) {

packages/monitoring/src/v3/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ function v3(options) {
3131
return result;
3232
}
3333
v3.SERVICE_ADDRESS = groupServiceApi.SERVICE_ADDRESS;
34-
v3.ALL_SCOPES = [];
34+
v3.ALL_SCOPES = [];
3535
module.exports = v3;

packages/monitoring/src/v3/metric_service_api.js

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ function MetricServiceApi(gaxGrpc, grpcClients, opts) {
128128
var 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

134134
var 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

Comments
 (0)