@@ -31,7 +31,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
31
31
/* *
32
32
* The version used for the operations to Azure storage services.
33
33
*/
34
- constexpr static const char * ApiVersion = " 2021-12 -02" ;
34
+ constexpr static const char * ApiVersion = " 2022-11 -02" ;
35
35
} // namespace _detail
36
36
namespace Models {
37
37
/* *
@@ -627,6 +627,21 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
627
627
*/
628
628
DateTime LastModified;
629
629
};
630
+ /* *
631
+ * @brief Valid value is backup.
632
+ */
633
+ class ShareTokenIntent final {
634
+ public:
635
+ ShareTokenIntent () = default ;
636
+ explicit ShareTokenIntent (std::string value) : m_value(std::move(value)) {}
637
+ bool operator ==(const ShareTokenIntent& other) const { return m_value == other.m_value ; }
638
+ bool operator !=(const ShareTokenIntent& other) const { return !(*this == other); }
639
+ const std::string& ToString () const { return m_value; }
640
+ AZ_STORAGE_FILES_SHARES_DLLEXPORT const static ShareTokenIntent Backup;
641
+
642
+ private:
643
+ std::string m_value;
644
+ };
630
645
/* *
631
646
* @brief Response type for #Azure::Storage::Files::Shares::ShareClient::CreatePermission.
632
647
*/
@@ -1942,6 +1957,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
1942
1957
struct CreateSharePermissionOptions final
1943
1958
{
1944
1959
Models::_detail::SharePermission SharePermission;
1960
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
1945
1961
};
1946
1962
static Response<Models::CreateSharePermissionResult> CreatePermission (
1947
1963
Core::Http::_internal::HttpPipeline& pipeline,
@@ -1951,6 +1967,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
1951
1967
struct GetSharePermissionOptions final
1952
1968
{
1953
1969
std::string FilePermissionKey;
1970
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
1954
1971
};
1955
1972
static Response<Models::_detail::SharePermission> GetPermission (
1956
1973
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2012,13 +2029,15 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2012
2029
public:
2013
2030
struct CreateDirectoryOptions final
2014
2031
{
2032
+ Nullable<bool > AllowTrailingDot;
2015
2033
std::map<std::string, std::string> Metadata;
2016
2034
Nullable<std::string> FilePermission;
2017
2035
Nullable<std::string> FilePermissionKey;
2018
2036
std::string FileAttributes;
2019
2037
Nullable<std::string> FileCreationTime;
2020
2038
Nullable<std::string> FileLastWriteTime;
2021
2039
Nullable<std::string> FileChangeTime;
2040
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2022
2041
};
2023
2042
static Response<Models::CreateDirectoryResult> Create (
2024
2043
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2027,7 +2046,9 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2027
2046
const Core::Context& context);
2028
2047
struct GetDirectoryPropertiesOptions final
2029
2048
{
2049
+ Nullable<bool > AllowTrailingDot;
2030
2050
Nullable<std::string> Sharesnapshot;
2051
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2031
2052
};
2032
2053
static Response<Models::DirectoryProperties> GetProperties (
2033
2054
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2036,6 +2057,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2036
2057
const Core::Context& context);
2037
2058
struct DeleteDirectoryOptions final
2038
2059
{
2060
+ Nullable<bool > AllowTrailingDot;
2061
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2039
2062
};
2040
2063
static Response<Models::DeleteDirectoryResult> Delete (
2041
2064
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2050,6 +2073,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2050
2073
Nullable<std::string> FileCreationTime;
2051
2074
Nullable<std::string> FileLastWriteTime;
2052
2075
Nullable<std::string> FileChangeTime;
2076
+ Nullable<bool > AllowTrailingDot;
2077
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2053
2078
};
2054
2079
static Response<Models::SetDirectoryPropertiesResult> SetProperties (
2055
2080
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2059,6 +2084,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2059
2084
struct SetDirectoryMetadataOptions final
2060
2085
{
2061
2086
std::map<std::string, std::string> Metadata;
2087
+ Nullable<bool > AllowTrailingDot;
2088
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2062
2089
};
2063
2090
static Response<Models::SetDirectoryMetadataResult> SetMetadata (
2064
2091
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2073,6 +2100,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2073
2100
Nullable<int32_t > MaxResults;
2074
2101
Nullable<Models::ListFilesIncludeFlags> Include;
2075
2102
Nullable<bool > IncludeExtendedInfo;
2103
+ Nullable<bool > AllowTrailingDot;
2104
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2076
2105
};
2077
2106
static Response<Models::_detail::ListFilesAndDirectoriesSegmentResponse>
2078
2107
ListFilesAndDirectoriesSegment (
@@ -2086,6 +2115,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2086
2115
Nullable<int32_t > MaxResults;
2087
2116
Nullable<std::string> Sharesnapshot;
2088
2117
Nullable<bool > Recursive;
2118
+ Nullable<bool > AllowTrailingDot;
2119
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2089
2120
};
2090
2121
static Response<Models::_detail::ListHandlesResponse> ListHandles (
2091
2122
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2098,6 +2129,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2098
2129
Nullable<std::string> Sharesnapshot;
2099
2130
std::string HandleId;
2100
2131
Nullable<bool > Recursive;
2132
+ Nullable<bool > AllowTrailingDot;
2133
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2101
2134
};
2102
2135
static Response<Models::_detail::ForceCloseDirectoryHandlesResult> ForceCloseHandles (
2103
2136
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2118,6 +2151,9 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2118
2151
Nullable<std::string> FilePermission;
2119
2152
Nullable<std::string> FilePermissionKey;
2120
2153
std::map<std::string, std::string> Metadata;
2154
+ Nullable<bool > AllowTrailingDot;
2155
+ Nullable<bool > AllowSourceTrailingDot;
2156
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2121
2157
};
2122
2158
static Response<Models::_detail::RenameDirectoryResult> Rename (
2123
2159
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2129,6 +2165,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2129
2165
public:
2130
2166
struct CreateFileOptions final
2131
2167
{
2168
+ Nullable<bool > AllowTrailingDot;
2132
2169
int64_t FileContentLength = int64_t ();
2133
2170
Nullable<std::string> FileContentType;
2134
2171
Nullable<std::string> FileContentEncoding;
@@ -2144,6 +2181,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2144
2181
Nullable<std::string> FileLastWriteTime;
2145
2182
Nullable<std::string> FileChangeTime;
2146
2183
Nullable<std::string> LeaseId;
2184
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2147
2185
};
2148
2186
static Response<Models::CreateFileResult> Create (
2149
2187
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2152,9 +2190,11 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2152
2190
const Core::Context& context);
2153
2191
struct DownloadFileOptions final
2154
2192
{
2193
+ Nullable<bool > AllowTrailingDot;
2155
2194
Nullable<std::string> Range;
2156
2195
Nullable<bool > RangeGetContentMD5;
2157
2196
Nullable<std::string> LeaseId;
2197
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2158
2198
};
2159
2199
static Response<Models::DownloadFileResult> Download (
2160
2200
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2163,8 +2203,10 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2163
2203
const Core::Context& context);
2164
2204
struct GetFilePropertiesOptions final
2165
2205
{
2206
+ Nullable<bool > AllowTrailingDot;
2166
2207
Nullable<std::string> Sharesnapshot;
2167
2208
Nullable<std::string> LeaseId;
2209
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2168
2210
};
2169
2211
static Response<Models::FileProperties> GetProperties (
2170
2212
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2173,7 +2215,9 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2173
2215
const Core::Context& context);
2174
2216
struct DeleteFileOptions final
2175
2217
{
2218
+ Nullable<bool > AllowTrailingDot;
2176
2219
Nullable<std::string> LeaseId;
2220
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2177
2221
};
2178
2222
static Response<Models::DeleteFileResult> Delete (
2179
2223
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2196,6 +2240,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2196
2240
Nullable<std::string> FileLastWriteTime;
2197
2241
Nullable<std::string> FileChangeTime;
2198
2242
Nullable<std::string> LeaseId;
2243
+ Nullable<bool > AllowTrailingDot;
2244
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2199
2245
};
2200
2246
static Response<Models::SetFilePropertiesResult> SetHttpHeaders (
2201
2247
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2206,6 +2252,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2206
2252
{
2207
2253
std::map<std::string, std::string> Metadata;
2208
2254
Nullable<std::string> LeaseId;
2255
+ Nullable<bool > AllowTrailingDot;
2256
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2209
2257
};
2210
2258
static Response<Models::SetFileMetadataResult> SetMetadata (
2211
2259
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2216,6 +2264,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2216
2264
{
2217
2265
Nullable<int32_t > Duration;
2218
2266
Nullable<std::string> ProposedLeaseId;
2267
+ Nullable<bool > AllowTrailingDot;
2268
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2219
2269
};
2220
2270
static Response<Models::_detail::AcquireFileLeaseResult> AcquireLease (
2221
2271
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2225,6 +2275,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2225
2275
struct ReleaseFileLeaseOptions final
2226
2276
{
2227
2277
std::string LeaseId;
2278
+ Nullable<bool > AllowTrailingDot;
2279
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2228
2280
};
2229
2281
static Response<Models::_detail::ReleaseFileLeaseResult> ReleaseLease (
2230
2282
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2235,6 +2287,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2235
2287
{
2236
2288
std::string LeaseId;
2237
2289
Nullable<std::string> ProposedLeaseId;
2290
+ Nullable<bool > AllowTrailingDot;
2291
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2238
2292
};
2239
2293
static Response<Models::_detail::ChangeFileLeaseResult> ChangeLease (
2240
2294
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2244,6 +2298,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2244
2298
struct BreakFileLeaseOptions final
2245
2299
{
2246
2300
Nullable<std::string> LeaseId;
2301
+ Nullable<bool > AllowTrailingDot;
2302
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2247
2303
};
2248
2304
static Response<Models::_detail::BreakFileLeaseResult> BreakLease (
2249
2305
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2257,6 +2313,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2257
2313
Nullable<std::vector<uint8_t >> ContentMD5;
2258
2314
Nullable<std::string> LeaseId;
2259
2315
Nullable<Models::FileLastWrittenMode> FileLastWrittenMode;
2316
+ Nullable<bool > AllowTrailingDot;
2317
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2260
2318
};
2261
2319
static Response<Models::UploadFileRangeResult> UploadRange (
2262
2320
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2275,6 +2333,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2275
2333
Nullable<std::string> LeaseId;
2276
2334
Nullable<std::string> CopySourceAuthorization;
2277
2335
Nullable<Models::FileLastWrittenMode> FileLastWrittenMode;
2336
+ Nullable<bool > AllowTrailingDot;
2337
+ Nullable<bool > AllowSourceTrailingDot;
2278
2338
};
2279
2339
static Response<Models::UploadFileRangeFromUriResult> UploadRangeFromUri (
2280
2340
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2287,6 +2347,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2287
2347
Nullable<std::string> Prevsharesnapshot;
2288
2348
Nullable<std::string> Range;
2289
2349
Nullable<std::string> LeaseId;
2350
+ Nullable<bool > AllowTrailingDot;
2351
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2290
2352
};
2291
2353
static Response<Models::GetFileRangeListResult> GetRangeList (
2292
2354
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2307,6 +2369,9 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2307
2369
Nullable<std::string> FileChangeTime;
2308
2370
Nullable<bool > SetArchiveAttribute;
2309
2371
Nullable<std::string> LeaseId;
2372
+ Nullable<bool > AllowTrailingDot;
2373
+ Nullable<bool > AllowSourceTrailingDot;
2374
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2310
2375
};
2311
2376
static Response<Models::_detail::StartFileCopyResult> StartCopy (
2312
2377
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2317,6 +2382,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2317
2382
{
2318
2383
std::string CopyId;
2319
2384
Nullable<std::string> LeaseId;
2385
+ Nullable<bool > AllowTrailingDot;
2386
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2320
2387
};
2321
2388
static Response<Models::AbortFileCopyResult> AbortCopy (
2322
2389
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2328,6 +2395,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2328
2395
Nullable<std::string> Marker;
2329
2396
Nullable<int32_t > MaxResults;
2330
2397
Nullable<std::string> Sharesnapshot;
2398
+ Nullable<bool > AllowTrailingDot;
2399
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2331
2400
};
2332
2401
static Response<Models::_detail::ListHandlesResponse> ListHandles (
2333
2402
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2339,6 +2408,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2339
2408
Nullable<std::string> Marker;
2340
2409
Nullable<std::string> Sharesnapshot;
2341
2410
std::string HandleId;
2411
+ Nullable<bool > AllowTrailingDot;
2412
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2342
2413
};
2343
2414
static Response<Models::_detail::ForceFileCloseHandlesResult> ForceCloseHandles (
2344
2415
Core::Http::_internal::HttpPipeline& pipeline,
@@ -2360,6 +2431,9 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
2360
2431
Nullable<std::string> FilePermissionKey;
2361
2432
std::map<std::string, std::string> Metadata;
2362
2433
Nullable<std::string> FileContentType;
2434
+ Nullable<bool > AllowTrailingDot;
2435
+ Nullable<bool > AllowSourceTrailingDot;
2436
+ Nullable<Models::ShareTokenIntent> FileRequestIntent;
2363
2437
};
2364
2438
static Response<Models::_detail::RenameFileResult> Rename (
2365
2439
Core::Http::_internal::HttpPipeline& pipeline,
0 commit comments