@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230209 → 0.0.20230306
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/index.d.ts +908 -77
- package/package.json +1 -1
- package/tests.ts +412 -31
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230306
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -43,18 +43,6 @@ declare namespace gapi.client {
|
|
|
43
43
|
importPayload?: GoogleCloudDiscoveryengineLoggingImportErrorContext;
|
|
44
44
|
/** A message describing the error. */
|
|
45
45
|
message?: string;
|
|
46
|
-
/**
|
|
47
|
-
* The API request payload, represented as a protocol buffer. Most API request types are supported. For example:
|
|
48
|
-
* "type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocumentRequest"
|
|
49
|
-
* "type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventRequest"
|
|
50
|
-
*/
|
|
51
|
-
requestPayload?: { [P in string]: any };
|
|
52
|
-
/**
|
|
53
|
-
* The API response payload, represented as a protocol buffer. This is used to log some "soft errors", where the response is valid but we consider there are some quality issues like
|
|
54
|
-
* unjoined events. The following API responses are supported and no PII is included: "google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend"
|
|
55
|
-
* "google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent" "google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent"
|
|
56
|
-
*/
|
|
57
|
-
responsePayload?: { [P in string]: any };
|
|
58
46
|
/** The service context in which this error has occurred. */
|
|
59
47
|
serviceContext?: GoogleCloudDiscoveryengineLoggingServiceContext;
|
|
60
48
|
/** The RPC status associated with the error log. */
|
|
@@ -77,11 +65,11 @@ declare namespace gapi.client {
|
|
|
77
65
|
userEvent?: string;
|
|
78
66
|
}
|
|
79
67
|
interface GoogleCloudDiscoveryengineLoggingServiceContext {
|
|
80
|
-
/** An identifier of the service
|
|
68
|
+
/** An identifier of the service—for example, `discoveryengine.googleapis.com`. */
|
|
81
69
|
service?: string;
|
|
82
70
|
}
|
|
83
71
|
interface GoogleCloudDiscoveryengineLoggingSourceLocation {
|
|
84
|
-
/** Human-readable name of a function or method
|
|
72
|
+
/** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
|
|
85
73
|
functionName?: string;
|
|
86
74
|
}
|
|
87
75
|
interface GoogleCloudDiscoveryengineV1alphaBigQuerySource {
|
|
@@ -110,6 +98,67 @@ declare namespace gapi.client {
|
|
|
110
98
|
/** End user selected CompleteQueryResponse.CompletionResult.suggestion. */
|
|
111
99
|
selectedSuggestion?: string;
|
|
112
100
|
}
|
|
101
|
+
interface GoogleCloudDiscoveryengineV1alphaCondition {
|
|
102
|
+
/** Optional. Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
|
|
103
|
+
activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
|
|
104
|
+
/** Optional. Search only A list of terms to match the query on. Maximum of 10 query terms. */
|
|
105
|
+
queryTerms?: GoogleCloudDiscoveryengineV1alphaConditionQueryTerm[];
|
|
106
|
+
}
|
|
107
|
+
interface GoogleCloudDiscoveryengineV1alphaConditionQueryTerm {
|
|
108
|
+
/** Whether the search query needs to exactly match the query term. */
|
|
109
|
+
fullMatch?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The specific query value to match against Must be lowercase, must be UTF-8. Can have at most 3 space separated terms if full_match is true. Cannot be an empty string. Maximum length
|
|
112
|
+
* of 5000 characters.
|
|
113
|
+
*/
|
|
114
|
+
value?: string;
|
|
115
|
+
}
|
|
116
|
+
interface GoogleCloudDiscoveryengineV1alphaConditionTimeRange {
|
|
117
|
+
/** End of time range. Range is inclusive. Must be in the future. */
|
|
118
|
+
endTime?: string;
|
|
119
|
+
/** Start of time range. Range is inclusive. */
|
|
120
|
+
startTime?: string;
|
|
121
|
+
}
|
|
122
|
+
interface GoogleCloudDiscoveryengineV1alphaControl {
|
|
123
|
+
/** Output only. List of all [ServingConfig] ids this control is attached to. May take up to 10 minutes to update after changes. */
|
|
124
|
+
associatedServingConfigIds?: string[];
|
|
125
|
+
/** Defines a boost-type control */
|
|
126
|
+
boostAction?: GoogleCloudDiscoveryengineV1alphaControlBoostAction;
|
|
127
|
+
/**
|
|
128
|
+
* Determines when the associated action will trigger. Omit to always apply the action. Currently only a single condition may be specified. Otherwise an INVALID ARGUMENT error is
|
|
129
|
+
* thrown.
|
|
130
|
+
*/
|
|
131
|
+
conditions?: GoogleCloudDiscoveryengineV1alphaCondition[];
|
|
132
|
+
/** Required. Human readable name. The identifier used in UI views. Must be UTF-8 encoded string. Length limit is 128 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
133
|
+
displayName?: string;
|
|
134
|
+
/** Defines a filter-type control Currently not supported by Recommendation */
|
|
135
|
+
filterAction?: GoogleCloudDiscoveryengineV1alphaControlFilterAction;
|
|
136
|
+
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
137
|
+
name?: string;
|
|
138
|
+
/** Required. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
139
|
+
solutionType?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Specifies the use case for the control. Affects what condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. Currently only allow one use case per control. Must be set
|
|
142
|
+
* when solution_type is SolutionType.SOLUTION_TYPE_SEARCH.
|
|
143
|
+
*/
|
|
144
|
+
useCases?: string[];
|
|
145
|
+
}
|
|
146
|
+
interface GoogleCloudDiscoveryengineV1alphaControlBoostAction {
|
|
147
|
+
/** Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op). */
|
|
148
|
+
boost?: number;
|
|
149
|
+
/**
|
|
150
|
+
* Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation:
|
|
151
|
+
* https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
|
|
152
|
+
*/
|
|
153
|
+
filter?: string;
|
|
154
|
+
}
|
|
155
|
+
interface GoogleCloudDiscoveryengineV1alphaControlFilterAction {
|
|
156
|
+
/**
|
|
157
|
+
* Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000
|
|
158
|
+
* characters. Otherwise an INVALID ARGUMENT error is thrown.
|
|
159
|
+
*/
|
|
160
|
+
filter?: string;
|
|
161
|
+
}
|
|
113
162
|
interface GoogleCloudDiscoveryengineV1alphaCustomAttribute {
|
|
114
163
|
/**
|
|
115
164
|
* The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT
|
|
@@ -128,8 +177,9 @@ declare namespace gapi.client {
|
|
|
128
177
|
/** The JSON string representation of the document. It should conform to the registered schema or an INVALID_ARGUMENT error is thrown. */
|
|
129
178
|
jsonData?: string;
|
|
130
179
|
/**
|
|
131
|
-
* Immutable. The full resource name of the document. Format:
|
|
132
|
-
* must be a UTF-8 encoded string with
|
|
180
|
+
* Immutable. The full resource name of the document. Format:
|
|
181
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string with
|
|
182
|
+
* a length limit of 1024 characters.
|
|
133
183
|
*/
|
|
134
184
|
name?: string;
|
|
135
185
|
/**
|
|
@@ -145,7 +195,10 @@ declare namespace gapi.client {
|
|
|
145
195
|
interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
|
|
146
196
|
/** Required. The Document resource ID. */
|
|
147
197
|
id?: string;
|
|
148
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Required. The Document resource full name, of the form:
|
|
200
|
+
* projects/{project\_id}/locations/{location}/collections/{collection\_id}/dataStores/{data\_store\_id}/branches/{branch\_id}/documents/{document\_id}
|
|
201
|
+
*/
|
|
149
202
|
name?: string;
|
|
150
203
|
/** The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID. */
|
|
151
204
|
promotionIds?: string[];
|
|
@@ -610,7 +663,7 @@ declare namespace gapi.client {
|
|
|
610
663
|
key?: string;
|
|
611
664
|
/** OAuth 2.0 token for the current user. */
|
|
612
665
|
oauth_token?: string;
|
|
613
|
-
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. */
|
|
666
|
+
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
|
|
614
667
|
parent: string;
|
|
615
668
|
/** Returns response with indentations and line breaks. */
|
|
616
669
|
prettyPrint?: boolean;
|
|
@@ -645,7 +698,7 @@ declare namespace gapi.client {
|
|
|
645
698
|
key?: string;
|
|
646
699
|
/** OAuth 2.0 token for the current user. */
|
|
647
700
|
oauth_token?: string;
|
|
648
|
-
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. */
|
|
701
|
+
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
|
|
649
702
|
parent: string;
|
|
650
703
|
/** Returns response with indentations and line breaks. */
|
|
651
704
|
prettyPrint?: boolean;
|
|
@@ -672,9 +725,9 @@ declare namespace gapi.client {
|
|
|
672
725
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
673
726
|
key?: string;
|
|
674
727
|
/**
|
|
675
|
-
* Required. Full resource name of Document, such as
|
|
676
|
-
*
|
|
677
|
-
* error is returned.
|
|
728
|
+
* Required. Full resource name of Document, such as
|
|
729
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
|
|
730
|
+
* delete the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Document to delete does not exist, a NOT_FOUND error is returned.
|
|
678
731
|
*/
|
|
679
732
|
name: string;
|
|
680
733
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -703,9 +756,9 @@ declare namespace gapi.client {
|
|
|
703
756
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
704
757
|
key?: string;
|
|
705
758
|
/**
|
|
706
|
-
* Required. Full resource name of Document, such as
|
|
707
|
-
*
|
|
708
|
-
* error is returned.
|
|
759
|
+
* Required. Full resource name of Document, such as
|
|
760
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
|
|
761
|
+
* access the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Document does not exist, a NOT_FOUND error is returned.
|
|
709
762
|
*/
|
|
710
763
|
name: string;
|
|
711
764
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -738,7 +791,10 @@ declare namespace gapi.client {
|
|
|
738
791
|
key?: string;
|
|
739
792
|
/** OAuth 2.0 token for the current user. */
|
|
740
793
|
oauth_token?: string;
|
|
741
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
|
|
796
|
+
* create/update permission.
|
|
797
|
+
*/
|
|
742
798
|
parent: string;
|
|
743
799
|
/** Returns response with indentations and line breaks. */
|
|
744
800
|
prettyPrint?: boolean;
|
|
@@ -766,7 +822,10 @@ declare namespace gapi.client {
|
|
|
766
822
|
key?: string;
|
|
767
823
|
/** OAuth 2.0 token for the current user. */
|
|
768
824
|
oauth_token?: string;
|
|
769
|
-
/**
|
|
825
|
+
/**
|
|
826
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
|
|
827
|
+
* create/update permission.
|
|
828
|
+
*/
|
|
770
829
|
parent: string;
|
|
771
830
|
/** Returns response with indentations and line breaks. */
|
|
772
831
|
prettyPrint?: boolean;
|
|
@@ -805,9 +864,9 @@ declare namespace gapi.client {
|
|
|
805
864
|
*/
|
|
806
865
|
pageToken?: string;
|
|
807
866
|
/**
|
|
808
|
-
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. Use
|
|
809
|
-
* list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether
|
|
810
|
-
* PERMISSION_DENIED error is returned.
|
|
867
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
|
|
868
|
+
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether
|
|
869
|
+
* or not this branch exists, a PERMISSION_DENIED error is returned.
|
|
811
870
|
*/
|
|
812
871
|
parent: string;
|
|
813
872
|
/** Returns response with indentations and line breaks. */
|
|
@@ -836,8 +895,9 @@ declare namespace gapi.client {
|
|
|
836
895
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
837
896
|
key?: string;
|
|
838
897
|
/**
|
|
839
|
-
* Immutable. The full resource name of the document. Format:
|
|
840
|
-
* field must be a UTF-8 encoded string
|
|
898
|
+
* Immutable. The full resource name of the document. Format:
|
|
899
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
|
|
900
|
+
* with a length limit of 1024 characters.
|
|
841
901
|
*/
|
|
842
902
|
name: string;
|
|
843
903
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -869,8 +929,9 @@ declare namespace gapi.client {
|
|
|
869
929
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
870
930
|
key?: string;
|
|
871
931
|
/**
|
|
872
|
-
* Immutable. The full resource name of the document. Format:
|
|
873
|
-
* field must be a UTF-8 encoded string
|
|
932
|
+
* Immutable. The full resource name of the document. Format:
|
|
933
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
|
|
934
|
+
* with a length limit of 1024 characters.
|
|
874
935
|
*/
|
|
875
936
|
name: string;
|
|
876
937
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -914,12 +975,7 @@ declare namespace gapi.client {
|
|
|
914
975
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
915
976
|
uploadType?: string;
|
|
916
977
|
}): Request<GoogleLongrunningOperation>;
|
|
917
|
-
/**
|
|
918
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
919
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
920
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
921
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
922
|
-
*/
|
|
978
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
923
979
|
list(request?: {
|
|
924
980
|
/** V1 error format. */
|
|
925
981
|
"$.xgafv"?: string;
|
|
@@ -985,12 +1041,7 @@ declare namespace gapi.client {
|
|
|
985
1041
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
986
1042
|
uploadType?: string;
|
|
987
1043
|
}): Request<GoogleLongrunningOperation>;
|
|
988
|
-
/**
|
|
989
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
990
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
991
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
992
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
993
|
-
*/
|
|
1044
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
994
1045
|
list(request?: {
|
|
995
1046
|
/** V1 error format. */
|
|
996
1047
|
"$.xgafv"?: string;
|
|
@@ -1055,12 +1106,7 @@ declare namespace gapi.client {
|
|
|
1055
1106
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1056
1107
|
uploadType?: string;
|
|
1057
1108
|
}): Request<GoogleLongrunningOperation>;
|
|
1058
|
-
/**
|
|
1059
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
1060
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
1061
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1062
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1063
|
-
*/
|
|
1109
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1064
1110
|
list(request?: {
|
|
1065
1111
|
/** V1 error format. */
|
|
1066
1112
|
"$.xgafv"?: string;
|
|
@@ -1116,8 +1162,8 @@ declare namespace gapi.client {
|
|
|
1116
1162
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1117
1163
|
quotaUser?: string;
|
|
1118
1164
|
/**
|
|
1119
|
-
* Required. Full resource name of the format: projects/*/locations/global/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1120
|
-
* at least one serving config for it.
|
|
1165
|
+
* Required. Full resource name of the format: projects/*/locations/global/collections/*/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1166
|
+
* you must create at least one serving config for it.
|
|
1121
1167
|
*/
|
|
1122
1168
|
servingConfig: string;
|
|
1123
1169
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1147,8 +1193,8 @@ declare namespace gapi.client {
|
|
|
1147
1193
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1148
1194
|
quotaUser?: string;
|
|
1149
1195
|
/**
|
|
1150
|
-
* Required. Full resource name of the format: projects/*/locations/global/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1151
|
-
* at least one serving config for it.
|
|
1196
|
+
* Required. Full resource name of the format: projects/*/locations/global/collections/*/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1197
|
+
* you must create at least one serving config for it.
|
|
1152
1198
|
*/
|
|
1153
1199
|
servingConfig: string;
|
|
1154
1200
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1180,7 +1226,7 @@ declare namespace gapi.client {
|
|
|
1180
1226
|
key?: string;
|
|
1181
1227
|
/** OAuth 2.0 token for the current user. */
|
|
1182
1228
|
oauth_token?: string;
|
|
1183
|
-
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
|
|
1229
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
1184
1230
|
parent: string;
|
|
1185
1231
|
/** Returns response with indentations and line breaks. */
|
|
1186
1232
|
prettyPrint?: boolean;
|
|
@@ -1217,7 +1263,7 @@ declare namespace gapi.client {
|
|
|
1217
1263
|
key?: string;
|
|
1218
1264
|
/** OAuth 2.0 token for the current user. */
|
|
1219
1265
|
oauth_token?: string;
|
|
1220
|
-
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/dataStores/{data_store}` */
|
|
1266
|
+
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
|
|
1221
1267
|
parent: string;
|
|
1222
1268
|
/** Returns response with indentations and line breaks. */
|
|
1223
1269
|
prettyPrint?: boolean;
|
|
@@ -1245,7 +1291,7 @@ declare namespace gapi.client {
|
|
|
1245
1291
|
key?: string;
|
|
1246
1292
|
/** OAuth 2.0 token for the current user. */
|
|
1247
1293
|
oauth_token?: string;
|
|
1248
|
-
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/dataStores/{data_store}` */
|
|
1294
|
+
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
|
|
1249
1295
|
parent: string;
|
|
1250
1296
|
/** Returns response with indentations and line breaks. */
|
|
1251
1297
|
prettyPrint?: boolean;
|
|
@@ -1273,7 +1319,7 @@ declare namespace gapi.client {
|
|
|
1273
1319
|
key?: string;
|
|
1274
1320
|
/** OAuth 2.0 token for the current user. */
|
|
1275
1321
|
oauth_token?: string;
|
|
1276
|
-
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
|
|
1322
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
1277
1323
|
parent: string;
|
|
1278
1324
|
/** Returns response with indentations and line breaks. */
|
|
1279
1325
|
prettyPrint?: boolean;
|
|
@@ -1301,7 +1347,7 @@ declare namespace gapi.client {
|
|
|
1301
1347
|
key?: string;
|
|
1302
1348
|
/** OAuth 2.0 token for the current user. */
|
|
1303
1349
|
oauth_token?: string;
|
|
1304
|
-
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
|
|
1350
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
1305
1351
|
parent: string;
|
|
1306
1352
|
/** Returns response with indentations and line breaks. */
|
|
1307
1353
|
prettyPrint?: boolean;
|
|
@@ -1349,12 +1395,7 @@ declare namespace gapi.client {
|
|
|
1349
1395
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1350
1396
|
uploadType?: string;
|
|
1351
1397
|
}): Request<GoogleLongrunningOperation>;
|
|
1352
|
-
/**
|
|
1353
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
1354
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
1355
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1356
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1357
|
-
*/
|
|
1398
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1358
1399
|
list(request?: {
|
|
1359
1400
|
/** V1 error format. */
|
|
1360
1401
|
"$.xgafv"?: string;
|
|
@@ -1388,12 +1429,113 @@ declare namespace gapi.client {
|
|
|
1388
1429
|
uploadType?: string;
|
|
1389
1430
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1390
1431
|
}
|
|
1391
|
-
interface
|
|
1432
|
+
interface CollectionsResource {
|
|
1392
1433
|
dataStores: DataStoresResource;
|
|
1393
1434
|
operations: OperationsResource;
|
|
1394
1435
|
}
|
|
1395
|
-
interface
|
|
1396
|
-
/**
|
|
1436
|
+
interface DocumentsResource {
|
|
1437
|
+
/** Creates a Document. */
|
|
1438
|
+
create(request: {
|
|
1439
|
+
/** V1 error format. */
|
|
1440
|
+
"$.xgafv"?: string;
|
|
1441
|
+
/** OAuth access token. */
|
|
1442
|
+
access_token?: string;
|
|
1443
|
+
/** Data format for response. */
|
|
1444
|
+
alt?: string;
|
|
1445
|
+
/** JSONP */
|
|
1446
|
+
callback?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
|
|
1449
|
+
* of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is
|
|
1450
|
+
* returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is
|
|
1451
|
+
* returned.
|
|
1452
|
+
*/
|
|
1453
|
+
documentId?: string;
|
|
1454
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1455
|
+
fields?: string;
|
|
1456
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1457
|
+
key?: string;
|
|
1458
|
+
/** OAuth 2.0 token for the current user. */
|
|
1459
|
+
oauth_token?: string;
|
|
1460
|
+
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
|
|
1461
|
+
parent: string;
|
|
1462
|
+
/** Returns response with indentations and line breaks. */
|
|
1463
|
+
prettyPrint?: boolean;
|
|
1464
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1465
|
+
quotaUser?: string;
|
|
1466
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1467
|
+
upload_protocol?: string;
|
|
1468
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1469
|
+
uploadType?: string;
|
|
1470
|
+
/** Request body */
|
|
1471
|
+
resource: GoogleCloudDiscoveryengineV1alphaDocument;
|
|
1472
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
1473
|
+
create(request: {
|
|
1474
|
+
/** V1 error format. */
|
|
1475
|
+
"$.xgafv"?: string;
|
|
1476
|
+
/** OAuth access token. */
|
|
1477
|
+
access_token?: string;
|
|
1478
|
+
/** Data format for response. */
|
|
1479
|
+
alt?: string;
|
|
1480
|
+
/** JSONP */
|
|
1481
|
+
callback?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
|
|
1484
|
+
* of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is
|
|
1485
|
+
* returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is
|
|
1486
|
+
* returned.
|
|
1487
|
+
*/
|
|
1488
|
+
documentId?: string;
|
|
1489
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1490
|
+
fields?: string;
|
|
1491
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1492
|
+
key?: string;
|
|
1493
|
+
/** OAuth 2.0 token for the current user. */
|
|
1494
|
+
oauth_token?: string;
|
|
1495
|
+
/** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
|
|
1496
|
+
parent: string;
|
|
1497
|
+
/** Returns response with indentations and line breaks. */
|
|
1498
|
+
prettyPrint?: boolean;
|
|
1499
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1500
|
+
quotaUser?: string;
|
|
1501
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1502
|
+
upload_protocol?: string;
|
|
1503
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1504
|
+
uploadType?: string;
|
|
1505
|
+
},
|
|
1506
|
+
body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
1507
|
+
/** Deletes a Document. */
|
|
1508
|
+
delete(request?: {
|
|
1509
|
+
/** V1 error format. */
|
|
1510
|
+
"$.xgafv"?: string;
|
|
1511
|
+
/** OAuth access token. */
|
|
1512
|
+
access_token?: string;
|
|
1513
|
+
/** Data format for response. */
|
|
1514
|
+
alt?: string;
|
|
1515
|
+
/** JSONP */
|
|
1516
|
+
callback?: string;
|
|
1517
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1518
|
+
fields?: string;
|
|
1519
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1520
|
+
key?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* Required. Full resource name of Document, such as
|
|
1523
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
|
|
1524
|
+
* delete the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Document to delete does not exist, a NOT_FOUND error is returned.
|
|
1525
|
+
*/
|
|
1526
|
+
name: string;
|
|
1527
|
+
/** OAuth 2.0 token for the current user. */
|
|
1528
|
+
oauth_token?: string;
|
|
1529
|
+
/** Returns response with indentations and line breaks. */
|
|
1530
|
+
prettyPrint?: boolean;
|
|
1531
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1532
|
+
quotaUser?: string;
|
|
1533
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1534
|
+
upload_protocol?: string;
|
|
1535
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1536
|
+
uploadType?: string;
|
|
1537
|
+
}): Request<{}>;
|
|
1538
|
+
/** Gets a Document. */
|
|
1397
1539
|
get(request?: {
|
|
1398
1540
|
/** V1 error format. */
|
|
1399
1541
|
"$.xgafv"?: string;
|
|
@@ -1407,7 +1549,11 @@ declare namespace gapi.client {
|
|
|
1407
1549
|
fields?: string;
|
|
1408
1550
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1409
1551
|
key?: string;
|
|
1410
|
-
/**
|
|
1552
|
+
/**
|
|
1553
|
+
* Required. Full resource name of Document, such as
|
|
1554
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
|
|
1555
|
+
* access the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Document does not exist, a NOT_FOUND error is returned.
|
|
1556
|
+
*/
|
|
1411
1557
|
name: string;
|
|
1412
1558
|
/** OAuth 2.0 token for the current user. */
|
|
1413
1559
|
oauth_token?: string;
|
|
@@ -1419,13 +1565,698 @@ declare namespace gapi.client {
|
|
|
1419
1565
|
upload_protocol?: string;
|
|
1420
1566
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1421
1567
|
uploadType?: string;
|
|
1422
|
-
}): Request<
|
|
1568
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
1423
1569
|
/**
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1426
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1427
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1570
|
+
* Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully
|
|
1571
|
+
* updated.
|
|
1428
1572
|
*/
|
|
1573
|
+
import(request: {
|
|
1574
|
+
/** V1 error format. */
|
|
1575
|
+
"$.xgafv"?: string;
|
|
1576
|
+
/** OAuth access token. */
|
|
1577
|
+
access_token?: string;
|
|
1578
|
+
/** Data format for response. */
|
|
1579
|
+
alt?: string;
|
|
1580
|
+
/** JSONP */
|
|
1581
|
+
callback?: string;
|
|
1582
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1583
|
+
fields?: string;
|
|
1584
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1585
|
+
key?: string;
|
|
1586
|
+
/** OAuth 2.0 token for the current user. */
|
|
1587
|
+
oauth_token?: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
|
|
1590
|
+
* create/update permission.
|
|
1591
|
+
*/
|
|
1592
|
+
parent: string;
|
|
1593
|
+
/** Returns response with indentations and line breaks. */
|
|
1594
|
+
prettyPrint?: boolean;
|
|
1595
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1596
|
+
quotaUser?: string;
|
|
1597
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1598
|
+
upload_protocol?: string;
|
|
1599
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1600
|
+
uploadType?: string;
|
|
1601
|
+
/** Request body */
|
|
1602
|
+
resource: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest;
|
|
1603
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1604
|
+
import(request: {
|
|
1605
|
+
/** V1 error format. */
|
|
1606
|
+
"$.xgafv"?: string;
|
|
1607
|
+
/** OAuth access token. */
|
|
1608
|
+
access_token?: string;
|
|
1609
|
+
/** Data format for response. */
|
|
1610
|
+
alt?: string;
|
|
1611
|
+
/** JSONP */
|
|
1612
|
+
callback?: string;
|
|
1613
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1614
|
+
fields?: string;
|
|
1615
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1616
|
+
key?: string;
|
|
1617
|
+
/** OAuth 2.0 token for the current user. */
|
|
1618
|
+
oauth_token?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
|
|
1621
|
+
* create/update permission.
|
|
1622
|
+
*/
|
|
1623
|
+
parent: string;
|
|
1624
|
+
/** Returns response with indentations and line breaks. */
|
|
1625
|
+
prettyPrint?: boolean;
|
|
1626
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1627
|
+
quotaUser?: string;
|
|
1628
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1629
|
+
upload_protocol?: string;
|
|
1630
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1631
|
+
uploadType?: string;
|
|
1632
|
+
},
|
|
1633
|
+
body: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest): Request<GoogleLongrunningOperation>;
|
|
1634
|
+
/** Gets a list of Documents. */
|
|
1635
|
+
list(request?: {
|
|
1636
|
+
/** V1 error format. */
|
|
1637
|
+
"$.xgafv"?: string;
|
|
1638
|
+
/** OAuth access token. */
|
|
1639
|
+
access_token?: string;
|
|
1640
|
+
/** Data format for response. */
|
|
1641
|
+
alt?: string;
|
|
1642
|
+
/** JSONP */
|
|
1643
|
+
callback?: string;
|
|
1644
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1645
|
+
fields?: string;
|
|
1646
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1647
|
+
key?: string;
|
|
1648
|
+
/** OAuth 2.0 token for the current user. */
|
|
1649
|
+
oauth_token?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* Maximum number of Documents to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative,
|
|
1652
|
+
* an INVALID_ARGUMENT error is returned.
|
|
1653
|
+
*/
|
|
1654
|
+
pageSize?: number;
|
|
1655
|
+
/**
|
|
1656
|
+
* A page token ListDocumentsResponse.next_page_token, received from a previous DocumentService.ListDocuments call. Provide this to retrieve the subsequent page. When paginating,
|
|
1657
|
+
* all other parameters provided to DocumentService.ListDocuments must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
|
|
1658
|
+
*/
|
|
1659
|
+
pageToken?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
|
|
1662
|
+
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether
|
|
1663
|
+
* or not this branch exists, a PERMISSION_DENIED error is returned.
|
|
1664
|
+
*/
|
|
1665
|
+
parent: string;
|
|
1666
|
+
/** Returns response with indentations and line breaks. */
|
|
1667
|
+
prettyPrint?: boolean;
|
|
1668
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1669
|
+
quotaUser?: string;
|
|
1670
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1671
|
+
upload_protocol?: string;
|
|
1672
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1673
|
+
uploadType?: string;
|
|
1674
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaListDocumentsResponse>;
|
|
1675
|
+
/** Updates a Document. */
|
|
1676
|
+
patch(request: {
|
|
1677
|
+
/** V1 error format. */
|
|
1678
|
+
"$.xgafv"?: string;
|
|
1679
|
+
/** OAuth access token. */
|
|
1680
|
+
access_token?: string;
|
|
1681
|
+
/** If set to true, and the Document is not found, a new Document will be created. */
|
|
1682
|
+
allowMissing?: boolean;
|
|
1683
|
+
/** Data format for response. */
|
|
1684
|
+
alt?: string;
|
|
1685
|
+
/** JSONP */
|
|
1686
|
+
callback?: string;
|
|
1687
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1688
|
+
fields?: string;
|
|
1689
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1690
|
+
key?: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* Immutable. The full resource name of the document. Format:
|
|
1693
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
|
|
1694
|
+
* with a length limit of 1024 characters.
|
|
1695
|
+
*/
|
|
1696
|
+
name: string;
|
|
1697
|
+
/** OAuth 2.0 token for the current user. */
|
|
1698
|
+
oauth_token?: string;
|
|
1699
|
+
/** Returns response with indentations and line breaks. */
|
|
1700
|
+
prettyPrint?: boolean;
|
|
1701
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1702
|
+
quotaUser?: string;
|
|
1703
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1704
|
+
upload_protocol?: string;
|
|
1705
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1706
|
+
uploadType?: string;
|
|
1707
|
+
/** Request body */
|
|
1708
|
+
resource: GoogleCloudDiscoveryengineV1alphaDocument;
|
|
1709
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
1710
|
+
patch(request: {
|
|
1711
|
+
/** V1 error format. */
|
|
1712
|
+
"$.xgafv"?: string;
|
|
1713
|
+
/** OAuth access token. */
|
|
1714
|
+
access_token?: string;
|
|
1715
|
+
/** If set to true, and the Document is not found, a new Document will be created. */
|
|
1716
|
+
allowMissing?: boolean;
|
|
1717
|
+
/** Data format for response. */
|
|
1718
|
+
alt?: string;
|
|
1719
|
+
/** JSONP */
|
|
1720
|
+
callback?: string;
|
|
1721
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1722
|
+
fields?: string;
|
|
1723
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1724
|
+
key?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Immutable. The full resource name of the document. Format:
|
|
1727
|
+
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
|
|
1728
|
+
* with a length limit of 1024 characters.
|
|
1729
|
+
*/
|
|
1730
|
+
name: string;
|
|
1731
|
+
/** OAuth 2.0 token for the current user. */
|
|
1732
|
+
oauth_token?: string;
|
|
1733
|
+
/** Returns response with indentations and line breaks. */
|
|
1734
|
+
prettyPrint?: boolean;
|
|
1735
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1736
|
+
quotaUser?: string;
|
|
1737
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1738
|
+
upload_protocol?: string;
|
|
1739
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1740
|
+
uploadType?: string;
|
|
1741
|
+
},
|
|
1742
|
+
body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
1743
|
+
}
|
|
1744
|
+
interface OperationsResource {
|
|
1745
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1746
|
+
get(request?: {
|
|
1747
|
+
/** V1 error format. */
|
|
1748
|
+
"$.xgafv"?: string;
|
|
1749
|
+
/** OAuth access token. */
|
|
1750
|
+
access_token?: string;
|
|
1751
|
+
/** Data format for response. */
|
|
1752
|
+
alt?: string;
|
|
1753
|
+
/** JSONP */
|
|
1754
|
+
callback?: string;
|
|
1755
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1756
|
+
fields?: string;
|
|
1757
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1758
|
+
key?: string;
|
|
1759
|
+
/** The name of the operation resource. */
|
|
1760
|
+
name: string;
|
|
1761
|
+
/** OAuth 2.0 token for the current user. */
|
|
1762
|
+
oauth_token?: string;
|
|
1763
|
+
/** Returns response with indentations and line breaks. */
|
|
1764
|
+
prettyPrint?: boolean;
|
|
1765
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1766
|
+
quotaUser?: string;
|
|
1767
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1768
|
+
upload_protocol?: string;
|
|
1769
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1770
|
+
uploadType?: string;
|
|
1771
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1772
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1773
|
+
list(request?: {
|
|
1774
|
+
/** V1 error format. */
|
|
1775
|
+
"$.xgafv"?: string;
|
|
1776
|
+
/** OAuth access token. */
|
|
1777
|
+
access_token?: string;
|
|
1778
|
+
/** Data format for response. */
|
|
1779
|
+
alt?: string;
|
|
1780
|
+
/** JSONP */
|
|
1781
|
+
callback?: string;
|
|
1782
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1783
|
+
fields?: string;
|
|
1784
|
+
/** The standard list filter. */
|
|
1785
|
+
filter?: string;
|
|
1786
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1787
|
+
key?: string;
|
|
1788
|
+
/** The name of the operation's parent resource. */
|
|
1789
|
+
name: string;
|
|
1790
|
+
/** OAuth 2.0 token for the current user. */
|
|
1791
|
+
oauth_token?: string;
|
|
1792
|
+
/** The standard list page size. */
|
|
1793
|
+
pageSize?: number;
|
|
1794
|
+
/** The standard list page token. */
|
|
1795
|
+
pageToken?: string;
|
|
1796
|
+
/** Returns response with indentations and line breaks. */
|
|
1797
|
+
prettyPrint?: boolean;
|
|
1798
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1799
|
+
quotaUser?: string;
|
|
1800
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1801
|
+
upload_protocol?: string;
|
|
1802
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1803
|
+
uploadType?: string;
|
|
1804
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1805
|
+
}
|
|
1806
|
+
interface BranchesResource {
|
|
1807
|
+
documents: DocumentsResource;
|
|
1808
|
+
operations: OperationsResource;
|
|
1809
|
+
}
|
|
1810
|
+
interface OperationsResource {
|
|
1811
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1812
|
+
get(request?: {
|
|
1813
|
+
/** V1 error format. */
|
|
1814
|
+
"$.xgafv"?: string;
|
|
1815
|
+
/** OAuth access token. */
|
|
1816
|
+
access_token?: string;
|
|
1817
|
+
/** Data format for response. */
|
|
1818
|
+
alt?: string;
|
|
1819
|
+
/** JSONP */
|
|
1820
|
+
callback?: string;
|
|
1821
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1822
|
+
fields?: string;
|
|
1823
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1824
|
+
key?: string;
|
|
1825
|
+
/** The name of the operation resource. */
|
|
1826
|
+
name: string;
|
|
1827
|
+
/** OAuth 2.0 token for the current user. */
|
|
1828
|
+
oauth_token?: string;
|
|
1829
|
+
/** Returns response with indentations and line breaks. */
|
|
1830
|
+
prettyPrint?: boolean;
|
|
1831
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1832
|
+
quotaUser?: string;
|
|
1833
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1834
|
+
upload_protocol?: string;
|
|
1835
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1836
|
+
uploadType?: string;
|
|
1837
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1838
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1839
|
+
list(request?: {
|
|
1840
|
+
/** V1 error format. */
|
|
1841
|
+
"$.xgafv"?: string;
|
|
1842
|
+
/** OAuth access token. */
|
|
1843
|
+
access_token?: string;
|
|
1844
|
+
/** Data format for response. */
|
|
1845
|
+
alt?: string;
|
|
1846
|
+
/** JSONP */
|
|
1847
|
+
callback?: string;
|
|
1848
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1849
|
+
fields?: string;
|
|
1850
|
+
/** The standard list filter. */
|
|
1851
|
+
filter?: string;
|
|
1852
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1853
|
+
key?: string;
|
|
1854
|
+
/** The name of the operation's parent resource. */
|
|
1855
|
+
name: string;
|
|
1856
|
+
/** OAuth 2.0 token for the current user. */
|
|
1857
|
+
oauth_token?: string;
|
|
1858
|
+
/** The standard list page size. */
|
|
1859
|
+
pageSize?: number;
|
|
1860
|
+
/** The standard list page token. */
|
|
1861
|
+
pageToken?: string;
|
|
1862
|
+
/** Returns response with indentations and line breaks. */
|
|
1863
|
+
prettyPrint?: boolean;
|
|
1864
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1865
|
+
quotaUser?: string;
|
|
1866
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1867
|
+
upload_protocol?: string;
|
|
1868
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1869
|
+
uploadType?: string;
|
|
1870
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1871
|
+
}
|
|
1872
|
+
interface ModelsResource {
|
|
1873
|
+
operations: OperationsResource;
|
|
1874
|
+
}
|
|
1875
|
+
interface OperationsResource {
|
|
1876
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1877
|
+
get(request?: {
|
|
1878
|
+
/** V1 error format. */
|
|
1879
|
+
"$.xgafv"?: string;
|
|
1880
|
+
/** OAuth access token. */
|
|
1881
|
+
access_token?: string;
|
|
1882
|
+
/** Data format for response. */
|
|
1883
|
+
alt?: string;
|
|
1884
|
+
/** JSONP */
|
|
1885
|
+
callback?: string;
|
|
1886
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1887
|
+
fields?: string;
|
|
1888
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1889
|
+
key?: string;
|
|
1890
|
+
/** The name of the operation resource. */
|
|
1891
|
+
name: string;
|
|
1892
|
+
/** OAuth 2.0 token for the current user. */
|
|
1893
|
+
oauth_token?: string;
|
|
1894
|
+
/** Returns response with indentations and line breaks. */
|
|
1895
|
+
prettyPrint?: boolean;
|
|
1896
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1897
|
+
quotaUser?: string;
|
|
1898
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1899
|
+
upload_protocol?: string;
|
|
1900
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1901
|
+
uploadType?: string;
|
|
1902
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1903
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1904
|
+
list(request?: {
|
|
1905
|
+
/** V1 error format. */
|
|
1906
|
+
"$.xgafv"?: string;
|
|
1907
|
+
/** OAuth access token. */
|
|
1908
|
+
access_token?: string;
|
|
1909
|
+
/** Data format for response. */
|
|
1910
|
+
alt?: string;
|
|
1911
|
+
/** JSONP */
|
|
1912
|
+
callback?: string;
|
|
1913
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1914
|
+
fields?: string;
|
|
1915
|
+
/** The standard list filter. */
|
|
1916
|
+
filter?: string;
|
|
1917
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1918
|
+
key?: string;
|
|
1919
|
+
/** The name of the operation's parent resource. */
|
|
1920
|
+
name: string;
|
|
1921
|
+
/** OAuth 2.0 token for the current user. */
|
|
1922
|
+
oauth_token?: string;
|
|
1923
|
+
/** The standard list page size. */
|
|
1924
|
+
pageSize?: number;
|
|
1925
|
+
/** The standard list page token. */
|
|
1926
|
+
pageToken?: string;
|
|
1927
|
+
/** Returns response with indentations and line breaks. */
|
|
1928
|
+
prettyPrint?: boolean;
|
|
1929
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1930
|
+
quotaUser?: string;
|
|
1931
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1932
|
+
upload_protocol?: string;
|
|
1933
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1934
|
+
uploadType?: string;
|
|
1935
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1936
|
+
}
|
|
1937
|
+
interface ServingConfigsResource {
|
|
1938
|
+
/** Makes a recommendation, which requires a contextual user event. */
|
|
1939
|
+
recommend(request: {
|
|
1940
|
+
/** V1 error format. */
|
|
1941
|
+
"$.xgafv"?: string;
|
|
1942
|
+
/** OAuth access token. */
|
|
1943
|
+
access_token?: string;
|
|
1944
|
+
/** Data format for response. */
|
|
1945
|
+
alt?: string;
|
|
1946
|
+
/** JSONP */
|
|
1947
|
+
callback?: string;
|
|
1948
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1949
|
+
fields?: string;
|
|
1950
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1951
|
+
key?: string;
|
|
1952
|
+
/** OAuth 2.0 token for the current user. */
|
|
1953
|
+
oauth_token?: string;
|
|
1954
|
+
/** Returns response with indentations and line breaks. */
|
|
1955
|
+
prettyPrint?: boolean;
|
|
1956
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1957
|
+
quotaUser?: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* Required. Full resource name of the format: projects/*/locations/global/collections/*/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1960
|
+
* you must create at least one serving config for it.
|
|
1961
|
+
*/
|
|
1962
|
+
servingConfig: string;
|
|
1963
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1964
|
+
upload_protocol?: string;
|
|
1965
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1966
|
+
uploadType?: string;
|
|
1967
|
+
/** Request body */
|
|
1968
|
+
resource: GoogleCloudDiscoveryengineV1alphaRecommendRequest;
|
|
1969
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
|
|
1970
|
+
recommend(request: {
|
|
1971
|
+
/** V1 error format. */
|
|
1972
|
+
"$.xgafv"?: string;
|
|
1973
|
+
/** OAuth access token. */
|
|
1974
|
+
access_token?: string;
|
|
1975
|
+
/** Data format for response. */
|
|
1976
|
+
alt?: string;
|
|
1977
|
+
/** JSONP */
|
|
1978
|
+
callback?: string;
|
|
1979
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1980
|
+
fields?: string;
|
|
1981
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1982
|
+
key?: string;
|
|
1983
|
+
/** OAuth 2.0 token for the current user. */
|
|
1984
|
+
oauth_token?: string;
|
|
1985
|
+
/** Returns response with indentations and line breaks. */
|
|
1986
|
+
prettyPrint?: boolean;
|
|
1987
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1988
|
+
quotaUser?: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Required. Full resource name of the format: projects/*/locations/global/collections/*/dataStores/*/servingConfigs/* Before you can request recommendations from your model,
|
|
1991
|
+
* you must create at least one serving config for it.
|
|
1992
|
+
*/
|
|
1993
|
+
servingConfig: string;
|
|
1994
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1995
|
+
upload_protocol?: string;
|
|
1996
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1997
|
+
uploadType?: string;
|
|
1998
|
+
},
|
|
1999
|
+
body: GoogleCloudDiscoveryengineV1alphaRecommendRequest): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
|
|
2000
|
+
}
|
|
2001
|
+
interface UserEventsResource {
|
|
2002
|
+
/**
|
|
2003
|
+
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Discovery
|
|
2004
|
+
* Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|
|
2005
|
+
*/
|
|
2006
|
+
collect(request?: {
|
|
2007
|
+
/** V1 error format. */
|
|
2008
|
+
"$.xgafv"?: string;
|
|
2009
|
+
/** OAuth access token. */
|
|
2010
|
+
access_token?: string;
|
|
2011
|
+
/** Data format for response. */
|
|
2012
|
+
alt?: string;
|
|
2013
|
+
/** JSONP */
|
|
2014
|
+
callback?: string;
|
|
2015
|
+
/** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
|
|
2016
|
+
ets?: string;
|
|
2017
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2018
|
+
fields?: string;
|
|
2019
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2020
|
+
key?: string;
|
|
2021
|
+
/** OAuth 2.0 token for the current user. */
|
|
2022
|
+
oauth_token?: string;
|
|
2023
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
2024
|
+
parent: string;
|
|
2025
|
+
/** Returns response with indentations and line breaks. */
|
|
2026
|
+
prettyPrint?: boolean;
|
|
2027
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2028
|
+
quotaUser?: string;
|
|
2029
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2030
|
+
upload_protocol?: string;
|
|
2031
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2032
|
+
uploadType?: string;
|
|
2033
|
+
/**
|
|
2034
|
+
* The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers
|
|
2035
|
+
* only send the domain for 3rd party requests.
|
|
2036
|
+
*/
|
|
2037
|
+
uri?: string;
|
|
2038
|
+
/** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
|
|
2039
|
+
userEvent?: string;
|
|
2040
|
+
}): Request<GoogleApiHttpBody>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.
|
|
2043
|
+
* Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.
|
|
2044
|
+
*/
|
|
2045
|
+
import(request: {
|
|
2046
|
+
/** V1 error format. */
|
|
2047
|
+
"$.xgafv"?: string;
|
|
2048
|
+
/** OAuth access token. */
|
|
2049
|
+
access_token?: string;
|
|
2050
|
+
/** Data format for response. */
|
|
2051
|
+
alt?: string;
|
|
2052
|
+
/** JSONP */
|
|
2053
|
+
callback?: string;
|
|
2054
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2055
|
+
fields?: string;
|
|
2056
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2057
|
+
key?: string;
|
|
2058
|
+
/** OAuth 2.0 token for the current user. */
|
|
2059
|
+
oauth_token?: string;
|
|
2060
|
+
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
|
|
2061
|
+
parent: string;
|
|
2062
|
+
/** Returns response with indentations and line breaks. */
|
|
2063
|
+
prettyPrint?: boolean;
|
|
2064
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2065
|
+
quotaUser?: string;
|
|
2066
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2067
|
+
upload_protocol?: string;
|
|
2068
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2069
|
+
uploadType?: string;
|
|
2070
|
+
/** Request body */
|
|
2071
|
+
resource: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
|
|
2072
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2073
|
+
import(request: {
|
|
2074
|
+
/** V1 error format. */
|
|
2075
|
+
"$.xgafv"?: string;
|
|
2076
|
+
/** OAuth access token. */
|
|
2077
|
+
access_token?: string;
|
|
2078
|
+
/** Data format for response. */
|
|
2079
|
+
alt?: string;
|
|
2080
|
+
/** JSONP */
|
|
2081
|
+
callback?: string;
|
|
2082
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2083
|
+
fields?: string;
|
|
2084
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2085
|
+
key?: string;
|
|
2086
|
+
/** OAuth 2.0 token for the current user. */
|
|
2087
|
+
oauth_token?: string;
|
|
2088
|
+
/** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
|
|
2089
|
+
parent: string;
|
|
2090
|
+
/** Returns response with indentations and line breaks. */
|
|
2091
|
+
prettyPrint?: boolean;
|
|
2092
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2093
|
+
quotaUser?: string;
|
|
2094
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2095
|
+
upload_protocol?: string;
|
|
2096
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2097
|
+
uploadType?: string;
|
|
2098
|
+
},
|
|
2099
|
+
body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
|
|
2100
|
+
/** Writes a single user event. */
|
|
2101
|
+
write(request: {
|
|
2102
|
+
/** V1 error format. */
|
|
2103
|
+
"$.xgafv"?: string;
|
|
2104
|
+
/** OAuth access token. */
|
|
2105
|
+
access_token?: string;
|
|
2106
|
+
/** Data format for response. */
|
|
2107
|
+
alt?: string;
|
|
2108
|
+
/** JSONP */
|
|
2109
|
+
callback?: string;
|
|
2110
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2111
|
+
fields?: string;
|
|
2112
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2113
|
+
key?: string;
|
|
2114
|
+
/** OAuth 2.0 token for the current user. */
|
|
2115
|
+
oauth_token?: string;
|
|
2116
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
2117
|
+
parent: string;
|
|
2118
|
+
/** Returns response with indentations and line breaks. */
|
|
2119
|
+
prettyPrint?: boolean;
|
|
2120
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2121
|
+
quotaUser?: string;
|
|
2122
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2123
|
+
upload_protocol?: string;
|
|
2124
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2125
|
+
uploadType?: string;
|
|
2126
|
+
/** Request body */
|
|
2127
|
+
resource: GoogleCloudDiscoveryengineV1alphaUserEvent;
|
|
2128
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
|
|
2129
|
+
write(request: {
|
|
2130
|
+
/** V1 error format. */
|
|
2131
|
+
"$.xgafv"?: string;
|
|
2132
|
+
/** OAuth access token. */
|
|
2133
|
+
access_token?: string;
|
|
2134
|
+
/** Data format for response. */
|
|
2135
|
+
alt?: string;
|
|
2136
|
+
/** JSONP */
|
|
2137
|
+
callback?: string;
|
|
2138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2139
|
+
fields?: string;
|
|
2140
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2141
|
+
key?: string;
|
|
2142
|
+
/** OAuth 2.0 token for the current user. */
|
|
2143
|
+
oauth_token?: string;
|
|
2144
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
2145
|
+
parent: string;
|
|
2146
|
+
/** Returns response with indentations and line breaks. */
|
|
2147
|
+
prettyPrint?: boolean;
|
|
2148
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2149
|
+
quotaUser?: string;
|
|
2150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2151
|
+
upload_protocol?: string;
|
|
2152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2153
|
+
uploadType?: string;
|
|
2154
|
+
},
|
|
2155
|
+
body: GoogleCloudDiscoveryengineV1alphaUserEvent): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
|
|
2156
|
+
}
|
|
2157
|
+
interface DataStoresResource {
|
|
2158
|
+
branches: BranchesResource;
|
|
2159
|
+
models: ModelsResource;
|
|
2160
|
+
operations: OperationsResource;
|
|
2161
|
+
servingConfigs: ServingConfigsResource;
|
|
2162
|
+
userEvents: UserEventsResource;
|
|
2163
|
+
}
|
|
2164
|
+
interface OperationsResource {
|
|
2165
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
2166
|
+
get(request?: {
|
|
2167
|
+
/** V1 error format. */
|
|
2168
|
+
"$.xgafv"?: string;
|
|
2169
|
+
/** OAuth access token. */
|
|
2170
|
+
access_token?: string;
|
|
2171
|
+
/** Data format for response. */
|
|
2172
|
+
alt?: string;
|
|
2173
|
+
/** JSONP */
|
|
2174
|
+
callback?: string;
|
|
2175
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2176
|
+
fields?: string;
|
|
2177
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2178
|
+
key?: string;
|
|
2179
|
+
/** The name of the operation resource. */
|
|
2180
|
+
name: string;
|
|
2181
|
+
/** OAuth 2.0 token for the current user. */
|
|
2182
|
+
oauth_token?: string;
|
|
2183
|
+
/** Returns response with indentations and line breaks. */
|
|
2184
|
+
prettyPrint?: boolean;
|
|
2185
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2186
|
+
quotaUser?: string;
|
|
2187
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2188
|
+
upload_protocol?: string;
|
|
2189
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2190
|
+
uploadType?: string;
|
|
2191
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2192
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
2193
|
+
list(request?: {
|
|
2194
|
+
/** V1 error format. */
|
|
2195
|
+
"$.xgafv"?: string;
|
|
2196
|
+
/** OAuth access token. */
|
|
2197
|
+
access_token?: string;
|
|
2198
|
+
/** Data format for response. */
|
|
2199
|
+
alt?: string;
|
|
2200
|
+
/** JSONP */
|
|
2201
|
+
callback?: string;
|
|
2202
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2203
|
+
fields?: string;
|
|
2204
|
+
/** The standard list filter. */
|
|
2205
|
+
filter?: string;
|
|
2206
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2207
|
+
key?: string;
|
|
2208
|
+
/** The name of the operation's parent resource. */
|
|
2209
|
+
name: string;
|
|
2210
|
+
/** OAuth 2.0 token for the current user. */
|
|
2211
|
+
oauth_token?: string;
|
|
2212
|
+
/** The standard list page size. */
|
|
2213
|
+
pageSize?: number;
|
|
2214
|
+
/** The standard list page token. */
|
|
2215
|
+
pageToken?: string;
|
|
2216
|
+
/** Returns response with indentations and line breaks. */
|
|
2217
|
+
prettyPrint?: boolean;
|
|
2218
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2219
|
+
quotaUser?: string;
|
|
2220
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2221
|
+
upload_protocol?: string;
|
|
2222
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2223
|
+
uploadType?: string;
|
|
2224
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
2225
|
+
}
|
|
2226
|
+
interface LocationsResource {
|
|
2227
|
+
collections: CollectionsResource;
|
|
2228
|
+
dataStores: DataStoresResource;
|
|
2229
|
+
operations: OperationsResource;
|
|
2230
|
+
}
|
|
2231
|
+
interface OperationsResource {
|
|
2232
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
2233
|
+
get(request?: {
|
|
2234
|
+
/** V1 error format. */
|
|
2235
|
+
"$.xgafv"?: string;
|
|
2236
|
+
/** OAuth access token. */
|
|
2237
|
+
access_token?: string;
|
|
2238
|
+
/** Data format for response. */
|
|
2239
|
+
alt?: string;
|
|
2240
|
+
/** JSONP */
|
|
2241
|
+
callback?: string;
|
|
2242
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2243
|
+
fields?: string;
|
|
2244
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2245
|
+
key?: string;
|
|
2246
|
+
/** The name of the operation resource. */
|
|
2247
|
+
name: string;
|
|
2248
|
+
/** OAuth 2.0 token for the current user. */
|
|
2249
|
+
oauth_token?: string;
|
|
2250
|
+
/** Returns response with indentations and line breaks. */
|
|
2251
|
+
prettyPrint?: boolean;
|
|
2252
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2253
|
+
quotaUser?: string;
|
|
2254
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2255
|
+
upload_protocol?: string;
|
|
2256
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2257
|
+
uploadType?: string;
|
|
2258
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2259
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1429
2260
|
list(request?: {
|
|
1430
2261
|
/** V1 error format. */
|
|
1431
2262
|
"$.xgafv"?: string;
|