diff --git a/azuredevops/git/models.go b/azuredevops/git/models.go index 03c59814..5b47bf2e 100644 --- a/azuredevops/git/models.go +++ b/azuredevops/git/models.go @@ -1074,6 +1074,26 @@ type GitForkSyncRequestParameters struct { } type GitForkTeamProjectReference struct { + // Project abbreviation. + Abbreviation *string `json:"abbreviation,omitempty"` + // Url to default team identity image. + DefaultTeamImageUrl *string `json:"defaultTeamImageUrl,omitempty"` + // The project's description (if any). + Description *string `json:"description,omitempty"` + // Project identifier. + Id *uuid.UUID `json:"id,omitempty"` + // Project last update time. + LastUpdateTime *azuredevops.Time `json:"lastUpdateTime,omitempty"` + // Project name. + Name *string `json:"name,omitempty"` + // Project revision. + Revision *uint64 `json:"revision,omitempty"` + // Project state. + State *core.ProjectState `json:"state,omitempty"` + // Url to the full version of the object. + Url *string `json:"url,omitempty"` + // Project visibility. + Visibility *core.ProjectVisibility `json:"visibility,omitempty"` } // Accepted types of version @@ -2294,6 +2314,30 @@ type HistoryEntry struct { // Identity information including a vote on a pull request. type IdentityRefWithVote struct { + // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + Links interface{} `json:"_links,omitempty"` + // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + Descriptor *string `json:"descriptor,omitempty"` + // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + DisplayName *string `json:"displayName,omitempty"` + // This url is the full route to the source resource of this graph subject. + Url *string `json:"url,omitempty"` + // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + DirectoryAlias *string `json:"directoryAlias,omitempty"` + Id *string `json:"id,omitempty"` + // Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary + ImageUrl *string `json:"imageUrl,omitempty"` + // Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary + Inactive *bool `json:"inactive,omitempty"` + // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) + IsAadIdentity *bool `json:"isAadIdentity,omitempty"` + // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) + IsContainer *bool `json:"isContainer,omitempty"` + IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"` + // Deprecated - not in use in most preexisting implementations of ToIdentityRef + ProfileUrl *string `json:"profileUrl,omitempty"` + // Deprecated - use Domain+PrincipalName instead + UniqueName *string `json:"uniqueName,omitempty"` // Indicates if this is a required reviewer for this pull request.
Branches can have policies that require particular reviewers are required for pull requests. IsRequired *bool `json:"isRequired,omitempty"` // URL to retrieve information about this identity diff --git a/azuredevops/memberentitlementmanagement/models.go b/azuredevops/memberentitlementmanagement/models.go index 31b1f2eb..6979b55a 100644 --- a/azuredevops/memberentitlementmanagement/models.go +++ b/azuredevops/memberentitlementmanagement/models.go @@ -15,6 +15,7 @@ import ( "github.com/microsoft/azure-devops-go-api/azuredevops/graph" "github.com/microsoft/azure-devops-go-api/azuredevops/licensing" "github.com/microsoft/azure-devops-go-api/azuredevops/licensingrule" + "github.com/microsoft/azure-devops-go-api/azuredevops/operations" ) type BaseOperationResult struct { @@ -91,6 +92,14 @@ type GroupEntitlement struct { } type GroupEntitlementOperationReference struct { + // Unique identifier for the operation. + Id *uuid.UUID `json:"id,omitempty"` + // Unique identifier for the plugin. + PluginId *uuid.UUID `json:"pluginId,omitempty"` + // The current status of the operation. + Status *operations.OperationStatus `json:"status,omitempty"` + // URL to get the full operation object. + Url *string `json:"url,omitempty"` // Operation completed with success or failure. Completed *bool `json:"completed,omitempty"` // True if all operations were successful. @@ -188,6 +197,14 @@ type MemberEntitlement struct { } type MemberEntitlementOperationReference struct { + // Unique identifier for the operation. + Id *uuid.UUID `json:"id,omitempty"` + // Unique identifier for the plugin. + PluginId *uuid.UUID `json:"pluginId,omitempty"` + // The current status of the operation. + Status *operations.OperationStatus `json:"status,omitempty"` + // URL to get the full operation object. + Url *string `json:"url,omitempty"` // Operation completed with success or failure Completed *bool `json:"completed,omitempty"` // True if all operations were successful @@ -336,6 +353,14 @@ type UserEntitlement struct { } type UserEntitlementOperationReference struct { + // Unique identifier for the operation. + Id *uuid.UUID `json:"id,omitempty"` + // Unique identifier for the plugin. + PluginId *uuid.UUID `json:"pluginId,omitempty"` + // The current status of the operation. + Status *operations.OperationStatus `json:"status,omitempty"` + // URL to get the full operation object. + Url *string `json:"url,omitempty"` // Operation completed with success or failure. Completed *bool `json:"completed,omitempty"` // True if all operations were successful. diff --git a/azuredevops/notification/models.go b/azuredevops/notification/models.go index 480658f3..02d6a748 100644 --- a/azuredevops/notification/models.go +++ b/azuredevops/notification/models.go @@ -279,10 +279,27 @@ type ExpressionFilterModel struct { } type FieldInputValues struct { - Operators *[]byte `json:"operators,omitempty"` + // The default value to use for this input + DefaultValue *string `json:"defaultValue,omitempty"` + // Errors encountered while computing dynamic values. + Error *forminput.InputValuesError `json:"error,omitempty"` + // The id of the input + InputId *string `json:"inputId,omitempty"` + // Should this input be disabled + IsDisabled *bool `json:"isDisabled,omitempty"` + // Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + IsLimitedToPossibleValues *bool `json:"isLimitedToPossibleValues,omitempty"` + // Should this input be made read-only + IsReadOnly *bool `json:"isReadOnly,omitempty"` + // Possible values that this input can take + PossibleValues *[]forminput.InputValue `json:"possibleValues,omitempty"` + Operators *[]byte `json:"operators,omitempty"` } type FieldValuesQuery struct { + CurrentValues *map[string]string `json:"currentValues,omitempty"` + // Subscription containing information about the publisher/consumer and the current input values + Resource interface{} `json:"resource,omitempty"` InputValues *[]FieldInputValues `json:"inputValues,omitempty"` Scope *string `json:"scope,omitempty"` } @@ -1092,6 +1109,12 @@ var SubscriptionQueryFlagsValues = subscriptionQueryFlagsValuesType{ // A resource, typically an account or project, in which events are published from. type SubscriptionScope struct { + // Required: This is the identity of the scope for the type. + Id *uuid.UUID `json:"id,omitempty"` + // Optional: The display name of the scope + Name *string `json:"name,omitempty"` + // Required: The event specific type of a scope. + Type *string `json:"type,omitempty"` } // Subscription status values. A value greater than or equal to zero indicates the subscription is enabled. A negative value indicates the subscription is disabled. diff --git a/azuredevops/search/models.go b/azuredevops/search/models.go index dfc4f256..15d28ca0 100644 --- a/azuredevops/search/models.go +++ b/azuredevops/search/models.go @@ -35,10 +35,26 @@ type CodeResult struct { // Defines a code search request. type CodeSearchRequest struct { + // Filters to be applied. Set it to null if there are no filters to be applied. + Filters *map[string][]string `json:"filters,omitempty"` + // The search text. + SearchText *string `json:"searchText,omitempty"` + // Options for sorting search results. If set to null, the results will be returned sorted by relevance. If more than one sort option is provided, the results are sorted in the order specified in the OrderBy. + OrderBy *[]searchshared.SortOption `json:"$orderBy,omitempty"` + // Number of results to be skipped. + Skip *int `json:"$skip,omitempty"` + // Number of results to be returned. + Top *int `json:"$top,omitempty"` + // Flag to opt for faceting in the result. Default behavior is false. + IncludeFacets *bool `json:"includeFacets,omitempty"` } // Defines a code search response item. type CodeSearchResponse struct { + // A dictionary storing an array of Filter object against each facet. + Facets *map[string][]searchshared.Filter `json:"facets,omitempty"` + // Numeric code indicating any additional information: 0 - Ok, 1 - Account is being reindexed, 2 - Account indexing has not started, 3 - Invalid Request, 4 - Prefix wildcard query not supported, 5 - MultiWords with code facet not supported, 6 - Account is being onboarded, 7 - Account is being onboarded or reindexed, 8 - Top value trimmed to maxresult allowed 9 - Branches are being indexed, 10 - Faceting not enabled, 11 - Work items not accessible, 19 - Phrase queries with code type filters not supported, 20 - Wildcard queries with code type filters not supported. Any other info code is used for internal purpose. + InfoCode *int `json:"infoCode,omitempty"` // Total number of matched files. Count *int `json:"count,omitempty"` // List of matched files. @@ -75,10 +91,26 @@ type WorkItemResult struct { // Defines a work item search request. type WorkItemSearchRequest struct { + // Filters to be applied. Set it to null if there are no filters to be applied. + Filters *map[string][]string `json:"filters,omitempty"` + // The search text. + SearchText *string `json:"searchText,omitempty"` + // Options for sorting search results. If set to null, the results will be returned sorted by relevance. If more than one sort option is provided, the results are sorted in the order specified in the OrderBy. + OrderBy *[]searchshared.SortOption `json:"$orderBy,omitempty"` + // Number of results to be skipped. + Skip *int `json:"$skip,omitempty"` + // Number of results to be returned. + Top *int `json:"$top,omitempty"` + // Flag to opt for faceting in the result. Default behavior is false. + IncludeFacets *bool `json:"includeFacets,omitempty"` } // Defines a response item that is returned for a work item search request. type WorkItemSearchResponse struct { + // A dictionary storing an array of Filter object against each facet. + Facets *map[string][]searchshared.Filter `json:"facets,omitempty"` + // Numeric code indicating any additional information: 0 - Ok, 1 - Account is being reindexed, 2 - Account indexing has not started, 3 - Invalid Request, 4 - Prefix wildcard query not supported, 5 - MultiWords with code facet not supported, 6 - Account is being onboarded, 7 - Account is being onboarded or reindexed, 8 - Top value trimmed to maxresult allowed 9 - Branches are being indexed, 10 - Faceting not enabled, 11 - Work items not accessible, 19 - Phrase queries with code type filters not supported, 20 - Wildcard queries with code type filters not supported. Any other info code is used for internal purpose. + InfoCode *int `json:"infoCode,omitempty"` // Total number of matched work items. Count *int `json:"count,omitempty"` // List of top matched work items. diff --git a/azuredevops/serviceendpoint/models.go b/azuredevops/serviceendpoint/models.go index 5024e3fe..8ed19627 100644 --- a/azuredevops/serviceendpoint/models.go +++ b/azuredevops/serviceendpoint/models.go @@ -11,6 +11,7 @@ package serviceendpoint import ( "github.com/google/uuid" "github.com/microsoft/azure-devops-go-api/azuredevops" + "github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon" "github.com/microsoft/azure-devops-go-api/azuredevops/forminput" "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" ) @@ -206,6 +207,32 @@ type DataSource struct { // Represents the data source binding of the endpoint. 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"` } // Represents details of the service endpoint data source. diff --git a/azuredevops/taskagent/models.go b/azuredevops/taskagent/models.go index e28ace30..08ecaf45 100644 --- a/azuredevops/taskagent/models.go +++ b/azuredevops/taskagent/models.go @@ -11,6 +11,7 @@ package taskagent import ( "github.com/google/uuid" "github.com/microsoft/azure-devops-go-api/azuredevops" + "github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon" "github.com/microsoft/azure-devops-go-api/azuredevops/forminput" "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" ) @@ -223,6 +224,32 @@ type DataSource struct { } 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 { @@ -2171,6 +2198,18 @@ type TaskHubLicenseDetails struct { } type TaskInputDefinition 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 *distributedtaskcommon.TaskInputValidation `json:"validation,omitempty"` + VisibleRule *string `json:"visibleRule,omitempty"` } type TaskInstance struct { @@ -2374,6 +2413,11 @@ var TaskResultValues = taskResultValuesType{ } type TaskSourceDefinition 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"` } type TaskStartedEvent struct { diff --git a/azuredevops/webapi/models.go b/azuredevops/webapi/models.go index 7a06cb4d..ccf78618 100644 --- a/azuredevops/webapi/models.go +++ b/azuredevops/webapi/models.go @@ -92,6 +92,14 @@ type EventScope struct { } type IdentityRef struct { + // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + Links interface{} `json:"_links,omitempty"` + // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + Descriptor *string `json:"descriptor,omitempty"` + // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + DisplayName *string `json:"displayName,omitempty"` + // This url is the full route to the source resource of this graph subject. + Url *string `json:"url,omitempty"` // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary DirectoryAlias *string `json:"directoryAlias,omitempty"` Id *string `json:"id,omitempty"` @@ -111,6 +119,14 @@ type IdentityRef struct { } type IdentityRefWithEmail struct { + // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + Links interface{} `json:"_links,omitempty"` + // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + Descriptor *string `json:"descriptor,omitempty"` + // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + DisplayName *string `json:"displayName,omitempty"` + // This url is the full route to the source resource of this graph subject. + Url *string `json:"url,omitempty"` // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary DirectoryAlias *string `json:"directoryAlias,omitempty"` Id *string `json:"id,omitempty"` diff --git a/azuredevops/workitemtracking/models.go b/azuredevops/workitemtracking/models.go index 54c2d898..19a9ee58 100644 --- a/azuredevops/workitemtracking/models.go +++ b/azuredevops/workitemtracking/models.go @@ -442,7 +442,30 @@ var GetFieldsExpandValues = getFieldsExpandValuesType{ // Describes a reference to an identity. type IdentityReference struct { - Id *uuid.UUID `json:"id,omitempty"` + // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + Links interface{} `json:"_links,omitempty"` + // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + Descriptor *string `json:"descriptor,omitempty"` + // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + DisplayName *string `json:"displayName,omitempty"` + // This url is the full route to the source resource of this graph subject. + Url *string `json:"url,omitempty"` + // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + DirectoryAlias *string `json:"directoryAlias,omitempty"` + // Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary + ImageUrl *string `json:"imageUrl,omitempty"` + // Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary + Inactive *bool `json:"inactive,omitempty"` + // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) + IsAadIdentity *bool `json:"isAadIdentity,omitempty"` + // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) + IsContainer *bool `json:"isContainer,omitempty"` + IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"` + // Deprecated - not in use in most preexisting implementations of ToIdentityRef + ProfileUrl *string `json:"profileUrl,omitempty"` + // Deprecated - use Domain+PrincipalName instead + UniqueName *string `json:"uniqueName,omitempty"` + Id *uuid.UUID `json:"id,omitempty"` // Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version Name *string `json:"name,omitempty"` }