Skip to content

Commit f992360

Browse files
committed
Fixed documentation to pass jslint rules
1 parent 791ea5c commit f992360

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

lib/compute/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,8 @@ Compute.prototype.getFirewalls = function(options, callback) {
11841184
* representing part of the larger set of results to view.
11851185
* @param {function} callback - The callback function.
11861186
* @param {?error} callback.err - An error returned while making this request.
1187-
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects from
1188-
* your project.
1187+
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects
1188+
* from your project.
11891189
* @param {?object} callback.nextQuery - If present, query with this object to
11901190
* check for more results.
11911191
* @param {object} callback.apiResponse - The full API response.

lib/compute/network.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ Network.prototype.createFirewall = function(name, config, callback) {
235235
* are owned by this subnetwork. Provide this property when you create the
236236
* subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be
237237
* unique and non-overlapping within a network.
238-
* @param {string} config.region - URL of the region where the Subnetwork resides.
238+
* @param {string} config.region - URL of the region where the Subnetwork
239+
* resides.
239240
* @param {function} callback - The callback function.
240241
* @param {?error} callback.err - An error returned while making this request.
241242
* @param {module:compute/rule} callback.rule - The created Rule object.
@@ -251,7 +252,8 @@ Network.prototype.createFirewall = function(name, config, callback) {
251252
* ipCidrRange: '10.0.1.0/24'
252253
* };
253254
*
254-
* network.createSubnetwork(name, config, function (err, subnetwork, operation, apiResponse) {
255+
* network.createSubnetwork(name, config,
256+
* function (err, subnetwork, operation, apiResponse) {
255257
* // `subnetwork` is a Subnetwork object.
256258
*
257259
* // `operation` is an Operation object that can be used to check the status
@@ -290,8 +292,8 @@ Network.prototype.createSubnetwork = function(name, config, callback) {
290292
* representing part of the larger set of results to view.
291293
* @param {function} callback - The callback function.
292294
* @param {?error} callback.err - An error returned while making this request.
293-
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects from
294-
* your project.
295+
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects
296+
* from your project.
295297
* @param {?object} callback.nextQuery - If present, query with this object to
296298
* check for more results.
297299
* @param {object} callback.apiResponse - The full API response.

lib/compute/region.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ Region.prototype.createAddress = function(name, options, callback) {
242242
* representing part of the larger set of results to view.
243243
* @param {function} callback - The callback function.
244244
* @param {?error} callback.err - An error returned while making this request.
245-
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects from
246-
* your project.
245+
* @param {module:compute/firewall} callback.subnetworks - Subnetwork objects
246+
* from your project.
247247
* @param {?object} callback.nextQuery - If present, query with this object to
248248
* check for more results.
249249
* @param {object} callback.apiResponse - The full API response.
@@ -334,8 +334,10 @@ Region.prototype.subnetwork = function(name) {
334334
* unique and non-overlapping within a network.
335335
* @param {string} config.network - The URL of the network to which this
336336
* subnetwork belongs, provided by the client when initially creating
337-
* the subnetwork. Only networks that are in the distributed mode can have subnetworks.
338-
* @param {string=} config.region - URL of the region where the Subnetwork resides.
337+
* the subnetwork. Only networks that are in the distributed mode can have
338+
* subnetworks.
339+
* @param {string=} config.region - URL of the region where the Subnetwork
340+
* resides.
339341
* @param {function} callback - The callback function.
340342
* @param {?error} callback.err - An error returned while making this request.
341343
* @param {module:compute/rule} callback.rule - The created Rule object.
@@ -351,7 +353,8 @@ Region.prototype.subnetwork = function(name) {
351353
* ipCidrRange: '10.0.1.0/24'
352354
* };
353355
*
354-
* region.createSubnetwork(name, config, function (err, subnetwork, operation, apiResponse) {
356+
* region.createSubnetwork(name, config,
357+
* function (err, subnetwork, operation, apiResponse) {
355358
* // `subnetwork` is a Subnetwork object.
356359
*
357360
* // `operation` is an Operation object that can be used to check the status

lib/compute/subnetwork.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ function Subnetwork(region, name) {
8585
* // ...
8686
* };
8787
*
88-
* subnetwork.create(config, function(err, subnetwork, operation, apiResponse) {
88+
* subnetwork.create(config,
89+
* function(err, subnetwork, operation, apiResponse) {
8990
* // `subnetwork` is a Subnetwork object.
9091
*
9192
* // `operation` is an Operation object that can be used to check the

0 commit comments

Comments
 (0)