@googleapis/discoveryengine 6.0.0 → 6.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/v1alpha.d.ts +397 -1
- package/build/v1alpha.js +288 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +363 -1
- package/build/v1beta.js +288 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1alpha.ts +1279 -133
- package/v1beta.ts +1256 -144
package/v1beta.ts
CHANGED
|
@@ -1706,6 +1706,15 @@ export namespace discoveryengine_v1beta {
|
|
|
1706
1706
|
*/
|
|
1707
1707
|
values?: number[] | null;
|
|
1708
1708
|
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Defines embedding config, used for bring your own embeddings feature.
|
|
1711
|
+
*/
|
|
1712
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaEmbeddingConfig {
|
|
1713
|
+
/**
|
|
1714
|
+
* Full field path in the schema mapped as embedding field.
|
|
1715
|
+
*/
|
|
1716
|
+
fieldPath?: string | null;
|
|
1717
|
+
}
|
|
1709
1718
|
/**
|
|
1710
1719
|
* Metadata related to the progress of the SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
1711
1720
|
*/
|
|
@@ -2166,6 +2175,19 @@ export namespace discoveryengine_v1beta {
|
|
|
2166
2175
|
*/
|
|
2167
2176
|
schemas?: Schema$GoogleCloudDiscoveryengineV1betaSchema[];
|
|
2168
2177
|
}
|
|
2178
|
+
/**
|
|
2179
|
+
* Response for ListServingConfigs method.
|
|
2180
|
+
*/
|
|
2181
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse {
|
|
2182
|
+
/**
|
|
2183
|
+
* Pagination token, if not returned indicates the last page.
|
|
2184
|
+
*/
|
|
2185
|
+
nextPageToken?: string | null;
|
|
2186
|
+
/**
|
|
2187
|
+
* All the ServingConfigs for a given dataStore.
|
|
2188
|
+
*/
|
|
2189
|
+
servingConfigs?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig[];
|
|
2190
|
+
}
|
|
2169
2191
|
/**
|
|
2170
2192
|
* Response message for SiteSearchEngineService.ListTargetSites method.
|
|
2171
2193
|
*/
|
|
@@ -2676,7 +2698,7 @@ export namespace discoveryengine_v1beta {
|
|
|
2676
2698
|
*/
|
|
2677
2699
|
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec {
|
|
2678
2700
|
/**
|
|
2679
|
-
* The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model. * `preview`: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.
|
|
2701
|
+
* The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model. LINT.IfChange * `preview`: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English. LINT.ThenChange(//depot/google3/cloud/console/web/ai/unified_cloud_search/pages/configurations/widget_tab.ts)
|
|
2680
2702
|
*/
|
|
2681
2703
|
version?: string | null;
|
|
2682
2704
|
}
|
|
@@ -3042,6 +3064,118 @@ export namespace discoveryengine_v1beta {
|
|
|
3042
3064
|
*/
|
|
3043
3065
|
summary?: string | null;
|
|
3044
3066
|
}
|
|
3067
|
+
/**
|
|
3068
|
+
* Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.
|
|
3069
|
+
*/
|
|
3070
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaServingConfig {
|
|
3071
|
+
/**
|
|
3072
|
+
* Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.
|
|
3073
|
+
*/
|
|
3074
|
+
boostControlIds?: string[] | null;
|
|
3075
|
+
/**
|
|
3076
|
+
* Output only. ServingConfig created timestamp.
|
|
3077
|
+
*/
|
|
3078
|
+
createTime?: string | null;
|
|
3079
|
+
/**
|
|
3080
|
+
* Required. The human readable serving config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
|
3081
|
+
*/
|
|
3082
|
+
displayName?: string | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. Order does not matter. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
|
3085
|
+
*/
|
|
3086
|
+
dissociateControlIds?: string[] | null;
|
|
3087
|
+
/**
|
|
3088
|
+
* How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if SolutionType is SOLUTION_TYPE_RECOMMENDATION.
|
|
3089
|
+
*/
|
|
3090
|
+
diversityLevel?: string | null;
|
|
3091
|
+
/**
|
|
3092
|
+
* Bring your own embedding config. The config is used for search semantic retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embeddings that are provided by this EmbeddingConfig. If SearchRequest.EmbeddingSpec.EmbeddingVector.vector is provided, it overrides this ServingConfig.embedding_config.
|
|
3093
|
+
*/
|
|
3094
|
+
embeddingConfig?: Schema$GoogleCloudDiscoveryengineV1betaEmbeddingConfig;
|
|
3095
|
+
/**
|
|
3096
|
+
* Filter controls to use in serving path. All triggered filter controls will be applied. Filter controls must be in the same data store as the serving config. Maximum of 20 filter controls.
|
|
3097
|
+
*/
|
|
3098
|
+
filterControlIds?: string[] | null;
|
|
3099
|
+
/**
|
|
3100
|
+
* The GenericConfig of the serving configuration.
|
|
3101
|
+
*/
|
|
3102
|
+
genericConfig?: Schema$GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig;
|
|
3103
|
+
/**
|
|
3104
|
+
* Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. Order does not matter. Maximum number of specifications is 100.
|
|
3105
|
+
*/
|
|
3106
|
+
ignoreControlIds?: string[] | null;
|
|
3107
|
+
/**
|
|
3108
|
+
* The MediaConfig of the serving configuration.
|
|
3109
|
+
*/
|
|
3110
|
+
mediaConfig?: Schema$GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig;
|
|
3111
|
+
/**
|
|
3112
|
+
* The id of the model to use at serving time. Currently only RecommendationModels are supported. Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when SolutionType is SOLUTION_TYPE_RECOMMENDATION.
|
|
3113
|
+
*/
|
|
3114
|
+
modelId?: string | null;
|
|
3115
|
+
/**
|
|
3116
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/servingConfigs/{serving_config_id\}`
|
|
3117
|
+
*/
|
|
3118
|
+
name?: string | null;
|
|
3119
|
+
/**
|
|
3120
|
+
* Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
|
3121
|
+
*/
|
|
3122
|
+
onewaySynonymsControlIds?: string[] | null;
|
|
3123
|
+
rankingExpression?: string | null;
|
|
3124
|
+
/**
|
|
3125
|
+
* IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
|
3126
|
+
*/
|
|
3127
|
+
redirectControlIds?: string[] | null;
|
|
3128
|
+
/**
|
|
3129
|
+
* Condition replacement specifications. Applied according to the order in the list. A previously replaced term can not be re-replaced. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
|
3130
|
+
*/
|
|
3131
|
+
replacementControlIds?: string[] | null;
|
|
3132
|
+
/**
|
|
3133
|
+
* Required. Immutable. Specifies the solution type that a serving config can be associated with.
|
|
3134
|
+
*/
|
|
3135
|
+
solutionType?: string | null;
|
|
3136
|
+
/**
|
|
3137
|
+
* Condition synonyms specifications. If multiple synonyms conditions match, all matching synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
|
3138
|
+
*/
|
|
3139
|
+
synonymsControlIds?: string[] | null;
|
|
3140
|
+
/**
|
|
3141
|
+
* Output only. ServingConfig updated timestamp.
|
|
3142
|
+
*/
|
|
3143
|
+
updateTime?: string | null;
|
|
3144
|
+
}
|
|
3145
|
+
/**
|
|
3146
|
+
* Specifies the configurations needed for Generic Discovery.Currently we support: * `content_search_spec`: configuration for generic content search.
|
|
3147
|
+
*/
|
|
3148
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig {
|
|
3149
|
+
/**
|
|
3150
|
+
* Specifies the expected behavior of content search. Only valid for content-search enabled data store.
|
|
3151
|
+
*/
|
|
3152
|
+
contentSearchSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec;
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Specifies the configurations needed for Media Discovery. Currently we support: * `demote_content_watched`: Threshold for watched content demotion. Customers can specify if using watched content demotion or use viewed detail page. Using the content watched demotion, customers need to specify the watched minutes or percentage exceeds the threshold, the content will be demoted in the recommendation result. * `promote_fresh_content`: cutoff days for fresh content promotion. Customers can specify if using content freshness promotion. If the content was published within the cutoff days, the content will be promoted in the recommendation result. Can only be set if SolutionType is SOLUTION_TYPE_RECOMMENDATION.
|
|
3156
|
+
*/
|
|
3157
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig {
|
|
3158
|
+
/**
|
|
3159
|
+
* Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
|
|
3160
|
+
*/
|
|
3161
|
+
contentFreshnessCutoffDays?: number | null;
|
|
3162
|
+
/**
|
|
3163
|
+
* Specifies the content watched minutes threshold for demotion.
|
|
3164
|
+
*/
|
|
3165
|
+
contentWatchedMinutesThreshold?: number | null;
|
|
3166
|
+
/**
|
|
3167
|
+
* Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
|
|
3168
|
+
*/
|
|
3169
|
+
contentWatchedPercentageThreshold?: number | null;
|
|
3170
|
+
/**
|
|
3171
|
+
* Specifies the content watched minutes threshold for demotion.
|
|
3172
|
+
*/
|
|
3173
|
+
contentWatchedSecondsThreshold?: number | null;
|
|
3174
|
+
/**
|
|
3175
|
+
* Specifies the event type used for demoting recommendation result. Currently supported values: * `view-item`: Item viewed. * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. If unset, watch history demotion will not be applied. Content freshness demotion will still be applied.
|
|
3176
|
+
*/
|
|
3177
|
+
demotionEventType?: string | null;
|
|
3178
|
+
}
|
|
3045
3179
|
/**
|
|
3046
3180
|
* SiteSearchEngine captures DataStore level site search persisting configurations. It is a singleton value per data store.
|
|
3047
3181
|
*/
|
|
@@ -7956,65 +8090,65 @@ export namespace discoveryengine_v1beta {
|
|
|
7956
8090
|
}
|
|
7957
8091
|
|
|
7958
8092
|
/**
|
|
7959
|
-
*
|
|
8093
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
7960
8094
|
*
|
|
7961
8095
|
* @param params - Parameters for request
|
|
7962
8096
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7963
8097
|
* @param callback - Optional callback that handles the response.
|
|
7964
8098
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7965
8099
|
*/
|
|
7966
|
-
|
|
7967
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8100
|
+
get(
|
|
8101
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
7968
8102
|
options: StreamMethodOptions
|
|
7969
8103
|
): GaxiosPromise<Readable>;
|
|
7970
|
-
|
|
7971
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8104
|
+
get(
|
|
8105
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
7972
8106
|
options?: MethodOptions
|
|
7973
|
-
): GaxiosPromise<Schema$
|
|
7974
|
-
|
|
7975
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8107
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
8108
|
+
get(
|
|
8109
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
7976
8110
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7977
8111
|
callback: BodyResponseCallback<Readable>
|
|
7978
8112
|
): void;
|
|
7979
|
-
|
|
7980
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8113
|
+
get(
|
|
8114
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
7981
8115
|
options:
|
|
7982
8116
|
| MethodOptions
|
|
7983
|
-
| BodyResponseCallback<Schema$
|
|
7984
|
-
callback: BodyResponseCallback<Schema$
|
|
8117
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
8118
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
7985
8119
|
): void;
|
|
7986
|
-
|
|
7987
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
7988
|
-
callback: BodyResponseCallback<Schema$
|
|
8120
|
+
get(
|
|
8121
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
8122
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
7989
8123
|
): void;
|
|
7990
|
-
|
|
7991
|
-
callback: BodyResponseCallback<Schema$
|
|
8124
|
+
get(
|
|
8125
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
7992
8126
|
): void;
|
|
7993
|
-
|
|
8127
|
+
get(
|
|
7994
8128
|
paramsOrCallback?:
|
|
7995
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
7996
|
-
| BodyResponseCallback<Schema$
|
|
8129
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
|
|
8130
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
7997
8131
|
| BodyResponseCallback<Readable>,
|
|
7998
8132
|
optionsOrCallback?:
|
|
7999
8133
|
| MethodOptions
|
|
8000
8134
|
| StreamMethodOptions
|
|
8001
|
-
| BodyResponseCallback<Schema$
|
|
8135
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8002
8136
|
| BodyResponseCallback<Readable>,
|
|
8003
8137
|
callback?:
|
|
8004
|
-
| BodyResponseCallback<Schema$
|
|
8138
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8005
8139
|
| BodyResponseCallback<Readable>
|
|
8006
8140
|
):
|
|
8007
8141
|
| void
|
|
8008
|
-
| GaxiosPromise<Schema$
|
|
8142
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8009
8143
|
| GaxiosPromise<Readable> {
|
|
8010
8144
|
let params = (paramsOrCallback ||
|
|
8011
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8145
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
8012
8146
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8013
8147
|
|
|
8014
8148
|
if (typeof paramsOrCallback === 'function') {
|
|
8015
8149
|
callback = paramsOrCallback;
|
|
8016
8150
|
params =
|
|
8017
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8151
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
8018
8152
|
options = {};
|
|
8019
8153
|
}
|
|
8020
8154
|
|
|
@@ -8028,91 +8162,88 @@ export namespace discoveryengine_v1beta {
|
|
|
8028
8162
|
const parameters = {
|
|
8029
8163
|
options: Object.assign(
|
|
8030
8164
|
{
|
|
8031
|
-
url: (rootUrl + '/v1beta/{+
|
|
8032
|
-
|
|
8033
|
-
'$1'
|
|
8034
|
-
),
|
|
8035
|
-
method: 'POST',
|
|
8165
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
8166
|
+
method: 'GET',
|
|
8036
8167
|
},
|
|
8037
8168
|
options
|
|
8038
8169
|
),
|
|
8039
8170
|
params,
|
|
8040
|
-
requiredParams: ['
|
|
8041
|
-
pathParams: ['
|
|
8171
|
+
requiredParams: ['name'],
|
|
8172
|
+
pathParams: ['name'],
|
|
8042
8173
|
context: this.context,
|
|
8043
8174
|
};
|
|
8044
8175
|
if (callback) {
|
|
8045
|
-
createAPIRequest<Schema$
|
|
8176
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
8046
8177
|
parameters,
|
|
8047
8178
|
callback as BodyResponseCallback<unknown>
|
|
8048
8179
|
);
|
|
8049
8180
|
} else {
|
|
8050
|
-
return createAPIRequest<Schema$
|
|
8181
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
8051
8182
|
parameters
|
|
8052
8183
|
);
|
|
8053
8184
|
}
|
|
8054
8185
|
}
|
|
8055
8186
|
|
|
8056
8187
|
/**
|
|
8057
|
-
*
|
|
8188
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
8058
8189
|
*
|
|
8059
8190
|
* @param params - Parameters for request
|
|
8060
8191
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8061
8192
|
* @param callback - Optional callback that handles the response.
|
|
8062
8193
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8063
8194
|
*/
|
|
8064
|
-
|
|
8065
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8195
|
+
list(
|
|
8196
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
8066
8197
|
options: StreamMethodOptions
|
|
8067
8198
|
): GaxiosPromise<Readable>;
|
|
8068
|
-
|
|
8069
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8199
|
+
list(
|
|
8200
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
8070
8201
|
options?: MethodOptions
|
|
8071
|
-
): GaxiosPromise<Schema$
|
|
8072
|
-
|
|
8073
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8202
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>;
|
|
8203
|
+
list(
|
|
8204
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
8074
8205
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8075
8206
|
callback: BodyResponseCallback<Readable>
|
|
8076
8207
|
): void;
|
|
8077
|
-
|
|
8078
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8208
|
+
list(
|
|
8209
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
8079
8210
|
options:
|
|
8080
8211
|
| MethodOptions
|
|
8081
|
-
| BodyResponseCallback<Schema$
|
|
8082
|
-
callback: BodyResponseCallback<Schema$
|
|
8212
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>,
|
|
8213
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8083
8214
|
): void;
|
|
8084
|
-
|
|
8085
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8086
|
-
callback: BodyResponseCallback<Schema$
|
|
8215
|
+
list(
|
|
8216
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
8217
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8087
8218
|
): void;
|
|
8088
|
-
|
|
8089
|
-
callback: BodyResponseCallback<Schema$
|
|
8219
|
+
list(
|
|
8220
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8090
8221
|
): void;
|
|
8091
|
-
|
|
8222
|
+
list(
|
|
8092
8223
|
paramsOrCallback?:
|
|
8093
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8094
|
-
| BodyResponseCallback<Schema$
|
|
8224
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
|
|
8225
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8095
8226
|
| BodyResponseCallback<Readable>,
|
|
8096
8227
|
optionsOrCallback?:
|
|
8097
8228
|
| MethodOptions
|
|
8098
8229
|
| StreamMethodOptions
|
|
8099
|
-
| BodyResponseCallback<Schema$
|
|
8230
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8100
8231
|
| BodyResponseCallback<Readable>,
|
|
8101
8232
|
callback?:
|
|
8102
|
-
| BodyResponseCallback<Schema$
|
|
8233
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8103
8234
|
| BodyResponseCallback<Readable>
|
|
8104
8235
|
):
|
|
8105
8236
|
| void
|
|
8106
|
-
| GaxiosPromise<Schema$
|
|
8237
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
8107
8238
|
| GaxiosPromise<Readable> {
|
|
8108
8239
|
let params = (paramsOrCallback ||
|
|
8109
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8240
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
8110
8241
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8111
8242
|
|
|
8112
8243
|
if (typeof paramsOrCallback === 'function') {
|
|
8113
8244
|
callback = paramsOrCallback;
|
|
8114
8245
|
params =
|
|
8115
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
8246
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
8116
8247
|
options = {};
|
|
8117
8248
|
}
|
|
8118
8249
|
|
|
@@ -8126,133 +8257,91 @@ export namespace discoveryengine_v1beta {
|
|
|
8126
8257
|
const parameters = {
|
|
8127
8258
|
options: Object.assign(
|
|
8128
8259
|
{
|
|
8129
|
-
url: (rootUrl + '/v1beta/{+
|
|
8260
|
+
url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
|
|
8130
8261
|
/([^:]\/)\/+/g,
|
|
8131
8262
|
'$1'
|
|
8132
8263
|
),
|
|
8133
|
-
method: '
|
|
8264
|
+
method: 'GET',
|
|
8134
8265
|
},
|
|
8135
8266
|
options
|
|
8136
8267
|
),
|
|
8137
8268
|
params,
|
|
8138
|
-
requiredParams: ['
|
|
8139
|
-
pathParams: ['
|
|
8269
|
+
requiredParams: ['parent'],
|
|
8270
|
+
pathParams: ['parent'],
|
|
8140
8271
|
context: this.context,
|
|
8141
8272
|
};
|
|
8142
8273
|
if (callback) {
|
|
8143
|
-
createAPIRequest<Schema$
|
|
8274
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
8144
8275
|
parameters,
|
|
8145
8276
|
callback as BodyResponseCallback<unknown>
|
|
8146
8277
|
);
|
|
8147
8278
|
} else {
|
|
8148
|
-
return createAPIRequest<Schema$
|
|
8279
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
8149
8280
|
parameters
|
|
8150
8281
|
);
|
|
8151
8282
|
}
|
|
8152
8283
|
}
|
|
8153
|
-
}
|
|
8154
|
-
|
|
8155
|
-
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend
|
|
8156
|
-
extends StandardParameters {
|
|
8157
|
-
/**
|
|
8158
|
-
* Required. Full resource name of a ServingConfig: `projects/x/locations/global/collections/x/engines/x/servingConfigs/x`, or `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` One default serving config is created along with your recommendation engine creation. The engine ID will be used as the ID of the default serving config. For example, for Engine `projects/x/locations/global/collections/x/engines/my-engine`, you can use `projects/x/locations/global/collections/x/engines/my-engine/servingConfigs/my-engine` for your RecommendationService.Recommend requests.
|
|
8159
|
-
*/
|
|
8160
|
-
servingConfig?: string;
|
|
8161
|
-
|
|
8162
|
-
/**
|
|
8163
|
-
* Request body metadata
|
|
8164
|
-
*/
|
|
8165
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaRecommendRequest;
|
|
8166
|
-
}
|
|
8167
|
-
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search
|
|
8168
|
-
extends StandardParameters {
|
|
8169
|
-
/**
|
|
8170
|
-
* Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
|
|
8171
|
-
*/
|
|
8172
|
-
servingConfig?: string;
|
|
8173
|
-
|
|
8174
|
-
/**
|
|
8175
|
-
* Request body metadata
|
|
8176
|
-
*/
|
|
8177
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequest;
|
|
8178
|
-
}
|
|
8179
|
-
|
|
8180
|
-
export class Resource$Projects$Locations$Collections$Datastores$Sitesearchengine {
|
|
8181
|
-
context: APIRequestContext;
|
|
8182
|
-
operations: Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Operations;
|
|
8183
|
-
targetSites: Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites;
|
|
8184
|
-
constructor(context: APIRequestContext) {
|
|
8185
|
-
this.context = context;
|
|
8186
|
-
this.operations =
|
|
8187
|
-
new Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Operations(
|
|
8188
|
-
this.context
|
|
8189
|
-
);
|
|
8190
|
-
this.targetSites =
|
|
8191
|
-
new Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites(
|
|
8192
|
-
this.context
|
|
8193
|
-
);
|
|
8194
|
-
}
|
|
8195
8284
|
|
|
8196
8285
|
/**
|
|
8197
|
-
*
|
|
8286
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
8198
8287
|
*
|
|
8199
8288
|
* @param params - Parameters for request
|
|
8200
8289
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8201
8290
|
* @param callback - Optional callback that handles the response.
|
|
8202
8291
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8203
8292
|
*/
|
|
8204
|
-
|
|
8205
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8293
|
+
patch(
|
|
8294
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
8206
8295
|
options: StreamMethodOptions
|
|
8207
8296
|
): GaxiosPromise<Readable>;
|
|
8208
|
-
|
|
8209
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8297
|
+
patch(
|
|
8298
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
8210
8299
|
options?: MethodOptions
|
|
8211
|
-
): GaxiosPromise<Schema$
|
|
8212
|
-
|
|
8213
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8300
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
8301
|
+
patch(
|
|
8302
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
8214
8303
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8215
8304
|
callback: BodyResponseCallback<Readable>
|
|
8216
8305
|
): void;
|
|
8217
|
-
|
|
8218
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8306
|
+
patch(
|
|
8307
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
8219
8308
|
options:
|
|
8220
8309
|
| MethodOptions
|
|
8221
|
-
| BodyResponseCallback<Schema$
|
|
8222
|
-
callback: BodyResponseCallback<Schema$
|
|
8310
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
8311
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8223
8312
|
): void;
|
|
8224
|
-
|
|
8225
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8226
|
-
callback: BodyResponseCallback<Schema$
|
|
8313
|
+
patch(
|
|
8314
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
8315
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8227
8316
|
): void;
|
|
8228
|
-
|
|
8229
|
-
callback: BodyResponseCallback<Schema$
|
|
8317
|
+
patch(
|
|
8318
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8230
8319
|
): void;
|
|
8231
|
-
|
|
8320
|
+
patch(
|
|
8232
8321
|
paramsOrCallback?:
|
|
8233
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8234
|
-
| BodyResponseCallback<Schema$
|
|
8322
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch
|
|
8323
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8235
8324
|
| BodyResponseCallback<Readable>,
|
|
8236
8325
|
optionsOrCallback?:
|
|
8237
8326
|
| MethodOptions
|
|
8238
8327
|
| StreamMethodOptions
|
|
8239
|
-
| BodyResponseCallback<Schema$
|
|
8328
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8240
8329
|
| BodyResponseCallback<Readable>,
|
|
8241
8330
|
callback?:
|
|
8242
|
-
| BodyResponseCallback<Schema$
|
|
8331
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8243
8332
|
| BodyResponseCallback<Readable>
|
|
8244
8333
|
):
|
|
8245
8334
|
| void
|
|
8246
|
-
| GaxiosPromise<Schema$
|
|
8335
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
8247
8336
|
| GaxiosPromise<Readable> {
|
|
8248
8337
|
let params = (paramsOrCallback ||
|
|
8249
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8338
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch;
|
|
8250
8339
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8251
8340
|
|
|
8252
8341
|
if (typeof paramsOrCallback === 'function') {
|
|
8253
8342
|
callback = paramsOrCallback;
|
|
8254
8343
|
params =
|
|
8255
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8344
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch;
|
|
8256
8345
|
options = {};
|
|
8257
8346
|
}
|
|
8258
8347
|
|
|
@@ -8266,31 +8355,402 @@ export namespace discoveryengine_v1beta {
|
|
|
8266
8355
|
const parameters = {
|
|
8267
8356
|
options: Object.assign(
|
|
8268
8357
|
{
|
|
8269
|
-
url: (rootUrl + '/v1beta/{+
|
|
8270
|
-
|
|
8271
|
-
'$1'
|
|
8272
|
-
),
|
|
8273
|
-
method: 'POST',
|
|
8358
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
8359
|
+
method: 'PATCH',
|
|
8274
8360
|
},
|
|
8275
8361
|
options
|
|
8276
8362
|
),
|
|
8277
8363
|
params,
|
|
8278
|
-
requiredParams: ['
|
|
8279
|
-
pathParams: ['
|
|
8364
|
+
requiredParams: ['name'],
|
|
8365
|
+
pathParams: ['name'],
|
|
8280
8366
|
context: this.context,
|
|
8281
8367
|
};
|
|
8282
8368
|
if (callback) {
|
|
8283
|
-
createAPIRequest<Schema$
|
|
8369
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
8284
8370
|
parameters,
|
|
8285
8371
|
callback as BodyResponseCallback<unknown>
|
|
8286
8372
|
);
|
|
8287
8373
|
} else {
|
|
8288
|
-
return createAPIRequest<Schema$
|
|
8374
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
8375
|
+
parameters
|
|
8376
|
+
);
|
|
8289
8377
|
}
|
|
8290
8378
|
}
|
|
8291
8379
|
|
|
8292
8380
|
/**
|
|
8293
|
-
*
|
|
8381
|
+
* Makes a recommendation, which requires a contextual user event.
|
|
8382
|
+
*
|
|
8383
|
+
* @param params - Parameters for request
|
|
8384
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8385
|
+
* @param callback - Optional callback that handles the response.
|
|
8386
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8387
|
+
*/
|
|
8388
|
+
recommend(
|
|
8389
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend,
|
|
8390
|
+
options: StreamMethodOptions
|
|
8391
|
+
): GaxiosPromise<Readable>;
|
|
8392
|
+
recommend(
|
|
8393
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend,
|
|
8394
|
+
options?: MethodOptions
|
|
8395
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>;
|
|
8396
|
+
recommend(
|
|
8397
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend,
|
|
8398
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8399
|
+
callback: BodyResponseCallback<Readable>
|
|
8400
|
+
): void;
|
|
8401
|
+
recommend(
|
|
8402
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend,
|
|
8403
|
+
options:
|
|
8404
|
+
| MethodOptions
|
|
8405
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>,
|
|
8406
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8407
|
+
): void;
|
|
8408
|
+
recommend(
|
|
8409
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend,
|
|
8410
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8411
|
+
): void;
|
|
8412
|
+
recommend(
|
|
8413
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8414
|
+
): void;
|
|
8415
|
+
recommend(
|
|
8416
|
+
paramsOrCallback?:
|
|
8417
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend
|
|
8418
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8419
|
+
| BodyResponseCallback<Readable>,
|
|
8420
|
+
optionsOrCallback?:
|
|
8421
|
+
| MethodOptions
|
|
8422
|
+
| StreamMethodOptions
|
|
8423
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8424
|
+
| BodyResponseCallback<Readable>,
|
|
8425
|
+
callback?:
|
|
8426
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8427
|
+
| BodyResponseCallback<Readable>
|
|
8428
|
+
):
|
|
8429
|
+
| void
|
|
8430
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>
|
|
8431
|
+
| GaxiosPromise<Readable> {
|
|
8432
|
+
let params = (paramsOrCallback ||
|
|
8433
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend;
|
|
8434
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8435
|
+
|
|
8436
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8437
|
+
callback = paramsOrCallback;
|
|
8438
|
+
params =
|
|
8439
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend;
|
|
8440
|
+
options = {};
|
|
8441
|
+
}
|
|
8442
|
+
|
|
8443
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8444
|
+
callback = optionsOrCallback;
|
|
8445
|
+
options = {};
|
|
8446
|
+
}
|
|
8447
|
+
|
|
8448
|
+
const rootUrl =
|
|
8449
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
8450
|
+
const parameters = {
|
|
8451
|
+
options: Object.assign(
|
|
8452
|
+
{
|
|
8453
|
+
url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(
|
|
8454
|
+
/([^:]\/)\/+/g,
|
|
8455
|
+
'$1'
|
|
8456
|
+
),
|
|
8457
|
+
method: 'POST',
|
|
8458
|
+
},
|
|
8459
|
+
options
|
|
8460
|
+
),
|
|
8461
|
+
params,
|
|
8462
|
+
requiredParams: ['servingConfig'],
|
|
8463
|
+
pathParams: ['servingConfig'],
|
|
8464
|
+
context: this.context,
|
|
8465
|
+
};
|
|
8466
|
+
if (callback) {
|
|
8467
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>(
|
|
8468
|
+
parameters,
|
|
8469
|
+
callback as BodyResponseCallback<unknown>
|
|
8470
|
+
);
|
|
8471
|
+
} else {
|
|
8472
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>(
|
|
8473
|
+
parameters
|
|
8474
|
+
);
|
|
8475
|
+
}
|
|
8476
|
+
}
|
|
8477
|
+
|
|
8478
|
+
/**
|
|
8479
|
+
* Performs a search.
|
|
8480
|
+
*
|
|
8481
|
+
* @param params - Parameters for request
|
|
8482
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8483
|
+
* @param callback - Optional callback that handles the response.
|
|
8484
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8485
|
+
*/
|
|
8486
|
+
search(
|
|
8487
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search,
|
|
8488
|
+
options: StreamMethodOptions
|
|
8489
|
+
): GaxiosPromise<Readable>;
|
|
8490
|
+
search(
|
|
8491
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search,
|
|
8492
|
+
options?: MethodOptions
|
|
8493
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>;
|
|
8494
|
+
search(
|
|
8495
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search,
|
|
8496
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8497
|
+
callback: BodyResponseCallback<Readable>
|
|
8498
|
+
): void;
|
|
8499
|
+
search(
|
|
8500
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search,
|
|
8501
|
+
options:
|
|
8502
|
+
| MethodOptions
|
|
8503
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>,
|
|
8504
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8505
|
+
): void;
|
|
8506
|
+
search(
|
|
8507
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search,
|
|
8508
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8509
|
+
): void;
|
|
8510
|
+
search(
|
|
8511
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8512
|
+
): void;
|
|
8513
|
+
search(
|
|
8514
|
+
paramsOrCallback?:
|
|
8515
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search
|
|
8516
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8517
|
+
| BodyResponseCallback<Readable>,
|
|
8518
|
+
optionsOrCallback?:
|
|
8519
|
+
| MethodOptions
|
|
8520
|
+
| StreamMethodOptions
|
|
8521
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8522
|
+
| BodyResponseCallback<Readable>,
|
|
8523
|
+
callback?:
|
|
8524
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8525
|
+
| BodyResponseCallback<Readable>
|
|
8526
|
+
):
|
|
8527
|
+
| void
|
|
8528
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>
|
|
8529
|
+
| GaxiosPromise<Readable> {
|
|
8530
|
+
let params = (paramsOrCallback ||
|
|
8531
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search;
|
|
8532
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8533
|
+
|
|
8534
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8535
|
+
callback = paramsOrCallback;
|
|
8536
|
+
params =
|
|
8537
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search;
|
|
8538
|
+
options = {};
|
|
8539
|
+
}
|
|
8540
|
+
|
|
8541
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8542
|
+
callback = optionsOrCallback;
|
|
8543
|
+
options = {};
|
|
8544
|
+
}
|
|
8545
|
+
|
|
8546
|
+
const rootUrl =
|
|
8547
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
8548
|
+
const parameters = {
|
|
8549
|
+
options: Object.assign(
|
|
8550
|
+
{
|
|
8551
|
+
url: (rootUrl + '/v1beta/{+servingConfig}:search').replace(
|
|
8552
|
+
/([^:]\/)\/+/g,
|
|
8553
|
+
'$1'
|
|
8554
|
+
),
|
|
8555
|
+
method: 'POST',
|
|
8556
|
+
},
|
|
8557
|
+
options
|
|
8558
|
+
),
|
|
8559
|
+
params,
|
|
8560
|
+
requiredParams: ['servingConfig'],
|
|
8561
|
+
pathParams: ['servingConfig'],
|
|
8562
|
+
context: this.context,
|
|
8563
|
+
};
|
|
8564
|
+
if (callback) {
|
|
8565
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>(
|
|
8566
|
+
parameters,
|
|
8567
|
+
callback as BodyResponseCallback<unknown>
|
|
8568
|
+
);
|
|
8569
|
+
} else {
|
|
8570
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>(
|
|
8571
|
+
parameters
|
|
8572
|
+
);
|
|
8573
|
+
}
|
|
8574
|
+
}
|
|
8575
|
+
}
|
|
8576
|
+
|
|
8577
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
|
|
8578
|
+
extends StandardParameters {
|
|
8579
|
+
/**
|
|
8580
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/servingConfigs/{serving_config_id\}`
|
|
8581
|
+
*/
|
|
8582
|
+
name?: string;
|
|
8583
|
+
}
|
|
8584
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
|
|
8585
|
+
extends StandardParameters {
|
|
8586
|
+
/**
|
|
8587
|
+
* Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
|
|
8588
|
+
*/
|
|
8589
|
+
pageSize?: number;
|
|
8590
|
+
/**
|
|
8591
|
+
* Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
8592
|
+
*/
|
|
8593
|
+
pageToken?: string;
|
|
8594
|
+
/**
|
|
8595
|
+
* Required. The dataStore resource name. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`
|
|
8596
|
+
*/
|
|
8597
|
+
parent?: string;
|
|
8598
|
+
}
|
|
8599
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch
|
|
8600
|
+
extends StandardParameters {
|
|
8601
|
+
/**
|
|
8602
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/servingConfigs/{serving_config_id\}`
|
|
8603
|
+
*/
|
|
8604
|
+
name?: string;
|
|
8605
|
+
/**
|
|
8606
|
+
* Indicates which fields in the provided ServingConfig to update. The following are NOT supported: * ServingConfig.name If not set, all supported fields are updated.
|
|
8607
|
+
*/
|
|
8608
|
+
updateMask?: string;
|
|
8609
|
+
|
|
8610
|
+
/**
|
|
8611
|
+
* Request body metadata
|
|
8612
|
+
*/
|
|
8613
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
|
|
8614
|
+
}
|
|
8615
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend
|
|
8616
|
+
extends StandardParameters {
|
|
8617
|
+
/**
|
|
8618
|
+
* Required. Full resource name of a ServingConfig: `projects/x/locations/global/collections/x/engines/x/servingConfigs/x`, or `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` One default serving config is created along with your recommendation engine creation. The engine ID will be used as the ID of the default serving config. For example, for Engine `projects/x/locations/global/collections/x/engines/my-engine`, you can use `projects/x/locations/global/collections/x/engines/my-engine/servingConfigs/my-engine` for your RecommendationService.Recommend requests.
|
|
8619
|
+
*/
|
|
8620
|
+
servingConfig?: string;
|
|
8621
|
+
|
|
8622
|
+
/**
|
|
8623
|
+
* Request body metadata
|
|
8624
|
+
*/
|
|
8625
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaRecommendRequest;
|
|
8626
|
+
}
|
|
8627
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search
|
|
8628
|
+
extends StandardParameters {
|
|
8629
|
+
/**
|
|
8630
|
+
* Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
|
|
8631
|
+
*/
|
|
8632
|
+
servingConfig?: string;
|
|
8633
|
+
|
|
8634
|
+
/**
|
|
8635
|
+
* Request body metadata
|
|
8636
|
+
*/
|
|
8637
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequest;
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8640
|
+
export class Resource$Projects$Locations$Collections$Datastores$Sitesearchengine {
|
|
8641
|
+
context: APIRequestContext;
|
|
8642
|
+
operations: Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Operations;
|
|
8643
|
+
targetSites: Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites;
|
|
8644
|
+
constructor(context: APIRequestContext) {
|
|
8645
|
+
this.context = context;
|
|
8646
|
+
this.operations =
|
|
8647
|
+
new Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Operations(
|
|
8648
|
+
this.context
|
|
8649
|
+
);
|
|
8650
|
+
this.targetSites =
|
|
8651
|
+
new Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites(
|
|
8652
|
+
this.context
|
|
8653
|
+
);
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8656
|
+
/**
|
|
8657
|
+
* Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.
|
|
8658
|
+
*
|
|
8659
|
+
* @param params - Parameters for request
|
|
8660
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8661
|
+
* @param callback - Optional callback that handles the response.
|
|
8662
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8663
|
+
*/
|
|
8664
|
+
batchVerifyTargetSites(
|
|
8665
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites,
|
|
8666
|
+
options: StreamMethodOptions
|
|
8667
|
+
): GaxiosPromise<Readable>;
|
|
8668
|
+
batchVerifyTargetSites(
|
|
8669
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites,
|
|
8670
|
+
options?: MethodOptions
|
|
8671
|
+
): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
8672
|
+
batchVerifyTargetSites(
|
|
8673
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites,
|
|
8674
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8675
|
+
callback: BodyResponseCallback<Readable>
|
|
8676
|
+
): void;
|
|
8677
|
+
batchVerifyTargetSites(
|
|
8678
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites,
|
|
8679
|
+
options:
|
|
8680
|
+
| MethodOptions
|
|
8681
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8682
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8683
|
+
): void;
|
|
8684
|
+
batchVerifyTargetSites(
|
|
8685
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites,
|
|
8686
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8687
|
+
): void;
|
|
8688
|
+
batchVerifyTargetSites(
|
|
8689
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8690
|
+
): void;
|
|
8691
|
+
batchVerifyTargetSites(
|
|
8692
|
+
paramsOrCallback?:
|
|
8693
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites
|
|
8694
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8695
|
+
| BodyResponseCallback<Readable>,
|
|
8696
|
+
optionsOrCallback?:
|
|
8697
|
+
| MethodOptions
|
|
8698
|
+
| StreamMethodOptions
|
|
8699
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8700
|
+
| BodyResponseCallback<Readable>,
|
|
8701
|
+
callback?:
|
|
8702
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8703
|
+
| BodyResponseCallback<Readable>
|
|
8704
|
+
):
|
|
8705
|
+
| void
|
|
8706
|
+
| GaxiosPromise<Schema$GoogleLongrunningOperation>
|
|
8707
|
+
| GaxiosPromise<Readable> {
|
|
8708
|
+
let params = (paramsOrCallback ||
|
|
8709
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites;
|
|
8710
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8711
|
+
|
|
8712
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8713
|
+
callback = paramsOrCallback;
|
|
8714
|
+
params =
|
|
8715
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Batchverifytargetsites;
|
|
8716
|
+
options = {};
|
|
8717
|
+
}
|
|
8718
|
+
|
|
8719
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8720
|
+
callback = optionsOrCallback;
|
|
8721
|
+
options = {};
|
|
8722
|
+
}
|
|
8723
|
+
|
|
8724
|
+
const rootUrl =
|
|
8725
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
8726
|
+
const parameters = {
|
|
8727
|
+
options: Object.assign(
|
|
8728
|
+
{
|
|
8729
|
+
url: (rootUrl + '/v1beta/{+parent}:batchVerifyTargetSites').replace(
|
|
8730
|
+
/([^:]\/)\/+/g,
|
|
8731
|
+
'$1'
|
|
8732
|
+
),
|
|
8733
|
+
method: 'POST',
|
|
8734
|
+
},
|
|
8735
|
+
options
|
|
8736
|
+
),
|
|
8737
|
+
params,
|
|
8738
|
+
requiredParams: ['parent'],
|
|
8739
|
+
pathParams: ['parent'],
|
|
8740
|
+
context: this.context,
|
|
8741
|
+
};
|
|
8742
|
+
if (callback) {
|
|
8743
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
8744
|
+
parameters,
|
|
8745
|
+
callback as BodyResponseCallback<unknown>
|
|
8746
|
+
);
|
|
8747
|
+
} else {
|
|
8748
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
8749
|
+
}
|
|
8750
|
+
}
|
|
8751
|
+
|
|
8752
|
+
/**
|
|
8753
|
+
* Downgrade from advanced site search to basic site search.
|
|
8294
8754
|
*
|
|
8295
8755
|
* @param params - Parameters for request
|
|
8296
8756
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -11849,6 +12309,294 @@ export namespace discoveryengine_v1beta {
|
|
|
11849
12309
|
this.context = context;
|
|
11850
12310
|
}
|
|
11851
12311
|
|
|
12312
|
+
/**
|
|
12313
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
12314
|
+
*
|
|
12315
|
+
* @param params - Parameters for request
|
|
12316
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
12317
|
+
* @param callback - Optional callback that handles the response.
|
|
12318
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
12319
|
+
*/
|
|
12320
|
+
get(
|
|
12321
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
12322
|
+
options: StreamMethodOptions
|
|
12323
|
+
): GaxiosPromise<Readable>;
|
|
12324
|
+
get(
|
|
12325
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
12326
|
+
options?: MethodOptions
|
|
12327
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
12328
|
+
get(
|
|
12329
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
12330
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
12331
|
+
callback: BodyResponseCallback<Readable>
|
|
12332
|
+
): void;
|
|
12333
|
+
get(
|
|
12334
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
12335
|
+
options:
|
|
12336
|
+
| MethodOptions
|
|
12337
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
12338
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12339
|
+
): void;
|
|
12340
|
+
get(
|
|
12341
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
12342
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12343
|
+
): void;
|
|
12344
|
+
get(
|
|
12345
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12346
|
+
): void;
|
|
12347
|
+
get(
|
|
12348
|
+
paramsOrCallback?:
|
|
12349
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get
|
|
12350
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12351
|
+
| BodyResponseCallback<Readable>,
|
|
12352
|
+
optionsOrCallback?:
|
|
12353
|
+
| MethodOptions
|
|
12354
|
+
| StreamMethodOptions
|
|
12355
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12356
|
+
| BodyResponseCallback<Readable>,
|
|
12357
|
+
callback?:
|
|
12358
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12359
|
+
| BodyResponseCallback<Readable>
|
|
12360
|
+
):
|
|
12361
|
+
| void
|
|
12362
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12363
|
+
| GaxiosPromise<Readable> {
|
|
12364
|
+
let params = (paramsOrCallback ||
|
|
12365
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get;
|
|
12366
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
12367
|
+
|
|
12368
|
+
if (typeof paramsOrCallback === 'function') {
|
|
12369
|
+
callback = paramsOrCallback;
|
|
12370
|
+
params =
|
|
12371
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get;
|
|
12372
|
+
options = {};
|
|
12373
|
+
}
|
|
12374
|
+
|
|
12375
|
+
if (typeof optionsOrCallback === 'function') {
|
|
12376
|
+
callback = optionsOrCallback;
|
|
12377
|
+
options = {};
|
|
12378
|
+
}
|
|
12379
|
+
|
|
12380
|
+
const rootUrl =
|
|
12381
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
12382
|
+
const parameters = {
|
|
12383
|
+
options: Object.assign(
|
|
12384
|
+
{
|
|
12385
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
12386
|
+
method: 'GET',
|
|
12387
|
+
},
|
|
12388
|
+
options
|
|
12389
|
+
),
|
|
12390
|
+
params,
|
|
12391
|
+
requiredParams: ['name'],
|
|
12392
|
+
pathParams: ['name'],
|
|
12393
|
+
context: this.context,
|
|
12394
|
+
};
|
|
12395
|
+
if (callback) {
|
|
12396
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
12397
|
+
parameters,
|
|
12398
|
+
callback as BodyResponseCallback<unknown>
|
|
12399
|
+
);
|
|
12400
|
+
} else {
|
|
12401
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
12402
|
+
parameters
|
|
12403
|
+
);
|
|
12404
|
+
}
|
|
12405
|
+
}
|
|
12406
|
+
|
|
12407
|
+
/**
|
|
12408
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
12409
|
+
*
|
|
12410
|
+
* @param params - Parameters for request
|
|
12411
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
12412
|
+
* @param callback - Optional callback that handles the response.
|
|
12413
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
12414
|
+
*/
|
|
12415
|
+
list(
|
|
12416
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
12417
|
+
options: StreamMethodOptions
|
|
12418
|
+
): GaxiosPromise<Readable>;
|
|
12419
|
+
list(
|
|
12420
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
12421
|
+
options?: MethodOptions
|
|
12422
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>;
|
|
12423
|
+
list(
|
|
12424
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
12425
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
12426
|
+
callback: BodyResponseCallback<Readable>
|
|
12427
|
+
): void;
|
|
12428
|
+
list(
|
|
12429
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
12430
|
+
options:
|
|
12431
|
+
| MethodOptions
|
|
12432
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>,
|
|
12433
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12434
|
+
): void;
|
|
12435
|
+
list(
|
|
12436
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
12437
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12438
|
+
): void;
|
|
12439
|
+
list(
|
|
12440
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12441
|
+
): void;
|
|
12442
|
+
list(
|
|
12443
|
+
paramsOrCallback?:
|
|
12444
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List
|
|
12445
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12446
|
+
| BodyResponseCallback<Readable>,
|
|
12447
|
+
optionsOrCallback?:
|
|
12448
|
+
| MethodOptions
|
|
12449
|
+
| StreamMethodOptions
|
|
12450
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12451
|
+
| BodyResponseCallback<Readable>,
|
|
12452
|
+
callback?:
|
|
12453
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12454
|
+
| BodyResponseCallback<Readable>
|
|
12455
|
+
):
|
|
12456
|
+
| void
|
|
12457
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
12458
|
+
| GaxiosPromise<Readable> {
|
|
12459
|
+
let params = (paramsOrCallback ||
|
|
12460
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List;
|
|
12461
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
12462
|
+
|
|
12463
|
+
if (typeof paramsOrCallback === 'function') {
|
|
12464
|
+
callback = paramsOrCallback;
|
|
12465
|
+
params =
|
|
12466
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List;
|
|
12467
|
+
options = {};
|
|
12468
|
+
}
|
|
12469
|
+
|
|
12470
|
+
if (typeof optionsOrCallback === 'function') {
|
|
12471
|
+
callback = optionsOrCallback;
|
|
12472
|
+
options = {};
|
|
12473
|
+
}
|
|
12474
|
+
|
|
12475
|
+
const rootUrl =
|
|
12476
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
12477
|
+
const parameters = {
|
|
12478
|
+
options: Object.assign(
|
|
12479
|
+
{
|
|
12480
|
+
url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
|
|
12481
|
+
/([^:]\/)\/+/g,
|
|
12482
|
+
'$1'
|
|
12483
|
+
),
|
|
12484
|
+
method: 'GET',
|
|
12485
|
+
},
|
|
12486
|
+
options
|
|
12487
|
+
),
|
|
12488
|
+
params,
|
|
12489
|
+
requiredParams: ['parent'],
|
|
12490
|
+
pathParams: ['parent'],
|
|
12491
|
+
context: this.context,
|
|
12492
|
+
};
|
|
12493
|
+
if (callback) {
|
|
12494
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
12495
|
+
parameters,
|
|
12496
|
+
callback as BodyResponseCallback<unknown>
|
|
12497
|
+
);
|
|
12498
|
+
} else {
|
|
12499
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
12500
|
+
parameters
|
|
12501
|
+
);
|
|
12502
|
+
}
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
/**
|
|
12506
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
12507
|
+
*
|
|
12508
|
+
* @param params - Parameters for request
|
|
12509
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
12510
|
+
* @param callback - Optional callback that handles the response.
|
|
12511
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
12512
|
+
*/
|
|
12513
|
+
patch(
|
|
12514
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch,
|
|
12515
|
+
options: StreamMethodOptions
|
|
12516
|
+
): GaxiosPromise<Readable>;
|
|
12517
|
+
patch(
|
|
12518
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch,
|
|
12519
|
+
options?: MethodOptions
|
|
12520
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
12521
|
+
patch(
|
|
12522
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch,
|
|
12523
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
12524
|
+
callback: BodyResponseCallback<Readable>
|
|
12525
|
+
): void;
|
|
12526
|
+
patch(
|
|
12527
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch,
|
|
12528
|
+
options:
|
|
12529
|
+
| MethodOptions
|
|
12530
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
12531
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12532
|
+
): void;
|
|
12533
|
+
patch(
|
|
12534
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch,
|
|
12535
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12536
|
+
): void;
|
|
12537
|
+
patch(
|
|
12538
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12539
|
+
): void;
|
|
12540
|
+
patch(
|
|
12541
|
+
paramsOrCallback?:
|
|
12542
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch
|
|
12543
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12544
|
+
| BodyResponseCallback<Readable>,
|
|
12545
|
+
optionsOrCallback?:
|
|
12546
|
+
| MethodOptions
|
|
12547
|
+
| StreamMethodOptions
|
|
12548
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12549
|
+
| BodyResponseCallback<Readable>,
|
|
12550
|
+
callback?:
|
|
12551
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12552
|
+
| BodyResponseCallback<Readable>
|
|
12553
|
+
):
|
|
12554
|
+
| void
|
|
12555
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
12556
|
+
| GaxiosPromise<Readable> {
|
|
12557
|
+
let params = (paramsOrCallback ||
|
|
12558
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch;
|
|
12559
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
12560
|
+
|
|
12561
|
+
if (typeof paramsOrCallback === 'function') {
|
|
12562
|
+
callback = paramsOrCallback;
|
|
12563
|
+
params =
|
|
12564
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch;
|
|
12565
|
+
options = {};
|
|
12566
|
+
}
|
|
12567
|
+
|
|
12568
|
+
if (typeof optionsOrCallback === 'function') {
|
|
12569
|
+
callback = optionsOrCallback;
|
|
12570
|
+
options = {};
|
|
12571
|
+
}
|
|
12572
|
+
|
|
12573
|
+
const rootUrl =
|
|
12574
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
12575
|
+
const parameters = {
|
|
12576
|
+
options: Object.assign(
|
|
12577
|
+
{
|
|
12578
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
12579
|
+
method: 'PATCH',
|
|
12580
|
+
},
|
|
12581
|
+
options
|
|
12582
|
+
),
|
|
12583
|
+
params,
|
|
12584
|
+
requiredParams: ['name'],
|
|
12585
|
+
pathParams: ['name'],
|
|
12586
|
+
context: this.context,
|
|
12587
|
+
};
|
|
12588
|
+
if (callback) {
|
|
12589
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
12590
|
+
parameters,
|
|
12591
|
+
callback as BodyResponseCallback<unknown>
|
|
12592
|
+
);
|
|
12593
|
+
} else {
|
|
12594
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
12595
|
+
parameters
|
|
12596
|
+
);
|
|
12597
|
+
}
|
|
12598
|
+
}
|
|
12599
|
+
|
|
11852
12600
|
/**
|
|
11853
12601
|
* Makes a recommendation, which requires a contextual user event.
|
|
11854
12602
|
*
|
|
@@ -12045,7 +12793,45 @@ export namespace discoveryengine_v1beta {
|
|
|
12045
12793
|
}
|
|
12046
12794
|
}
|
|
12047
12795
|
}
|
|
12048
|
-
|
|
12796
|
+
|
|
12797
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get
|
|
12798
|
+
extends StandardParameters {
|
|
12799
|
+
/**
|
|
12800
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/servingConfigs/{serving_config_id\}`
|
|
12801
|
+
*/
|
|
12802
|
+
name?: string;
|
|
12803
|
+
}
|
|
12804
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List
|
|
12805
|
+
extends StandardParameters {
|
|
12806
|
+
/**
|
|
12807
|
+
* Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
|
|
12808
|
+
*/
|
|
12809
|
+
pageSize?: number;
|
|
12810
|
+
/**
|
|
12811
|
+
* Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
12812
|
+
*/
|
|
12813
|
+
pageToken?: string;
|
|
12814
|
+
/**
|
|
12815
|
+
* Required. The dataStore resource name. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`
|
|
12816
|
+
*/
|
|
12817
|
+
parent?: string;
|
|
12818
|
+
}
|
|
12819
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch
|
|
12820
|
+
extends StandardParameters {
|
|
12821
|
+
/**
|
|
12822
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/servingConfigs/{serving_config_id\}`
|
|
12823
|
+
*/
|
|
12824
|
+
name?: string;
|
|
12825
|
+
/**
|
|
12826
|
+
* Indicates which fields in the provided ServingConfig to update. The following are NOT supported: * ServingConfig.name If not set, all supported fields are updated.
|
|
12827
|
+
*/
|
|
12828
|
+
updateMask?: string;
|
|
12829
|
+
|
|
12830
|
+
/**
|
|
12831
|
+
* Request body metadata
|
|
12832
|
+
*/
|
|
12833
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
|
|
12834
|
+
}
|
|
12049
12835
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend
|
|
12050
12836
|
extends StandardParameters {
|
|
12051
12837
|
/**
|
|
@@ -15776,6 +16562,294 @@ export namespace discoveryengine_v1beta {
|
|
|
15776
16562
|
this.context = context;
|
|
15777
16563
|
}
|
|
15778
16564
|
|
|
16565
|
+
/**
|
|
16566
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
16567
|
+
*
|
|
16568
|
+
* @param params - Parameters for request
|
|
16569
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
16570
|
+
* @param callback - Optional callback that handles the response.
|
|
16571
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16572
|
+
*/
|
|
16573
|
+
get(
|
|
16574
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get,
|
|
16575
|
+
options: StreamMethodOptions
|
|
16576
|
+
): GaxiosPromise<Readable>;
|
|
16577
|
+
get(
|
|
16578
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get,
|
|
16579
|
+
options?: MethodOptions
|
|
16580
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
16581
|
+
get(
|
|
16582
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get,
|
|
16583
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16584
|
+
callback: BodyResponseCallback<Readable>
|
|
16585
|
+
): void;
|
|
16586
|
+
get(
|
|
16587
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get,
|
|
16588
|
+
options:
|
|
16589
|
+
| MethodOptions
|
|
16590
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
16591
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16592
|
+
): void;
|
|
16593
|
+
get(
|
|
16594
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get,
|
|
16595
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16596
|
+
): void;
|
|
16597
|
+
get(
|
|
16598
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16599
|
+
): void;
|
|
16600
|
+
get(
|
|
16601
|
+
paramsOrCallback?:
|
|
16602
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get
|
|
16603
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16604
|
+
| BodyResponseCallback<Readable>,
|
|
16605
|
+
optionsOrCallback?:
|
|
16606
|
+
| MethodOptions
|
|
16607
|
+
| StreamMethodOptions
|
|
16608
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16609
|
+
| BodyResponseCallback<Readable>,
|
|
16610
|
+
callback?:
|
|
16611
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16612
|
+
| BodyResponseCallback<Readable>
|
|
16613
|
+
):
|
|
16614
|
+
| void
|
|
16615
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16616
|
+
| GaxiosPromise<Readable> {
|
|
16617
|
+
let params = (paramsOrCallback ||
|
|
16618
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get;
|
|
16619
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16620
|
+
|
|
16621
|
+
if (typeof paramsOrCallback === 'function') {
|
|
16622
|
+
callback = paramsOrCallback;
|
|
16623
|
+
params =
|
|
16624
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get;
|
|
16625
|
+
options = {};
|
|
16626
|
+
}
|
|
16627
|
+
|
|
16628
|
+
if (typeof optionsOrCallback === 'function') {
|
|
16629
|
+
callback = optionsOrCallback;
|
|
16630
|
+
options = {};
|
|
16631
|
+
}
|
|
16632
|
+
|
|
16633
|
+
const rootUrl =
|
|
16634
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
16635
|
+
const parameters = {
|
|
16636
|
+
options: Object.assign(
|
|
16637
|
+
{
|
|
16638
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
16639
|
+
method: 'GET',
|
|
16640
|
+
},
|
|
16641
|
+
options
|
|
16642
|
+
),
|
|
16643
|
+
params,
|
|
16644
|
+
requiredParams: ['name'],
|
|
16645
|
+
pathParams: ['name'],
|
|
16646
|
+
context: this.context,
|
|
16647
|
+
};
|
|
16648
|
+
if (callback) {
|
|
16649
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
16650
|
+
parameters,
|
|
16651
|
+
callback as BodyResponseCallback<unknown>
|
|
16652
|
+
);
|
|
16653
|
+
} else {
|
|
16654
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
16655
|
+
parameters
|
|
16656
|
+
);
|
|
16657
|
+
}
|
|
16658
|
+
}
|
|
16659
|
+
|
|
16660
|
+
/**
|
|
16661
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
16662
|
+
*
|
|
16663
|
+
* @param params - Parameters for request
|
|
16664
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
16665
|
+
* @param callback - Optional callback that handles the response.
|
|
16666
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16667
|
+
*/
|
|
16668
|
+
list(
|
|
16669
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$List,
|
|
16670
|
+
options: StreamMethodOptions
|
|
16671
|
+
): GaxiosPromise<Readable>;
|
|
16672
|
+
list(
|
|
16673
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$List,
|
|
16674
|
+
options?: MethodOptions
|
|
16675
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>;
|
|
16676
|
+
list(
|
|
16677
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$List,
|
|
16678
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16679
|
+
callback: BodyResponseCallback<Readable>
|
|
16680
|
+
): void;
|
|
16681
|
+
list(
|
|
16682
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$List,
|
|
16683
|
+
options:
|
|
16684
|
+
| MethodOptions
|
|
16685
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>,
|
|
16686
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16687
|
+
): void;
|
|
16688
|
+
list(
|
|
16689
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$List,
|
|
16690
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16691
|
+
): void;
|
|
16692
|
+
list(
|
|
16693
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16694
|
+
): void;
|
|
16695
|
+
list(
|
|
16696
|
+
paramsOrCallback?:
|
|
16697
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$List
|
|
16698
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16699
|
+
| BodyResponseCallback<Readable>,
|
|
16700
|
+
optionsOrCallback?:
|
|
16701
|
+
| MethodOptions
|
|
16702
|
+
| StreamMethodOptions
|
|
16703
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16704
|
+
| BodyResponseCallback<Readable>,
|
|
16705
|
+
callback?:
|
|
16706
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16707
|
+
| BodyResponseCallback<Readable>
|
|
16708
|
+
):
|
|
16709
|
+
| void
|
|
16710
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
|
|
16711
|
+
| GaxiosPromise<Readable> {
|
|
16712
|
+
let params = (paramsOrCallback ||
|
|
16713
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$List;
|
|
16714
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16715
|
+
|
|
16716
|
+
if (typeof paramsOrCallback === 'function') {
|
|
16717
|
+
callback = paramsOrCallback;
|
|
16718
|
+
params =
|
|
16719
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$List;
|
|
16720
|
+
options = {};
|
|
16721
|
+
}
|
|
16722
|
+
|
|
16723
|
+
if (typeof optionsOrCallback === 'function') {
|
|
16724
|
+
callback = optionsOrCallback;
|
|
16725
|
+
options = {};
|
|
16726
|
+
}
|
|
16727
|
+
|
|
16728
|
+
const rootUrl =
|
|
16729
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
16730
|
+
const parameters = {
|
|
16731
|
+
options: Object.assign(
|
|
16732
|
+
{
|
|
16733
|
+
url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
|
|
16734
|
+
/([^:]\/)\/+/g,
|
|
16735
|
+
'$1'
|
|
16736
|
+
),
|
|
16737
|
+
method: 'GET',
|
|
16738
|
+
},
|
|
16739
|
+
options
|
|
16740
|
+
),
|
|
16741
|
+
params,
|
|
16742
|
+
requiredParams: ['parent'],
|
|
16743
|
+
pathParams: ['parent'],
|
|
16744
|
+
context: this.context,
|
|
16745
|
+
};
|
|
16746
|
+
if (callback) {
|
|
16747
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
16748
|
+
parameters,
|
|
16749
|
+
callback as BodyResponseCallback<unknown>
|
|
16750
|
+
);
|
|
16751
|
+
} else {
|
|
16752
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
|
|
16753
|
+
parameters
|
|
16754
|
+
);
|
|
16755
|
+
}
|
|
16756
|
+
}
|
|
16757
|
+
|
|
16758
|
+
/**
|
|
16759
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
16760
|
+
*
|
|
16761
|
+
* @param params - Parameters for request
|
|
16762
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
16763
|
+
* @param callback - Optional callback that handles the response.
|
|
16764
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16765
|
+
*/
|
|
16766
|
+
patch(
|
|
16767
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch,
|
|
16768
|
+
options: StreamMethodOptions
|
|
16769
|
+
): GaxiosPromise<Readable>;
|
|
16770
|
+
patch(
|
|
16771
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch,
|
|
16772
|
+
options?: MethodOptions
|
|
16773
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>;
|
|
16774
|
+
patch(
|
|
16775
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch,
|
|
16776
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16777
|
+
callback: BodyResponseCallback<Readable>
|
|
16778
|
+
): void;
|
|
16779
|
+
patch(
|
|
16780
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch,
|
|
16781
|
+
options:
|
|
16782
|
+
| MethodOptions
|
|
16783
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
|
|
16784
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16785
|
+
): void;
|
|
16786
|
+
patch(
|
|
16787
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch,
|
|
16788
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16789
|
+
): void;
|
|
16790
|
+
patch(
|
|
16791
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16792
|
+
): void;
|
|
16793
|
+
patch(
|
|
16794
|
+
paramsOrCallback?:
|
|
16795
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch
|
|
16796
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16797
|
+
| BodyResponseCallback<Readable>,
|
|
16798
|
+
optionsOrCallback?:
|
|
16799
|
+
| MethodOptions
|
|
16800
|
+
| StreamMethodOptions
|
|
16801
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16802
|
+
| BodyResponseCallback<Readable>,
|
|
16803
|
+
callback?:
|
|
16804
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16805
|
+
| BodyResponseCallback<Readable>
|
|
16806
|
+
):
|
|
16807
|
+
| void
|
|
16808
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
|
|
16809
|
+
| GaxiosPromise<Readable> {
|
|
16810
|
+
let params = (paramsOrCallback ||
|
|
16811
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch;
|
|
16812
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16813
|
+
|
|
16814
|
+
if (typeof paramsOrCallback === 'function') {
|
|
16815
|
+
callback = paramsOrCallback;
|
|
16816
|
+
params =
|
|
16817
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch;
|
|
16818
|
+
options = {};
|
|
16819
|
+
}
|
|
16820
|
+
|
|
16821
|
+
if (typeof optionsOrCallback === 'function') {
|
|
16822
|
+
callback = optionsOrCallback;
|
|
16823
|
+
options = {};
|
|
16824
|
+
}
|
|
16825
|
+
|
|
16826
|
+
const rootUrl =
|
|
16827
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
16828
|
+
const parameters = {
|
|
16829
|
+
options: Object.assign(
|
|
16830
|
+
{
|
|
16831
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
16832
|
+
method: 'PATCH',
|
|
16833
|
+
},
|
|
16834
|
+
options
|
|
16835
|
+
),
|
|
16836
|
+
params,
|
|
16837
|
+
requiredParams: ['name'],
|
|
16838
|
+
pathParams: ['name'],
|
|
16839
|
+
context: this.context,
|
|
16840
|
+
};
|
|
16841
|
+
if (callback) {
|
|
16842
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
16843
|
+
parameters,
|
|
16844
|
+
callback as BodyResponseCallback<unknown>
|
|
16845
|
+
);
|
|
16846
|
+
} else {
|
|
16847
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
|
|
16848
|
+
parameters
|
|
16849
|
+
);
|
|
16850
|
+
}
|
|
16851
|
+
}
|
|
16852
|
+
|
|
15779
16853
|
/**
|
|
15780
16854
|
* Makes a recommendation, which requires a contextual user event.
|
|
15781
16855
|
*
|
|
@@ -15973,6 +17047,44 @@ export namespace discoveryengine_v1beta {
|
|
|
15973
17047
|
}
|
|
15974
17048
|
}
|
|
15975
17049
|
|
|
17050
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get
|
|
17051
|
+
extends StandardParameters {
|
|
17052
|
+
/**
|
|
17053
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/servingConfigs/{serving_config_id\}`
|
|
17054
|
+
*/
|
|
17055
|
+
name?: string;
|
|
17056
|
+
}
|
|
17057
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$List
|
|
17058
|
+
extends StandardParameters {
|
|
17059
|
+
/**
|
|
17060
|
+
* Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
|
|
17061
|
+
*/
|
|
17062
|
+
pageSize?: number;
|
|
17063
|
+
/**
|
|
17064
|
+
* Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
17065
|
+
*/
|
|
17066
|
+
pageToken?: string;
|
|
17067
|
+
/**
|
|
17068
|
+
* Required. The dataStore resource name. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`
|
|
17069
|
+
*/
|
|
17070
|
+
parent?: string;
|
|
17071
|
+
}
|
|
17072
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch
|
|
17073
|
+
extends StandardParameters {
|
|
17074
|
+
/**
|
|
17075
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/servingConfigs/{serving_config_id\}`
|
|
17076
|
+
*/
|
|
17077
|
+
name?: string;
|
|
17078
|
+
/**
|
|
17079
|
+
* Indicates which fields in the provided ServingConfig to update. The following are NOT supported: * ServingConfig.name If not set, all supported fields are updated.
|
|
17080
|
+
*/
|
|
17081
|
+
updateMask?: string;
|
|
17082
|
+
|
|
17083
|
+
/**
|
|
17084
|
+
* Request body metadata
|
|
17085
|
+
*/
|
|
17086
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
|
|
17087
|
+
}
|
|
15976
17088
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Recommend
|
|
15977
17089
|
extends StandardParameters {
|
|
15978
17090
|
/**
|