-
Notifications
You must be signed in to change notification settings - Fork 74
/
models.go
85 lines (72 loc) · 3.3 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
// --------------------------------------------------------------------------------------------
// 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 upackpackaging
import (
"github.com/microsoft/azure-devops-go-api/azuredevops/v7"
)
// Describes UPack batch operation types.
type UPackBatchOperationType string
type uPackBatchOperationTypeValuesType struct {
Promote UPackBatchOperationType
Delete UPackBatchOperationType
PermanentDelete UPackBatchOperationType
RestoreToFeed UPackBatchOperationType
}
var UPackBatchOperationTypeValues = uPackBatchOperationTypeValuesType{
// Promote package versions to a release view. If constructing a UPackPackagesBatchRequest object with this type, use BatchPromoteData for its Data property. Not supported in the Recycle Bin.
Promote: "promote",
// Move package versions to the feed's Recycle Bin. Not supported in the Recycle Bin.
Delete: "delete",
// Permanently delete package versions. Only supported in the Recycle Bin.
PermanentDelete: "permanentDelete",
// Restore deleted package versions to the feed. Only supported in the Recycle Bin.
RestoreToFeed: "restoreToFeed",
}
// Describes intent when calling the API GetPackageMetadata.
type UPackGetPackageMetadataIntent string
type uPackGetPackageMetadataIntentValuesType struct {
FetchMetadataOnly UPackGetPackageMetadataIntent
Download UPackGetPackageMetadataIntent
}
var UPackGetPackageMetadataIntentValues = uPackGetPackageMetadataIntentValuesType{
// Default. The call intends only to retrieve the package metadata.
FetchMetadataOnly: "fetchMetadataOnly",
// The call is part of the download flow.
Download: "download",
}
type UPackLimitedPackageMetadata struct {
Description *string `json:"description,omitempty"`
Version *string `json:"version,omitempty"`
}
type UPackLimitedPackageMetadataListResponse struct {
Count *int `json:"count,omitempty"`
Value *[]UPackLimitedPackageMetadata `json:"value,omitempty"`
}
type UPackPackageMetadata struct {
Description *string `json:"description,omitempty"`
ManifestId *string `json:"manifestId,omitempty"`
PackageSize *uint64 `json:"packageSize,omitempty"`
SuperRootId *string `json:"superRootId,omitempty"`
Version *string `json:"version,omitempty"`
}
// Contains the parameters for adding a new Universal Package to the feed, except for name and version which are transmitted in the URL
type UPackPackagePushMetadata struct {
Description *string `json:"description,omitempty"`
ManifestId *string `json:"manifestId,omitempty"`
ProofNodes *[]string `json:"proofNodes,omitempty"`
SuperRootId *string `json:"superRootId,omitempty"`
}
// Deletion state of a Universal package.
type UPackPackageVersionDeletionState struct {
// UTC date the package was deleted.
DeletedDate *azuredevops.Time `json:"deletedDate,omitempty"`
// Name of the package.
Name *string `json:"name,omitempty"`
// Version of the package.
Version *string `json:"version,omitempty"`
}