@maxim_mazurok/gapi.client.accessapproval-v1
Advanced tools
Comparing version 0.0.20231110 to 0.0.20231201
{ | ||
"name": "@maxim_mazurok/gapi.client.accessapproval-v1", | ||
"version": "0.0.20231110", | ||
"version": "0.0.20231201", | ||
"description": "TypeScript typings for Access Approval 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": { |
@@ -28,6 +28,9 @@ # TypeScript typings for Access Approval API v1 | ||
```typescript | ||
gapi.client.load('https://accessapproval.googleapis.com/$discovery/rest?version=v1', () => { | ||
// now we can use: | ||
// gapi.client.accessapproval | ||
}); | ||
gapi.client.load( | ||
'https://accessapproval.googleapis.com/$discovery/rest?version=v1', | ||
() => { | ||
// now we can use: | ||
// gapi.client.accessapproval | ||
} | ||
); | ||
``` | ||
@@ -49,17 +52,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,7 +74,8 @@ | ||
```typescript | ||
/* | ||
Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited. | ||
*/ | ||
await gapi.client.accessapproval.folders.deleteAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.folders.deleteAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -80,3 +85,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.folders.getAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.folders.getAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -86,3 +93,3 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.folders.getServiceAccount({ name: "name", }); | ||
await gapi.client.accessapproval.folders.getServiceAccount({name: 'name'}); | ||
@@ -92,3 +99,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.folders.updateAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.folders.updateAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -98,3 +107,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.organizations.deleteAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.organizations.deleteAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -104,3 +115,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.organizations.getAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.organizations.getAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -110,3 +123,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.organizations.getServiceAccount({ name: "name", }); | ||
await gapi.client.accessapproval.organizations.getServiceAccount({ | ||
name: 'name', | ||
}); | ||
@@ -116,3 +131,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.organizations.updateAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.organizations.updateAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -122,3 +139,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.projects.deleteAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.projects.deleteAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -128,3 +147,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.projects.getAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.projects.getAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
@@ -134,3 +155,3 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.projects.getServiceAccount({ name: "name", }); | ||
await gapi.client.accessapproval.projects.getServiceAccount({name: 'name'}); | ||
@@ -140,3 +161,5 @@ /* | ||
*/ | ||
await gapi.client.accessapproval.projects.updateAccessApprovalSettings({ name: "name", }); | ||
await gapi.client.accessapproval.projects.updateAccessApprovalSettings({ | ||
name: 'name', | ||
}); | ||
``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152
82455
3
1320