@googleapis/discoveryengine 25.0.0 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1alpha.d.ts +156 -0
- package/build/v1alpha.js +66 -0
- package/build/v1alpha.js.map +1 -1
- package/package.json +1 -1
- package/v1alpha.ts +336 -0
package/package.json
CHANGED
package/v1alpha.ts
CHANGED
|
@@ -3041,6 +3041,15 @@ export namespace discoveryengine_v1alpha {
|
|
|
3041
3041
|
*/
|
|
3042
3042
|
enableClaimLevelScore?: boolean | null;
|
|
3043
3043
|
}
|
|
3044
|
+
/**
|
|
3045
|
+
* Response message for the DataConnectorService.CheckRefreshToken method.
|
|
3046
|
+
*/
|
|
3047
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse {
|
|
3048
|
+
/**
|
|
3049
|
+
* Info about the stored refresh token.
|
|
3050
|
+
*/
|
|
3051
|
+
refreshTokenInfo?: Schema$GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo;
|
|
3052
|
+
}
|
|
3044
3053
|
/**
|
|
3045
3054
|
* Request for CheckRequirement method.
|
|
3046
3055
|
*/
|
|
@@ -10384,6 +10393,15 @@ export namespace discoveryengine_v1alpha {
|
|
|
10384
10393
|
*/
|
|
10385
10394
|
type?: string | null;
|
|
10386
10395
|
}
|
|
10396
|
+
/**
|
|
10397
|
+
* Workspace settings for the end user.
|
|
10398
|
+
*/
|
|
10399
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings {
|
|
10400
|
+
/**
|
|
10401
|
+
* Whether an end user has workspace access enabled.
|
|
10402
|
+
*/
|
|
10403
|
+
workspaceAccessEnabled?: boolean | null;
|
|
10404
|
+
}
|
|
10387
10405
|
/**
|
|
10388
10406
|
* The specification for answer generation.
|
|
10389
10407
|
*/
|
|
@@ -20853,6 +20871,158 @@ export namespace discoveryengine_v1alpha {
|
|
|
20853
20871
|
}
|
|
20854
20872
|
}
|
|
20855
20873
|
|
|
20874
|
+
/**
|
|
20875
|
+
* Deprecated: Checks the existence of a refresh token for the EUC user for a given connection and returns its details. Use AcquireAccessToken instead and then check the validity of the returned token by asking the 3rd party system. There's no way to know for sure if a refresh token is valid without asking the 3rd party system.
|
|
20876
|
+
* @example
|
|
20877
|
+
* ```js
|
|
20878
|
+
* // Before running the sample:
|
|
20879
|
+
* // - Enable the API at:
|
|
20880
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
20881
|
+
* // - Login into gcloud by running:
|
|
20882
|
+
* // ```sh
|
|
20883
|
+
* // $ gcloud auth application-default login
|
|
20884
|
+
* // ```
|
|
20885
|
+
* // - Install the npm module by running:
|
|
20886
|
+
* // ```sh
|
|
20887
|
+
* // $ npm install googleapis
|
|
20888
|
+
* // ```
|
|
20889
|
+
*
|
|
20890
|
+
* const {google} = require('googleapis');
|
|
20891
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
20892
|
+
*
|
|
20893
|
+
* async function main() {
|
|
20894
|
+
* const auth = new google.auth.GoogleAuth({
|
|
20895
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
20896
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
20897
|
+
* });
|
|
20898
|
+
*
|
|
20899
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
20900
|
+
* const authClient = await auth.getClient();
|
|
20901
|
+
* google.options({auth: authClient});
|
|
20902
|
+
*
|
|
20903
|
+
* // Do the magic
|
|
20904
|
+
* const res =
|
|
20905
|
+
* await discoveryengine.projects.locations.collections.dataConnector.checkRefreshToken(
|
|
20906
|
+
* {
|
|
20907
|
+
* // Required. The resource name of the connector for which a token is queried.
|
|
20908
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
|
|
20909
|
+
* },
|
|
20910
|
+
* );
|
|
20911
|
+
* console.log(res.data);
|
|
20912
|
+
*
|
|
20913
|
+
* // Example response
|
|
20914
|
+
* // {
|
|
20915
|
+
* // "refreshTokenInfo": {}
|
|
20916
|
+
* // }
|
|
20917
|
+
* }
|
|
20918
|
+
*
|
|
20919
|
+
* main().catch(e => {
|
|
20920
|
+
* console.error(e);
|
|
20921
|
+
* throw e;
|
|
20922
|
+
* });
|
|
20923
|
+
*
|
|
20924
|
+
* ```
|
|
20925
|
+
*
|
|
20926
|
+
* @param params - Parameters for request
|
|
20927
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
20928
|
+
* @param callback - Optional callback that handles the response.
|
|
20929
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
20930
|
+
*/
|
|
20931
|
+
checkRefreshToken(
|
|
20932
|
+
params: Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken,
|
|
20933
|
+
options: StreamMethodOptions
|
|
20934
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
20935
|
+
checkRefreshToken(
|
|
20936
|
+
params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken,
|
|
20937
|
+
options?: MethodOptions
|
|
20938
|
+
): Promise<
|
|
20939
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20940
|
+
>;
|
|
20941
|
+
checkRefreshToken(
|
|
20942
|
+
params: Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken,
|
|
20943
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
20944
|
+
callback: BodyResponseCallback<Readable>
|
|
20945
|
+
): void;
|
|
20946
|
+
checkRefreshToken(
|
|
20947
|
+
params: Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken,
|
|
20948
|
+
options:
|
|
20949
|
+
| MethodOptions
|
|
20950
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>,
|
|
20951
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20952
|
+
): void;
|
|
20953
|
+
checkRefreshToken(
|
|
20954
|
+
params: Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken,
|
|
20955
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20956
|
+
): void;
|
|
20957
|
+
checkRefreshToken(
|
|
20958
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20959
|
+
): void;
|
|
20960
|
+
checkRefreshToken(
|
|
20961
|
+
paramsOrCallback?:
|
|
20962
|
+
| Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken
|
|
20963
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20964
|
+
| BodyResponseCallback<Readable>,
|
|
20965
|
+
optionsOrCallback?:
|
|
20966
|
+
| MethodOptions
|
|
20967
|
+
| StreamMethodOptions
|
|
20968
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20969
|
+
| BodyResponseCallback<Readable>,
|
|
20970
|
+
callback?:
|
|
20971
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20972
|
+
| BodyResponseCallback<Readable>
|
|
20973
|
+
):
|
|
20974
|
+
| void
|
|
20975
|
+
| Promise<
|
|
20976
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>
|
|
20977
|
+
>
|
|
20978
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
20979
|
+
let params = (paramsOrCallback ||
|
|
20980
|
+
{}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken;
|
|
20981
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
20982
|
+
|
|
20983
|
+
if (typeof paramsOrCallback === 'function') {
|
|
20984
|
+
callback = paramsOrCallback;
|
|
20985
|
+
params =
|
|
20986
|
+
{} as Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken;
|
|
20987
|
+
options = {};
|
|
20988
|
+
}
|
|
20989
|
+
|
|
20990
|
+
if (typeof optionsOrCallback === 'function') {
|
|
20991
|
+
callback = optionsOrCallback;
|
|
20992
|
+
options = {};
|
|
20993
|
+
}
|
|
20994
|
+
|
|
20995
|
+
const rootUrl =
|
|
20996
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
20997
|
+
const parameters = {
|
|
20998
|
+
options: Object.assign(
|
|
20999
|
+
{
|
|
21000
|
+
url: (rootUrl + '/v1alpha/{+name}:checkRefreshToken').replace(
|
|
21001
|
+
/([^:]\/)\/+/g,
|
|
21002
|
+
'$1'
|
|
21003
|
+
),
|
|
21004
|
+
method: 'GET',
|
|
21005
|
+
apiVersion: '',
|
|
21006
|
+
},
|
|
21007
|
+
options
|
|
21008
|
+
),
|
|
21009
|
+
params,
|
|
21010
|
+
requiredParams: ['name'],
|
|
21011
|
+
pathParams: ['name'],
|
|
21012
|
+
context: this.context,
|
|
21013
|
+
};
|
|
21014
|
+
if (callback) {
|
|
21015
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>(
|
|
21016
|
+
parameters,
|
|
21017
|
+
callback as BodyResponseCallback<unknown>
|
|
21018
|
+
);
|
|
21019
|
+
} else {
|
|
21020
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse>(
|
|
21021
|
+
parameters
|
|
21022
|
+
);
|
|
21023
|
+
}
|
|
21024
|
+
}
|
|
21025
|
+
|
|
20856
21026
|
/**
|
|
20857
21027
|
* Get the secret for the associated connector.
|
|
20858
21028
|
* @example
|
|
@@ -21196,6 +21366,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
21196
21366
|
*/
|
|
21197
21367
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest;
|
|
21198
21368
|
}
|
|
21369
|
+
export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken
|
|
21370
|
+
extends StandardParameters {
|
|
21371
|
+
/**
|
|
21372
|
+
* Required. The resource name of the connector for which a token is queried.
|
|
21373
|
+
*/
|
|
21374
|
+
name?: string;
|
|
21375
|
+
}
|
|
21199
21376
|
export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret
|
|
21200
21377
|
extends StandardParameters {
|
|
21201
21378
|
/**
|
|
@@ -38912,6 +39089,158 @@ export namespace discoveryengine_v1alpha {
|
|
|
38912
39089
|
}
|
|
38913
39090
|
}
|
|
38914
39091
|
|
|
39092
|
+
/**
|
|
39093
|
+
* Get Workspace settings for the end user.
|
|
39094
|
+
* @example
|
|
39095
|
+
* ```js
|
|
39096
|
+
* // Before running the sample:
|
|
39097
|
+
* // - Enable the API at:
|
|
39098
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
39099
|
+
* // - Login into gcloud by running:
|
|
39100
|
+
* // ```sh
|
|
39101
|
+
* // $ gcloud auth application-default login
|
|
39102
|
+
* // ```
|
|
39103
|
+
* // - Install the npm module by running:
|
|
39104
|
+
* // ```sh
|
|
39105
|
+
* // $ npm install googleapis
|
|
39106
|
+
* // ```
|
|
39107
|
+
*
|
|
39108
|
+
* const {google} = require('googleapis');
|
|
39109
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
39110
|
+
*
|
|
39111
|
+
* async function main() {
|
|
39112
|
+
* const auth = new google.auth.GoogleAuth({
|
|
39113
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
39114
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
39115
|
+
* });
|
|
39116
|
+
*
|
|
39117
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
39118
|
+
* const authClient = await auth.getClient();
|
|
39119
|
+
* google.options({auth: authClient});
|
|
39120
|
+
*
|
|
39121
|
+
* // Do the magic
|
|
39122
|
+
* const res =
|
|
39123
|
+
* await discoveryengine.projects.locations.collections.engines.getWorkspaceSettings(
|
|
39124
|
+
* {
|
|
39125
|
+
* // Required. Full Engine resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}`
|
|
39126
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
39127
|
+
* },
|
|
39128
|
+
* );
|
|
39129
|
+
* console.log(res.data);
|
|
39130
|
+
*
|
|
39131
|
+
* // Example response
|
|
39132
|
+
* // {
|
|
39133
|
+
* // "workspaceAccessEnabled": false
|
|
39134
|
+
* // }
|
|
39135
|
+
* }
|
|
39136
|
+
*
|
|
39137
|
+
* main().catch(e => {
|
|
39138
|
+
* console.error(e);
|
|
39139
|
+
* throw e;
|
|
39140
|
+
* });
|
|
39141
|
+
*
|
|
39142
|
+
* ```
|
|
39143
|
+
*
|
|
39144
|
+
* @param params - Parameters for request
|
|
39145
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
39146
|
+
* @param callback - Optional callback that handles the response.
|
|
39147
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
39148
|
+
*/
|
|
39149
|
+
getWorkspaceSettings(
|
|
39150
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings,
|
|
39151
|
+
options: StreamMethodOptions
|
|
39152
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
39153
|
+
getWorkspaceSettings(
|
|
39154
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings,
|
|
39155
|
+
options?: MethodOptions
|
|
39156
|
+
): Promise<
|
|
39157
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39158
|
+
>;
|
|
39159
|
+
getWorkspaceSettings(
|
|
39160
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings,
|
|
39161
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
39162
|
+
callback: BodyResponseCallback<Readable>
|
|
39163
|
+
): void;
|
|
39164
|
+
getWorkspaceSettings(
|
|
39165
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings,
|
|
39166
|
+
options:
|
|
39167
|
+
| MethodOptions
|
|
39168
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>,
|
|
39169
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39170
|
+
): void;
|
|
39171
|
+
getWorkspaceSettings(
|
|
39172
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings,
|
|
39173
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39174
|
+
): void;
|
|
39175
|
+
getWorkspaceSettings(
|
|
39176
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39177
|
+
): void;
|
|
39178
|
+
getWorkspaceSettings(
|
|
39179
|
+
paramsOrCallback?:
|
|
39180
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings
|
|
39181
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39182
|
+
| BodyResponseCallback<Readable>,
|
|
39183
|
+
optionsOrCallback?:
|
|
39184
|
+
| MethodOptions
|
|
39185
|
+
| StreamMethodOptions
|
|
39186
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39187
|
+
| BodyResponseCallback<Readable>,
|
|
39188
|
+
callback?:
|
|
39189
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39190
|
+
| BodyResponseCallback<Readable>
|
|
39191
|
+
):
|
|
39192
|
+
| void
|
|
39193
|
+
| Promise<
|
|
39194
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>
|
|
39195
|
+
>
|
|
39196
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
39197
|
+
let params = (paramsOrCallback ||
|
|
39198
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings;
|
|
39199
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
39200
|
+
|
|
39201
|
+
if (typeof paramsOrCallback === 'function') {
|
|
39202
|
+
callback = paramsOrCallback;
|
|
39203
|
+
params =
|
|
39204
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings;
|
|
39205
|
+
options = {};
|
|
39206
|
+
}
|
|
39207
|
+
|
|
39208
|
+
if (typeof optionsOrCallback === 'function') {
|
|
39209
|
+
callback = optionsOrCallback;
|
|
39210
|
+
options = {};
|
|
39211
|
+
}
|
|
39212
|
+
|
|
39213
|
+
const rootUrl =
|
|
39214
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
39215
|
+
const parameters = {
|
|
39216
|
+
options: Object.assign(
|
|
39217
|
+
{
|
|
39218
|
+
url: (rootUrl + '/v1alpha/{+name}:getWorkspaceSettings').replace(
|
|
39219
|
+
/([^:]\/)\/+/g,
|
|
39220
|
+
'$1'
|
|
39221
|
+
),
|
|
39222
|
+
method: 'GET',
|
|
39223
|
+
apiVersion: '',
|
|
39224
|
+
},
|
|
39225
|
+
options
|
|
39226
|
+
),
|
|
39227
|
+
params,
|
|
39228
|
+
requiredParams: ['name'],
|
|
39229
|
+
pathParams: ['name'],
|
|
39230
|
+
context: this.context,
|
|
39231
|
+
};
|
|
39232
|
+
if (callback) {
|
|
39233
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>(
|
|
39234
|
+
parameters,
|
|
39235
|
+
callback as BodyResponseCallback<unknown>
|
|
39236
|
+
);
|
|
39237
|
+
} else {
|
|
39238
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaWorkspaceSettings>(
|
|
39239
|
+
parameters
|
|
39240
|
+
);
|
|
39241
|
+
}
|
|
39242
|
+
}
|
|
39243
|
+
|
|
38915
39244
|
/**
|
|
38916
39245
|
* Lists all the Engines associated with the project.
|
|
38917
39246
|
* @example
|
|
@@ -39794,6 +40123,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
39794
40123
|
*/
|
|
39795
40124
|
name?: string;
|
|
39796
40125
|
}
|
|
40126
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Getworkspacesettings
|
|
40127
|
+
extends StandardParameters {
|
|
40128
|
+
/**
|
|
40129
|
+
* Required. Full Engine resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}`
|
|
40130
|
+
*/
|
|
40131
|
+
name?: string;
|
|
40132
|
+
}
|
|
39797
40133
|
export interface Params$Resource$Projects$Locations$Collections$Engines$List
|
|
39798
40134
|
extends StandardParameters {
|
|
39799
40135
|
/**
|