File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
include/ydb-cpp-sdk/client/import Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ struct TImportFromS3Settings : public TOperationRequestSettings<TImportFromS3Set
41
41
FLUENT_SETTING_VECTOR (TItem, Item);
42
42
FLUENT_SETTING_OPTIONAL (std::string, Description);
43
43
FLUENT_SETTING_OPTIONAL (uint32_t , NumberOfRetries);
44
+ FLUENT_SETTING_OPTIONAL (bool , NoACL);
44
45
};
45
46
46
47
class TImportFromS3Response : public TOperation {
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ message ImportFromS3Settings {
42
42
The object name begins with 'source_prefix'.
43
43
This prefix is followed by:
44
44
* '/data_PartNumber', where 'PartNumber' represents the index of the part, starting at zero;
45
- * '/scheme.pb' - object with information about scheme, indexes, etc.
45
+ * '/scheme.pb' - object with information about scheme, indexes, etc;
46
+ * '/permissions.pb' - object with information about ACL and owner.
46
47
*/
47
48
string source_prefix = 1 [(required) = true ];
48
49
@@ -67,6 +68,10 @@ message ImportFromS3Settings {
67
68
// details: https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html
68
69
// it is especially useful for custom s3 implementations
69
70
bool disable_virtual_addressing = 10 ;
71
+
72
+ // Prevent importing of ACL and owner. If true, objects are created with empty ACL
73
+ // and their owner will be the user who started the import.
74
+ bool no_acl = 11 ;
70
75
}
71
76
72
77
message ImportFromS3Result {
Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ TFuture<TImportFromS3Response> TImportClient::ImportFromS3(const TImportFromS3Se
154
154
request.mutable_settings ()->set_number_of_retries (settings.NumberOfRetries_ .value ());
155
155
}
156
156
157
+ if (settings.NoACL_ ) {
158
+ request.mutable_settings ()->set_no_acl (settings.NoACL_ .value ());
159
+ }
160
+
157
161
request.mutable_settings ()->set_disable_virtual_addressing (!settings.UseVirtualAddressing_ );
158
162
159
163
return Impl_->ImportFromS3 (std::move (request), settings);
You can’t perform that action at this time.
0 commit comments