[[reference-shared-types-snapshot]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// == Shared Snapshot types [discrete] [[SnapshotAzureRepository]] === SnapshotAzureRepository [pass] ++++
++++
interface SnapshotAzureRepository extends <> {
  type: 'azure'
  settings: <>
}
[pass]
++++
++++ [discrete] [[SnapshotAzureRepositorySettings]] === SnapshotAzureRepositorySettings [pass] ++++
++++
interface SnapshotAzureRepositorySettings extends <> {
  client?: string
  container?: string
  base_path?: string
  readonly?: boolean
  location_mode?: string
}
[pass]
++++
++++ [discrete] [[SnapshotFileCountSnapshotStats]] === SnapshotFileCountSnapshotStats [pass] ++++
++++
interface SnapshotFileCountSnapshotStats {
  file_count: <>
  size_in_bytes: <>
}
[pass]
++++
++++ [discrete] [[SnapshotGcsRepository]] === SnapshotGcsRepository [pass] ++++
++++
interface SnapshotGcsRepository extends <> {
  type: 'gcs'
  settings: <>
}
[pass]
++++
++++ [discrete] [[SnapshotGcsRepositorySettings]] === SnapshotGcsRepositorySettings [pass] ++++
++++
interface SnapshotGcsRepositorySettings extends <> {
  bucket: string
  client?: string
  base_path?: string
  readonly?: boolean
  application_name?: string
}
[pass]
++++
++++ [discrete] [[SnapshotIndexDetails]] === SnapshotIndexDetails [pass] ++++
++++
interface SnapshotIndexDetails {
  shard_count: <>
  size?: <>
  size_in_bytes: <>
  max_segments_per_shard: <>
}
[pass]
++++
++++ [discrete] [[SnapshotInfoFeatureState]] === SnapshotInfoFeatureState [pass] ++++
++++
interface SnapshotInfoFeatureState {
  feature_name: string
  indices: <>
}
[pass]
++++
++++ [discrete] [[SnapshotReadOnlyUrlRepository]] === SnapshotReadOnlyUrlRepository [pass] ++++
++++
interface SnapshotReadOnlyUrlRepository extends <> {
  type: 'url'
  settings: <>
}
[pass]
++++
++++ [discrete] [[SnapshotReadOnlyUrlRepositorySettings]] === SnapshotReadOnlyUrlRepositorySettings [pass] ++++
++++
interface SnapshotReadOnlyUrlRepositorySettings extends <> {
  http_max_retries?: <>
  http_socket_timeout?: <>
  max_number_of_snapshots?: <>
  url: string
}
[pass]
++++
++++ [discrete] [[SnapshotRepository]] === SnapshotRepository [pass] ++++
++++
type SnapshotRepository = <> | <> | SnapshotS3<> | <> | <> | <>
[pass]
++++
++++ [discrete] [[SnapshotRepositoryBase]] === SnapshotRepositoryBase [pass] ++++
++++
interface SnapshotRepositoryBase {
  uuid?: <>
}
[pass]
++++
++++ [discrete] [[SnapshotRepositorySettingsBase]] === SnapshotRepositorySettingsBase [pass] ++++
++++
interface SnapshotRepositorySettingsBase {
  chunk_size?: <>
  compress?: boolean
  max_restore_bytes_per_sec?: <>
  max_snapshot_bytes_per_sec?: <>
}
[pass]
++++
++++ [discrete] [[SnapshotS3Repository]] === SnapshotS3Repository [pass] ++++
++++
interface SnapshotS3<> extends <> {
  type: 's3'
  settings: SnapshotS3RepositorySettings
}
[pass]
++++
++++ [discrete] [[SnapshotS3RepositorySettings]] === SnapshotS3RepositorySettings [pass] ++++
++++
interface SnapshotS3RepositorySettings extends <> {
  bucket: string
  client?: string
  base_path?: string
  readonly?: boolean
  server_side_encryption?: boolean
  buffer_size?: <>
  canned_acl?: string
  storage_class?: string
}
[pass]
++++
++++ [discrete] [[SnapshotShardsStats]] === SnapshotShardsStats [pass] ++++
++++
interface SnapshotShardsStats {
  done: <>
  failed: <>
  finalizing: <>
  initializing: <>
  started: <>
  total: <>
}
[pass]
++++
++++ [discrete] [[SnapshotShardsStatsStage]] === SnapshotShardsStatsStage [pass] ++++
++++
type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED'
[pass]
++++
++++ [discrete] [[SnapshotShardsStatsSummary]] === SnapshotShardsStatsSummary [pass] ++++
++++
interface SnapshotShardsStatsSummary {
  incremental: <>
  total: <>
  start_time_in_millis: <><<>>
  time?: <>
  time_in_millis: <><<>>
}
[pass]
++++
++++ [discrete] [[SnapshotShardsStatsSummaryItem]] === SnapshotShardsStatsSummaryItem [pass] ++++
++++
interface SnapshotShardsStatsSummaryItem {
  file_count: <>
  size_in_bytes: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSharedFileSystemRepository]] === SnapshotSharedFileSystemRepository [pass] ++++
