Skip to content

Commit c317757

Browse files
yoshi-automationsofisl
authored andcommitted
feat(cloudsearch)!: update the API
BREAKING CHANGE: This release has breaking changes. #### cloudsearch:v1 The following keys were deleted: - schemas.RewrittenQueries.description - schemas.RewrittenQueries.id - schemas.RewrittenQueries.properties.rewrittenQueries.items.$ref - schemas.RewrittenQueries.properties.rewrittenQueries.type - schemas.RewrittenQueries.properties.selectedQueryIndex.description - schemas.RewrittenQueries.properties.selectedQueryIndex.format - schemas.RewrittenQueries.properties.selectedQueryIndex.type - schemas.RewrittenQueries.type - schemas.RewrittenQuery.id - schemas.RewrittenQuery.properties.rewrittenQuery.type - schemas.RewrittenQuery.properties.score.format - schemas.RewrittenQuery.properties.score.type - schemas.RewrittenQuery.properties.sortBy.enum - schemas.RewrittenQuery.properties.sortBy.enumDescriptions - schemas.RewrittenQuery.properties.sortBy.type - schemas.RewrittenQuery.type The following keys were changed: - schemas.SearchRequest.description - schemas.SearchResponse.description
1 parent 8420615 commit c317757

File tree

2 files changed

+5
-82
lines changed

2 files changed

+5
-82
lines changed

‎discovery/cloudsearch-v1.json

Lines changed: 3 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@
21152115
}
21162116
}
21172117
},
2118-
"revision": "20240529",
2118+
"revision": "20241113",
21192119
"rootUrl": "https://cloudsearch.googleapis.com/",
21202120
"schemas": {
21212121
"Action": {
@@ -7042,68 +7042,6 @@
70427042
},
70437043
"type": "object"
70447044
},
7045-
"RewrittenQueries": {
7046-
"description": "The rewritten queries returned by Apps Search Query Understanding service.",
7047-
"id": "RewrittenQueries",
7048-
"properties": {
7049-
"rewrittenQueries": {
7050-
"items": {
7051-
"$ref": "RewrittenQuery"
7052-
},
7053-
"type": "array"
7054-
},
7055-
"selectedQueryIndex": {
7056-
"description": "The index of the selected query in `rewritten_queries` that is used by QAPI to call CSSR to get search results. If none of the queries were used (i.e. they all give empty search results), `selected_query_index` would default to -1.",
7057-
"format": "int32",
7058-
"type": "integer"
7059-
}
7060-
},
7061-
"type": "object"
7062-
},
7063-
"RewrittenQuery": {
7064-
"id": "RewrittenQuery",
7065-
"properties": {
7066-
"rewrittenQuery": {
7067-
"type": "string"
7068-
},
7069-
"score": {
7070-
"format": "double",
7071-
"type": "number"
7072-
},
7073-
"sortBy": {
7074-
"enum": [
7075-
"SORTBY_UNSUPPORTED",
7076-
"SORTBY_RELEVANCY",
7077-
"SORTBY_LATEST",
7078-
"SORTBY_OLDEST",
7079-
"SORTBY_LARGEST",
7080-
"SORTBY_SMALLEST",
7081-
"SORTBY_MODIFY_LATEST",
7082-
"SORTBY_MODIFY_OLDEST",
7083-
"SORTBY_VIEW_LATEST",
7084-
"SORTBY_VIEW_OLDEST",
7085-
"SORTBY_CREATE_LATEST",
7086-
"SORTBY_CREATE_OLDEST"
7087-
],
7088-
"enumDescriptions": [
7089-
"",
7090-
"",
7091-
"",
7092-
"",
7093-
"",
7094-
"",
7095-
"",
7096-
"",
7097-
"",
7098-
"",
7099-
"",
7100-
""
7101-
],
7102-
"type": "string"
7103-
}
7104-
},
7105-
"type": "object"
7106-
},
71077045
"SafeHtmlProto": {
71087046
"description": "IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.",
71097047
"id": "SafeHtmlProto",
@@ -7330,7 +7268,7 @@
73307268
"type": "object"
73317269
},
73327270
"SearchRequest": {
7333-
"description": "The search API request.",
7271+
"description": "The search API request. NEXT ID: 17",
73347272
"id": "SearchRequest",
73357273
"properties": {
73367274
"contextAttributes": {
@@ -7383,7 +7321,7 @@
73837321
"type": "object"
73847322
},
73857323
"SearchResponse": {
7386-
"description": "The search API response.",
7324+
"description": "The search API response. NEXT ID: 17",
73877325
"id": "SearchResponse",
73887326
"properties": {
73897327
"debugInfo": {

‎src/apis/cloudsearch/v1.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,21 +3086,6 @@ export namespace cloudsearch_v1 {
30863086
*/
30873087
importance?: string | null;
30883088
}
3089-
/**
3090-
* The rewritten queries returned by Apps Search Query Understanding service.
3091-
*/
3092-
export interface Schema$RewrittenQueries {
3093-
rewrittenQueries?: Schema$RewrittenQuery[];
3094-
/**
3095-
* The index of the selected query in `rewritten_queries` that is used by QAPI to call CSSR to get search results. If none of the queries were used (i.e. they all give empty search results), `selected_query_index` would default to -1.
3096-
*/
3097-
selectedQueryIndex?: number | null;
3098-
}
3099-
export interface Schema$RewrittenQuery {
3100-
rewrittenQuery?: string | null;
3101-
score?: number | null;
3102-
sortBy?: string | null;
3103-
}
31043089
/**
31053090
* IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.
31063091
*/
@@ -3263,7 +3248,7 @@ export namespace cloudsearch_v1 {
32633248
quality?: number | null;
32643249
}
32653250
/**
3266-
* The search API request.
3251+
* The search API request. NEXT ID: 17
32673252
*/
32683253
export interface Schema$SearchRequest {
32693254
/**
@@ -3301,7 +3286,7 @@ export namespace cloudsearch_v1 {
33013286
start?: number | null;
33023287
}
33033288
/**
3304-
* The search API response.
3289+
* The search API response. NEXT ID: 17
33053290
*/
33063291
export interface Schema$SearchResponse {
33073292
/**

0 commit comments

Comments
 (0)