1package filesystemapi
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20import (
21	"context"
22	"github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem"
23	"github.com/Azure/go-autorest/autorest"
24	"io"
25)
26
27// ClientAPI contains the set of methods on the Client type.
28type ClientAPI interface {
29	Append(ctx context.Context, accountName string, directFilePath string, streamContents io.ReadCloser, offset *int64) (result autorest.Response, err error)
30	CheckAccess(ctx context.Context, accountName string, pathParameter string, fsaction string) (result autorest.Response, err error)
31	Concat(ctx context.Context, accountName string, destinationPath string, sources []string) (result autorest.Response, err error)
32	ConcurrentAppend(ctx context.Context, accountName string, filePath string, streamContents io.ReadCloser, appendMode filesystem.AppendModeType) (result autorest.Response, err error)
33	Create(ctx context.Context, accountName string, directFilePath string, streamContents io.ReadCloser, overwrite *bool) (result autorest.Response, err error)
34	Delete(ctx context.Context, accountName string, filePath string, recursive *bool) (result filesystem.FileOperationResult, err error)
35	Flush(ctx context.Context, accountName string, flushFilePath string) (result autorest.Response, err error)
36	GetACLStatus(ctx context.Context, accountName string, ACLFilePath string) (result filesystem.ACLStatusResult, err error)
37	GetContentSummary(ctx context.Context, accountName string, getContentSummaryFilePath string) (result filesystem.ContentSummaryResult, err error)
38	GetFileStatus(ctx context.Context, accountName string, getFilePath string) (result filesystem.FileStatusResult, err error)
39	ListFileStatus(ctx context.Context, accountName string, listFilePath string, listSize *int32, listAfter string, listBefore string) (result filesystem.FileStatusesResult, err error)
40	Mkdirs(ctx context.Context, accountName string, pathParameter string) (result filesystem.FileOperationResult, err error)
41	ModifyACLEntries(ctx context.Context, accountName string, modifyACLFilePath string, aclspec string) (result autorest.Response, err error)
42	MsConcat(ctx context.Context, accountName string, msConcatDestinationPath string, streamContents io.ReadCloser, deleteSourceDirectory *bool) (result autorest.Response, err error)
43	Open(ctx context.Context, accountName string, directFilePath string, length *int64, offset *int64) (result filesystem.ReadCloser, err error)
44	RemoveACL(ctx context.Context, accountName string, ACLFilePath string) (result autorest.Response, err error)
45	RemoveACLEntries(ctx context.Context, accountName string, removeACLFilePath string, aclspec string) (result autorest.Response, err error)
46	RemoveDefaultACL(ctx context.Context, accountName string, defaultACLFilePath string) (result autorest.Response, err error)
47	Rename(ctx context.Context, accountName string, renameFilePath string, destination string) (result filesystem.FileOperationResult, err error)
48	SetACL(ctx context.Context, accountName string, setACLFilePath string, aclspec string) (result autorest.Response, err error)
49	SetFileExpiry(ctx context.Context, accountName string, filePath string, expiryOption filesystem.ExpiryOptionType, expireTime *int64) (result autorest.Response, err error)
50	SetOwner(ctx context.Context, accountName string, setOwnerFilePath string, owner string, group string) (result autorest.Response, err error)
51	SetPermission(ctx context.Context, accountName string, setPermissionFilePath string, permission string) (result autorest.Response, err error)
52}
53
54var _ ClientAPI = (*filesystem.Client)(nil)
55