1package storage 2 3// Copyright 2017 Microsoft Corporation 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// 9// http://www.apache.org/licenses/LICENSE-2.0 10// 11// Unless required by applicable law or agreed to in writing, software 12// distributed under the License is distributed on an "AS IS" BASIS, 13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14// See the License for the specific language governing permissions and 15// limitations under the License. 16 17// QueueServiceClient contains operations for Microsoft Azure Queue Storage 18// Service. 19type QueueServiceClient struct { 20 client Client 21 auth authentication 22} 23 24// GetServiceProperties gets the properties of your storage account's queue service. 25// See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/get-queue-service-properties 26func (q *QueueServiceClient) GetServiceProperties() (*ServiceProperties, error) { 27 return q.client.getServiceProperties(queueServiceName, q.auth) 28} 29 30// SetServiceProperties sets the properties of your storage account's queue service. 31// See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/set-queue-service-properties 32func (q *QueueServiceClient) SetServiceProperties(props ServiceProperties) error { 33 return q.client.setServiceProperties(props, queueServiceName, q.auth) 34} 35 36// GetQueueReference returns a Container object for the specified queue name. 37func (q *QueueServiceClient) GetQueueReference(name string) *Queue { 38 return &Queue{ 39 qsc: q, 40 Name: name, 41 } 42} 43