diff --git a/sdk/storage/azdatalake/internal/generated/autorest.md b/sdk/storage/azdatalake/internal/generated/autorest.md index d0fcbb9a408a..9ffc88ee61a5 100644 --- a/sdk/storage/azdatalake/internal/generated/autorest.md +++ b/sdk/storage/azdatalake/internal/generated/autorest.md @@ -7,7 +7,7 @@ go: true clear-output-folder: false version: "^3.0.0" license-header: MICROSOFT_MIT_NO_VERSION -input-file: "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/3f3b51edf8fd0eb65004df390d6ee98e0e23c53d/specification/storage/data-plane/Azure.Storage.Files.DataLake/preview/2021-06-08/DataLakeStorage.json" +input-file: "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/688a906172823628e75b19ea8964d998cb7560fd/specification/storage/data-plane/Azure.Storage.Files.DataLake/preview/2023-05-03/DataLakeStorage.json" credential-scope: "https://storage.azure.com/.default" output-folder: ../generated file-prefix: "zz_" diff --git a/sdk/storage/azdatalake/internal/generated/zz_filesystem_client.go b/sdk/storage/azdatalake/internal/generated/zz_filesystem_client.go index 115de5aeaa9d..f1c396e6c45f 100644 --- a/sdk/storage/azdatalake/internal/generated/zz_filesystem_client.go +++ b/sdk/storage/azdatalake/internal/generated/zz_filesystem_client.go @@ -32,7 +32,7 @@ type FileSystemClient struct { // operation does not support conditional HTTP requests. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - FileSystemClientCreateOptions contains the optional parameters for the FileSystemClient.Create method. func (client *FileSystemClient) Create(ctx context.Context, options *FileSystemClientCreateOptions) (FileSystemClientCreateResponse, error) { req, err := client.createCreateRequest(ctx, options) @@ -64,7 +64,7 @@ func (client *FileSystemClient) createCreateRequest(ctx context.Context, options if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.Properties != nil { req.Raw().Header["x-ms-properties"] = []string{*options.Properties} } @@ -114,7 +114,7 @@ func (client *FileSystemClient) createHandleResponse(resp *http.Response) (FileS // [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - FileSystemClientDeleteOptions contains the optional parameters for the FileSystemClient.Delete method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties // method. @@ -148,7 +148,7 @@ func (client *FileSystemClient) deleteCreateRequest(ctx context.Context, options if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if modifiedAccessConditions != nil && modifiedAccessConditions.IfModifiedSince != nil { req.Raw().Header["If-Modified-Since"] = []string{(*modifiedAccessConditions.IfModifiedSince).In(gmt).Format(time.RFC1123)} } @@ -181,7 +181,7 @@ func (client *FileSystemClient) deleteHandleResponse(resp *http.Response) (FileS // GetProperties - All system and user-defined filesystem properties are specified in the response headers. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - FileSystemClientGetPropertiesOptions contains the optional parameters for the FileSystemClient.GetProperties // method. func (client *FileSystemClient) GetProperties(ctx context.Context, options *FileSystemClientGetPropertiesOptions) (FileSystemClientGetPropertiesResponse, error) { @@ -214,7 +214,7 @@ func (client *FileSystemClient) getPropertiesCreateRequest(ctx context.Context, if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -256,7 +256,7 @@ func (client *FileSystemClient) getPropertiesHandleResponse(resp *http.Response) // NewListBlobHierarchySegmentPager - The List Blobs operation returns a list of the blobs under the specified container // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - FileSystemClientListBlobHierarchySegmentOptions contains the optional parameters for the FileSystemClient.NewListBlobHierarchySegmentPager // method. // @@ -291,7 +291,7 @@ func (client *FileSystemClient) ListBlobHierarchySegmentCreateRequest(ctx contex reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) } req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } @@ -329,7 +329,7 @@ func (client *FileSystemClient) ListBlobHierarchySegmentHandleResponse(resp *htt // NewListPathsPager - List FileSystem paths and their properties. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - recursive - Required // - options - FileSystemClientListPathsOptions contains the optional parameters for the FileSystemClient.NewListPathsPager // method. @@ -362,7 +362,7 @@ func (client *FileSystemClient) ListPathsCreateRequest(ctx context.Context, recu if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -407,7 +407,7 @@ func (client *FileSystemClient) ListPathsHandleResponse(resp *http.Response) (Fi // [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - FileSystemClientSetPropertiesOptions contains the optional parameters for the FileSystemClient.SetProperties // method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties @@ -442,7 +442,7 @@ func (client *FileSystemClient) setPropertiesCreateRequest(ctx context.Context, if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.Properties != nil { req.Raw().Header["x-ms-properties"] = []string{*options.Properties} } diff --git a/sdk/storage/azdatalake/internal/generated/zz_models.go b/sdk/storage/azdatalake/internal/generated/zz_models.go index 1e24dca4257d..f9767726fc69 100644 --- a/sdk/storage/azdatalake/internal/generated/zz_models.go +++ b/sdk/storage/azdatalake/internal/generated/zz_models.go @@ -386,6 +386,11 @@ type PathClientDeleteOptions struct { // this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation // of the delete operation to continue deleting the directory. Continuation *string + // If true, paginated behavior will be seen. Pagination is for the recursive ACL checks as a POSIX requirement in the server + // and Delete in an atomic operation once the ACL checks are completed. If false + // or missing, normal default behavior will kick in, which may timeout in case of very large directories due to recursive + // ACL checks. This new parameter is introduced for backward compatibility. + Paginated *bool // Required Recursive *bool // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage diff --git a/sdk/storage/azdatalake/internal/generated/zz_path_client.go b/sdk/storage/azdatalake/internal/generated/zz_path_client.go index c110ad790150..2160a94f678b 100644 --- a/sdk/storage/azdatalake/internal/generated/zz_path_client.go +++ b/sdk/storage/azdatalake/internal/generated/zz_path_client.go @@ -32,7 +32,7 @@ type PathClient struct { // AppendData - Append data to the file. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - body - Initial data // - options - PathClientAppendDataOptions contains the optional parameters for the PathClient.AppendData method. // - PathHTTPHeaders - PathHTTPHeaders contains a group of parameters for the PathClient.Create method. @@ -95,7 +95,7 @@ func (client *PathClient) appendDataCreateRequest(ctx context.Context, body io.R if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if cpkInfo != nil && cpkInfo.EncryptionKey != nil { req.Raw().Header["x-ms-encryption-key"] = []string{*cpkInfo.EncryptionKey} } @@ -176,7 +176,7 @@ func (client *PathClient) appendDataHandleResponse(resp *http.Response) (PathCli // If-None-Match: "*". // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientCreateOptions contains the optional parameters for the PathClient.Create method. // - PathHTTPHeaders - PathHTTPHeaders contains a group of parameters for the PathClient.Create method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. @@ -223,7 +223,7 @@ func (client *PathClient) createCreateRequest(ctx context.Context, options *Path if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if pathHTTPHeaders != nil && pathHTTPHeaders.CacheControl != nil { req.Raw().Header["x-ms-cache-control"] = []string{*pathHTTPHeaders.CacheControl} } @@ -372,7 +372,7 @@ func (client *PathClient) createHandleResponse(resp *http.Response) (PathClientC // [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientDeleteOptions contains the optional parameters for the PathClient.Delete method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties @@ -386,7 +386,7 @@ func (client *PathClient) Delete(ctx context.Context, options *PathClientDeleteO if err != nil { return PathClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { return PathClientDeleteResponse{}, runtime.NewResponseError(resp) } return client.deleteHandleResponse(resp) @@ -408,11 +408,14 @@ func (client *PathClient) deleteCreateRequest(ctx context.Context, options *Path if options != nil && options.Continuation != nil { reqQP.Set("continuation", *options.Continuation) } + if options != nil && options.Paginated != nil { + reqQP.Set("paginated", strconv.FormatBool(*options.Paginated)) + } req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if leaseAccessConditions != nil && leaseAccessConditions.LeaseID != nil { req.Raw().Header["x-ms-lease-id"] = []string{*leaseAccessConditions.LeaseID} } @@ -454,13 +457,22 @@ func (client *PathClient) deleteHandleResponse(resp *http.Response) (PathClientD if val := resp.Header.Get("x-ms-deletion-id"); val != "" { result.DeletionID = &val } + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.XMSRequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.XMSVersion = &val + } + if val := resp.Header.Get("x-ms-continuation"); val != "" { + result.XMSContinuation = &val + } return result, nil } // FlushData - Set the owner, group, permissions, or access control list for a path. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientFlushDataOptions contains the optional parameters for the PathClient.FlushData method. // - PathHTTPHeaders - PathHTTPHeaders contains a group of parameters for the PathClient.Create method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. @@ -551,7 +563,7 @@ func (client *PathClient) flushDataCreateRequest(ctx context.Context, options *P if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if cpkInfo != nil && cpkInfo.EncryptionKey != nil { req.Raw().Header["x-ms-encryption-key"] = []string{*cpkInfo.EncryptionKey} } @@ -628,7 +640,7 @@ func (client *PathClient) flushDataHandleResponse(resp *http.Response) (PathClie // [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientGetPropertiesOptions contains the optional parameters for the PathClient.GetProperties method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties @@ -668,7 +680,7 @@ func (client *PathClient) getPropertiesCreateRequest(ctx context.Context, option if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if leaseAccessConditions != nil && leaseAccessConditions.LeaseID != nil { req.Raw().Header["x-ms-lease-id"] = []string{*leaseAccessConditions.LeaseID} } @@ -780,7 +792,7 @@ func (client *PathClient) getPropertiesHandleResponse(resp *http.Response) (Path // Operations [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - xmsLeaseAction - There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and // specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" // to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease @@ -823,7 +835,7 @@ func (client *PathClient) leaseCreateRequest(ctx context.Context, xmsLeaseAction if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["x-ms-lease-action"] = []string{string(xmsLeaseAction)} req.Raw().Header["x-ms-lease-duration"] = []string{strconv.FormatInt(int64(client.xmsLeaseDuration), 10)} if options != nil && options.XMSLeaseBreakPeriod != nil { @@ -891,7 +903,7 @@ func (client *PathClient) leaseHandleResponse(resp *http.Response) (PathClientLe // Service Operations [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientReadOptions contains the optional parameters for the PathClient.Read method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties @@ -927,7 +939,7 @@ func (client *PathClient) readCreateRequest(ctx context.Context, options *PathCl if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.Range != nil { req.Raw().Header["Range"] = []string{*options.Range} } @@ -1053,7 +1065,7 @@ func (client *PathClient) readHandleResponse(resp *http.Response) (PathClientRea // SetAccessControl - Set the owner, group, permissions, or access control list for a path. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientSetAccessControlOptions contains the optional parameters for the PathClient.SetAccessControl method. // - LeaseAccessConditions - LeaseAccessConditions contains a group of parameters for the PathClient.Create method. // - ModifiedAccessConditions - ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties @@ -1115,7 +1127,7 @@ func (client *PathClient) setAccessControlCreateRequest(ctx context.Context, opt if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -1155,7 +1167,7 @@ func (client *PathClient) setAccessControlHandleResponse(resp *http.Response) (P // SetAccessControlRecursive - Set the access control list for a path and sub-paths. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - mode - Mode "set" sets POSIX access control rights on files and directories, "modify" modifies one or more POSIX access // control rights that pre-exist on files and directories, "remove" removes one or more // POSIX access control rights that were present earlier on files and directories @@ -1204,7 +1216,7 @@ func (client *PathClient) SetAccessControlRecursiveCreateRequest(ctx context.Con if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -1240,7 +1252,7 @@ func (client *PathClient) SetAccessControlRecursiveHandleResponse(resp *http.Res // SetExpiry - Sets the time a blob will expire and be deleted. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - expiryOptions - Required. Indicates mode of the expiry time // - options - PathClientSetExpiryOptions contains the optional parameters for the PathClient.SetExpiry method. func (client *PathClient) SetExpiry(ctx context.Context, expiryOptions ExpiryOptions, options *PathClientSetExpiryOptions) (PathClientSetExpiryResponse, error) { @@ -1270,7 +1282,7 @@ func (client *PathClient) setExpiryCreateRequest(ctx context.Context, expiryOpti reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) } req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } @@ -1317,7 +1329,7 @@ func (client *PathClient) setExpiryHandleResponse(resp *http.Response) (PathClie // Undelete - Undelete a path that was previously soft deleted // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - PathClientUndeleteOptions contains the optional parameters for the PathClient.Undelete method. func (client *PathClient) Undelete(ctx context.Context, options *PathClientUndeleteOptions) (PathClientUndeleteResponse, error) { req, err := client.undeleteCreateRequest(ctx, options) @@ -1349,7 +1361,7 @@ func (client *PathClient) undeleteCreateRequest(ctx context.Context, options *Pa if options != nil && options.UndeleteSource != nil { req.Raw().Header["x-ms-undelete-source"] = []string{*options.UndeleteSource} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } @@ -1389,7 +1401,7 @@ func (client *PathClient) undeleteHandleResponse(resp *http.Response) (PathClien // Headers for Blob Service Operations [https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations]. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - action - The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data // to a file, "setProperties" to set the properties of a file or directory, // "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory, or "setAccessControlRecursive" @@ -1455,7 +1467,7 @@ func (client *PathClient) updateCreateRequest(ctx context.Context, action PathUp if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} if options != nil && options.ContentLength != nil { req.Raw().Header["Content-Length"] = []string{strconv.FormatInt(*options.ContentLength, 10)} } diff --git a/sdk/storage/azdatalake/internal/generated/zz_response_types.go b/sdk/storage/azdatalake/internal/generated/zz_response_types.go index fdf0d25fdc74..d8f3911c6a02 100644 --- a/sdk/storage/azdatalake/internal/generated/zz_response_types.go +++ b/sdk/storage/azdatalake/internal/generated/zz_response_types.go @@ -210,6 +210,15 @@ type PathClientDeleteResponse struct { // Version contains the information returned from the x-ms-version header response. Version *string + + // XMSContinuation contains the information returned from the x-ms-continuation header response. + XMSContinuation *string + + // XMSRequestID contains the information returned from the x-ms-request-id header response. + XMSRequestID *string + + // XMSVersion contains the information returned from the x-ms-version header response. + XMSVersion *string } // PathClientFlushDataResponse contains the response from method PathClient.FlushData. diff --git a/sdk/storage/azdatalake/internal/generated/zz_service_client.go b/sdk/storage/azdatalake/internal/generated/zz_service_client.go index a441fa581105..a70d131c2c27 100644 --- a/sdk/storage/azdatalake/internal/generated/zz_service_client.go +++ b/sdk/storage/azdatalake/internal/generated/zz_service_client.go @@ -29,7 +29,7 @@ type ServiceClient struct { // NewListFileSystemsPager - List filesystems and their properties in given account. // -// Generated from API version 2021-06-08 +// Generated from API version 2023-05-03 // - options - ServiceClientListFileSystemsOptions contains the optional parameters for the ServiceClient.NewListFileSystemsPager // method. // @@ -57,7 +57,7 @@ func (client *ServiceClient) ListFileSystemsCreateRequest(ctx context.Context, o if options != nil && options.RequestID != nil { req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } - req.Raw().Header["x-ms-version"] = []string{"2021-06-08"} + req.Raw().Header["x-ms-version"] = []string{"2023-05-03"} req.Raw().Header["Accept"] = []string{"application/json"} return req, nil }