-
Notifications
You must be signed in to change notification settings - Fork 69
/
zz_appworkflow_types.go
executable file
·340 lines (246 loc) · 15.3 KB
/
zz_appworkflow_types.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
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AccessControlObservation struct {
// A action block as defined below.
Action []ActionObservation `json:"action,omitempty" tf:"action,omitempty"`
// A content block as defined below.
Content []ContentObservation `json:"content,omitempty" tf:"content,omitempty"`
// A trigger block as defined below.
Trigger []TriggerObservation `json:"trigger,omitempty" tf:"trigger,omitempty"`
// A workflow_management block as defined below.
WorkflowManagement []WorkflowManagementObservation `json:"workflowManagement,omitempty" tf:"workflow_management,omitempty"`
}
type AccessControlParameters struct {
// A action block as defined below.
// +kubebuilder:validation:Optional
Action []ActionParameters `json:"action,omitempty" tf:"action,omitempty"`
// A content block as defined below.
// +kubebuilder:validation:Optional
Content []ContentParameters `json:"content,omitempty" tf:"content,omitempty"`
// A trigger block as defined below.
// +kubebuilder:validation:Optional
Trigger []TriggerParameters `json:"trigger,omitempty" tf:"trigger,omitempty"`
// A workflow_management block as defined below.
// +kubebuilder:validation:Optional
WorkflowManagement []WorkflowManagementParameters `json:"workflowManagement,omitempty" tf:"workflow_management,omitempty"`
}
type ActionObservation struct {
// A list of the allowed caller IP address ranges.
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange,omitempty" tf:"allowed_caller_ip_address_range,omitempty"`
}
type ActionParameters struct {
// A list of the allowed caller IP address ranges.
// +kubebuilder:validation:Required
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange" tf:"allowed_caller_ip_address_range,omitempty"`
}
type AppWorkflowObservation struct {
// A access_control block as defined below.
AccessControl []AccessControlObservation `json:"accessControl,omitempty" tf:"access_control,omitempty"`
// The Access Endpoint for the Logic App Workflow.
AccessEndpoint *string `json:"accessEndpoint,omitempty" tf:"access_endpoint,omitempty"`
// The list of access endpoint IP addresses of connector.
ConnectorEndpointIPAddresses []*string `json:"connectorEndpointIpAddresses,omitempty" tf:"connector_endpoint_ip_addresses,omitempty"`
// The list of outgoing IP addresses of connector.
ConnectorOutboundIPAddresses []*string `json:"connectorOutboundIpAddresses,omitempty" tf:"connector_outbound_ip_addresses,omitempty"`
// Is the Logic App Workflow enabled? Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The Logic App Workflow ID.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// An identity block as defined below.
Identity []IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"`
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
IntegrationServiceEnvironmentID *string `json:"integrationServiceEnvironmentId,omitempty" tf:"integration_service_environment_id,omitempty"`
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// The ID of the integration account linked by this Logic App Workflow.
LogicAppIntegrationAccountID *string `json:"logicAppIntegrationAccountId,omitempty" tf:"logic_app_integration_account_id,omitempty"`
// A map of Key-Value pairs.
Parameters map[string]*string `json:"parameters,omitempty" tf:"parameters,omitempty"`
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// A mapping of tags to assign to the resource.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The list of access endpoint IP addresses of workflow.
WorkflowEndpointIPAddresses []*string `json:"workflowEndpointIpAddresses,omitempty" tf:"workflow_endpoint_ip_addresses,omitempty"`
// The list of outgoing IP addresses of workflow.
WorkflowOutboundIPAddresses []*string `json:"workflowOutboundIpAddresses,omitempty" tf:"workflow_outbound_ip_addresses,omitempty"`
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters).
WorkflowParameters map[string]*string `json:"workflowParameters,omitempty" tf:"workflow_parameters,omitempty"`
// Specifies the Schema to use for this Logic App Workflow. Defaults to https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#. Changing this forces a new resource to be created.
WorkflowSchema *string `json:"workflowSchema,omitempty" tf:"workflow_schema,omitempty"`
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0. Changing this forces a new resource to be created.
WorkflowVersion *string `json:"workflowVersion,omitempty" tf:"workflow_version,omitempty"`
}
type AppWorkflowParameters struct {
// A access_control block as defined below.
// +kubebuilder:validation:Optional
AccessControl []AccessControlParameters `json:"accessControl,omitempty" tf:"access_control,omitempty"`
// Is the Logic App Workflow enabled? Defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// An identity block as defined below.
// +kubebuilder:validation:Optional
Identity []IdentityParameters `json:"identity,omitempty" tf:"identity,omitempty"`
// The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
// +kubebuilder:validation:Optional
IntegrationServiceEnvironmentID *string `json:"integrationServiceEnvironmentId,omitempty" tf:"integration_service_environment_id,omitempty"`
// Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// The ID of the integration account linked by this Logic App Workflow.
// +kubebuilder:validation:Optional
LogicAppIntegrationAccountID *string `json:"logicAppIntegrationAccountId,omitempty" tf:"logic_app_integration_account_id,omitempty"`
// A map of Key-Value pairs.
// +kubebuilder:validation:Optional
Parameters map[string]*string `json:"parameters,omitempty" tf:"parameters,omitempty"`
// The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +kubebuilder:validation:Optional
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// Reference to a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`
// A mapping of tags to assign to the resource.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters).
// +kubebuilder:validation:Optional
WorkflowParameters map[string]*string `json:"workflowParameters,omitempty" tf:"workflow_parameters,omitempty"`
// Specifies the Schema to use for this Logic App Workflow. Defaults to https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
WorkflowSchema *string `json:"workflowSchema,omitempty" tf:"workflow_schema,omitempty"`
// Specifies the version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
WorkflowVersion *string `json:"workflowVersion,omitempty" tf:"workflow_version,omitempty"`
}
type ClaimObservation struct {
// The OAuth policy name for the Logic App Workflow.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The value of the OAuth policy claim for the Logic App Workflow.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ClaimParameters struct {
// The OAuth policy name for the Logic App Workflow.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// The value of the OAuth policy claim for the Logic App Workflow.
// +kubebuilder:validation:Required
Value *string `json:"value" tf:"value,omitempty"`
}
type ContentObservation struct {
// A list of the allowed caller IP address ranges.
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange,omitempty" tf:"allowed_caller_ip_address_range,omitempty"`
}
type ContentParameters struct {
// A list of the allowed caller IP address ranges.
// +kubebuilder:validation:Required
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange" tf:"allowed_caller_ip_address_range,omitempty"`
}
type IdentityObservation struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Workflow.
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// The Principal ID for the Service Principal associated with the Managed Service Identity of this Logic App Workflow.
PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"`
// The Tenant ID for the Service Principal associated with the Managed Service Identity of this Logic App Workflow.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Specifies the type of Managed Service Identity that should be configured on this Logic App Workflow. Possible values are SystemAssigned, UserAssigned.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityParameters struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Workflow.
// +kubebuilder:validation:Optional
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// Specifies the type of Managed Service Identity that should be configured on this Logic App Workflow. Possible values are SystemAssigned, UserAssigned.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
}
type OpenAuthenticationPolicyObservation struct {
// A claim block as defined below.
Claim []ClaimObservation `json:"claim,omitempty" tf:"claim,omitempty"`
// The OAuth policy name for the Logic App Workflow.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type OpenAuthenticationPolicyParameters struct {
// A claim block as defined below.
// +kubebuilder:validation:Required
Claim []ClaimParameters `json:"claim" tf:"claim,omitempty"`
// The OAuth policy name for the Logic App Workflow.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type TriggerObservation struct {
// A list of the allowed caller IP address ranges.
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange,omitempty" tf:"allowed_caller_ip_address_range,omitempty"`
// A open_authentication_policy block as defined below.
OpenAuthenticationPolicy []OpenAuthenticationPolicyObservation `json:"openAuthenticationPolicy,omitempty" tf:"open_authentication_policy,omitempty"`
}
type TriggerParameters struct {
// A list of the allowed caller IP address ranges.
// +kubebuilder:validation:Required
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange" tf:"allowed_caller_ip_address_range,omitempty"`
// A open_authentication_policy block as defined below.
// +kubebuilder:validation:Optional
OpenAuthenticationPolicy []OpenAuthenticationPolicyParameters `json:"openAuthenticationPolicy,omitempty" tf:"open_authentication_policy,omitempty"`
}
type WorkflowManagementObservation struct {
// A list of the allowed caller IP address ranges.
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange,omitempty" tf:"allowed_caller_ip_address_range,omitempty"`
}
type WorkflowManagementParameters struct {
// A list of the allowed caller IP address ranges.
// +kubebuilder:validation:Required
AllowedCallerIPAddressRange []*string `json:"allowedCallerIpAddressRange" tf:"allowed_caller_ip_address_range,omitempty"`
}
// AppWorkflowSpec defines the desired state of AppWorkflow
type AppWorkflowSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider AppWorkflowParameters `json:"forProvider"`
}
// AppWorkflowStatus defines the observed state of AppWorkflow.
type AppWorkflowStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider AppWorkflowObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// AppWorkflow is the Schema for the AppWorkflows API. Manages a Logic App Workflow.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}
type AppWorkflow struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.location)",message="location is a required parameter"
Spec AppWorkflowSpec `json:"spec"`
Status AppWorkflowStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// AppWorkflowList contains a list of AppWorkflows
type AppWorkflowList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AppWorkflow `json:"items"`
}
// Repository type metadata.
var (
AppWorkflow_Kind = "AppWorkflow"
AppWorkflow_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: AppWorkflow_Kind}.String()
AppWorkflow_KindAPIVersion = AppWorkflow_Kind + "." + CRDGroupVersion.String()
AppWorkflow_GroupVersionKind = CRDGroupVersion.WithKind(AppWorkflow_Kind)
)
func init() {
SchemeBuilder.Register(&AppWorkflow{}, &AppWorkflowList{})
}