Class GcsRepositorySettings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.snapshot.RepositorySettingsBase
RepositorySettingsBase.AbstractBuilder<BuilderT extends RepositorySettingsBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GcsRepositorySettings>
Json deserializer forGcsRepositorySettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Deprecated.6.3.0final String
basePath()
The path to the repository data within the bucket.final String
bucket()
Required - The name of the bucket to be used for snapshots.final String
client()
The name of the client to use to connect to Google Cloud Storage.static GcsRepositorySettings
final Boolean
readonly()
Iftrue
, the repository is read-only.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch.snapshot.RepositorySettingsBase
chunkSize, compress, maxRestoreBytesPerSec, maxSnapshotBytesPerSec, serialize, setupRepositorySettingsBaseDeserializer, toString
-
Field Details
-
_DESERIALIZER
Json deserializer forGcsRepositorySettings
-
-
Method Details
-
of
public static GcsRepositorySettings of(Function<GcsRepositorySettings.Builder, ObjectBuilder<GcsRepositorySettings>> fn) -
bucket
Required - The name of the bucket to be used for snapshots.API name:
bucket
-
applicationName
Deprecated.6.3.0The name used by the client when it uses the Google Cloud Storage service.API name:
application_name
-
basePath
The path to the repository data within the bucket. It defaults to the root of the bucket.NOTE: Don't set
base_path
when configuring a snapshot repository for Elastic Cloud Enterprise. Elastic Cloud Enterprise automatically generates thebase_path
for each deployment so that multiple deployments can share the same bucket.API name:
base_path
-
client
The name of the client to use to connect to Google Cloud Storage.API name:
client
-
readonly
Iftrue
, the repository is read-only. The cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.Only a cluster with write access can create snapshots in the repository. All other clusters connected to the repository should have the
readonly
parameter set totrue
.If
false
, the cluster can write to the repository and create snapshots in it.IMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository. Having multiple clusters write to the repository at the same time risks corrupting the contents of the repository.
API name:
readonly
-
serializeInternal
- Overrides:
serializeInternal
in classRepositorySettingsBase
-
setupGcsRepositorySettingsDeserializer
protected static void setupGcsRepositorySettingsDeserializer(ObjectDeserializer<GcsRepositorySettings.Builder> op)
-