1 package storage 2 3 // Copyright (c) Microsoft Corporation. All rights reserved. 4 // Licensed under the MIT License. See License.txt in the project root for license information. 5 6 // QueueServiceClient contains operations for Microsoft Azure Queue Storage 7 // Service. 8 type QueueServiceClient struct { 9 client Client 10 auth authentication 11 } 12 13 // GetServiceProperties gets the properties of your storage account's queue service. 14 // See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/get-queue-service-properties 15 func (q *QueueServiceClient) GetServiceProperties() (*ServiceProperties, error) { 16 return q.client.getServiceProperties(queueServiceName, q.auth) 17 } 18 19 // SetServiceProperties sets the properties of your storage account's queue service. 20 // See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/set-queue-service-properties 21 func (q *QueueServiceClient) SetServiceProperties(props ServiceProperties) error { 22 return q.client.setServiceProperties(props, queueServiceName, q.auth) 23 } 24 25 // GetQueueReference returns a Container object for the specified queue name. 26 func (q *QueueServiceClient) GetQueueReference(name string) *Queue { 27 return &Queue{ 28 qsc: q, 29 Name: name, 30 } 31 } 32