Skip to content

Commit

Permalink
automatic gapi.client.cloudkms update @ Fri, 14 Aug 2020 12:20:27 GMT
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed Aug 14, 2020
1 parent ff7d1bf commit adbc085
Show file tree
Hide file tree
Showing 5 changed files with 1,336 additions and 624 deletions.
13 changes: 7 additions & 6 deletions types/gapi.client.cloudkms/gapi.client.cloudkms-tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This is stub file for gapi.client.{{=it.name}} definition tests */
/* This is stub file for gapi.client.cloudkms definition tests */
/* IMPORTANT.
* This file was automatically generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
* In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
* This file was automatically generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
* In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
**/
gapi.load('client', () => {
/** now we can use gapi.client */
Expand All @@ -14,17 +14,18 @@ gapi.load('client', () => {
const scope = [
/** View and manage your data across Google Cloud Platform services */
'https://www.googleapis.com/auth/cloud-platform',
/** View and manage your keys and secrets stored in Cloud Key Management Service */
'https://www.googleapis.com/auth/cloudkms',
];
const immediate = true;
const immediate = false;
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
if (authResult && !authResult.error) {
/** handle succesfull authorization */
/** handle successful authorization */
run();
} else {
/** handle authorization error */
}
});
run();
});

async function run() {
Expand Down
Loading

0 comments on commit adbc085

Please sign in to comment.