@maxim_mazurok/gapi.client.networksecurity-v1
Advanced tools
Comparing version 0.0.20231101 to 0.0.20231205
{ | ||
"name": "@maxim_mazurok/gapi.client.networksecurity-v1", | ||
"version": "0.0.20231101", | ||
"version": "0.0.20231205", | ||
"description": "TypeScript typings for Network Security API v1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Maxim Mazurok", | ||
"email": "maxim@mazurok.com", | ||
"name": "Maxim Mazurok", | ||
"url": "https://maxim.mazurok.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"types": "index.d.ts", | ||
@@ -16,0 +16,0 @@ "dependencies": { |
# TypeScript typings for Network Security API v1 | ||
For detailed description please check [documentation](https://cloud.google.com/networking). | ||
@@ -28,6 +27,9 @@ | ||
```typescript | ||
gapi.client.load('https://networksecurity.googleapis.com/$discovery/rest?version=v1', () => { | ||
// now we can use: | ||
// gapi.client.networksecurity | ||
}); | ||
gapi.client.load( | ||
'https://networksecurity.googleapis.com/$discovery/rest?version=v1', | ||
() => { | ||
// now we can use: | ||
// gapi.client.networksecurity | ||
} | ||
); | ||
``` | ||
@@ -49,17 +51,18 @@ | ||
scope = [ | ||
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. | ||
'https://www.googleapis.com/auth/cloud-platform', | ||
], | ||
immediate = true; | ||
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. | ||
'https://www.googleapis.com/auth/cloud-platform', | ||
], | ||
immediate = true; | ||
// ... | ||
gapi.auth.authorize( | ||
{ client_id: client_id, scope: scope, immediate: immediate }, | ||
{client_id: client_id, scope: scope, immediate: immediate}, | ||
authResult => { | ||
if (authResult && !authResult.error) { | ||
/* handle successful authorization */ | ||
/* handle successful authorization */ | ||
} else { | ||
/* handle authorization error */ | ||
/* handle authorization error */ | ||
} | ||
}); | ||
} | ||
); | ||
``` | ||
@@ -70,2 +73,3 @@ | ||
```typescript | ||
``` |
Sorry, the diff of this file is too big to display
73
219433
3
3579