summaryrefslogtreecommitdiff
path: root/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon/models.go
blob: bde84d225829cabb9f4045c43a2e729d53d6c828 (plain)
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
// --------------------------------------------------------------------------------------------
// 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 distributedtaskcommon

type AuthorizationHeader struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

// Represents binding of data source for the service endpoint request.
type DataSourceBindingBase 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 *[]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 ProcessParameters struct {
	DataSourceBindings *[]DataSourceBindingBase    `json:"dataSourceBindings,omitempty"`
	Inputs             *[]TaskInputDefinitionBase  `json:"inputs,omitempty"`
	SourceDefinitions  *[]TaskSourceDefinitionBase `json:"sourceDefinitions,omitempty"`
}

type TaskInputDefinitionBase struct {
	Aliases      *[]string            `json:"aliases,omitempty"`
	DefaultValue *string              `json:"defaultValue,omitempty"`
	GroupName    *string              `json:"groupName,omitempty"`
	HelpMarkDown *string              `json:"helpMarkDown,omitempty"`
	Label        *string              `json:"label,omitempty"`
	Name         *string              `json:"name,omitempty"`
	Options      *map[string]string   `json:"options,omitempty"`
	Properties   *map[string]string   `json:"properties,omitempty"`
	Required     *bool                `json:"required,omitempty"`
	Type         *string              `json:"type,omitempty"`
	Validation   *TaskInputValidation `json:"validation,omitempty"`
	VisibleRule  *string              `json:"visibleRule,omitempty"`
}

type TaskInputValidation struct {
	// Conditional expression
	Expression *string `json:"expression,omitempty"`
	// Message explaining how user can correct if validation fails
	Message *string `json:"message,omitempty"`
}

type TaskSourceDefinitionBase struct {
	AuthKey     *string `json:"authKey,omitempty"`
	Endpoint    *string `json:"endpoint,omitempty"`
	KeySelector *string `json:"keySelector,omitempty"`
	Selector    *string `json:"selector,omitempty"`
	Target      *string `json:"target,omitempty"`
}