Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KMS quickstart. #296

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Add KMS quickstart. #296

merged 1 commit into from
Jan 11, 2017

Conversation

jmdobry
Copy link
Member

@jmdobry jmdobry commented Jan 11, 2017

No description provided.

@jmdobry jmdobry self-assigned this Jan 11, 2017
@jmdobry jmdobry requested a review from ace-n January 11, 2017 18:10
Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, other than grammatical nits and (some relevant) failing tests.

// Your Google Cloud Platform project ID
const projectId = 'YOUR_PROJECT_ID';

// The "global" zone will list all keys, can be a specific zone if desired
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar nit: The "global" zone will list all keys. It can be a specific zone if desired

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

// Acquires credentials
google.auth.getApplicationDefault((err, authClient) => {
if (err) {
console.error('Filed to acquire credentials');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Failed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

function list (callback) {
google.auth.getApplicationDefault((err, authClient) => {
if (err) {
callback(new Error('Filed to acquire credentials'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: failed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ace-n
Copy link
Contributor

ace-n commented Jan 11, 2017

Failing test output on CircleCI:

Uncaught Exception: kms/system-test/quickstart.test.js
  TypeError: google.cloudkms is not a function
    google.auth.getApplicationDefault (kms/system-test/quickstart.test.js:36:29)
    callback (node_modules/googleapis/node_modules/google-auth-library/lib/auth/googleauth.js:42:14)
    node_modules/googleapis/node_modules/google-auth-library/lib/auth/googleauth.js:289:13

@jmdobry
Copy link
Member Author

jmdobry commented Jan 11, 2017

Fixed

@jmdobry jmdobry merged commit f800be2 into master Jan 11, 2017
ace-n pushed a commit that referenced this pull request Jan 11, 2017
@jmdobry jmdobry deleted the kms branch January 12, 2017 17:49
ivanmkc pushed a commit that referenced this pull request Nov 3, 2022
🤖 I have created a release \*beep\* \*boop\*
---
### [2.2.6](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.5...v2.2.6) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#296](https://www.github.com/googleapis/nodejs-datalabeling/issues/296)) ([b67af5c](https://www.github.com/googleapis/nodejs-datalabeling/commit/b67af5c6eea1142d6b1f08f7dd9213a7078a4d59))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
grayside pushed a commit that referenced this pull request Nov 8, 2022
🤖 I have created a release \*beep\* \*boop\*
---
### [2.2.6](https://www.github.com/googleapis/nodejs-datalabeling/compare/v2.2.5...v2.2.6) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#296](https://www.github.com/googleapis/nodejs-datalabeling/issues/296)) ([b67af5c](https://www.github.com/googleapis/nodejs-datalabeling/commit/b67af5c6eea1142d6b1f08f7dd9213a7078a4d59))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ace-n pushed a commit that referenced this pull request Nov 11, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ace-n pushed a commit that referenced this pull request Nov 11, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ace-n pushed a commit that referenced this pull request Nov 14, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ace-n pushed a commit that referenced this pull request Nov 15, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ace-n pushed a commit that referenced this pull request Nov 15, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
telpirion pushed a commit that referenced this pull request Nov 16, 2022
* [CHANGE ME] Re-generated  to pick up changes in the API or client library generator.

* rename imagePath => referenceImagePath in samples
ace-n pushed a commit that referenced this pull request Nov 17, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ace-n pushed a commit that referenced this pull request Nov 17, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
ahrarmonsur pushed a commit that referenced this pull request Nov 17, 2022
* docs: add translate ga samples

* update package.json

* add missing file

* Add license headers
kweinmeister pushed a commit that referenced this pull request Nov 18, 2022
ahrarmonsur pushed a commit that referenced this pull request Nov 18, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants