~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/features/models.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 features
 
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
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest/to"
 
24
        "net/http"
 
25
)
 
26
 
 
27
// DeploymentExtendedFilter is deployment filter.
 
28
type DeploymentExtendedFilter struct {
 
29
        ProvisioningState *string `json:"provisioningState,omitempty"`
 
30
}
 
31
 
 
32
// FeatureOperationsListResult is list of previewed features.
 
33
type FeatureOperationsListResult struct {
 
34
        autorest.Response `json:"-"`
 
35
        Value             *[]FeatureResult `json:"value,omitempty"`
 
36
        NextLink          *string          `json:"nextLink,omitempty"`
 
37
}
 
38
 
 
39
// FeatureOperationsListResultPreparer prepares a request to retrieve the next set of results. It returns
 
40
// nil if no more results exist.
 
41
func (client FeatureOperationsListResult) FeatureOperationsListResultPreparer() (*http.Request, error) {
 
42
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
43
                return nil, nil
 
44
        }
 
45
        return autorest.Prepare(&http.Request{},
 
46
                autorest.AsJSON(),
 
47
                autorest.AsGet(),
 
48
                autorest.WithBaseURL(to.String(client.NextLink)))
 
49
}
 
50
 
 
51
// FeatureProperties is previewed feature information.
 
52
type FeatureProperties struct {
 
53
        State *string `json:"state,omitempty"`
 
54
}
 
55
 
 
56
// FeatureResult is previewed feature information.
 
57
type FeatureResult struct {
 
58
        autorest.Response `json:"-"`
 
59
        Name              *string            `json:"name,omitempty"`
 
60
        Properties        *FeatureProperties `json:"properties,omitempty"`
 
61
        ID                *string            `json:"id,omitempty"`
 
62
        Type              *string            `json:"type,omitempty"`
 
63
}
 
64
 
 
65
// GenericResourceFilter is resource filter.
 
66
type GenericResourceFilter struct {
 
67
        ResourceType *string `json:"resourceType,omitempty"`
 
68
        Tagname      *string `json:"tagname,omitempty"`
 
69
        Tagvalue     *string `json:"tagvalue,omitempty"`
 
70
}
 
71
 
 
72
// Resource is
 
73
type Resource struct {
 
74
        ID       *string             `json:"id,omitempty"`
 
75
        Name     *string             `json:"name,omitempty"`
 
76
        Type     *string             `json:"type,omitempty"`
 
77
        Location *string             `json:"location,omitempty"`
 
78
        Tags     *map[string]*string `json:"tags,omitempty"`
 
79
}
 
80
 
 
81
// ResourceGroupFilter is resource group filter.
 
82
type ResourceGroupFilter struct {
 
83
        TagName  *string `json:"tagName,omitempty"`
 
84
        TagValue *string `json:"tagValue,omitempty"`
 
85
}
 
86
 
 
87
// SubResource is
 
88
type SubResource struct {
 
89
        ID *string `json:"id,omitempty"`
 
90
}