import {
OAuth2Client,
JWT,
Compute,
UserRefreshClient,
BaseExternalAccountClient,
GaxiosPromise,
GoogleConfigurable,
createAPIRequest,
MethodOptions,
StreamMethodOptions,
GlobalOptions,
GoogleAuth,
BodyResponseCallback,
APIRequestContext,
} from 'googleapis-common';
import {Readable} from 'stream';
export namespace vault_v1 {
export interface Options extends GlobalOptions {
version: 'v1';
}
interface StandardParameters {
auth?:
| string
| OAuth2Client
| JWT
| Compute
| UserRefreshClient
| BaseExternalAccountClient
| GoogleAuth;
'$.xgafv'?: string;
access_token?: string;
alt?: string;
callback?: string;
fields?: string;
key?: string;
oauth_token?: string;
prettyPrint?: boolean;
quotaUser?: string;
uploadType?: string;
upload_protocol?: string;
}
export class Vault {
context: APIRequestContext;
matters: Resource$Matters;
operations: Resource$Operations;
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
this.context = {
_options: options || {},
google,
};
this.matters = new Resource$Matters(this.context);
this.operations = new Resource$Operations(this.context);
}
}
export interface Schema$AccountCount {
account?: Schema$UserInfo;
count?: string | null;
}
export interface Schema$AccountCountError {
account?: Schema$UserInfo;
errorType?: string | null;
}
export interface Schema$AccountInfo {
emails?: string[] | null;
}
export interface Schema$AddHeldAccountResult {
account?: Schema$HeldAccount;
status?: Schema$Status;
}
export interface Schema$AddHeldAccountsRequest {
accountIds?: string[] | null;
emails?: string[] | null;
}
export interface Schema$AddHeldAccountsResponse {
responses?: Schema$AddHeldAccountResult[];
}
export interface Schema$AddMatterPermissionsRequest {
ccMe?: boolean | null;
matterPermission?: Schema$MatterPermission;
sendEmails?: boolean | null;
}
export interface Schema$CancelOperationRequest {}
export interface Schema$CloseMatterRequest {}
export interface Schema$CloseMatterResponse {
matter?: Schema$Matter;
}
export interface Schema$CloudStorageFile {
bucketName?: string | null;
md5Hash?: string | null;
objectName?: string | null;
size?: string | null;
}
export interface Schema$CloudStorageSink {
files?: Schema$CloudStorageFile[];
}
export interface Schema$CorpusQuery {
driveQuery?: Schema$HeldDriveQuery;
groupsQuery?: Schema$HeldGroupsQuery;
hangoutsChatQuery?: Schema$HeldHangoutsChatQuery;
mailQuery?: Schema$HeldMailQuery;
voiceQuery?: Schema$HeldVoiceQuery;
}
export interface Schema$CountArtifactsMetadata {
endTime?: string | null;
matterId?: string | null;
query?: Schema$Query;
startTime?: string | null;
}
export interface Schema$CountArtifactsRequest {
query?: Schema$Query;
view?: string | null;
}
export interface Schema$CountArtifactsResponse {
groupsCountResult?: Schema$GroupsCountResult;
mailCountResult?: Schema$MailCountResult;
totalCount?: string | null;
}
export interface Schema$DriveExportOptions {
includeAccessInfo?: boolean | null;
}
export interface Schema$DriveOptions {
includeSharedDrives?: boolean | null;
includeTeamDrives?: boolean | null;
versionDate?: string | null;
}
export interface Schema$Empty {}
export interface Schema$Export {
cloudStorageSink?: Schema$CloudStorageSink;
createTime?: string | null;
exportOptions?: Schema$ExportOptions;
id?: string | null;
matterId?: string | null;
name?: string | null;
query?: Schema$Query;
requester?: Schema$UserInfo;
stats?: Schema$ExportStats;
status?: string | null;
}
export interface Schema$ExportOptions {
driveOptions?: Schema$DriveExportOptions;
groupsOptions?: Schema$GroupsExportOptions;
hangoutsChatOptions?: Schema$HangoutsChatExportOptions;
mailOptions?: Schema$MailExportOptions;
region?: string | null;
voiceOptions?: Schema$VoiceExportOptions;
}
export interface Schema$ExportStats {
exportedArtifactCount?: string | null;
sizeInBytes?: string | null;
totalArtifactCount?: string | null;
}
export interface Schema$GroupsCountResult {
accountCountErrors?: Schema$AccountCountError[];
accountCounts?: Schema$AccountCount[];
matchingAccountsCount?: string | null;
nonQueryableAccounts?: string[] | null;
queriedAccountsCount?: string | null;
}
export interface Schema$GroupsExportOptions {
exportFormat?: string | null;
}
export interface Schema$HangoutsChatExportOptions {
exportFormat?: string | null;
}
export interface Schema$HangoutsChatInfo {
roomId?: string[] | null;
}
export interface Schema$HangoutsChatOptions {
includeRooms?: boolean | null;
}
export interface Schema$HeldAccount {
accountId?: string | null;
email?: string | null;
firstName?: string | null;
holdTime?: string | null;
lastName?: string | null;
}
export interface Schema$HeldDriveQuery {
includeSharedDriveFiles?: boolean | null;
includeTeamDriveFiles?: boolean | null;
}
export interface Schema$HeldGroupsQuery {
endTime?: string | null;
startTime?: string | null;
terms?: string | null;
}
export interface Schema$HeldHangoutsChatQuery {
includeRooms?: boolean | null;
}
export interface Schema$HeldMailQuery {
endTime?: string | null;
startTime?: string | null;
terms?: string | null;
}
export interface Schema$HeldOrgUnit {
holdTime?: string | null;
orgUnitId?: string | null;
}
export interface Schema$HeldVoiceQuery {
coveredData?: string[] | null;
}
export interface Schema$Hold {
accounts?: Schema$HeldAccount[];
corpus?: string | null;
holdId?: string | null;
name?: string | null;
orgUnit?: Schema$HeldOrgUnit;
query?: Schema$CorpusQuery;
updateTime?: string | null;
}
export interface Schema$ListExportsResponse {
exports?: Schema$Export[];
nextPageToken?: string | null;
}
export interface Schema$ListHeldAccountsResponse {
accounts?: Schema$HeldAccount[];
}
export interface Schema$ListHoldsResponse {
holds?: Schema$Hold[];
nextPageToken?: string | null;
}
export interface Schema$ListMattersResponse {
matters?: Schema$Matter[];
nextPageToken?: string | null;
}
export interface Schema$ListOperationsResponse {
nextPageToken?: string | null;
operations?: Schema$Operation[];
}
export interface Schema$ListSavedQueriesResponse {
nextPageToken?: string | null;
savedQueries?: Schema$SavedQuery[];
}
export interface Schema$MailCountResult {
accountCountErrors?: Schema$AccountCountError[];
accountCounts?: Schema$AccountCount[];
matchingAccountsCount?: string | null;
nonQueryableAccounts?: string[] | null;
queriedAccountsCount?: string | null;
}
export interface Schema$MailExportOptions {
exportFormat?: string | null;
showConfidentialModeContent?: boolean | null;
}
export interface Schema$MailOptions {
excludeDrafts?: boolean | null;
}
export interface Schema$Matter {
description?: string | null;
matterId?: string | null;
matterPermissions?: Schema$MatterPermission[];
name?: string | null;
state?: string | null;
}
export interface Schema$MatterPermission {
accountId?: string | null;
role?: string | null;
}
export interface Schema$Operation {
done?: boolean | null;
error?: Schema$Status;
metadata?: {[key: string]: any} | null;
name?: string | null;
response?: {[key: string]: any} | null;
}
export interface Schema$OrgUnitInfo {
orgUnitId?: string | null;
}
export interface Schema$Query {
accountInfo?: Schema$AccountInfo;
corpus?: string | null;
dataScope?: string | null;
driveOptions?: Schema$DriveOptions;
endTime?: string | null;
hangoutsChatInfo?: Schema$HangoutsChatInfo;
hangoutsChatOptions?: Schema$HangoutsChatOptions;
mailOptions?: Schema$MailOptions;
method?: string | null;
orgUnitInfo?: Schema$OrgUnitInfo;
searchMethod?: string | null;
sharedDriveInfo?: Schema$SharedDriveInfo;
startTime?: string | null;
teamDriveInfo?: Schema$TeamDriveInfo;
terms?: string | null;
timeZone?: string | null;
voiceOptions?: Schema$VoiceOptions;
}
export interface Schema$RemoveHeldAccountsRequest {
accountIds?: string[] | null;
}
export interface Schema$RemoveHeldAccountsResponse {
statuses?: Schema$Status[];
}
export interface Schema$RemoveMatterPermissionsRequest {
accountId?: string | null;
}
export interface Schema$ReopenMatterRequest {}
export interface Schema$ReopenMatterResponse {
matter?: Schema$Matter;
}
export interface Schema$SavedQuery {
createTime?: string | null;
displayName?: string | null;
matterId?: string | null;
query?: Schema$Query;
savedQueryId?: string | null;
}
export interface Schema$SharedDriveInfo {
sharedDriveIds?: string[] | null;
}
export interface Schema$Status {
code?: number | null;
details?: Array<{[key: string]: any}> | null;
message?: string | null;
}
export interface Schema$TeamDriveInfo {
teamDriveIds?: string[] | null;
}
export interface Schema$UndeleteMatterRequest {}
export interface Schema$UserInfo {
displayName?: string | null;
email?: string | null;
}
export interface Schema$VoiceExportOptions {
exportFormat?: string | null;
}
export interface Schema$VoiceOptions {
coveredData?: string[] | null;
}
export class Resource$Matters {
context: APIRequestContext;
exports: Resource$Matters$Exports;
holds: Resource$Matters$Holds;
savedQueries: Resource$Matters$Savedqueries;
constructor(context: APIRequestContext) {
this.context = context;
this.exports = new Resource$Matters$Exports(this.context);
this.holds = new Resource$Matters$Holds(this.context);
this.savedQueries = new Resource$Matters$Savedqueries(this.context);
}
addPermissions(
params: Params$Resource$Matters$Addpermissions,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
addPermissions(
params?: Params$Resource$Matters$Addpermissions,
options?: MethodOptions
): GaxiosPromise<Schema$MatterPermission>;
addPermissions(
params: Params$Resource$Matters$Addpermissions,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
addPermissions(
params: Params$Resource$Matters$Addpermissions,
options: MethodOptions | BodyResponseCallback<Schema$MatterPermission>,
callback: BodyResponseCallback<Schema$MatterPermission>
): void;
addPermissions(
params: Params$Resource$Matters$Addpermissions,
callback: BodyResponseCallback<Schema$MatterPermission>
): void;
addPermissions(
callback: BodyResponseCallback<Schema$MatterPermission>
): void;
addPermissions(
paramsOrCallback?:
| Params$Resource$Matters$Addpermissions
| BodyResponseCallback<Schema$MatterPermission>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$MatterPermission>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$MatterPermission>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$MatterPermission> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Addpermissions;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Addpermissions;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$MatterPermission>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$MatterPermission>(parameters);
}
}
close(
params: Params$Resource$Matters$Close,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
close(
params?: Params$Resource$Matters$Close,
options?: MethodOptions
): GaxiosPromise<Schema$CloseMatterResponse>;
close(
params: Params$Resource$Matters$Close,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
close(
params: Params$Resource$Matters$Close,
options: MethodOptions | BodyResponseCallback<Schema$CloseMatterResponse>,
callback: BodyResponseCallback<Schema$CloseMatterResponse>
): void;
close(
params: Params$Resource$Matters$Close,
callback: BodyResponseCallback<Schema$CloseMatterResponse>
): void;
close(callback: BodyResponseCallback<Schema$CloseMatterResponse>): void;
close(
paramsOrCallback?:
| Params$Resource$Matters$Close
| BodyResponseCallback<Schema$CloseMatterResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$CloseMatterResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$CloseMatterResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$CloseMatterResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Close;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Close;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:close').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$CloseMatterResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$CloseMatterResponse>(parameters);
}
}
count(
params: Params$Resource$Matters$Count,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
count(
params?: Params$Resource$Matters$Count,
options?: MethodOptions
): GaxiosPromise<Schema$Operation>;
count(
params: Params$Resource$Matters$Count,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
count(
params: Params$Resource$Matters$Count,
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
callback: BodyResponseCallback<Schema$Operation>
): void;
count(
params: Params$Resource$Matters$Count,
callback: BodyResponseCallback<Schema$Operation>
): void;
count(callback: BodyResponseCallback<Schema$Operation>): void;
count(
paramsOrCallback?:
| Params$Resource$Matters$Count
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Count;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Count;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:count').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Operation>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Operation>(parameters);
}
}
create(
params: Params$Resource$Matters$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
create(
params?: Params$Resource$Matters$Create,
options?: MethodOptions
): GaxiosPromise<Schema$Matter>;
create(
params: Params$Resource$Matters$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
create(
params: Params$Resource$Matters$Create,
options: MethodOptions | BodyResponseCallback<Schema$Matter>,
callback: BodyResponseCallback<Schema$Matter>
): void;
create(
params: Params$Resource$Matters$Create,
callback: BodyResponseCallback<Schema$Matter>
): void;
create(callback: BodyResponseCallback<Schema$Matter>): void;
create(
paramsOrCallback?:
| Params$Resource$Matters$Create
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Matter> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: [],
pathParams: [],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Matter>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Matter>(parameters);
}
}
delete(
params: Params$Resource$Matters$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Matters$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Matter>;
delete(
params: Params$Resource$Matters$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Matters$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Matter>,
callback: BodyResponseCallback<Schema$Matter>
): void;
delete(
params: Params$Resource$Matters$Delete,
callback: BodyResponseCallback<Schema$Matter>
): void;
delete(callback: BodyResponseCallback<Schema$Matter>): void;
delete(
paramsOrCallback?:
| Params$Resource$Matters$Delete
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Matter> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'DELETE',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Matter>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Matter>(parameters);
}
}
get(
params: Params$Resource$Matters$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Matters$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Matter>;
get(
params: Params$Resource$Matters$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Matters$Get,
options: MethodOptions | BodyResponseCallback<Schema$Matter>,
callback: BodyResponseCallback<Schema$Matter>
): void;
get(
params: Params$Resource$Matters$Get,
callback: BodyResponseCallback<Schema$Matter>
): void;
get(callback: BodyResponseCallback<Schema$Matter>): void;
get(
paramsOrCallback?:
| Params$Resource$Matters$Get
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Matter> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Matter>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Matter>(parameters);
}
}
list(
params: Params$Resource$Matters$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Matters$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListMattersResponse>;
list(
params: Params$Resource$Matters$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Matters$List,
options: MethodOptions | BodyResponseCallback<Schema$ListMattersResponse>,
callback: BodyResponseCallback<Schema$ListMattersResponse>
): void;
list(
params: Params$Resource$Matters$List,
callback: BodyResponseCallback<Schema$ListMattersResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListMattersResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Matters$List
| BodyResponseCallback<Schema$ListMattersResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListMattersResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListMattersResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListMattersResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: [],
pathParams: [],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListMattersResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListMattersResponse>(parameters);
}
}
removePermissions(
params: Params$Resource$Matters$Removepermissions,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
removePermissions(
params?: Params$Resource$Matters$Removepermissions,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
removePermissions(
params: Params$Resource$Matters$Removepermissions,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
removePermissions(
params: Params$Resource$Matters$Removepermissions,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
removePermissions(
params: Params$Resource$Matters$Removepermissions,
callback: BodyResponseCallback<Schema$Empty>
): void;
removePermissions(callback: BodyResponseCallback<Schema$Empty>): void;
removePermissions(
paramsOrCallback?:
| Params$Resource$Matters$Removepermissions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Removepermissions;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Removepermissions;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
reopen(
params: Params$Resource$Matters$Reopen,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
reopen(
params?: Params$Resource$Matters$Reopen,
options?: MethodOptions
): GaxiosPromise<Schema$ReopenMatterResponse>;
reopen(
params: Params$Resource$Matters$Reopen,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
reopen(
params: Params$Resource$Matters$Reopen,
options:
| MethodOptions
| BodyResponseCallback<Schema$ReopenMatterResponse>,
callback: BodyResponseCallback<Schema$ReopenMatterResponse>
): void;
reopen(
params: Params$Resource$Matters$Reopen,
callback: BodyResponseCallback<Schema$ReopenMatterResponse>
): void;
reopen(callback: BodyResponseCallback<Schema$ReopenMatterResponse>): void;
reopen(
paramsOrCallback?:
| Params$Resource$Matters$Reopen
| BodyResponseCallback<Schema$ReopenMatterResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ReopenMatterResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ReopenMatterResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ReopenMatterResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Reopen;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Reopen;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ReopenMatterResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ReopenMatterResponse>(parameters);
}
}
undelete(
params: Params$Resource$Matters$Undelete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
undelete(
params?: Params$Resource$Matters$Undelete,
options?: MethodOptions
): GaxiosPromise<Schema$Matter>;
undelete(
params: Params$Resource$Matters$Undelete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
undelete(
params: Params$Resource$Matters$Undelete,
options: MethodOptions | BodyResponseCallback<Schema$Matter>,
callback: BodyResponseCallback<Schema$Matter>
): void;
undelete(
params: Params$Resource$Matters$Undelete,
callback: BodyResponseCallback<Schema$Matter>
): void;
undelete(callback: BodyResponseCallback<Schema$Matter>): void;
undelete(
paramsOrCallback?:
| Params$Resource$Matters$Undelete
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Matter> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Undelete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Undelete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Matter>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Matter>(parameters);
}
}
update(
params: Params$Resource$Matters$Update,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
update(
params?: Params$Resource$Matters$Update,
options?: MethodOptions
): GaxiosPromise<Schema$Matter>;
update(
params: Params$Resource$Matters$Update,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
update(
params: Params$Resource$Matters$Update,
options: MethodOptions | BodyResponseCallback<Schema$Matter>,
callback: BodyResponseCallback<Schema$Matter>
): void;
update(
params: Params$Resource$Matters$Update,
callback: BodyResponseCallback<Schema$Matter>
): void;
update(callback: BodyResponseCallback<Schema$Matter>): void;
update(
paramsOrCallback?:
| Params$Resource$Matters$Update
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Matter>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Matter> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Update;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Update;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'PUT',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Matter>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Matter>(parameters);
}
}
}
export interface Params$Resource$Matters$Addpermissions
extends StandardParameters {
matterId?: string;
requestBody?: Schema$AddMatterPermissionsRequest;
}
export interface Params$Resource$Matters$Close extends StandardParameters {
matterId?: string;
requestBody?: Schema$CloseMatterRequest;
}
export interface Params$Resource$Matters$Count extends StandardParameters {
matterId?: string;
requestBody?: Schema$CountArtifactsRequest;
}
export interface Params$Resource$Matters$Create extends StandardParameters {
requestBody?: Schema$Matter;
}
export interface Params$Resource$Matters$Delete extends StandardParameters {
matterId?: string;
}
export interface Params$Resource$Matters$Get extends StandardParameters {
matterId?: string;
view?: string;
}
export interface Params$Resource$Matters$List extends StandardParameters {
pageSize?: number;
pageToken?: string;
state?: string;
view?: string;
}
export interface Params$Resource$Matters$Removepermissions
extends StandardParameters {
matterId?: string;
requestBody?: Schema$RemoveMatterPermissionsRequest;
}
export interface Params$Resource$Matters$Reopen extends StandardParameters {
matterId?: string;
requestBody?: Schema$ReopenMatterRequest;
}
export interface Params$Resource$Matters$Undelete extends StandardParameters {
matterId?: string;
requestBody?: Schema$UndeleteMatterRequest;
}
export interface Params$Resource$Matters$Update extends StandardParameters {
matterId?: string;
requestBody?: Schema$Matter;
}
export class Resource$Matters$Exports {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}
create(
params: Params$Resource$Matters$Exports$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
create(
params?: Params$Resource$Matters$Exports$Create,
options?: MethodOptions
): GaxiosPromise<Schema$Export>;
create(
params: Params$Resource$Matters$Exports$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
create(
params: Params$Resource$Matters$Exports$Create,
options: MethodOptions | BodyResponseCallback<Schema$Export>,
callback: BodyResponseCallback<Schema$Export>
): void;
create(
params: Params$Resource$Matters$Exports$Create,
callback: BodyResponseCallback<Schema$Export>
): void;
create(callback: BodyResponseCallback<Schema$Export>): void;
create(
paramsOrCallback?:
| Params$Resource$Matters$Exports$Create
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Export> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Exports$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Exports$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/exports').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Export>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Export>(parameters);
}
}
delete(
params: Params$Resource$Matters$Exports$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Matters$Exports$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
delete(
params: Params$Resource$Matters$Exports$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Matters$Exports$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(
params: Params$Resource$Matters$Exports$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Matters$Exports$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Exports$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Exports$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/exports/{exportId}'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['matterId', 'exportId'],
pathParams: ['exportId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
get(
params: Params$Resource$Matters$Exports$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Matters$Exports$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Export>;
get(
params: Params$Resource$Matters$Exports$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Matters$Exports$Get,
options: MethodOptions | BodyResponseCallback<Schema$Export>,
callback: BodyResponseCallback<Schema$Export>
): void;
get(
params: Params$Resource$Matters$Exports$Get,
callback: BodyResponseCallback<Schema$Export>
): void;
get(callback: BodyResponseCallback<Schema$Export>): void;
get(
paramsOrCallback?:
| Params$Resource$Matters$Exports$Get
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Export>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Export> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Exports$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Exports$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/exports/{exportId}'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId', 'exportId'],
pathParams: ['exportId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Export>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Export>(parameters);
}
}
list(
params: Params$Resource$Matters$Exports$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Matters$Exports$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListExportsResponse>;
list(
params: Params$Resource$Matters$Exports$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Matters$Exports$List,
options: MethodOptions | BodyResponseCallback<Schema$ListExportsResponse>,
callback: BodyResponseCallback<Schema$ListExportsResponse>
): void;
list(
params: Params$Resource$Matters$Exports$List,
callback: BodyResponseCallback<Schema$ListExportsResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListExportsResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Matters$Exports$List
| BodyResponseCallback<Schema$ListExportsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListExportsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListExportsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListExportsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Exports$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Exports$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/exports').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListExportsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListExportsResponse>(parameters);
}
}
}
export interface Params$Resource$Matters$Exports$Create
extends StandardParameters {
matterId?: string;
requestBody?: Schema$Export;
}
export interface Params$Resource$Matters$Exports$Delete
extends StandardParameters {
exportId?: string;
matterId?: string;
}
export interface Params$Resource$Matters$Exports$Get
extends StandardParameters {
exportId?: string;
matterId?: string;
}
export interface Params$Resource$Matters$Exports$List
extends StandardParameters {
matterId?: string;
pageSize?: number;
pageToken?: string;
}
export class Resource$Matters$Holds {
context: APIRequestContext;
accounts: Resource$Matters$Holds$Accounts;
constructor(context: APIRequestContext) {
this.context = context;
this.accounts = new Resource$Matters$Holds$Accounts(this.context);
}
addHeldAccounts(
params: Params$Resource$Matters$Holds$Addheldaccounts,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
addHeldAccounts(
params?: Params$Resource$Matters$Holds$Addheldaccounts,
options?: MethodOptions
): GaxiosPromise<Schema$AddHeldAccountsResponse>;
addHeldAccounts(
params: Params$Resource$Matters$Holds$Addheldaccounts,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
addHeldAccounts(
params: Params$Resource$Matters$Holds$Addheldaccounts,
options:
| MethodOptions
| BodyResponseCallback<Schema$AddHeldAccountsResponse>,
callback: BodyResponseCallback<Schema$AddHeldAccountsResponse>
): void;
addHeldAccounts(
params: Params$Resource$Matters$Holds$Addheldaccounts,
callback: BodyResponseCallback<Schema$AddHeldAccountsResponse>
): void;
addHeldAccounts(
callback: BodyResponseCallback<Schema$AddHeldAccountsResponse>
): void;
addHeldAccounts(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Addheldaccounts
| BodyResponseCallback<Schema$AddHeldAccountsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$AddHeldAccountsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$AddHeldAccountsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$AddHeldAccountsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Addheldaccounts;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Addheldaccounts;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$AddHeldAccountsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$AddHeldAccountsResponse>(parameters);
}
}
create(
params: Params$Resource$Matters$Holds$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
create(
params?: Params$Resource$Matters$Holds$Create,
options?: MethodOptions
): GaxiosPromise<Schema$Hold>;
create(
params: Params$Resource$Matters$Holds$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
create(
params: Params$Resource$Matters$Holds$Create,
options: MethodOptions | BodyResponseCallback<Schema$Hold>,
callback: BodyResponseCallback<Schema$Hold>
): void;
create(
params: Params$Resource$Matters$Holds$Create,
callback: BodyResponseCallback<Schema$Hold>
): void;
create(callback: BodyResponseCallback<Schema$Hold>): void;
create(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Create
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Hold> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/holds').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Hold>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Hold>(parameters);
}
}
delete(
params: Params$Resource$Matters$Holds$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Matters$Holds$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
delete(
params: Params$Resource$Matters$Holds$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Matters$Holds$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(
params: Params$Resource$Matters$Holds$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'DELETE',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
get(
params: Params$Resource$Matters$Holds$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Matters$Holds$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Hold>;
get(
params: Params$Resource$Matters$Holds$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Matters$Holds$Get,
options: MethodOptions | BodyResponseCallback<Schema$Hold>,
callback: BodyResponseCallback<Schema$Hold>
): void;
get(
params: Params$Resource$Matters$Holds$Get,
callback: BodyResponseCallback<Schema$Hold>
): void;
get(callback: BodyResponseCallback<Schema$Hold>): void;
get(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Get
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Hold> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Hold>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Hold>(parameters);
}
}
list(
params: Params$Resource$Matters$Holds$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Matters$Holds$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListHoldsResponse>;
list(
params: Params$Resource$Matters$Holds$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Matters$Holds$List,
options: MethodOptions | BodyResponseCallback<Schema$ListHoldsResponse>,
callback: BodyResponseCallback<Schema$ListHoldsResponse>
): void;
list(
params: Params$Resource$Matters$Holds$List,
callback: BodyResponseCallback<Schema$ListHoldsResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListHoldsResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Matters$Holds$List
| BodyResponseCallback<Schema$ListHoldsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListHoldsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListHoldsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListHoldsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/holds').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListHoldsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListHoldsResponse>(parameters);
}
}
removeHeldAccounts(
params: Params$Resource$Matters$Holds$Removeheldaccounts,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
removeHeldAccounts(
params?: Params$Resource$Matters$Holds$Removeheldaccounts,
options?: MethodOptions
): GaxiosPromise<Schema$RemoveHeldAccountsResponse>;
removeHeldAccounts(
params: Params$Resource$Matters$Holds$Removeheldaccounts,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
removeHeldAccounts(
params: Params$Resource$Matters$Holds$Removeheldaccounts,
options:
| MethodOptions
| BodyResponseCallback<Schema$RemoveHeldAccountsResponse>,
callback: BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
): void;
removeHeldAccounts(
params: Params$Resource$Matters$Holds$Removeheldaccounts,
callback: BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
): void;
removeHeldAccounts(
callback: BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
): void;
removeHeldAccounts(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Removeheldaccounts
| BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$RemoveHeldAccountsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$RemoveHeldAccountsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Removeheldaccounts;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Removeheldaccounts;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl +
'/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$RemoveHeldAccountsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$RemoveHeldAccountsResponse>(parameters);
}
}
update(
params: Params$Resource$Matters$Holds$Update,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
update(
params?: Params$Resource$Matters$Holds$Update,
options?: MethodOptions
): GaxiosPromise<Schema$Hold>;
update(
params: Params$Resource$Matters$Holds$Update,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
update(
params: Params$Resource$Matters$Holds$Update,
options: MethodOptions | BodyResponseCallback<Schema$Hold>,
callback: BodyResponseCallback<Schema$Hold>
): void;
update(
params: Params$Resource$Matters$Holds$Update,
callback: BodyResponseCallback<Schema$Hold>
): void;
update(callback: BodyResponseCallback<Schema$Hold>): void;
update(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Update
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Hold>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Hold> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Update;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Update;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'PUT',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Hold>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Hold>(parameters);
}
}
}
export interface Params$Resource$Matters$Holds$Addheldaccounts
extends StandardParameters {
holdId?: string;
matterId?: string;
requestBody?: Schema$AddHeldAccountsRequest;
}
export interface Params$Resource$Matters$Holds$Create
extends StandardParameters {
matterId?: string;
requestBody?: Schema$Hold;
}
export interface Params$Resource$Matters$Holds$Delete
extends StandardParameters {
holdId?: string;
matterId?: string;
}
export interface Params$Resource$Matters$Holds$Get
extends StandardParameters {
holdId?: string;
matterId?: string;
view?: string;
}
export interface Params$Resource$Matters$Holds$List
extends StandardParameters {
matterId?: string;
pageSize?: number;
pageToken?: string;
view?: string;
}
export interface Params$Resource$Matters$Holds$Removeheldaccounts
extends StandardParameters {
holdId?: string;
matterId?: string;
requestBody?: Schema$RemoveHeldAccountsRequest;
}
export interface Params$Resource$Matters$Holds$Update
extends StandardParameters {
holdId?: string;
matterId?: string;
requestBody?: Schema$Hold;
}
export class Resource$Matters$Holds$Accounts {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}
create(
params: Params$Resource$Matters$Holds$Accounts$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
create(
params?: Params$Resource$Matters$Holds$Accounts$Create,
options?: MethodOptions
): GaxiosPromise<Schema$HeldAccount>;
create(
params: Params$Resource$Matters$Holds$Accounts$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
create(
params: Params$Resource$Matters$Holds$Accounts$Create,
options: MethodOptions | BodyResponseCallback<Schema$HeldAccount>,
callback: BodyResponseCallback<Schema$HeldAccount>
): void;
create(
params: Params$Resource$Matters$Holds$Accounts$Create,
callback: BodyResponseCallback<Schema$HeldAccount>
): void;
create(callback: BodyResponseCallback<Schema$HeldAccount>): void;
create(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Accounts$Create
| BodyResponseCallback<Schema$HeldAccount>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$HeldAccount>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$HeldAccount>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$HeldAccount> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Accounts$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Accounts$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$HeldAccount>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$HeldAccount>(parameters);
}
}
delete(
params: Params$Resource$Matters$Holds$Accounts$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Matters$Holds$Accounts$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
delete(
params: Params$Resource$Matters$Holds$Accounts$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Matters$Holds$Accounts$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(
params: Params$Resource$Matters$Holds$Accounts$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Accounts$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Accounts$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Accounts$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl +
'/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['matterId', 'holdId', 'accountId'],
pathParams: ['accountId', 'holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
list(
params: Params$Resource$Matters$Holds$Accounts$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Matters$Holds$Accounts$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListHeldAccountsResponse>;
list(
params: Params$Resource$Matters$Holds$Accounts$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Matters$Holds$Accounts$List,
options:
| MethodOptions
| BodyResponseCallback<Schema$ListHeldAccountsResponse>,
callback: BodyResponseCallback<Schema$ListHeldAccountsResponse>
): void;
list(
params: Params$Resource$Matters$Holds$Accounts$List,
callback: BodyResponseCallback<Schema$ListHeldAccountsResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListHeldAccountsResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Matters$Holds$Accounts$List
| BodyResponseCallback<Schema$ListHeldAccountsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListHeldAccountsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListHeldAccountsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListHeldAccountsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Holds$Accounts$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Holds$Accounts$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId', 'holdId'],
pathParams: ['holdId', 'matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListHeldAccountsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListHeldAccountsResponse>(parameters);
}
}
}
export interface Params$Resource$Matters$Holds$Accounts$Create
extends StandardParameters {
holdId?: string;
matterId?: string;
requestBody?: Schema$HeldAccount;
}
export interface Params$Resource$Matters$Holds$Accounts$Delete
extends StandardParameters {
accountId?: string;
holdId?: string;
matterId?: string;
}
export interface Params$Resource$Matters$Holds$Accounts$List
extends StandardParameters {
holdId?: string;
matterId?: string;
}
export class Resource$Matters$Savedqueries {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}
create(
params: Params$Resource$Matters$Savedqueries$Create,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
create(
params?: Params$Resource$Matters$Savedqueries$Create,
options?: MethodOptions
): GaxiosPromise<Schema$SavedQuery>;
create(
params: Params$Resource$Matters$Savedqueries$Create,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
create(
params: Params$Resource$Matters$Savedqueries$Create,
options: MethodOptions | BodyResponseCallback<Schema$SavedQuery>,
callback: BodyResponseCallback<Schema$SavedQuery>
): void;
create(
params: Params$Resource$Matters$Savedqueries$Create,
callback: BodyResponseCallback<Schema$SavedQuery>
): void;
create(callback: BodyResponseCallback<Schema$SavedQuery>): void;
create(
paramsOrCallback?:
| Params$Resource$Matters$Savedqueries$Create
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$SavedQuery> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Savedqueries$Create;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Savedqueries$Create;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$SavedQuery>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$SavedQuery>(parameters);
}
}
delete(
params: Params$Resource$Matters$Savedqueries$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Matters$Savedqueries$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
delete(
params: Params$Resource$Matters$Savedqueries$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Matters$Savedqueries$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(
params: Params$Resource$Matters$Savedqueries$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Matters$Savedqueries$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Savedqueries$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Savedqueries$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['matterId', 'savedQueryId'],
pathParams: ['matterId', 'savedQueryId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
get(
params: Params$Resource$Matters$Savedqueries$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Matters$Savedqueries$Get,
options?: MethodOptions
): GaxiosPromise<Schema$SavedQuery>;
get(
params: Params$Resource$Matters$Savedqueries$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Matters$Savedqueries$Get,
options: MethodOptions | BodyResponseCallback<Schema$SavedQuery>,
callback: BodyResponseCallback<Schema$SavedQuery>
): void;
get(
params: Params$Resource$Matters$Savedqueries$Get,
callback: BodyResponseCallback<Schema$SavedQuery>
): void;
get(callback: BodyResponseCallback<Schema$SavedQuery>): void;
get(
paramsOrCallback?:
| Params$Resource$Matters$Savedqueries$Get
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$SavedQuery>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$SavedQuery> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Savedqueries$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Savedqueries$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (
rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId', 'savedQueryId'],
pathParams: ['matterId', 'savedQueryId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$SavedQuery>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$SavedQuery>(parameters);
}
}
list(
params: Params$Resource$Matters$Savedqueries$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Matters$Savedqueries$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListSavedQueriesResponse>;
list(
params: Params$Resource$Matters$Savedqueries$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Matters$Savedqueries$List,
options:
| MethodOptions
| BodyResponseCallback<Schema$ListSavedQueriesResponse>,
callback: BodyResponseCallback<Schema$ListSavedQueriesResponse>
): void;
list(
params: Params$Resource$Matters$Savedqueries$List,
callback: BodyResponseCallback<Schema$ListSavedQueriesResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListSavedQueriesResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Matters$Savedqueries$List
| BodyResponseCallback<Schema$ListSavedQueriesResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListSavedQueriesResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListSavedQueriesResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListSavedQueriesResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Matters$Savedqueries$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Matters$Savedqueries$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
},
options
),
params,
requiredParams: ['matterId'],
pathParams: ['matterId'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListSavedQueriesResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListSavedQueriesResponse>(parameters);
}
}
}
export interface Params$Resource$Matters$Savedqueries$Create
extends StandardParameters {
matterId?: string;
requestBody?: Schema$SavedQuery;
}
export interface Params$Resource$Matters$Savedqueries$Delete
extends StandardParameters {
matterId?: string;
savedQueryId?: string;
}
export interface Params$Resource$Matters$Savedqueries$Get
extends StandardParameters {
matterId?: string;
savedQueryId?: string;
}
export interface Params$Resource$Matters$Savedqueries$List
extends StandardParameters {
matterId?: string;
pageSize?: number;
pageToken?: string;
}
export class Resource$Operations {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}
cancel(
params: Params$Resource$Operations$Cancel,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
cancel(
params?: Params$Resource$Operations$Cancel,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
cancel(
params: Params$Resource$Operations$Cancel,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
cancel(
params: Params$Resource$Operations$Cancel,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
cancel(
params: Params$Resource$Operations$Cancel,
callback: BodyResponseCallback<Schema$Empty>
): void;
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
cancel(
paramsOrCallback?:
| Params$Resource$Operations$Cancel
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Operations$Cancel;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Operations$Cancel;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
delete(
params: Params$Resource$Operations$Delete,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
delete(
params?: Params$Resource$Operations$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$Empty>;
delete(
params: Params$Resource$Operations$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Operations$Delete,
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(
params: Params$Resource$Operations$Delete,
callback: BodyResponseCallback<Schema$Empty>
): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Operations$Delete
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Empty>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Operations$Delete;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Operations$Delete;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Empty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Empty>(parameters);
}
}
get(
params: Params$Resource$Operations$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Operations$Get,
options?: MethodOptions
): GaxiosPromise<Schema$Operation>;
get(
params: Params$Resource$Operations$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Operations$Get,
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
callback: BodyResponseCallback<Schema$Operation>
): void;
get(
params: Params$Resource$Operations$Get,
callback: BodyResponseCallback<Schema$Operation>
): void;
get(callback: BodyResponseCallback<Schema$Operation>): void;
get(
paramsOrCallback?:
| Params$Resource$Operations$Get
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$Operation>
| BodyResponseCallback<Readable>
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Operations$Get;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$Operation>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$Operation>(parameters);
}
}
list(
params: Params$Resource$Operations$List,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
list(
params?: Params$Resource$Operations$List,
options?: MethodOptions
): GaxiosPromise<Schema$ListOperationsResponse>;
list(
params: Params$Resource$Operations$List,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
list(
params: Params$Resource$Operations$List,
options:
| MethodOptions
| BodyResponseCallback<Schema$ListOperationsResponse>,
callback: BodyResponseCallback<Schema$ListOperationsResponse>
): void;
list(
params: Params$Resource$Operations$List,
callback: BodyResponseCallback<Schema$ListOperationsResponse>
): void;
list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
list(
paramsOrCallback?:
| Params$Resource$Operations$List
| BodyResponseCallback<Schema$ListOperationsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$ListOperationsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$ListOperationsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$ListOperationsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
let options = (optionsOrCallback || {}) as MethodOptions;
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Operations$List;
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://vault.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$ListOperationsResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$ListOperationsResponse>(parameters);
}
}
}
export interface Params$Resource$Operations$Cancel
extends StandardParameters {
name?: string;
requestBody?: Schema$CancelOperationRequest;
}
export interface Params$Resource$Operations$Delete
extends StandardParameters {
name?: string;
}
export interface Params$Resource$Operations$Get extends StandardParameters {
name?: string;
}
export interface Params$Resource$Operations$List extends StandardParameters {
filter?: string;
name?: string;
pageSize?: number;
pageToken?: string;
}
}