-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(samples): modernize the samples, tests, and README (#244)
- Loading branch information
1 parent
0dbdbaa
commit 7a121eb
Showing
12 changed files
with
121 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ system-test/*key.json | |
*.lock | ||
package-lock.json | ||
build/ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "dns", | ||
"name_pretty": "Cloud DNS", | ||
"product_documentation": "https://cloud.google.com/dns", | ||
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/dns/latest/", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/559772", | ||
"release_level": "alpha", | ||
"language": "nodejs", | ||
"repo": "googleapis/nodejs-dns", | ||
"distribution_name": "@google-cloud/dns", | ||
"api_id": "dns.googleapis.com", | ||
"requires_billing": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
rules: | ||
no-console: off | ||
node/no-missing-require: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,66 @@ | ||
[//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[//]: # "To regenerate it, use `python -m synthtool`." | ||
<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"/> | ||
|
||
# Google Cloud DNS: Node.js Samples | ||
# [Cloud DNS: Node.js Samples](https://github.com/googleapis/nodejs-dns) | ||
|
||
[![Open in Cloud Shell][shell_img]][shell_link] | ||
|
||
[Cloud DNS](https://cloud.google.com/dns/docs/) allows you to publish your domain names using Google's infrastructure for production-quality, high-volume DNS services. Google's global network of anycast name servers provide reliable, low-latency authoritative name lookups for your domains from anywhere in the world. | ||
|
||
|
||
## Table of Contents | ||
|
||
* [Before you begin](#before-you-begin) | ||
* [Samples](#samples) | ||
* [Zones](#zones) | ||
* [List Zones](#list-zones) | ||
* [Quickstart](#quickstart) | ||
|
||
## Before you begin | ||
|
||
Before running the samples, make sure you've followed the steps in the | ||
[Before you begin section](../README.md#before-you-begin) of the client | ||
library's README. | ||
Before running the samples, make sure you've followed the steps outlined in | ||
[Using the client library](https://github.com/googleapis/nodejs-dns#using-the-client-library). | ||
|
||
## Samples | ||
|
||
### Zones | ||
|
||
View the [source code][zones_0_code]. | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dns&page=editor&open_in_editor=samples/zones.js,samples/README.md) | ||
### List Zones | ||
|
||
Lists all zones in the current project. | ||
|
||
View the [source code](https://github.com/googleapis/nodejs-dns/blob/master/samples/listZones.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dns&page=editor&open_in_editor=samples/listZones.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node listZones` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Quickstart | ||
|
||
Fetches a list of all available zones. | ||
|
||
View the [source code](https://github.com/googleapis/nodejs-dns/blob/master/samples/quickstart.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dns&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
__Usage:__ `node zones.js --help` | ||
|
||
``` | ||
zones.js <command> | ||
`node quickstart` | ||
|
||
Commands: | ||
zones.js list Lists all zones in the current project. | ||
|
||
Options: | ||
--version Show version number [boolean] | ||
--help Show help [boolean] | ||
|
||
Examples: | ||
node zones.js list Lists all zones in the current project. | ||
|
||
For more information, see https://cloud.google.com/dns/docs | ||
``` | ||
|
||
[zones_0_docs]: https://cloud.google.com/dns/docs | ||
[zones_0_code]: zones.js | ||
|
||
[shell_img]: //gstatic.com/cloudssh/images/open-btn.png | ||
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png | ||
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dns&page=editor&open_in_editor=samples/README.md | ||
[product-docs]: https://cloud.google.com/dns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters