|
1 | | -<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> |
| 1 | +Samples for the [Google Cloud Resource Manager API Node.js Client][client] have moved |
| 2 | +to [github.com/googleapis/nodejs-resource/tree/master/samples/][samples]. |
2 | 3 |
|
3 | | -# Google Cloud Resource Manager API Node.js Samples |
4 | | - |
5 | | -[]() |
6 | | - |
7 | | -Google Cloud Platform provides container resources such as Organizations and Projects, that allow you to group and hierarchically organize other Cloud Platform resources. This hierarchical organization lets you easily manage common aspects of your resources such as access control and configuration settings. The [Cloud Resource Manager API](https://cloud.google.com/resource-manager/docs/) enables you to programmatically manage these container resources. |
8 | | - |
9 | | -## Table of Contents |
10 | | - |
11 | | -* [Setup](#setup) |
12 | | -* [Samples](#samples) |
13 | | - * [Projects](#projects) |
14 | | -* [Running the tests](#running-the-tests) |
15 | | - |
16 | | -## Setup |
17 | | - |
18 | | -1. Read [Prerequisites][prereq] and [How to run a sample][run] first. |
19 | | -1. Install dependencies: |
20 | | - |
21 | | - With **npm**: |
22 | | - |
23 | | - npm install |
24 | | - |
25 | | - With **yarn**: |
26 | | - |
27 | | - yarn install |
28 | | - |
29 | | -[prereq]: ../README.md#prerequisites |
30 | | -[run]: ../README.md#how-to-run-a-sample |
31 | | - |
32 | | -## Samples |
33 | | - |
34 | | -### Projects |
35 | | - |
36 | | -View the [documentation][projects_0_docs] or the [source code][projects_0_code]. |
37 | | - |
38 | | -__Usage:__ `node projects.js --help` |
39 | | - |
40 | | -``` |
41 | | -Commands: |
42 | | - list List all current projects. |
43 | | -
|
44 | | -Options: |
45 | | - --help Show help [boolean] |
46 | | -
|
47 | | -Examples: |
48 | | - node projects.js list Lists all current projects. |
49 | | -
|
50 | | -For more information, see https://cloud.google.com/resource-manager/docs |
51 | | -``` |
52 | | - |
53 | | -[projects_0_docs]: https://cloud.google.com/resource-manager/docs |
54 | | -[projects_0_code]: projects.js |
55 | | - |
56 | | -## Running the tests |
57 | | - |
58 | | -1. Set the **GCLOUD_PROJECT** and **GOOGLE_APPLICATION_CREDENTIALS** environment variables. |
59 | | - |
60 | | -1. Run the tests: |
61 | | - |
62 | | - With **npm**: |
63 | | - |
64 | | - npm test |
65 | | - |
66 | | - With **yarn**: |
67 | | - |
68 | | - yarn test |
| 4 | +[client]: https://github.com/googleapis/nodejs-resource |
| 5 | +[samples]: https://github.com/googleapis/nodejs-resource/tree/master/samples |
0 commit comments