@@ -100,6 +100,15 @@ public interface IS3RepositorySettings : IRepositorySettings
100
100
/// </summary>
101
101
[ DataMember ( Name = "path_style_access" ) ]
102
102
bool ? PathStyleAccess { get ; set ; }
103
+
104
+ /// <summary>
105
+ /// Whether chunked encoding should be disabled or not. If false, chunked encoding is enabled and will be used where appropriate.
106
+ /// If true, chunked encoding is disabled and will not be used, which may mean that snapshot operations consume more resources
107
+ /// and take longer to complete. It should only be set to true if you are using a storage service that does not support chunked
108
+ /// encoding. Defaults to false.
109
+ /// </summary>
110
+ [ DataMember ( Name = "disable_chunked_encoding" ) ]
111
+ bool ? DisableChunkedEncoding { get ; set ; }
103
112
}
104
113
105
114
/// <inheritdoc />
@@ -138,6 +147,9 @@ internal S3RepositorySettings() { }
138
147
139
148
/// <inheritdoc />
140
149
public bool ? PathStyleAccess { get ; set ; }
150
+
151
+ /// <inheritdoc />
152
+ public bool ? DisableChunkedEncoding { get ; set ; }
141
153
}
142
154
143
155
/// <inheritdoc cref="IS3RepositorySettings"/>
@@ -156,6 +168,7 @@ public class S3RepositorySettingsDescriptor
156
168
bool ? IS3RepositorySettings . ServerSideEncryption { get ; set ; }
157
169
string IS3RepositorySettings . StorageClass { get ; set ; }
158
170
bool ? IS3RepositorySettings . PathStyleAccess { get ; set ; }
171
+ bool ? IS3RepositorySettings . DisableChunkedEncoding { get ; set ; }
159
172
160
173
/// <inheritdoc cref="IS3RepositorySettings.Bucket" />
161
174
public S3RepositorySettingsDescriptor Bucket ( string bucket ) => Assign ( bucket , ( a , v ) => a . Bucket = v ) ;
@@ -188,6 +201,10 @@ public S3RepositorySettingsDescriptor ServerSideEncryption(bool? serverSideEncry
188
201
/// <inheritdoc cref="IS3RepositorySettings.PathStyleAccess" />
189
202
public S3RepositorySettingsDescriptor PathStyleAccess ( bool ? pathStyleAccess = true ) =>
190
203
Assign ( pathStyleAccess , ( a , v ) => a . PathStyleAccess = v ) ;
204
+
205
+ /// <inheritdoc cref="IS3RepositorySettings.DisableChunkedEncoding" />
206
+ public S3RepositorySettingsDescriptor DisableChunkedEncoding ( bool ? disableChunkedEncoding = true ) =>
207
+ Assign ( disableChunkedEncoding , ( a , v ) => a . DisableChunkedEncoding = v ) ;
191
208
}
192
209
193
210
/// <inheritdoc cref="IS3Repository"/>
0 commit comments