-
Notifications
You must be signed in to change notification settings - Fork 800
/
zz_generated_models.go
489 lines (373 loc) · 17.3 KB
/
zz_generated_models.go
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. 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.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.
package armelastic
import "time"
// CloudDeployment - Details of the user's elastic deployment associated with the monitor resource.
type CloudDeployment struct {
// READ-ONLY; Associated Azure subscription Id for the elastic deployment.
AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty" azure:"ro"`
// READ-ONLY; Elastic deployment Id
DeploymentID *string `json:"deploymentId,omitempty" azure:"ro"`
// READ-ONLY; Region where Deployment at Elastic side took place.
ElasticsearchRegion *string `json:"elasticsearchRegion,omitempty" azure:"ro"`
// READ-ONLY; Elasticsearch ingestion endpoint of the Elastic deployment.
ElasticsearchServiceURL *string `json:"elasticsearchServiceUrl,omitempty" azure:"ro"`
// READ-ONLY; Kibana endpoint of the Elastic deployment.
KibanaServiceURL *string `json:"kibanaServiceUrl,omitempty" azure:"ro"`
// READ-ONLY; Kibana dashboard sso URL of the Elastic deployment.
KibanaSsoURL *string `json:"kibanaSsoUrl,omitempty" azure:"ro"`
// READ-ONLY; Elastic deployment name
Name *string `json:"name,omitempty" azure:"ro"`
}
// CloudUser - Details of the user's elastic account.
type CloudUser struct {
// READ-ONLY; Elastic cloud default dashboard sso URL of the Elastic user account.
ElasticCloudSsoDefaultURL *string `json:"elasticCloudSsoDefaultUrl,omitempty" azure:"ro"`
// READ-ONLY; Email of the Elastic User Account.
EmailAddress *string `json:"emailAddress,omitempty" azure:"ro"`
// READ-ONLY; User Id of the elastic account of the User.
ID *string `json:"id,omitempty" azure:"ro"`
}
// CompanyInfo - Company information of the user to be passed to partners.
type CompanyInfo struct {
// Business of the company
Business *string `json:"business,omitempty"`
// Country of the company location.
Country *string `json:"country,omitempty"`
// Domain of the company
Domain *string `json:"domain,omitempty"`
// Number of employees in the company
EmployeesNumber *string `json:"employeesNumber,omitempty"`
// State of the company location.
State *string `json:"state,omitempty"`
}
// DeploymentInfoClientListOptions contains the optional parameters for the DeploymentInfoClient.List method.
type DeploymentInfoClientListOptions struct {
// placeholder for future optional parameters
}
// DeploymentInfoResponse - The properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
type DeploymentInfoResponse struct {
// READ-ONLY; Disk capacity of the elasticsearch in Elastic cloud deployment.
DiskCapacity *string `json:"diskCapacity,omitempty" azure:"ro"`
// READ-ONLY; RAM capacity of the elasticsearch in Elastic cloud deployment.
MemoryCapacity *string `json:"memoryCapacity,omitempty" azure:"ro"`
// READ-ONLY; The Elastic deployment status.
Status *ElasticDeploymentStatus `json:"status,omitempty" azure:"ro"`
// READ-ONLY; Version of the elasticsearch in Elastic cloud deployment.
Version *string `json:"version,omitempty" azure:"ro"`
}
// ErrorResponseBody - Error response body.
type ErrorResponseBody struct {
// Error code.
Code *string `json:"code,omitempty"`
// Error details.
Details []*ErrorResponseBody `json:"details,omitempty"`
// Error message.
Message *string `json:"message,omitempty"`
// Error target.
Target *string `json:"target,omitempty"`
}
// FilteringTag - The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them
// from being monitored.
type FilteringTag struct {
// Valid actions for a filtering tag.
Action *TagAction `json:"action,omitempty"`
// The name (also known as the key) of the tag.
Name *string `json:"name,omitempty"`
// The value of the tag.
Value *string `json:"value,omitempty"`
}
// IdentityProperties - Identity properties.
type IdentityProperties struct {
// Managed identity type.
Type *ManagedIdentityTypes `json:"type,omitempty"`
// READ-ONLY; The identity ID.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
// READ-ONLY; The tenant ID of resource.
TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}
// LogRules - Set of rules for sending logs for the Monitor resource.
type LogRules struct {
// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty,
// all resources will be captured. If only Exclude action is specified, the
// rules will apply to the list of all available resources. If Include actions are specified, the rules will only include
// resources with the associated tags.
FilteringTags []*FilteringTag `json:"filteringTags,omitempty"`
// Flag specifying if AAD logs should be sent for the Monitor resource.
SendAADLogs *bool `json:"sendAadLogs,omitempty"`
// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
SendActivityLogs *bool `json:"sendActivityLogs,omitempty"`
// Flag specifying if subscription logs should be sent for the Monitor resource.
SendSubscriptionLogs *bool `json:"sendSubscriptionLogs,omitempty"`
}
// MonitorProperties - Properties specific to the monitor resource.
type MonitorProperties struct {
// Elastic cloud properties.
ElasticProperties *Properties `json:"elasticProperties,omitempty"`
// Flag specifying if the resource monitoring is enabled or disabled.
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty"`
// Provisioning state of the monitor resource.
ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
// User information.
UserInfo *UserInfo `json:"userInfo,omitempty"`
// READ-ONLY
LiftrResourceCategory *LiftrResourceCategories `json:"liftrResourceCategory,omitempty" azure:"ro"`
// READ-ONLY; The priority of the resource.
LiftrResourcePreference *int32 `json:"liftrResourcePreference,omitempty" azure:"ro"`
}
// MonitorResource - Monitor resource.
type MonitorResource struct {
// REQUIRED; The location of the monitor resource
Location *string `json:"location,omitempty"`
// Identity properties of the monitor resource.
Identity *IdentityProperties `json:"identity,omitempty"`
// Properties of the monitor resource.
Properties *MonitorProperties `json:"properties,omitempty"`
// SKU of the monitor resource.
SKU *ResourceSKU `json:"sku,omitempty"`
// The tags of the monitor resource.
Tags map[string]*string `json:"tags,omitempty"`
// READ-ONLY; ARM id of the monitor resource.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Name of the monitor resource.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The system metadata relating to this resource
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The type of the monitor resource.
Type *string `json:"type,omitempty" azure:"ro"`
}
// MonitorResourceListResponse - Response of a list operation.
type MonitorResourceListResponse struct {
// Link to the next set of results, if any.
NextLink *string `json:"nextLink,omitempty"`
// Results of a list operation.
Value []*MonitorResource `json:"value,omitempty"`
}
// MonitorResourceUpdateParameters - Monitor resource update parameters.
type MonitorResourceUpdateParameters struct {
// elastic monitor resource tags.
Tags map[string]*string `json:"tags,omitempty"`
}
// MonitoredResource - The properties of a resource currently being monitored by the Elastic monitor resource.
type MonitoredResource struct {
// The ARM id of the resource.
ID *string `json:"id,omitempty"`
// Reason for why the resource is sending logs (or why it is not sending).
ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"`
// Flag indicating the status of the resource for sending logs operation to Elastic.
SendingLogs *SendingLogs `json:"sendingLogs,omitempty"`
}
// MonitoredResourceListResponse - Response of a list operation.
type MonitoredResourceListResponse struct {
// Link to the next set of results, if any.
NextLink *string `json:"nextLink,omitempty"`
// Results of a list operation.
Value []*MonitoredResource `json:"value,omitempty"`
}
// MonitoredResourcesClientListOptions contains the optional parameters for the MonitoredResourcesClient.List method.
type MonitoredResourcesClientListOptions struct {
// placeholder for future optional parameters
}
// MonitoringTagRules - Capture logs and metrics of Azure resources based on ARM tags.
type MonitoringTagRules struct {
// Properties of the monitoring tag rules.
Properties *MonitoringTagRulesProperties `json:"properties,omitempty"`
// READ-ONLY; The id of the rule set.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Name of the rule set.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The system metadata relating to this resource
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The type of the rule set.
Type *string `json:"type,omitempty" azure:"ro"`
}
// MonitoringTagRulesListResponse - Response of a list operation.
type MonitoringTagRulesListResponse struct {
// Link to the next set of results, if any.
NextLink *string `json:"nextLink,omitempty"`
// Results of a list operation.
Value []*MonitoringTagRules `json:"value,omitempty"`
}
// MonitoringTagRulesProperties - Definition of the properties for a TagRules resource.
type MonitoringTagRulesProperties struct {
// Rules for sending logs.
LogRules *LogRules `json:"logRules,omitempty"`
// Provisioning state of the monitoring tag rules.
ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}
// MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method.
type MonitorsClientBeginCreateOptions struct {
// Elastic monitor resource model
Body *MonitorResource
// Resumes the LRO from the provided token.
ResumeToken string
}
// MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.
type MonitorsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.
type MonitorsClientGetOptions struct {
// placeholder for future optional parameters
}
// MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.
type MonitorsClientListByResourceGroupOptions struct {
// placeholder for future optional parameters
}
// MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method.
type MonitorsClientListOptions struct {
// placeholder for future optional parameters
}
// MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.
type MonitorsClientUpdateOptions struct {
// Elastic resource model update parameters.
Body *MonitorResourceUpdateParameters
}
// OperationDisplay - The object that represents the operation.
type OperationDisplay struct {
// Description of the operation, e.g., 'Write monitors'.
Description *string `json:"description,omitempty"`
// Operation type, e.g., read, write, delete, etc.
Operation *string `json:"operation,omitempty"`
// Service provider, i.e., Microsoft.Elastic.
Provider *string `json:"provider,omitempty"`
// Type on which the operation is performed, e.g., 'monitors'.
Resource *string `json:"resource,omitempty"`
}
// OperationListResult - Result of GET request to list the Microsoft.Elastic operations.
type OperationListResult struct {
// URL to get the next set of operation list results if there are any.
NextLink *string `json:"nextLink,omitempty"`
// List of operations supported by the Microsoft.Elastic provider.
Value []*OperationResult `json:"value,omitempty"`
}
// OperationResult - A Microsoft.Elastic REST API operation.
type OperationResult struct {
// The object that represents the operation.
Display *OperationDisplay `json:"display,omitempty"`
// Indicates whether the operation is a data action
IsDataAction *bool `json:"isDataAction,omitempty"`
// Operation name, i.e., {provider}/{resource}/{operation}.
Name *string `json:"name,omitempty"`
// Origin of the operation
Origin *string `json:"origin,omitempty"`
}
// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions struct {
// placeholder for future optional parameters
}
// Properties - Elastic Resource Properties.
type Properties struct {
// Details of the elastic cloud deployment.
ElasticCloudDeployment *CloudDeployment `json:"elasticCloudDeployment,omitempty"`
// Details of the user's elastic account.
ElasticCloudUser *CloudUser `json:"elasticCloudUser,omitempty"`
}
// ResourceProviderDefaultErrorResponse - RP default error response.
type ResourceProviderDefaultErrorResponse struct {
// READ-ONLY; Response body of Error
Error *ErrorResponseBody `json:"error,omitempty" azure:"ro"`
}
// ResourceSKU - Microsoft.Elastic SKU.
type ResourceSKU struct {
// REQUIRED; Name of the SKU.
Name *string `json:"name,omitempty"`
}
// SystemData - Metadata pertaining to creation and last modification of the resource.
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// The type of identity that created the resource.
CreatedByType *CreatedByType `json:"createdByType,omitempty"`
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`
// The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}
// TagRulesClientBeginDeleteOptions contains the optional parameters for the TagRulesClient.BeginDelete method.
type TagRulesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// TagRulesClientCreateOrUpdateOptions contains the optional parameters for the TagRulesClient.CreateOrUpdate method.
type TagRulesClientCreateOrUpdateOptions struct {
// request body of MonitoringTagRules
Body *MonitoringTagRules
}
// TagRulesClientGetOptions contains the optional parameters for the TagRulesClient.Get method.
type TagRulesClientGetOptions struct {
// placeholder for future optional parameters
}
// TagRulesClientListOptions contains the optional parameters for the TagRulesClient.List method.
type TagRulesClientListOptions struct {
// placeholder for future optional parameters
}
// UserInfo - User Information to be passed to partners.
type UserInfo struct {
// Company information of the user to be passed to partners.
CompanyInfo *CompanyInfo `json:"companyInfo,omitempty"`
// Company name of the user
CompanyName *string `json:"companyName,omitempty"`
// Email of the user used by Elastic for contacting them if needed
EmailAddress *string `json:"emailAddress,omitempty"`
// First name of the user
FirstName *string `json:"firstName,omitempty"`
// Last name of the user
LastName *string `json:"lastName,omitempty"`
}
// VMCollectionClientUpdateOptions contains the optional parameters for the VMCollectionClient.Update method.
type VMCollectionClientUpdateOptions struct {
// VM resource Id
Body *VMCollectionUpdate
}
// VMCollectionUpdate - Update VM resource collection.
type VMCollectionUpdate struct {
// Operation to be performed for given VM.
OperationName *OperationName `json:"operationName,omitempty"`
// ARM id of the VM resource.
VMResourceID *string `json:"vmResourceId,omitempty"`
}
// VMHostClientListOptions contains the optional parameters for the VMHostClient.List method.
type VMHostClientListOptions struct {
// placeholder for future optional parameters
}
// VMHostListResponse - Response of a list operation.
type VMHostListResponse struct {
// Link to the next Vm resource Id, if any.
NextLink *string `json:"nextLink,omitempty"`
// Results of a list operation.
Value []*VMResources `json:"value,omitempty"`
}
// VMIngestionClientDetailsOptions contains the optional parameters for the VMIngestionClient.Details method.
type VMIngestionClientDetailsOptions struct {
// placeholder for future optional parameters
}
// VMIngestionDetailsResponse - The vm ingestion details to install an agent.
type VMIngestionDetailsResponse struct {
// The cloudId of given Elastic monitor resource.
CloudID *string `json:"cloudId,omitempty"`
// Ingestion details to install agent on given VM.
IngestionKey *string `json:"ingestionKey,omitempty"`
}
// VMResources - The vm resource properties that is currently being monitored by the Elastic monitor resource.
type VMResources struct {
// The ARM id of the VM resource.
VMResourceID *string `json:"vmResourceId,omitempty"`
}