++++
interface SnapshotSharedFileSystemRepository extends <> {
  type: 'fs'
  settings: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSharedFileSystemRepositorySettings]] === SnapshotSharedFileSystemRepositorySettings [pass] ++++
++++
interface SnapshotSharedFileSystemRepositorySettings extends <> {
  location: string
  max_number_of_snapshots?: <>
  readonly?: boolean
}
[pass]
++++
++++ [discrete] [[SnapshotSnapshotIndexStats]] === SnapshotSnapshotIndexStats [pass] ++++
++++
interface SnapshotSnapshotIndexStats {
  shards: Record>>
  shards_stats: <>
  stats: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSnapshotInfo]] === SnapshotSnapshotInfo [pass] ++++
++++
interface SnapshotSnapshotInfo {
  data_streams: string[]
  duration?: <>
  duration_in_millis?: <><<>>
  end_time?: <>
  end_time_in_millis?: <><<>>
  failures?: <>[]
  include_global_state?: boolean
  indices?: <>[]
  index_details?: Record<<>, <>>
  metadata?: <>
  reason?: string
  repository?: <>
  snapshot: <>
  shards?: <>
  start_time?: <>
  start_time_in_millis?: <><<>>
  state?: string
  uuid: <>
  version?: <>
  version_id?: <>
  feature_states?: <>[]
}
[pass]
++++
++++ [discrete] [[SnapshotSnapshotShardFailure]] === SnapshotSnapshotShardFailure [pass] ++++
++++
interface SnapshotSnapshotShardFailure {
  index: <>
  node_id?: <>
  reason: string
  shard_id: <>
  index_uuid: <>
  status: string
}
[pass]
++++
++++ [discrete] [[SnapshotSnapshotShardsStatus]] === SnapshotSnapshotShardsStatus [pass] ++++
++++
interface SnapshotSnapshotShardsStatus {
  stage: <>
  stats: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSnapshotSort]] === SnapshotSnapshotSort [pass] ++++
++++
type SnapshotSnapshotSort = 'start_time' | 'duration' | 'name' | 'index_count' | 'repository' | 'shard_count' | 'failed_shard_count'
[pass]
++++
++++ [discrete] [[SnapshotSnapshotStats]] === SnapshotSnapshotStats [pass] ++++
++++
interface SnapshotSnapshotStats {
  incremental: <>
  start_time_in_millis: <><<>>
  time?: <>
  time_in_millis: <><<>>
  total: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSourceOnlyRepository]] === SnapshotSourceOnlyRepository [pass] ++++
++++
interface SnapshotSourceOnlyRepository extends <> {
  type: 'source'
  settings: <>
}
[pass]
++++
++++ [discrete] [[SnapshotSourceOnlyRepositorySettings]] === SnapshotSourceOnlyRepositorySettings [pass] ++++
++++
interface SnapshotSourceOnlyRepositorySettings extends <> {
  delegate_type?: string
  max_number_of_snapshots?: <>
  read_only?: boolean
  readonly?: boolean
}
[pass]
++++
++++ [discrete] [[SnapshotStatus]] === SnapshotStatus [pass] ++++
++++
interface SnapshotStatus {
  include_global_state: boolean
  indices: Record>>
  repository: string
  shards_stats: <>
  snapshot: string
  state: string
  stats: <>
  uuid: <>
}
[pass]
++++
++++