This repository was archived by the owner on Jul 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 77 "release_level" : " alpha" ,
88 "language" : " nodejs" ,
99 "repo" : " googleapis/nodejs-resource-manager" ,
10- "distribution_name" : " @google-cloud/resource" ,
10+ "distribution_name" : " @google-cloud/resource-manager " ,
1111 "api_id" : " cloudresourcemanager.googleapis.com" ,
1212 "requires_billing" : true
1313}
Original file line number Diff line number Diff line change 22
33[ npm history] [ 1 ]
44
5- [ 1 ] : https://www.npmjs.com/package/@google-cloud/resource?activeTab=versions
5+ [ 1 ] : https://www.npmjs.com/package/@google-cloud/resource-manager ?activeTab=versions
66
77## [ 1.3.0] ( https://www.github.com/googleapis/nodejs-resource-manager/compare/v1.2.1...v1.3.0 ) (2021-05-25)
88
@@ -155,13 +155,13 @@ The import syntax for this library has changed to support es modules.
155155
156156__ old code__
157157``` js
158- const Resource = require (' @google-cloud/resource' );
158+ const Resource = require (' @google-cloud/resource-manager ' );
159159const resource = Resource ({... });
160160```
161161
162162__ new code__
163163``` js
164- const {Resource } = require (' @google-cloud/resource' );
164+ const {Resource } = require (' @google-cloud/resource-manager ' );
165165const resource = Resource ({... });
166166```
167167
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ npm install @google-cloud/resource-manager
7070
7171``` javascript
7272// Imports the Google Cloud client library
73- const {Resource } = require (' @google-cloud/resource' );
73+ const {Resource } = require (' @google-cloud/resource-manager ' );
7474
7575// Creates a client
7676const resource = new Resource ();
Original file line number Diff line number Diff line change 2222async function main ( ) {
2323 // [START resource_list_projects]
2424 // Imports the Google Cloud client library
25- const { Resource} = require ( '@google-cloud/resource' ) ;
25+ const { Resource} = require ( '@google-cloud/resource-manager ' ) ;
2626
2727 // Creates a client
2828 const resource = new Resource ( ) ;
Original file line number Diff line number Diff line change 1414 "test" : " mocha --timeout=600000"
1515 },
1616 "dependencies" : {
17- "@google-cloud/resource" : " ^1.2.1 "
17+ "@google-cloud/resource-manager " : " ^1.3.0 "
1818 },
1919 "devDependencies" : {
2020 "chai" : " ^4.2.0" ,
Original file line number Diff line number Diff line change 1717async function main ( ) {
1818 // [START resource_quickstart]
1919 // Imports the Google Cloud client library
20- const { Resource} = require ( '@google-cloud/resource' ) ;
20+ const { Resource} = require ( '@google-cloud/resource-manager ' ) ;
2121
2222 // Creates a client
2323 const resource = new Resource ( ) ;
You can’t perform that action at this time.
0 commit comments