File: models.go

package info (click to toggle)
golang-github-azure-azure-sdk-for-go 10.3.0~beta-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, experimental
  • size: 15,936 kB
  • ctags: 22,331
  • sloc: sh: 33; makefile: 8
file content (292 lines) | stat: -rw-r--r-- 12,519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
package eventgrid

// Copyright (c) Microsoft and contributors.  All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

import (
	"github.com/Azure/go-autorest/autorest"
)

// EndpointType enumerates the values for endpoint type.
type EndpointType string

const (
	// WebHook specifies the web hook state for endpoint type.
	WebHook EndpointType = "WebHook"
)

// EventSubscriptionProvisioningState enumerates the values for event subscription provisioning state.
type EventSubscriptionProvisioningState string

const (
	// Canceled specifies the canceled state for event subscription provisioning state.
	Canceled EventSubscriptionProvisioningState = "Canceled"
	// Creating specifies the creating state for event subscription provisioning state.
	Creating EventSubscriptionProvisioningState = "Creating"
	// Deleting specifies the deleting state for event subscription provisioning state.
	Deleting EventSubscriptionProvisioningState = "Deleting"
	// Failed specifies the failed state for event subscription provisioning state.
	Failed EventSubscriptionProvisioningState = "Failed"
	// Succeeded specifies the succeeded state for event subscription provisioning state.
	Succeeded EventSubscriptionProvisioningState = "Succeeded"
	// Updating specifies the updating state for event subscription provisioning state.
	Updating EventSubscriptionProvisioningState = "Updating"
)

// OperationOrigin enumerates the values for operation origin.
type OperationOrigin string

const (
	// System specifies the system state for operation origin.
	System OperationOrigin = "System"
	// User specifies the user state for operation origin.
	User OperationOrigin = "User"
	// UserAndSystem specifies the user and system state for operation origin.
	UserAndSystem OperationOrigin = "UserAndSystem"
)

// ResourceRegionType enumerates the values for resource region type.
type ResourceRegionType string

const (
	// GlobalResource specifies the global resource state for resource region type.
	GlobalResource ResourceRegionType = "GlobalResource"
	// RegionalResource specifies the regional resource state for resource region type.
	RegionalResource ResourceRegionType = "RegionalResource"
)

// TopicProvisioningState enumerates the values for topic provisioning state.
type TopicProvisioningState string

const (
	// TopicProvisioningStateCanceled specifies the topic provisioning state canceled state for topic provisioning
	// state.
	TopicProvisioningStateCanceled TopicProvisioningState = "Canceled"
	// TopicProvisioningStateCreating specifies the topic provisioning state creating state for topic provisioning
	// state.
	TopicProvisioningStateCreating TopicProvisioningState = "Creating"
	// TopicProvisioningStateDeleting specifies the topic provisioning state deleting state for topic provisioning
	// state.
	TopicProvisioningStateDeleting TopicProvisioningState = "Deleting"
	// TopicProvisioningStateFailed specifies the topic provisioning state failed state for topic provisioning state.
	TopicProvisioningStateFailed TopicProvisioningState = "Failed"
	// TopicProvisioningStateSucceeded specifies the topic provisioning state succeeded state for topic provisioning
	// state.
	TopicProvisioningStateSucceeded TopicProvisioningState = "Succeeded"
	// TopicProvisioningStateUpdating specifies the topic provisioning state updating state for topic provisioning
	// state.
	TopicProvisioningStateUpdating TopicProvisioningState = "Updating"
)

// TopicTypeProvisioningState enumerates the values for topic type provisioning state.
type TopicTypeProvisioningState string

const (
	// TopicTypeProvisioningStateCanceled specifies the topic type provisioning state canceled state for topic type
	// provisioning state.
	TopicTypeProvisioningStateCanceled TopicTypeProvisioningState = "Canceled"
	// TopicTypeProvisioningStateCreating specifies the topic type provisioning state creating state for topic type
	// provisioning state.
	TopicTypeProvisioningStateCreating TopicTypeProvisioningState = "Creating"
	// TopicTypeProvisioningStateDeleting specifies the topic type provisioning state deleting state for topic type
	// provisioning state.
	TopicTypeProvisioningStateDeleting TopicTypeProvisioningState = "Deleting"
	// TopicTypeProvisioningStateFailed specifies the topic type provisioning state failed state for topic type
	// provisioning state.
	TopicTypeProvisioningStateFailed TopicTypeProvisioningState = "Failed"
	// TopicTypeProvisioningStateSucceeded specifies the topic type provisioning state succeeded state for topic type
	// provisioning state.
	TopicTypeProvisioningStateSucceeded TopicTypeProvisioningState = "Succeeded"
	// TopicTypeProvisioningStateUpdating specifies the topic type provisioning state updating state for topic type
	// provisioning state.
	TopicTypeProvisioningStateUpdating TopicTypeProvisioningState = "Updating"
)

// EventSubscription is event Subscription
type EventSubscription struct {
	autorest.Response            `json:"-"`
	ID                           *string `json:"id,omitempty"`
	Name                         *string `json:"name,omitempty"`
	Type                         *string `json:"type,omitempty"`
	*EventSubscriptionProperties `json:"properties,omitempty"`
}

// EventSubscriptionDestination is information about the destination for an event subscription
type EventSubscriptionDestination struct {
	EndpointType                            EndpointType `json:"endpointType,omitempty"`
	*EventSubscriptionDestinationProperties `json:"properties,omitempty"`
}

