1package directories 2 3import ( 4 "github.com/Azure/go-autorest/autorest" 5 "github.com/Azure/go-autorest/autorest/azure" 6) 7 8// Client is the base client for File Storage Shares. 9type Client struct { 10 autorest.Client 11 BaseURI string 12} 13 14// New creates an instance of the Client client. 15func New() Client { 16 return NewWithEnvironment(azure.PublicCloud) 17} 18 19// NewWithEnvironment creates an instance of the Client client. 20func NewWithEnvironment(environment azure.Environment) Client { 21 return Client{ 22 Client: autorest.NewClientWithUserAgent(UserAgent()), 23 BaseURI: environment.StorageEndpointSuffix, 24 } 25} 26