3
// Copyright (c) Microsoft and contributors. All rights reserved.
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
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.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
18
// Changes may cause incorrect behavior and will be lost if the code is
29
// Always begin a "tag" with a dash (as per http://semver.org)
31
semVerFormat = "%s.%s.%s%s"
32
userAgentFormat = "Azure-SDK-for-Go/%s;Package arm/%s;API %s"
35
// UserAgent returns the UserAgent string to use when sending http.Requests.
36
func UserAgent() string {
37
return fmt.Sprintf(userAgentFormat, Version(), "storage", "2015-06-15")
40
// Version returns the semantic version (see http://semver.org) of the client.
41
func Version() string {
42
return fmt.Sprintf(semVerFormat, major, minor, patch, tag)