~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/scheduler/client.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package scheduler
 
2
 
 
3
// Copyright (c) Microsoft and contributors.  All rights reserved.
 
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
// http://www.apache.org/licenses/LICENSE-2.0
 
9
//
 
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.
 
13
//
 
14
// See the License for the specific language governing permissions and
 
15
// limitations under the License.
 
16
//
 
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
 
19
// regenerated.
 
20
 
 
21
import (
 
22
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
 
23
)
 
24
 
 
25
const (
 
26
        // APIVersion is the version of the Scheduler
 
27
        APIVersion = "2014-08-01-preview"
 
28
 
 
29
        // DefaultBaseURI is the default URI used for the service Scheduler
 
30
        DefaultBaseURI = "https://management.azure.com"
 
31
)
 
32
 
 
33
// ManagementClient is the base client for Scheduler.
 
34
type ManagementClient struct {
 
35
        autorest.Client
 
36
        BaseURI        string
 
37
        SubscriptionID string
 
38
}
 
39
 
 
40
// New creates an instance of the ManagementClient client.
 
41
func New(subscriptionID string) ManagementClient {
 
42
        return NewWithBaseURI(DefaultBaseURI, subscriptionID)
 
43
}
 
44
 
 
45
// NewWithBaseURI creates an instance of the ManagementClient client.
 
46
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient {
 
47
        return ManagementClient{
 
48
                Client:         autorest.NewClientWithUserAgent(UserAgent()),
 
49
                BaseURI:        baseURI,
 
50
                SubscriptionID: subscriptionID,
 
51
        }
 
52
}