Skip to content

Commit

Permalink
docs: updating link in README.md (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Mar 22, 2018
1 parent 4bed93c commit 7267c4f
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 88 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-oslogin/.cloud-repo-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"product": "oslogin",
"requiresKeyFile": true,
"requiresProjectId": true,
"client_reference_url": "https://cloud.google.com/nodejs/docs/reference/oslogin/latest/",
"client_reference_url": "https://cloud.google.com/nodejs/docs/reference/os-login/latest/",
"release_quality": "alpha"
}
1 change: 1 addition & 0 deletions packages/google-cloud-oslogin/.mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Alexander Fenster <[email protected]> Alexander Fenster <[email protected]>
2 changes: 1 addition & 1 deletion packages/google-cloud-oslogin/CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# name <email>
#
Alexander Fenster <[email protected]>
Alexander Fenster <[email protected]>
Dave Gramlich <[email protected]>
Jason Dobry <[email protected]>
Stephen <[email protected]>
greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
13 changes: 8 additions & 5 deletions packages/google-cloud-oslogin/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `npm run generate-scaffolding`."
<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 OS Login API: Node.js Client](https://github.com/googleapis/nodejs-os-login)
Expand Down Expand Up @@ -71,19 +73,20 @@ if (
);
}

const oslogin = require('@google-cloud/oslogin');
const oslogin = require('@google-cloud/os-login');

const projectId = process.env.GCLOUD_PROJECT;

const client = new oslogin.OsLoginServiceClient({
projectId: projectId
projectId: projectId,
});

const request = {
name: 'users/1234abcd'
name: 'users/1234abcd',
};

client.getLoginProfile(request)
client
.getLoginProfile(request)
.then(responses => {
const loginProfile = responses[0];
console.log(loginProfile);
Expand Down Expand Up @@ -119,6 +122,6 @@ Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-os-login/blob/master/LICENSE)

[client-docs]: https://cloud.google.com/nodejs/docs/reference/oslogin/latest/
[client-docs]: https://cloud.google.com/nodejs/docs/reference/os-login/latest/
[product-docs]: https://cloud.google.com/compute/docs/oslogin/rest
[shell_img]: //gstatic.com/cloudssh/images/open-btn.png
99 changes: 53 additions & 46 deletions packages/google-cloud-oslogin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/google-cloud-oslogin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
],
"contributors": [
"Alexander Fenster <[email protected]>",
"Alexander Fenster <[email protected]>",
"Dave Gramlich <[email protected]>",
"Jason Dobry <[email protected]>",
"Stephen <[email protected]>",
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>"
],
Expand Down
Loading

0 comments on commit 7267c4f

Please sign in to comment.