Skip to content

Commit

Permalink
Update APIs to 8.5-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Nov 3, 2022
1 parent 1088053 commit bd93eb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions src/api/api/ml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ export default class Ml {
this.transport = transport
}

async clearTrainedModelDeploymentCache (this: That, params?: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params?: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlClearTrainedModelDeploymentCacheResponse, unknown>>
async clearTrainedModelDeploymentCache (this: That, params?: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params?: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<any> {
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlClearTrainedModelDeploymentCacheResponse, unknown>>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['model_id']
const querystring: Record<string, any> = {}
const body = undefined

params = params ?? {}
for (const key in params) {
if (acceptedPath.includes(key)) {
continue
Expand Down
6 changes: 3 additions & 3 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export interface RankEvalRankEvalRequestItem {
}

export interface RankEvalRequest extends RequestBase {
index: Indices
index?: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
ignore_unavailable?: boolean
Expand Down Expand Up @@ -8816,7 +8816,7 @@ export interface FleetGlobalCheckpointsResponse {
}

export interface FleetMsearchRequest extends RequestBase {
index: IndexName | IndexAlias
index?: IndexName | IndexAlias
allow_no_indices?: boolean
ccs_minimize_roundtrips?: boolean
expand_wildcards?: ExpandWildcards
Expand Down Expand Up @@ -12597,7 +12597,7 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
}

export interface MlClearTrainedModelDeploymentCacheRequest extends RequestBase {
model_id?: Id
model_id: Id
}

export interface MlClearTrainedModelDeploymentCacheResponse {
Expand Down
6 changes: 3 additions & 3 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ export interface RankEvalRankEvalRequestItem {
}

export interface RankEvalRequest extends RequestBase {
index: Indices
index?: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
ignore_unavailable?: boolean
Expand Down Expand Up @@ -8923,7 +8923,7 @@ export interface FleetGlobalCheckpointsResponse {
}

export interface FleetMsearchRequest extends RequestBase {
index: IndexName | IndexAlias
index?: IndexName | IndexAlias
allow_no_indices?: boolean
ccs_minimize_roundtrips?: boolean
expand_wildcards?: ExpandWildcards
Expand Down Expand Up @@ -12775,7 +12775,7 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
}

export interface MlClearTrainedModelDeploymentCacheRequest extends RequestBase {
model_id?: Id
model_id: Id
}

export interface MlClearTrainedModelDeploymentCacheResponse {
Expand Down

0 comments on commit bd93eb0

Please sign in to comment.