-
Notifications
You must be signed in to change notification settings - Fork 188
/
action_group_spec_arm_types_gen.go
253 lines (186 loc) · 10.1 KB
/
action_group_spec_arm_types_gen.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
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20230101
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type ActionGroup_Spec_ARM struct {
// Location: Resource location
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Properties: The action groups properties of the resource.
Properties *ActionGroupSpec_ARM `json:"properties,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
}
var _ genruntime.ARMResourceSpec = &ActionGroup_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01"
func (group ActionGroup_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (group *ActionGroup_Spec_ARM) GetName() string {
return group.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/actionGroups"
func (group *ActionGroup_Spec_ARM) GetType() string {
return "Microsoft.Insights/actionGroups"
}
// An Azure action group.
type ActionGroupSpec_ARM struct {
// ArmRoleReceivers: The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only
// built-in roles are supported.
ArmRoleReceivers []ArmRoleReceiver_ARM `json:"armRoleReceivers,omitempty"`
// AutomationRunbookReceivers: The list of AutomationRunbook receivers that are part of this action group.
AutomationRunbookReceivers []AutomationRunbookReceiver_ARM `json:"automationRunbookReceivers,omitempty"`
// AzureAppPushReceivers: The list of AzureAppPush receivers that are part of this action group.
AzureAppPushReceivers []AzureAppPushReceiver_ARM `json:"azureAppPushReceivers,omitempty"`
// AzureFunctionReceivers: The list of azure function receivers that are part of this action group.
AzureFunctionReceivers []AzureFunctionReceiver_ARM `json:"azureFunctionReceivers,omitempty"`
// EmailReceivers: The list of email receivers that are part of this action group.
EmailReceivers []EmailReceiver_ARM `json:"emailReceivers,omitempty"`
// Enabled: Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers
// will receive communications.
Enabled *bool `json:"enabled,omitempty"`
// EventHubReceivers: The list of event hub receivers that are part of this action group.
EventHubReceivers []EventHubReceiver_ARM `json:"eventHubReceivers,omitempty"`
// GroupShortName: The short name of the action group. This will be used in SMS messages.
GroupShortName *string `json:"groupShortName,omitempty"`
// ItsmReceivers: The list of ITSM receivers that are part of this action group.
ItsmReceivers []ItsmReceiver_ARM `json:"itsmReceivers,omitempty"`
// LogicAppReceivers: The list of logic app receivers that are part of this action group.
LogicAppReceivers []LogicAppReceiver_ARM `json:"logicAppReceivers,omitempty"`
// SmsReceivers: The list of SMS receivers that are part of this action group.
SmsReceivers []SmsReceiver_ARM `json:"smsReceivers,omitempty"`
// VoiceReceivers: The list of voice receivers that are part of this action group.
VoiceReceivers []VoiceReceiver_ARM `json:"voiceReceivers,omitempty"`
// WebhookReceivers: The list of webhook receivers that are part of this action group.
WebhookReceivers []WebhookReceiver_ARM `json:"webhookReceivers,omitempty"`
}
// An arm role receiver.
type ArmRoleReceiver_ARM struct {
// Name: The name of the arm role receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// RoleId: The arm role id.
RoleId *string `json:"roleId,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}
// The Azure Automation Runbook notification receiver.
type AutomationRunbookReceiver_ARM struct {
// AutomationAccountId: The Azure automation account Id which holds this runbook and authenticate to Azure resource.
AutomationAccountId *string `json:"automationAccountId,omitempty"`
// IsGlobalRunbook: Indicates whether this instance is global runbook.
IsGlobalRunbook *bool `json:"isGlobalRunbook,omitempty"`
// Name: Indicates name of the webhook.
Name *string `json:"name,omitempty"`
// RunbookName: The name for this runbook.
RunbookName *string `json:"runbookName,omitempty"`
// ServiceUri: The URI where webhooks should be sent.
ServiceUri *string `json:"serviceUri,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
WebhookResourceId *string `json:"webhookResourceId,omitempty"`
}
// The Azure mobile App push notification receiver.
type AzureAppPushReceiver_ARM struct {
// EmailAddress: The email address registered for the Azure mobile app.
EmailAddress *string `json:"emailAddress,omitempty"`
// Name: The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
}
// An azure function receiver.
type AzureFunctionReceiver_ARM struct {
FunctionAppResourceId *string `json:"functionAppResourceId,omitempty"`
// FunctionName: The function name in the function app.
FunctionName *string `json:"functionName,omitempty"`
// HttpTriggerUrl: The http trigger url where http request sent to.
HttpTriggerUrl *string `json:"httpTriggerUrl,omitempty"`
// Name: The name of the azure function receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}
// An email receiver.
type EmailReceiver_ARM struct {
// EmailAddress: The email address of this receiver.
EmailAddress *string `json:"emailAddress,omitempty"`
// Name: The name of the email receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}
// An Event hub receiver.
type EventHubReceiver_ARM struct {
// EventHubName: The name of the specific Event Hub queue
EventHubName *string `json:"eventHubName,omitempty"`
// EventHubNameSpace: The Event Hub namespace
EventHubNameSpace *string `json:"eventHubNameSpace,omitempty"`
// Name: The name of the Event hub receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// SubscriptionId: The Id for the subscription containing this event hub
SubscriptionId *string `json:"subscriptionId,omitempty"`
// TenantId: The tenant Id for the subscription containing this event hub
TenantId *string `json:"tenantId,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}
// An Itsm receiver.
type ItsmReceiver_ARM struct {
// ConnectionId: Unique identification of ITSM connection among multiple defined in above workspace.
ConnectionId *string `json:"connectionId,omitempty"`
// Name: The name of the Itsm receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// Region: Region in which workspace resides. Supported
// values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'
Region *string `json:"region,omitempty"`
// TicketConfiguration: JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of
// this blob as well.
TicketConfiguration *string `json:"ticketConfiguration,omitempty"`
// WorkspaceId: OMS LA instance identifier.
WorkspaceId *string `json:"workspaceId,omitempty"`
}
// A logic app receiver.
type LogicAppReceiver_ARM struct {
// CallbackUrl: The callback url where http request sent to.
CallbackUrl *string `json:"callbackUrl,omitempty"`
// Name: The name of the logic app receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
ResourceId *string `json:"resourceId,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}
// An SMS receiver.
type SmsReceiver_ARM struct {
// CountryCode: The country code of the SMS receiver.
CountryCode *string `json:"countryCode,omitempty"`
// Name: The name of the SMS receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// PhoneNumber: The phone number of the SMS receiver.
PhoneNumber *string `json:"phoneNumber,omitempty"`
}
// A voice receiver.
type VoiceReceiver_ARM struct {
// CountryCode: The country code of the voice receiver.
CountryCode *string `json:"countryCode,omitempty"`
// Name: The name of the voice receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// PhoneNumber: The phone number of the voice receiver.
PhoneNumber *string `json:"phoneNumber,omitempty"`
}
// A webhook receiver.
type WebhookReceiver_ARM struct {
// IdentifierUri: Indicates the identifier uri for aad auth.
IdentifierUri *string `json:"identifierUri,omitempty"`
// Name: The name of the webhook receiver. Names must be unique across all receivers within an action group.
Name *string `json:"name,omitempty"`
// ObjectId: Indicates the webhook app object Id for aad auth.
ObjectId *string `json:"objectId,omitempty"`
// ServiceUri: The URI where webhooks should be sent.
ServiceUri *string `json:"serviceUri,omitempty"`
// TenantId: Indicates the tenant id for aad auth.
TenantId *string `json:"tenantId,omitempty"`
// UseAadAuth: Indicates whether or not use AAD authentication.
UseAadAuth *bool `json:"useAadAuth,omitempty"`
// UseCommonAlertSchema: Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"`
}