Class SourceOnlyRepositorySettingsForGcs
- All Implemented Interfaces:
SourceOnlyRepositorySettingsVariant,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SourceOnlyRepositorySettingsForGcs>Json deserializer forSourceOnlyRepositorySettingsForGcs -
Method Summary
Modifier and TypeMethodDescriptionSourceOnlyRepositorySettings variant kind.final StringDeprecated.6.3.0final StringbasePath()The path to the repository data within the bucket.final Stringbucket()Required - The name of the bucket to be used for snapshots.final Stringclient()The name of the client to use to connect to Google Cloud Storage.of(Function<SourceOnlyRepositorySettingsForGcs.Builder, ObjectBuilder<SourceOnlyRepositorySettingsForGcs>> fn) final Booleanreadonly()Iftrue, the repository is read-only.rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupSourceOnlyRepositorySettingsForGcsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettingsForGcs.Builder> op) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettingsVariant
_toSourceOnlyRepositorySettings
-
Field Details
-
_DESERIALIZER
Json deserializer forSourceOnlyRepositorySettingsForGcs
-
-
Method Details
-
of
-
_sourceOnlyRepositorySettingsKind
SourceOnlyRepositorySettings variant kind.- Specified by:
_sourceOnlyRepositorySettingsKindin interfaceSourceOnlyRepositorySettingsVariant
-
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_pathwhen configuring a snapshot repository for Elastic Cloud Enterprise. Elastic Cloud Enterprise automatically generates thebase_pathfor 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
readonlyparameter 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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
SourceOnlyRepositorySettingsForGcs.Builderinitialized with field values of this instance
-
setupSourceOnlyRepositorySettingsForGcsDeserializer
protected static void setupSourceOnlyRepositorySettingsForGcsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettingsForGcs.Builder> op)
-