// EventSubscriptionDestinationProperties is properties of the event subscription destination
type EventSubscriptionDestinationProperties struct {
	EndpointURL     *string `json:"endpointUrl,omitempty"`
	EndpointBaseURL *string `json:"endpointBaseUrl,omitempty"`
}

// EventSubscriptionFilter is filter for the Event Subscription
type EventSubscriptionFilter struct {
	SubjectBeginsWith      *string   `json:"subjectBeginsWith,omitempty"`
	SubjectEndsWith        *string   `json:"subjectEndsWith,omitempty"`
	IncludedEventTypes     *[]string `json:"includedEventTypes,omitempty"`
	IsSubjectCaseSensitive *bool     `json:"isSubjectCaseSensitive,omitempty"`
}

// EventSubscriptionFullURL is full endpoint url of an event subscription
type EventSubscriptionFullURL struct {
	autorest.Response `json:"-"`
	EndpointURL       *string `json:"endpointUrl,omitempty"`
}

// EventSubscriptionProperties is properties of the Event Subscription
type EventSubscriptionProperties struct {
	Topic             *string                            `json:"topic,omitempty"`
	ProvisioningState EventSubscriptionProvisioningState `json:"provisioningState,omitempty"`
	Destination       *EventSubscriptionDestination      `json:"destination,omitempty"`
	Filter            *EventSubscriptionFilter           `json:"filter,omitempty"`
	Labels            *[]string                          `json:"labels,omitempty"`
}

// EventSubscriptionsListResult is result of the List EventSubscriptions operation
type EventSubscriptionsListResult struct {
	autorest.Response `json:"-"`
	Value             *[]EventSubscription `json:"value,omitempty"`
}

// EventSubscriptionUpdateParameters is properties of the Event Subscription update
type EventSubscriptionUpdateParameters struct {
	Destination *EventSubscriptionDestination `json:"destination,omitempty"`
	Filter      *EventSubscriptionFilter      `json:"filter,omitempty"`
	Labels      *[]string                     `json:"labels,omitempty"`
}

// EventType is event Type for a subject under a topic
type EventType struct {
	ID                   *string `json:"id,omitempty"`
	Name                 *string `json:"name,omitempty"`
	Type                 *string `json:"type,omitempty"`
	*EventTypeProperties `json:"properties,omitempty"`
}

// EventTypeProperties is properties of the event type
type EventTypeProperties struct {
	DisplayName *string `json:"displayName,omitempty"`
	Description *string `json:"description,omitempty"`
	SchemaURL   *string `json:"schemaUrl,omitempty"`
}

// EventTypesListResult is result of the List Event Types operation
type EventTypesListResult struct {
	autorest.Response `json:"-"`
	Value             *[]EventType `json:"value,omitempty"`
}

// Operation is represents an operation returned by the GetOperations request
type Operation struct {
	Name       *string                 `json:"name,omitempty"`
	Display    *OperationInfo          `json:"display,omitempty"`
	Origin     OperationOrigin         `json:"origin,omitempty"`
	Properties *map[string]interface{} `json:"properties,omitempty"`
}

// OperationInfo is information about an operation
type OperationInfo struct {
	Provider    *string `json:"provider,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Description *string `json:"description,omitempty"`
}

// OperationsListResult is result of the List Operations operation
type OperationsListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
}

// Resource is definition of a Resource
type Resource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

// Topic is eventGrid Topic
type Topic struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*TopicProperties  `json:"properties,omitempty"`
}

// TopicProperties is properties of the Topic
type TopicProperties struct {
	ProvisioningState TopicProvisioningState `json:"provisioningState,omitempty"`
	Endpoint          *string                `json:"endpoint,omitempty"`
}

// TopicRegenerateKeyRequest is topic regenerate share access key key request
type TopicRegenerateKeyRequest struct {
	KeyName *string `json:"keyName,omitempty"`
}

// TopicSharedAccessKeys is shared access keys of the Topic
type TopicSharedAccessKeys struct {
	autorest.Response `json:"-"`
	Key1              *string `json:"key1,omitempty"`
	Key2              *string `json:"key2,omitempty"`
}

// TopicsListResult is result of the List Topics operation
type TopicsListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Topic `json:"value,omitempty"`
}

// TopicTypeInfo is properties of a topic type info.
type TopicTypeInfo struct {
	autorest.Response    `json:"-"`
	ID                   *string `json:"id,omitempty"`
	Name                 *string `json:"name,omitempty"`
	Type                 *string `json:"type,omitempty"`
	*TopicTypeProperties `json:"properties,omitempty"`
}

// TopicTypeProperties is properties of a topic type.
type TopicTypeProperties struct {
	Provider           *string                    `json:"provider,omitempty"`
	DisplayName        *string                    `json:"displayName,omitempty"`
	Description        *string                    `json:"description,omitempty"`
	ResourceRegionType ResourceRegionType         `json:"resourceRegionType,omitempty"`
	ProvisioningState  TopicTypeProvisioningState `json:"provisioningState,omitempty"`
}

// TopicTypesListResult is result of the List Topic Types operation
type TopicTypesListResult struct {
	autorest.Response `json:"-"`
	Value             *[]TopicTypeInfo `json:"value,omitempty"`
}

// TrackedResource is definition of a Tracked Resource
type TrackedResource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}