/
models.go
324 lines (246 loc) · 12.5 KB
/
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
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// DO NOT EDIT.
package armdevhub
import "time"
// ACR - Information on the azure container registry
type ACR struct {
// ACR registry
AcrRegistryName *string `json:"acrRegistryName,omitempty"`
// ACR repository
AcrRepositoryName *string `json:"acrRepositoryName,omitempty"`
// ACR resource group
AcrResourceGroup *string `json:"acrResourceGroup,omitempty"`
// ACR subscription id
AcrSubscriptionID *string `json:"acrSubscriptionId,omitempty"`
}
// DeleteWorkflowResponse - delete response if content must be provided on delete operation
type DeleteWorkflowResponse struct {
// delete status message
Status *string `json:"status,omitempty"`
}
type DeploymentProperties struct {
// Helm chart directory path in repository.
HelmChartPath *string `json:"helmChartPath,omitempty"`
// Helm Values.yaml file location in repository.
HelmValues *string `json:"helmValues,omitempty"`
KubeManifestLocations []*string `json:"kubeManifestLocations,omitempty"`
// Determines the type of manifests within the repository.
ManifestType *ManifestType `json:"manifestType,omitempty"`
// Manifest override values.
Overrides map[string]*string `json:"overrides,omitempty"`
}
// DeveloperHubServiceClientGitHubOAuthCallbackOptions contains the optional parameters for the DeveloperHubServiceClient.GitHubOAuthCallback
// method.
type DeveloperHubServiceClientGitHubOAuthCallbackOptions struct {
// placeholder for future optional parameters
}
// DeveloperHubServiceClientGitHubOAuthOptions contains the optional parameters for the DeveloperHubServiceClient.GitHubOAuth
// method.
type DeveloperHubServiceClientGitHubOAuthOptions struct {
Parameters *GitHubOAuthCallRequest
}
// DeveloperHubServiceClientListGitHubOAuthOptions contains the optional parameters for the DeveloperHubServiceClient.ListGitHubOAuth
// method.
type DeveloperHubServiceClientListGitHubOAuthOptions struct {
// placeholder for future optional parameters
}
// GitHubOAuthCallRequest - GitHubOAuth request object
type GitHubOAuthCallRequest struct {
// The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
RedirectURL *string `json:"redirectUrl,omitempty"`
}
// GitHubOAuthInfoResponse - URL used to authorize the Developer Hub GitHub App
type GitHubOAuthInfoResponse struct {
// URL for authorizing the Developer Hub GitHub App
AuthURL *string `json:"authURL,omitempty"`
// OAuth token used to make calls to GitHub
Token *string `json:"token,omitempty"`
}
// GitHubOAuthListResponse - The response from List GitHubOAuth operation.
type GitHubOAuthListResponse struct {
// Singleton list response containing one GitHubOAuthResponse response
Value []*GitHubOAuthResponse `json:"value,omitempty"`
}
// GitHubOAuthProperties - The response from List GitHubOAuth operation.
type GitHubOAuthProperties struct {
// user making request
Username *string `json:"username,omitempty"`
}
// GitHubOAuthResponse - Singleton response of GitHubOAuth containing
type GitHubOAuthResponse struct {
// Properties of a workflow.
Properties *GitHubOAuthProperties `json:"properties,omitempty"`
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The name of the resource
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty" azure:"ro"`
}
// GitHubWorkflowProfile - GitHub Workflow Profile
type GitHubWorkflowProfile struct {
// Information on the azure container registry
Acr *ACR `json:"acr,omitempty"`
// The Azure Kubernetes Cluster Resource the application will be deployed to.
AksResourceID *string `json:"aksResourceId,omitempty"`
// Determines the type of manifests within the repository.
AuthStatus *ManifestType `json:"authStatus,omitempty"`
// Repository Branch Name
BranchName *string `json:"branchName,omitempty"`
DeploymentProperties *DeploymentProperties `json:"deploymentProperties,omitempty"`
// Path to Dockerfile Build Context within the repository.
DockerBuildContext *string `json:"dockerBuildContext,omitempty"`
// Path to the Dockerfile within the repository.
Dockerfile *string `json:"dockerfile,omitempty"`
LastWorkflowRun *WorkflowRun `json:"lastWorkflowRun,omitempty"`
// Kubernetes namespace the application is deployed to.
Namespace *string `json:"namespace,omitempty"`
// The fields needed for OIDC with GitHub.
OidcCredentials *GitHubWorkflowProfileOidcCredentials `json:"oidcCredentials,omitempty"`
// Repository Name
RepositoryName *string `json:"repositoryName,omitempty"`
// Repository Owner
RepositoryOwner *string `json:"repositoryOwner,omitempty"`
// READ-ONLY; The status of the Pull Request submitted against the users repository.
PrStatus *PullRequestStatus `json:"prStatus,omitempty" azure:"ro"`
// READ-ONLY; The URL to the Pull Request submitted against the users repository.
PrURL *string `json:"prURL,omitempty" azure:"ro"`
// READ-ONLY; The number associated with the submitted pull request.
PullNumber *int32 `json:"pullNumber,omitempty" azure:"ro"`
}
// GitHubWorkflowProfileOidcCredentials - The fields needed for OIDC with GitHub.
type GitHubWorkflowProfileOidcCredentials struct {
// Azure Application Client ID
AzureClientID *string `json:"azureClientId,omitempty"`
// Azure Directory (tenant) ID
AzureTenantID *string `json:"azureTenantId,omitempty"`
}
// Operation - Details of a REST API operation, returned from the Resource Provider Operations API
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay `json:"display,omitempty"`
// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
ActionType *ActionType `json:"actionType,omitempty" azure:"ro"`
// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
// operations.
IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"`
// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
// "Microsoft.Compute/virtualMachines/capture/action"
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
Origin *Origin `json:"origin,omitempty" azure:"ro"`
}
// OperationDisplay - Localized display information for this particular operation.
type OperationDisplay struct {
// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
// Machine", "Restart Virtual Machine".
Operation *string `json:"operation,omitempty" azure:"ro"`
// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
// Compute".
Provider *string `json:"provider,omitempty" azure:"ro"`
// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
// Schedule Collections".
Resource *string `json:"resource,omitempty" azure:"ro"`
}
// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to
// get the next set of results.
type OperationListResult struct {
// READ-ONLY; URL to get the next set of operation list results (if there are any).
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
// READ-ONLY; List of operations supported by the resource provider
Value []*Operation `json:"value,omitempty" azure:"ro"`
}
// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions struct {
// placeholder for future optional parameters
}
// 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"`
}
// TagsObject - Resource tags.
type TagsObject struct {
// Dictionary of
Tags map[string]*string `json:"tags,omitempty"`
}
// Workflow - Resource representation of a workflow
type Workflow struct {
// REQUIRED; The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// Properties of a workflow.
Properties *WorkflowProperties `json:"properties,omitempty"`
// Resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The name of the resource
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty" azure:"ro"`
}
// WorkflowClientCreateOrUpdateOptions contains the optional parameters for the WorkflowClient.CreateOrUpdate method.
type WorkflowClientCreateOrUpdateOptions struct {
// placeholder for future optional parameters
}
// WorkflowClientDeleteOptions contains the optional parameters for the WorkflowClient.Delete method.
type WorkflowClientDeleteOptions struct {
// placeholder for future optional parameters
}
// WorkflowClientGetOptions contains the optional parameters for the WorkflowClient.Get method.
type WorkflowClientGetOptions struct {
// placeholder for future optional parameters
}
// WorkflowClientListByResourceGroupOptions contains the optional parameters for the WorkflowClient.ListByResourceGroup method.
type WorkflowClientListByResourceGroupOptions struct {
}
// WorkflowClientListOptions contains the optional parameters for the WorkflowClient.List method.
type WorkflowClientListOptions struct {
// placeholder for future optional parameters
}
// WorkflowClientUpdateTagsOptions contains the optional parameters for the WorkflowClient.UpdateTags method.
type WorkflowClientUpdateTagsOptions struct {
// placeholder for future optional parameters
}
// WorkflowListResult - The response from List Workflows operation.
type WorkflowListResult struct {
// The list of workflows.
Value []*Workflow `json:"value,omitempty"`
// READ-ONLY; The URL to the next set of workflow results.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
}
// WorkflowProperties - Workflow properties
type WorkflowProperties struct {
// Profile of a github workflow.
GithubWorkflowProfile *GitHubWorkflowProfile `json:"githubWorkflowProfile,omitempty"`
}
type WorkflowRun struct {
// READ-ONLY; The timestamp of the last workflow run.
LastRunAt *time.Time `json:"lastRunAt,omitempty" azure:"ro"`
// READ-ONLY; Describes if the workflow run succeeded.
Succeeded *bool `json:"succeeded,omitempty" azure:"ro"`
// READ-ONLY; URL to the run of the workflow.
WorkflowRunURL *string `json:"workflowRunURL,omitempty" azure:"ro"`
}