Skip to content

Commit

Permalink
rename Instance to VM
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Aug 13, 2015
1 parent d8add07 commit 2b303b6
Show file tree
Hide file tree
Showing 15 changed files with 473 additions and 303 deletions.
8 changes: 4 additions & 4 deletions docs/site/components/docs/docs-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ angular.module('gcloud.docs')
title: 'Firewall',
url: '/firewall'
},
{
title: 'Instance',
url: '/instance'
},
{
title: 'Network',
url: '/network'
Expand All @@ -75,6 +71,10 @@ angular.module('gcloud.docs')
title: 'Snapshot',
url: '/snapshot'
},
{
title: 'VM',
url: '/vm'
},
{
title: 'Zone',
url: '/zone'
Expand Down
4 changes: 2 additions & 2 deletions lib/compute/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var util = require('../common/util.js');
* projectId: 'grape-spaceship-123'
* });
*
* var compute = gcloud.compute();
* var gce = gcloud.compute();
*
* var region = compute.region('region-name');
* var region = gce.region('region-name');
*
* var address = region.address('address1');
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/compute/disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ var util = require('../common/util.js');
* projectId: 'grape-spaceship-123'
* });
*
* var compute = gcloud.compute();
* var gce = gcloud.compute();
*
* var zone = compute.zone('zone-name');
* var zone = gce.zone('zone-name');
*
* var disk = zone.disk('disk1');
*/
Expand Down
8 changes: 4 additions & 4 deletions lib/compute/firewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var util = require('../common/util.js');
* projectId: 'grape-spaceship-123'
* });
*
* var compute = gcloud.compute();
* var gce = gcloud.compute();
*
* var firewall = compute.firewall('tcp-3000');
* var firewall = gce.firewall('tcp-3000');
*/
function Firewall(compute, name) {
this.compute = compute;
Expand Down Expand Up @@ -129,7 +129,7 @@ Firewall.prototype.getMetadata = function(callback) {
* });
*/
Firewall.prototype.setMetadata = function(metadata, callback) {
var self = this;
var compute = this.compute;

callback = callback || util.noop;

Expand All @@ -143,7 +143,7 @@ Firewall.prototype.setMetadata = function(metadata, callback) {
return;
}

var operation = self.compute.operation(resp.name);
var operation = compute.operation(resp.name);
operation.metadata = resp;

callback(null, operation, resp);
Expand Down
Loading

0 comments on commit 2b303b6

Please sign in to comment.