-
Notifications
You must be signed in to change notification settings - Fork 80
/
models.go
2916 lines (2589 loc) · 119 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
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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// --------------------------------------------------------------------------------------------
// Generated file, DO NOT EDIT
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// --------------------------------------------------------------------------------------------
package taskagent
import (
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/distributedtaskcommon"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/forminput"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/webapi"
)
type AadLoginPromptOption string
type aadLoginPromptOptionValuesType struct {
NoOption AadLoginPromptOption
Login AadLoginPromptOption
SelectAccount AadLoginPromptOption
FreshLogin AadLoginPromptOption
FreshLoginWithMfa AadLoginPromptOption
}
var AadLoginPromptOptionValues = aadLoginPromptOptionValuesType{
// Do not provide a prompt option
NoOption: "noOption",
// Force the user to login again.
Login: "login",
// Force the user to select which account they are logging in with instead of automatically picking the user up from the session state. NOTE: This does not work for switching between the variants of a dual-homed user.
SelectAccount: "selectAccount",
// Force the user to login again. <remarks> Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login. </remarks>
FreshLogin: "freshLogin",
// Force the user to login again with mfa. <remarks> Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login, if MFA is required. </remarks>
FreshLoginWithMfa: "freshLoginWithMfa",
}
type AadOauthTokenRequest struct {
Refresh *bool `json:"refresh,omitempty"`
Resource *string `json:"resource,omitempty"`
TenantId *string `json:"tenantId,omitempty"`
Token *string `json:"token,omitempty"`
}
type AadOauthTokenResult struct {
AccessToken *string `json:"accessToken,omitempty"`
RefreshTokenCache *string `json:"refreshTokenCache,omitempty"`
}
type AgentChangeEvent struct {
Agent *TaskAgent `json:"agent,omitempty"`
EventType *string `json:"eventType,omitempty"`
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
// Deprecated:
PoolId *int `json:"poolId,omitempty"`
// Deprecated:
TimeStamp *azuredevops.Time `json:"timeStamp,omitempty"`
}
type AgentJobRequestMessage struct {
Environment *JobEnvironment `json:"environment,omitempty"`
JobId *uuid.UUID `json:"jobId,omitempty"`
JobName *string `json:"jobName,omitempty"`
JobRefName *string `json:"jobRefName,omitempty"`
MessageType *string `json:"messageType,omitempty"`
Plan *TaskOrchestrationPlanReference `json:"plan,omitempty"`
Timeline *TimelineReference `json:"timeline,omitempty"`
LockedUntil *azuredevops.Time `json:"lockedUntil,omitempty"`
LockToken *uuid.UUID `json:"lockToken,omitempty"`
RequestId *uint64 `json:"requestId,omitempty"`
Tasks *[]TaskInstance `json:"tasks,omitempty"`
}
type AgentPoolEvent struct {
EventType *string `json:"eventType,omitempty"`
Pool *TaskAgentPool `json:"pool,omitempty"`
}
type AgentQueueEvent struct {
EventType *string `json:"eventType,omitempty"`
Queue *TaskAgentQueue `json:"queue,omitempty"`
}
type AgentQueuesEvent struct {
EventType *string `json:"eventType,omitempty"`
Queues *[]TaskAgentQueue `json:"queues,omitempty"`
}
type AgentRefreshMessage struct {
AgentId *int `json:"agentId,omitempty"`
TargetVersion *string `json:"targetVersion,omitempty"`
Timeout interface{} `json:"timeout,omitempty"`
}
type AuditAction string
type auditActionValuesType struct {
Add AuditAction
Update AuditAction
Delete AuditAction
Undelete AuditAction
}
var AuditActionValues = auditActionValuesType{
Add: "add",
Update: "update",
Delete: "delete",
Undelete: "undelete",
}
type AuthenticationSchemeReference struct {
Inputs *map[string]string `json:"inputs,omitempty"`
Type *string `json:"type,omitempty"`
}
type AuthorizationHeader struct {
// Gets or sets the name of authorization header.
Name *string `json:"name,omitempty"`
// Gets or sets the value of authorization header.
Value *string `json:"value,omitempty"`
}
type AzureKeyVaultPermission struct {
Provisioned *bool `json:"provisioned,omitempty"`
ResourceProvider *string `json:"resourceProvider,omitempty"`
ResourceGroup *string `json:"resourceGroup,omitempty"`
Vault *string `json:"vault,omitempty"`
}
type AzureKeyVaultVariableGroupProviderData struct {
LastRefreshedOn *azuredevops.Time `json:"lastRefreshedOn,omitempty"`
ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
Vault *string `json:"vault,omitempty"`
}
type AzureKeyVaultVariableValue struct {
IsReadOnly *bool `json:"isReadOnly,omitempty"`
IsSecret *bool `json:"isSecret,omitempty"`
Value *string `json:"value,omitempty"`
ContentType *string `json:"contentType,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Expires *azuredevops.Time `json:"expires,omitempty"`
}
// Azure Management Group
type AzureManagementGroup struct {
// Display name of azure management group
DisplayName *string `json:"displayName,omitempty"`
// Id of azure management group
Id *string `json:"id,omitempty"`
// Azure management group name
Name *string `json:"name,omitempty"`
// Id of tenant from which azure management group belongs
TenantId *string `json:"tenantId,omitempty"`
}
// Azure management group query result
type AzureManagementGroupQueryResult struct {
// Error message in case of an exception
ErrorMessage *string `json:"errorMessage,omitempty"`
// List of azure management groups
Value *[]AzureManagementGroup `json:"value,omitempty"`
}
type AzurePermission struct {
Provisioned *bool `json:"provisioned,omitempty"`
ResourceProvider *string `json:"resourceProvider,omitempty"`
}
type AzureResourcePermission struct {
Provisioned *bool `json:"provisioned,omitempty"`
ResourceProvider *string `json:"resourceProvider,omitempty"`
ResourceGroup *string `json:"resourceGroup,omitempty"`
}
type AzureRoleAssignmentPermission struct {
Provisioned *bool `json:"provisioned,omitempty"`
ResourceProvider *string `json:"resourceProvider,omitempty"`
RoleAssignmentId *uuid.UUID `json:"roleAssignmentId,omitempty"`
}
type AzureSpnOperationStatus struct {
State *string `json:"state,omitempty"`
StatusMessage *string `json:"statusMessage,omitempty"`
}
type AzureSubscription struct {
DisplayName *string `json:"displayName,omitempty"`
SubscriptionId *string `json:"subscriptionId,omitempty"`
SubscriptionTenantId *string `json:"subscriptionTenantId,omitempty"`
SubscriptionTenantName *string `json:"subscriptionTenantName,omitempty"`
}
type AzureSubscriptionQueryResult struct {
ErrorMessage *string `json:"errorMessage,omitempty"`
Value *[]AzureSubscription `json:"value,omitempty"`
}
type ClientCertificate struct {
// Gets or sets the value of client certificate.
Value *string `json:"value,omitempty"`
}
type CounterVariable struct {
Prefix *string `json:"prefix,omitempty"`
Seed *int `json:"seed,omitempty"`
Value *int `json:"value,omitempty"`
}
type DataSource struct {
AuthenticationScheme *AuthenticationSchemeReference `json:"authenticationScheme,omitempty"`
EndpointUrl *string `json:"endpointUrl,omitempty"`
Headers *[]AuthorizationHeader `json:"headers,omitempty"`
Name *string `json:"name,omitempty"`
ResourceUrl *string `json:"resourceUrl,omitempty"`
ResultSelector *string `json:"resultSelector,omitempty"`
}
type DataSourceBinding struct {
// Pagination format supported by this data source(ContinuationToken/SkipTop).
CallbackContextTemplate *string `json:"callbackContextTemplate,omitempty"`
// Subsequent calls needed?
CallbackRequiredTemplate *string `json:"callbackRequiredTemplate,omitempty"`
// Gets or sets the name of the data source.
DataSourceName *string `json:"dataSourceName,omitempty"`
// Gets or sets the endpoint Id.
EndpointId *string `json:"endpointId,omitempty"`
// Gets or sets the url of the service endpoint.
EndpointUrl *string `json:"endpointUrl,omitempty"`
// Gets or sets the authorization headers.
Headers *[]distributedtaskcommon.AuthorizationHeader `json:"headers,omitempty"`
// Defines the initial value of the query params
InitialContextTemplate *string `json:"initialContextTemplate,omitempty"`
// Gets or sets the parameters for the data source.
Parameters *map[string]string `json:"parameters,omitempty"`
// Gets or sets http request body
RequestContent *string `json:"requestContent,omitempty"`
// Gets or sets http request verb
RequestVerb *string `json:"requestVerb,omitempty"`
// Gets or sets the result selector.
ResultSelector *string `json:"resultSelector,omitempty"`
// Gets or sets the result template.
ResultTemplate *string `json:"resultTemplate,omitempty"`
// Gets or sets the target of the data source.
Target *string `json:"target,omitempty"`
}
type DataSourceDetails struct {
DataSourceName *string `json:"dataSourceName,omitempty"`
DataSourceUrl *string `json:"dataSourceUrl,omitempty"`
Headers *[]AuthorizationHeader `json:"headers,omitempty"`
Parameters *map[string]string `json:"parameters,omitempty"`
ResourceUrl *string `json:"resourceUrl,omitempty"`
ResultSelector *string `json:"resultSelector,omitempty"`
}
type Demand struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
type DemandEquals struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
type DemandExists struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
type DemandMinimumVersion struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
Source *DemandSource `json:"source,omitempty"`
}
type DemandSource struct {
SourceName *string `json:"sourceName,omitempty"`
SourceType *DemandSourceType `json:"sourceType,omitempty"`
SourceVersion *string `json:"sourceVersion,omitempty"`
}
type DemandSourceType string
type demandSourceTypeValuesType struct {
Task DemandSourceType
Feature DemandSourceType
}
var DemandSourceTypeValues = demandSourceTypeValuesType{
Task: "task",
Feature: "feature",
}
type DependencyBinding struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
}
type DependencyData struct {
Input *string `json:"input,omitempty"`
Map *[]azuredevops.KeyValuePair `json:"map,omitempty"`
}
type DependsOn struct {
Input *string `json:"input,omitempty"`
Map *[]DependencyBinding `json:"map,omitempty"`
}
type DeploymentGatesChangeEvent struct {
GateNames *[]string `json:"gateNames,omitempty"`
}
// Deployment group.
type DeploymentGroup struct {
// Deployment group identifier.
Id *int `json:"id,omitempty"`
// Name of the deployment group.
Name *string `json:"name,omitempty"`
// Deployment pool in which deployment agents are registered.
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
// Project to which the deployment group belongs.
Project *ProjectReference `json:"project,omitempty"`
// Description of the deployment group.
Description *string `json:"description,omitempty"`
// Number of deployment targets in the deployment group.
MachineCount *int `json:"machineCount,omitempty"`
// List of deployment targets in the deployment group.
Machines *[]DeploymentMachine `json:"machines,omitempty"`
// List of unique tags across all deployment targets in the deployment group.
MachineTags *[]string `json:"machineTags,omitempty"`
}
// [Flags] This is useful in getting a list of deployment groups, filtered for which caller has permissions to take a particular action.
type DeploymentGroupActionFilter string
type deploymentGroupActionFilterValuesType struct {
None DeploymentGroupActionFilter
Manage DeploymentGroupActionFilter
Use DeploymentGroupActionFilter
}
var DeploymentGroupActionFilterValues = deploymentGroupActionFilterValuesType{
// All deployment groups.
None: "none",
// Only deployment groups for which caller has **manage** permission.
Manage: "manage",
// Only deployment groups for which caller has **use** permission.
Use: "use",
}
// Properties to create Deployment group.
type DeploymentGroupCreateParameter struct {
// Description of the deployment group.
Description *string `json:"description,omitempty"`
// Name of the deployment group.
Name *string `json:"name,omitempty"`
// Identifier of the deployment pool in which deployment agents are registered.
PoolId *int `json:"poolId,omitempty"`
}
// Properties of Deployment pool to create Deployment group.
type DeploymentGroupCreateParameterPoolProperty struct {
// Deployment pool identifier.
Id *int `json:"id,omitempty"`
}
// [Flags] Properties to be included or expanded in deployment group objects. This is useful when getting a single or list of deployment grouops.
type DeploymentGroupExpands string
type deploymentGroupExpandsValuesType struct {
None DeploymentGroupExpands
Machines DeploymentGroupExpands
Tags DeploymentGroupExpands
}
var DeploymentGroupExpandsValues = deploymentGroupExpandsValuesType{
// No additional properties.
None: "none",
// Deprecated: Include all the deployment targets.
Machines: "machines",
// Include unique list of tags across all deployment targets.
Tags: "tags",
}
// Deployment group metrics.
type DeploymentGroupMetrics struct {
// List of deployment group properties. And types of metrics provided for those properties.
ColumnsHeader *MetricsColumnsHeader `json:"columnsHeader,omitempty"`
// Deployment group.
DeploymentGroup *DeploymentGroupReference `json:"deploymentGroup,omitempty"`
// Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'.
Rows *[]MetricsRow `json:"rows,omitempty"`
}
// Deployment group reference. This is useful for referring a deployment group in another object.
type DeploymentGroupReference struct {
// Deployment group identifier.
Id *int `json:"id,omitempty"`
// Name of the deployment group.
Name *string `json:"name,omitempty"`
// Deployment pool in which deployment agents are registered.
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
// Project to which the deployment group belongs.
Project *ProjectReference `json:"project,omitempty"`
}
// Deployment group update parameter.
type DeploymentGroupUpdateParameter struct {
// Description of the deployment group.
Description *string `json:"description,omitempty"`
// Name of the deployment group.
Name *string `json:"name,omitempty"`
}
// Deployment target.
type DeploymentMachine struct {
// Deployment agent.
Agent *TaskAgent `json:"agent,omitempty"`
// Deployment target Identifier.
Id *int `json:"id,omitempty"`
// Properties of the deployment target.
Properties interface{} `json:"properties,omitempty"`
// Tags of the deployment target.
Tags *[]string `json:"tags,omitempty"`
}
type DeploymentMachineChangedData struct {
// Deployment agent.
Agent *TaskAgent `json:"agent,omitempty"`
// Deployment target Identifier.
Id *int `json:"id,omitempty"`
// Properties of the deployment target.
Properties interface{} `json:"properties,omitempty"`
// Tags of the deployment target.
Tags *[]string `json:"tags,omitempty"`
AddedTags *[]string `json:"addedTags,omitempty"`
DeletedTags *[]string `json:"deletedTags,omitempty"`
}
// [Flags]
type DeploymentMachineExpands string
type deploymentMachineExpandsValuesType struct {
None DeploymentMachineExpands
Capabilities DeploymentMachineExpands
AssignedRequest DeploymentMachineExpands
}
var DeploymentMachineExpandsValues = deploymentMachineExpandsValuesType{
None: "none",
Capabilities: "capabilities",
AssignedRequest: "assignedRequest",
}
type DeploymentMachineGroup struct {
Id *int `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
Project *ProjectReference `json:"project,omitempty"`
Machines *[]DeploymentMachine `json:"machines,omitempty"`
Size *int `json:"size,omitempty"`
}
type DeploymentMachineGroupReference struct {
Id *int `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
Project *ProjectReference `json:"project,omitempty"`
}
type DeploymentMachinesChangeEvent struct {
MachineGroupReference *DeploymentGroupReference `json:"machineGroupReference,omitempty"`
Machines *[]DeploymentMachineChangedData `json:"machines,omitempty"`
}
// Deployment pool summary.
type DeploymentPoolSummary struct {
// List of deployment groups referring to the deployment pool.
DeploymentGroups *[]DeploymentGroupReference `json:"deploymentGroups,omitempty"`
// Number of deployment agents that are offline.
OfflineAgentsCount *int `json:"offlineAgentsCount,omitempty"`
// Number of deployment agents that are online.
OnlineAgentsCount *int `json:"onlineAgentsCount,omitempty"`
// Deployment pool.
Pool *TaskAgentPoolReference `json:"pool,omitempty"`
// Virtual machine Resource referring in pool.
Resource *EnvironmentResourceReference `json:"resource,omitempty"`
}
// [Flags] Properties to be included or expanded in deployment pool summary objects. This is useful when getting a single or list of deployment pool summaries.
type DeploymentPoolSummaryExpands string
type deploymentPoolSummaryExpandsValuesType struct {
None DeploymentPoolSummaryExpands
DeploymentGroups DeploymentPoolSummaryExpands
Resource DeploymentPoolSummaryExpands
}
var DeploymentPoolSummaryExpandsValues = deploymentPoolSummaryExpandsValuesType{
// No additional properties
None: "none",
// Include deployment groups referring to the deployment pool.
DeploymentGroups: "deploymentGroups",
// Include Resource referring to the deployment pool.
Resource: "resource",
}
// [Flags] Properties to be included or expanded in deployment target objects. This is useful when getting a single or list of deployment targets.
type DeploymentTargetExpands string
type deploymentTargetExpandsValuesType struct {
None DeploymentTargetExpands
Capabilities DeploymentTargetExpands
AssignedRequest DeploymentTargetExpands
LastCompletedRequest DeploymentTargetExpands
}
var DeploymentTargetExpandsValues = deploymentTargetExpandsValuesType{
// No additional properties.
None: "none",
// Include capabilities of the deployment agent.
Capabilities: "capabilities",
// Include the job request assigned to the deployment agent.
AssignedRequest: "assignedRequest",
// Include the last completed job request of the deployment agent.
LastCompletedRequest: "lastCompletedRequest",
}
// Deployment target update parameter.
type DeploymentTargetUpdateParameter struct {
// Identifier of the deployment target.
Id *int `json:"id,omitempty"`
Tags *[]string `json:"tags,omitempty"`
}
type DiagnosticLogMetadata struct {
AgentId *int `json:"agentId,omitempty"`
AgentName *string `json:"agentName,omitempty"`
FileName *string `json:"fileName,omitempty"`
PhaseName *string `json:"phaseName,omitempty"`
PhaseResult *string `json:"phaseResult,omitempty"`
PoolId *int `json:"poolId,omitempty"`
}
type ElasticAgentPoolResizedEvent struct {
NewSize *int `json:"newSize,omitempty"`
PoolId *int `json:"poolId,omitempty"`
PoolName *string `json:"poolName,omitempty"`
PreviousSize *int `json:"previousSize,omitempty"`
ResourceId *string `json:"resourceId,omitempty"`
}
// Data and settings for an elastic pool
type ElasticPool struct {
// Azure string representing to location of the resource
AzureId *string `json:"azureId,omitempty"`
// Number of machines to have ready waiting for jobs
DesiredIdle *int `json:"desiredIdle,omitempty"`
// The desired size of the pool
DesiredSize *int `json:"desiredSize,omitempty"`
// Maximum number of machines that will exist in the elastic pool
MaxCapacity *int `json:"maxCapacity,omitempty"`
// Timestamp the pool was first detected to be offline
OfflineSince *azuredevops.Time `json:"offlineSince,omitempty"`
// Operating system type of the machines in the pool
OsType *OperatingSystemType `json:"osType,omitempty"`
// Id of the associated TaskAgentPool
PoolId *int `json:"poolId,omitempty"`
// Keep machines in the pool on failure for investigation
PreserveFailures *bool `json:"preserveFailures,omitempty"`
// Discard machines after each job completes
RecycleAfterEachUse *bool `json:"recycleAfterEachUse,omitempty"`
// Id of the Service Endpoint used to connect to Azure
ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
// Scope the Service Endpoint belongs to
ServiceEndpointScope *uuid.UUID `json:"serviceEndpointScope,omitempty"`
// The number of sizing attempts executed while trying to achieve a desired size
SizingAttempts *int `json:"sizingAttempts,omitempty"`
// State of the pool
State *ElasticPoolState `json:"state,omitempty"`
}
type ElasticPoolState string
type elasticPoolStateValuesType struct {
Online ElasticPoolState
Offline ElasticPoolState
Unhealthy ElasticPoolState
New ElasticPoolState
}
var ElasticPoolStateValues = elasticPoolStateValuesType{
// Online and healthy
Online: "online",
Offline: "offline",
Unhealthy: "unhealthy",
New: "new",
}
type EndpointAuthorization struct {
// Gets or sets the parameters for the selected authorization scheme.
Parameters *map[string]string `json:"parameters,omitempty"`
// Gets or sets the scheme used for service endpoint authentication.
Scheme *string `json:"scheme,omitempty"`
}
// Represents url of the service endpoint.
type EndpointUrl struct {
// Gets or sets the dependency bindings.
DependsOn *DependsOn `json:"dependsOn,omitempty"`
// Gets or sets the display name of service endpoint url.
DisplayName *string `json:"displayName,omitempty"`
// Gets or sets the help text of service endpoint url.
HelpText *string `json:"helpText,omitempty"`
// Gets or sets the visibility of service endpoint url.
IsVisible *string `json:"isVisible,omitempty"`
// Gets or sets the value of service endpoint url.
Value *string `json:"value,omitempty"`
}
// [Flags] This is useful in getting a list of Environments, filtered for which caller has permissions to take a particular action.
type EnvironmentActionFilter string
type environmentActionFilterValuesType struct {
None EnvironmentActionFilter
Manage EnvironmentActionFilter
Use EnvironmentActionFilter
}
var EnvironmentActionFilterValues = environmentActionFilterValuesType{
// All environments for which user has **view** permission.
None: "none",
// Only environments for which caller has **manage** permission.
Manage: "manage",
// Only environments for which caller has **use** permission.
Use: "use",
}
// Properties to create Environment.
type EnvironmentCreateParameter struct {
// Description of the environment.
Description *string `json:"description,omitempty"`
// Name of the environment.
Name *string `json:"name,omitempty"`
}
// EnvironmentDeploymentExecutionRecord.
type EnvironmentDeploymentExecutionRecord struct {
// Definition of the environment deployment execution owner
Definition *TaskOrchestrationOwner `json:"definition,omitempty"`
// Id of the Environment
EnvironmentId *int `json:"environmentId,omitempty"`
// Finish time of the environment deployment execution
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
// Id of the Environment deployment execution history record
Id *uint64 `json:"id,omitempty"`
// Job Attempt
JobAttempt *int `json:"jobAttempt,omitempty"`
// Job name
JobName *string `json:"jobName,omitempty"`
// Owner of the environment deployment execution record
Owner *TaskOrchestrationOwner `json:"owner,omitempty"`
// Plan Id
PlanId *uuid.UUID `json:"planId,omitempty"`
// Plan type of the environment deployment execution record
PlanType *string `json:"planType,omitempty"`
// Queue time of the environment deployment execution
QueueTime *azuredevops.Time `json:"queueTime,omitempty"`
// Request identifier of the Environment deployment execution history record
RequestIdentifier *string `json:"requestIdentifier,omitempty"`
// Resource Id
ResourceId *int `json:"resourceId,omitempty"`
// Result of the environment deployment execution
Result *TaskResult `json:"result,omitempty"`
// Project Id
ScopeId *uuid.UUID `json:"scopeId,omitempty"`
// Service owner Id
ServiceOwner *uuid.UUID `json:"serviceOwner,omitempty"`
// Stage Attempt
StageAttempt *int `json:"stageAttempt,omitempty"`
// Stage name
StageName *string `json:"stageName,omitempty"`
// Start time of the environment deployment execution
StartTime *azuredevops.Time `json:"startTime,omitempty"`
}
// [Flags] Properties to be included or expanded in environment objects. This is useful when getting a single environment.
type EnvironmentExpands string
type environmentExpandsValuesType struct {
None EnvironmentExpands
ResourceReferences EnvironmentExpands
}
var EnvironmentExpandsValues = environmentExpandsValuesType{
// No additional properties
None: "none",
// Include resource references referring to the environment.
ResourceReferences: "resourceReferences",
}
// Environment.
type EnvironmentInstance struct {
// Identity reference of the user who created the Environment.
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
// Creation time of the Environment
CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
// Description of the Environment.
Description *string `json:"description,omitempty"`
// Id of the Environment
Id *int `json:"id,omitempty"`
// Identity reference of the user who last modified the Environment.
LastModifiedBy *webapi.IdentityRef `json:"lastModifiedBy,omitempty"`
// Last modified time of the Environment
LastModifiedOn *azuredevops.Time `json:"lastModifiedOn,omitempty"`
// Name of the Environment.
Name *string `json:"name,omitempty"`
// Project information for environment.
Project *ProjectReference `json:"project,omitempty"`
Resources *[]EnvironmentResourceReference `json:"resources,omitempty"`
}
// EnvironmentLinkedResourceReference.
type EnvironmentLinkedResourceReference struct {
// Id of the resource.
Id *string `json:"id,omitempty"`
// Type of resource.
TypeName *string `json:"typeName,omitempty"`
}
type EnvironmentReference struct {
Id *int `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
type EnvironmentResource struct {
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
EnvironmentReference *EnvironmentReference `json:"environmentReference,omitempty"`
Id *int `json:"id,omitempty"`
LastModifiedBy *webapi.IdentityRef `json:"lastModifiedBy,omitempty"`
LastModifiedOn *azuredevops.Time `json:"lastModifiedOn,omitempty"`
Name *string `json:"name,omitempty"`
// Tags of the Environment Resource.
Tags *[]string `json:"tags,omitempty"`
// Environment resource type
Type *EnvironmentResourceType `json:"type,omitempty"`
}
// EnvironmentResourceDeploymentExecutionRecord.
type EnvironmentResourceDeploymentExecutionRecord struct {
// Id of the Environment
EnvironmentId *int `json:"environmentId,omitempty"`
// Finish time of the environment resource deployment execution
FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
// Id of the Environment deployment execution history record
RequestId *uint64 `json:"requestId,omitempty"`
// Resource Id
ResourceId *int `json:"resourceId,omitempty"`
// Result of the environment deployment execution
Result *TaskResult `json:"result,omitempty"`
// Start time of the environment resource deployment execution
StartTime *azuredevops.Time `json:"startTime,omitempty"`
}
// EnvironmentResourceReference.
type EnvironmentResourceReference struct {
// Id of the resource.
Id *int `json:"id,omitempty"`
// Name of the resource.
Name *string `json:"name,omitempty"`
// Tags of the Environment Resource Reference.
Tags *[]string `json:"tags,omitempty"`
// Type of the resource.
Type *EnvironmentResourceType `json:"type,omitempty"`
}
// [Flags] EnvironmentResourceType.
type EnvironmentResourceType string
type environmentResourceTypeValuesType struct {
Undefined EnvironmentResourceType
Generic EnvironmentResourceType
VirtualMachine EnvironmentResourceType
Kubernetes EnvironmentResourceType
}
var EnvironmentResourceTypeValues = environmentResourceTypeValuesType{
Undefined: "undefined",
// Unknown resource type
Generic: "generic",
// Virtual machine resource type
VirtualMachine: "virtualMachine",
// Kubernetes resource type
Kubernetes: "kubernetes",
}
// Properties to update Environment.
type EnvironmentUpdateParameter struct {
// Description of the environment.
Description *string `json:"description,omitempty"`
// Name of the environment.
Name *string `json:"name,omitempty"`
}
type EventsConfig struct {
}
type ExpressionValidationItem struct {
// Tells whether the current input is valid or not
IsValid *bool `json:"isValid,omitempty"`
// Reason for input validation failure
Reason *string `json:"reason,omitempty"`
// Type of validation item
Type *string `json:"type,omitempty"`
// Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
Value *string `json:"value,omitempty"`
}
type HelpLink struct {
Text *string `json:"text,omitempty"`
Url *string `json:"url,omitempty"`
}
type InputBindingContext struct {
// Value of the input
Value *string `json:"value,omitempty"`
}
type InputValidationItem struct {
// Tells whether the current input is valid or not
IsValid *bool `json:"isValid,omitempty"`
// Reason for input validation failure
Reason *string `json:"reason,omitempty"`
// Type of validation item
Type *string `json:"type,omitempty"`
// Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
Value *string `json:"value,omitempty"`
// Provides binding context for the expression to evaluate
Context *InputBindingContext `json:"context,omitempty"`
}
type InputValidationRequest struct {
Inputs *map[string]ValidationItem `json:"inputs,omitempty"`
}
type Issue struct {
Category *string `json:"category,omitempty"`
Data *map[string]string `json:"data,omitempty"`
Message *string `json:"message,omitempty"`
Type *IssueType `json:"type,omitempty"`
}
type IssueType string
type issueTypeValuesType struct {
Error IssueType
Warning IssueType
}
var IssueTypeValues = issueTypeValuesType{
Error: "error",
Warning: "warning",
}
type JobAssignedEvent struct {
JobId *uuid.UUID `json:"jobId,omitempty"`
Name *string `json:"name,omitempty"`
Request *TaskAgentJobRequest `json:"request,omitempty"`
}
type JobCancelMessage struct {
JobId *uuid.UUID `json:"jobId,omitempty"`
Timeout interface{} `json:"timeout,omitempty"`
}
type JobCompletedEvent struct {
JobId *uuid.UUID `json:"jobId,omitempty"`
Name *string `json:"name,omitempty"`
AgentShuttingDown *bool `json:"agentShuttingDown,omitempty"`
RequestId *uint64 `json:"requestId,omitempty"`
Result *TaskResult `json:"result,omitempty"`
}
// Represents the context of variables and vectors for a job request.
type JobEnvironment struct {
Endpoints *[]ServiceEndpoint `json:"endpoints,omitempty"`
Mask *[]MaskHint `json:"mask,omitempty"`
Options *map[uuid.UUID]JobOption `json:"options,omitempty"`
SecureFiles *[]SecureFile `json:"secureFiles,omitempty"`
// Gets or sets the endpoint used for communicating back to the calling service.
SystemConnection *ServiceEndpoint `json:"systemConnection,omitempty"`
Variables *map[string]string `json:"variables,omitempty"`
}
type JobEvent struct {
JobId *uuid.UUID `json:"jobId,omitempty"`
Name *string `json:"name,omitempty"`
}
type JobEventConfig struct {
Timeout *string `json:"timeout,omitempty"`
}
type JobEventsConfig struct {
JobAssigned *JobEventConfig `json:"jobAssigned,omitempty"`
JobCompleted *JobEventConfig `json:"jobCompleted,omitempty"`
JobStarted *JobEventConfig `json:"jobStarted,omitempty"`
}
// Represents an option that may affect the way an agent runs the job.
type JobOption struct {
Data *map[string]string `json:"data,omitempty"`
// Gets the id of the option.
Id *uuid.UUID `json:"id,omitempty"`
}
type JobRequestMessage struct {
Environment *JobEnvironment `json:"environment,omitempty"`
JobId *uuid.UUID `json:"jobId,omitempty"`
JobName *string `json:"jobName,omitempty"`
JobRefName *string `json:"jobRefName,omitempty"`
MessageType *string `json:"messageType,omitempty"`
Plan *TaskOrchestrationPlanReference `json:"plan,omitempty"`
Timeline *TimelineReference `json:"timeline,omitempty"`
}
type JobStartedEvent struct {
JobId *uuid.UUID `json:"jobId,omitempty"`
Name *string `json:"name,omitempty"`
}
type KubernetesResource struct {
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
EnvironmentReference *EnvironmentReference `json:"environmentReference,omitempty"`
Id *int `json:"id,omitempty"`
LastModifiedBy *webapi.IdentityRef `json:"lastModifiedBy,omitempty"`
LastModifiedOn *azuredevops.Time `json:"lastModifiedOn,omitempty"`
Name *string `json:"name,omitempty"`
// Tags of the Environment Resource.
Tags *[]string `json:"tags,omitempty"`
// Environment resource type
Type *EnvironmentResourceType `json:"type,omitempty"`
ClusterName *string `json:"clusterName,omitempty"`
Namespace *string `json:"namespace,omitempty"`
ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
}
type KubernetesResourceCreateParameters struct {
ClusterName *string `json:"clusterName,omitempty"`
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
// Tags of the kubernetes resource.
Tags *[]string `json:"tags,omitempty"`
}
type KubernetesResourceCreateParametersExistingEndpoint struct {
ClusterName *string `json:"clusterName,omitempty"`
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
// Tags of the kubernetes resource.
Tags *[]string `json:"tags,omitempty"`
ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
}
type KubernetesResourceCreateParametersNewEndpoint struct {
ClusterName *string `json:"clusterName,omitempty"`
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
// Tags of the kubernetes resource.
Tags *[]string `json:"tags,omitempty"`
Endpoint *ServiceEndpoint `json:"endpoint,omitempty"`
}
type KubernetesResourcePatchParameters struct {
AuthorizationParameters *map[string]string `json:"authorizationParameters,omitempty"`
// Provider type (CustomProvider or AzureKubernetesServiceProvider) of the resource to be updated
ProviderType *string `json:"providerType,omitempty"`
ResourceId *int `json:"resourceId,omitempty"`
}
// [Flags]
type MachineGroupActionFilter string
type machineGroupActionFilterValuesType struct {
None MachineGroupActionFilter
Manage MachineGroupActionFilter
Use MachineGroupActionFilter
}
var MachineGroupActionFilterValues = machineGroupActionFilterValuesType{
None: "none",
Manage: "manage",