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