From 3e18d60d49df780e7c2b6bdd0636028bee525070 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 28 Sep 2018 19:26:27 +0000 Subject: [PATCH 1/2] Generated from 198ac8b56e48dd29e0f907282e01bb0da4eeed06 Added registry identity properties to response --- .../containerregistry/mgmt/containerregistry/models.go | 1 + .../containerregistry/mgmt/containerregistry/models.go | 1 + .../containerregistry/mgmt/containerregistry/models.go | 1 + .../mgmt/2017-10-01/containerregistry/models.go | 10 ++++++++++ .../mgmt/2018-09-01/containerregistry/models.go | 10 ++++++++++ .../mgmt/2018-02-01/containerregistry/models.go | 10 ++++++++++ 6 files changed, 33 insertions(+) diff --git a/profiles/latest/containerregistry/mgmt/containerregistry/models.go b/profiles/latest/containerregistry/mgmt/containerregistry/models.go index 4c6f504d6f5e..60106542c92f 100644 --- a/profiles/latest/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/latest/containerregistry/mgmt/containerregistry/models.go @@ -132,6 +132,7 @@ type RegistriesImportImageFuture = original.RegistriesImportImageFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/models.go index 6473a8652c01..24c9f3cfe64a 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/models.go @@ -273,6 +273,7 @@ type RegistriesScheduleRunFuture = original.RegistriesScheduleRunFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go index 4ea07de84b49..5fb9acf721be 100644 --- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go @@ -271,6 +271,7 @@ type RegistriesQueueBuildFuture = original.RegistriesQueueBuildFuture type RegistriesUpdateFuture = original.RegistriesUpdateFuture type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture type Registry = original.Registry +type RegistryIdentity = original.RegistryIdentity type RegistryListCredentialsResult = original.RegistryListCredentialsResult type RegistryListResult = original.RegistryListResult type RegistryListResultIterator = original.RegistryListResultIterator diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go index 19c6fb28d78c..4d19794ab030 100644 --- a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go @@ -941,6 +941,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity identity of the container registry. +type RegistryIdentity struct { + // IdentityType - The type of identity used for registry. + IdentityType *string `json:"identityType,omitempty"` + // IdentityPrincipalID - The principal ID of registry identity. + IdentityPrincipalID *string `json:"identityPrincipalId,omitempty"` + // TenantID - The tenant ID of registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go index 814d6ae52773..e9dadc3eae8f 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go @@ -2014,6 +2014,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity identity of the container registry. +type RegistryIdentity struct { + // IdentityType - The type of identity used for registry. + IdentityType *string `json:"identityType,omitempty"` + // IdentityPrincipalID - The principal ID of registry identity. + IdentityPrincipalID *string `json:"identityPrincipalId,omitempty"` + // TenantID - The tenant ID of registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go index db1ce2fa926c..802ed69d7d88 100644 --- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go +++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go @@ -2815,6 +2815,16 @@ func (r *Registry) UnmarshalJSON(body []byte) error { return nil } +// RegistryIdentity identity of the container registry. +type RegistryIdentity struct { + // IdentityType - The type of identity used for registry. + IdentityType *string `json:"identityType,omitempty"` + // IdentityPrincipalID - The principal ID of registry identity. + IdentityPrincipalID *string `json:"identityPrincipalId,omitempty"` + // TenantID - The tenant ID of registry. + TenantID *string `json:"tenantId,omitempty"` +} + // RegistryListCredentialsResult the response from the ListCredentials operation. type RegistryListCredentialsResult struct { autorest.Response `json:"-"` From 1df2d349918237e7a8415cc183ebc9797884cc1e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 4 Oct 2018 01:21:36 +0000 Subject: [PATCH 2/2] Generated from 198ac8b56e48dd29e0f907282e01bb0da4eeed06 Added registry identity properties to response --- .../mgmt/containerregistry/models.go | 5 +- .../2018-09-01/containerregistry/models.go | 126 +++++++++++------- 2 files changed, 81 insertions(+), 50 deletions(-) diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/models.go index 24c9f3cfe64a..0b76b33b99b6 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/models.go @@ -111,7 +111,9 @@ type RunType = original.RunType const ( AutoBuild RunType = original.AutoBuild + AutoRun RunType = original.AutoRun QuickBuild RunType = original.QuickBuild + QuickRun RunType = original.QuickRun ) type SkuName = original.SkuName @@ -142,7 +144,8 @@ const ( type SourceTriggerEvent = original.SourceTriggerEvent const ( - Commit SourceTriggerEvent = original.Commit + Commit SourceTriggerEvent = original.Commit + Pullrequest SourceTriggerEvent = original.Pullrequest ) type TaskStatus = original.TaskStatus diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go index e9dadc3eae8f..46a47b1e5b63 100644 --- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go +++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go @@ -204,13 +204,17 @@ type RunType string const ( // AutoBuild ... AutoBuild RunType = "AutoBuild" + // AutoRun ... + AutoRun RunType = "AutoRun" // QuickBuild ... QuickBuild RunType = "QuickBuild" + // QuickRun ... + QuickRun RunType = "QuickRun" ) // PossibleRunTypeValues returns an array of possible values for the RunType const type. func PossibleRunTypeValues() []RunType { - return []RunType{AutoBuild, QuickBuild} + return []RunType{AutoBuild, AutoRun, QuickBuild, QuickRun} } // SkuName enumerates the values for sku name. @@ -272,11 +276,13 @@ type SourceTriggerEvent string const ( // Commit ... Commit SourceTriggerEvent = "commit" + // Pullrequest ... + Pullrequest SourceTriggerEvent = "pullrequest" ) // PossibleSourceTriggerEventValues returns an array of possible values for the SourceTriggerEvent const type. func PossibleSourceTriggerEventValues() []SourceTriggerEvent { - return []SourceTriggerEvent{Commit} + return []SourceTriggerEvent{Commit, Pullrequest} } // TaskStatus enumerates the values for task status. @@ -514,7 +520,7 @@ type BaseImageDependency struct { type BaseImageTrigger struct { // BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime' BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"` - // Status - The current status of build trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' + // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' Status TriggerStatus `json:"status,omitempty"` // Name - The name of the trigger. Name *string `json:"name,omitempty"` @@ -524,7 +530,7 @@ type BaseImageTrigger struct { type BaseImageTriggerUpdateParameters struct { // BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime' BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"` - // Status - The current status of build trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' + // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' Status TriggerStatus `json:"status,omitempty"` // Name - The name of the trigger. Name *string `json:"name,omitempty"` @@ -563,15 +569,15 @@ type DockerBuildRequest struct { DockerFilePath *string `json:"dockerFilePath,omitempty"` // Arguments - The collection of override arguments to be used when executing the run. Arguments *[]Argument `json:"arguments,omitempty"` - // SourceLocation - The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - // If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - SourceLocation *string `json:"sourceLocation,omitempty"` - // Timeout - Build timeout in seconds. + // Timeout - Run timeout in seconds. Timeout *int32 `json:"timeout,omitempty"` - // Platform - The platform properties against which the build will happen. + // Platform - The platform properties against which the run has to happen. Platform *PlatformProperties `json:"platform,omitempty"` - // AgentConfiguration - The machine configuration of the build agent. + // AgentConfiguration - The machine configuration of the run agent. AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` + // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. + // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. + SourceLocation *string `json:"sourceLocation,omitempty"` // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not. IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest' @@ -597,9 +603,6 @@ func (dbr DockerBuildRequest) MarshalJSON() ([]byte, error) { if dbr.Arguments != nil { objectMap["arguments"] = dbr.Arguments } - if dbr.SourceLocation != nil { - objectMap["sourceLocation"] = dbr.SourceLocation - } if dbr.Timeout != nil { objectMap["timeout"] = dbr.Timeout } @@ -609,6 +612,9 @@ func (dbr DockerBuildRequest) MarshalJSON() ([]byte, error) { if dbr.AgentConfiguration != nil { objectMap["agentConfiguration"] = dbr.AgentConfiguration } + if dbr.SourceLocation != nil { + objectMap["sourceLocation"] = dbr.SourceLocation + } if dbr.IsArchiveEnabled != nil { objectMap["isArchiveEnabled"] = dbr.IsArchiveEnabled } @@ -660,11 +666,10 @@ type DockerBuildStep struct { DockerFilePath *string `json:"dockerFilePath,omitempty"` // Arguments - The collection of override arguments to be used when executing this build step. Arguments *[]Argument `json:"arguments,omitempty"` - // ContextPath - The URL(absolute or relative) of the source context for the build task. - // If it is relative, the context will be relative to the source repository URL of the build task. - ContextPath *string `json:"contextPath,omitempty"` // BaseImageDependencies - List of base image dependencies for a step. BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask' Type TypeBasicTaskStepProperties `json:"type,omitempty"` } @@ -688,12 +693,12 @@ func (dbs DockerBuildStep) MarshalJSON() ([]byte, error) { if dbs.Arguments != nil { objectMap["arguments"] = dbs.Arguments } - if dbs.ContextPath != nil { - objectMap["contextPath"] = dbs.ContextPath - } if dbs.BaseImageDependencies != nil { objectMap["baseImageDependencies"] = dbs.BaseImageDependencies } + if dbs.ContextPath != nil { + objectMap["contextPath"] = dbs.ContextPath + } if dbs.Type != "" { objectMap["type"] = dbs.Type } @@ -737,8 +742,7 @@ type DockerBuildStepUpdateParameters struct { DockerFilePath *string `json:"dockerFilePath,omitempty"` // Arguments - The collection of override arguments to be used when executing this build step. Arguments *[]Argument `json:"arguments,omitempty"` - // ContextPath - The URL(absolute or relative) of the source context for the build task. - // If it is relative, the context will be relative to the source repository URL of the build task. + // ContextPath - The URL(absolute or relative) of the source context for the task step. ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask' Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"` @@ -805,12 +809,15 @@ type EncodedTaskRunRequest struct { EncodedValuesContent *string `json:"encodedValuesContent,omitempty"` // Values - The collection of overridable values that can be passed when running a task. Values *[]SetValue `json:"values,omitempty"` - // Timeout - Build timeout in seconds. + // Timeout - Run timeout in seconds. Timeout *int32 `json:"timeout,omitempty"` - // Platform - The platform properties against which the build will happen. + // Platform - The platform properties against which the run has to happen. Platform *PlatformProperties `json:"platform,omitempty"` - // AgentConfiguration - The machine configuration of the build agent. + // AgentConfiguration - The machine configuration of the run agent. AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` + // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. + // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. + SourceLocation *string `json:"sourceLocation,omitempty"` // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not. IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest' @@ -839,6 +846,9 @@ func (etrr EncodedTaskRunRequest) MarshalJSON() ([]byte, error) { if etrr.AgentConfiguration != nil { objectMap["agentConfiguration"] = etrr.AgentConfiguration } + if etrr.SourceLocation != nil { + objectMap["sourceLocation"] = etrr.SourceLocation + } if etrr.IsArchiveEnabled != nil { objectMap["isArchiveEnabled"] = etrr.IsArchiveEnabled } @@ -888,6 +898,8 @@ type EncodedTaskStep struct { Values *[]SetValue `json:"values,omitempty"` // BaseImageDependencies - List of base image dependencies for a step. BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask' Type TypeBasicTaskStepProperties `json:"type,omitempty"` } @@ -908,6 +920,9 @@ func (ets EncodedTaskStep) MarshalJSON() ([]byte, error) { if ets.BaseImageDependencies != nil { objectMap["baseImageDependencies"] = ets.BaseImageDependencies } + if ets.ContextPath != nil { + objectMap["contextPath"] = ets.ContextPath + } if ets.Type != "" { objectMap["type"] = ets.Type } @@ -947,6 +962,8 @@ type EncodedTaskStepUpdateParameters struct { EncodedValuesContent *string `json:"encodedValuesContent,omitempty"` // Values - The collection of overridable values that can be passed when running a task. Values *[]SetValue `json:"values,omitempty"` + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask' Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"` } @@ -964,6 +981,9 @@ func (etsup EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { if etsup.Values != nil { objectMap["values"] = etsup.Values } + if etsup.ContextPath != nil { + objectMap["contextPath"] = etsup.ContextPath + } if etsup.Type != "" { objectMap["type"] = etsup.Type } @@ -1210,15 +1230,15 @@ type FileTaskRunRequest struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Values - The collection of overridable values that can be passed when running a task. Values *[]SetValue `json:"values,omitempty"` - // SourceLocation - The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - // If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - SourceLocation *string `json:"sourceLocation,omitempty"` - // Timeout - Build timeout in seconds. + // Timeout - Run timeout in seconds. Timeout *int32 `json:"timeout,omitempty"` - // Platform - The platform properties against which the build will happen. + // Platform - The platform properties against which the run has to happen. Platform *PlatformProperties `json:"platform,omitempty"` - // AgentConfiguration - The machine configuration of the build agent. + // AgentConfiguration - The machine configuration of the run agent. AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` + // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. + // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. + SourceLocation *string `json:"sourceLocation,omitempty"` // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not. IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest' @@ -1238,9 +1258,6 @@ func (ftrr FileTaskRunRequest) MarshalJSON() ([]byte, error) { if ftrr.Values != nil { objectMap["values"] = ftrr.Values } - if ftrr.SourceLocation != nil { - objectMap["sourceLocation"] = ftrr.SourceLocation - } if ftrr.Timeout != nil { objectMap["timeout"] = ftrr.Timeout } @@ -1250,6 +1267,9 @@ func (ftrr FileTaskRunRequest) MarshalJSON() ([]byte, error) { if ftrr.AgentConfiguration != nil { objectMap["agentConfiguration"] = ftrr.AgentConfiguration } + if ftrr.SourceLocation != nil { + objectMap["sourceLocation"] = ftrr.SourceLocation + } if ftrr.IsArchiveEnabled != nil { objectMap["isArchiveEnabled"] = ftrr.IsArchiveEnabled } @@ -1297,11 +1317,10 @@ type FileTaskStep struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Values - The collection of overridable values that can be passed when running a task. Values *[]SetValue `json:"values,omitempty"` - // ContextPath - The URL(absolute or relative) of the source context for the build task. - // If it is relative, the context will be relative to the source repository URL of the build task. - ContextPath *string `json:"contextPath,omitempty"` // BaseImageDependencies - List of base image dependencies for a step. BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask' Type TypeBasicTaskStepProperties `json:"type,omitempty"` } @@ -1319,12 +1338,12 @@ func (fts FileTaskStep) MarshalJSON() ([]byte, error) { if fts.Values != nil { objectMap["values"] = fts.Values } - if fts.ContextPath != nil { - objectMap["contextPath"] = fts.ContextPath - } if fts.BaseImageDependencies != nil { objectMap["baseImageDependencies"] = fts.BaseImageDependencies } + if fts.ContextPath != nil { + objectMap["contextPath"] = fts.ContextPath + } if fts.Type != "" { objectMap["type"] = fts.Type } @@ -1364,8 +1383,7 @@ type FileTaskStepUpdateParameters struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Values - The collection of overridable values that can be passed when running a task. Values *[]SetValue `json:"values,omitempty"` - // ContextPath - The URL(absolute or relative) of the source context for the build task. - // If it is relative, the context will be relative to the source repository URL of the build task. + // ContextPath - The URL(absolute or relative) of the source context for the task step. ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask' Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"` @@ -2729,7 +2747,7 @@ func (r *Run) UnmarshalJSON(body []byte) error { type RunFilter struct { // RunID - The unique identifier for the run. RunID *string `json:"runId,omitempty"` - // RunType - The type of run. Possible values include: 'QuickBuild', 'AutoBuild' + // RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' RunType RunType `json:"runType,omitempty"` // Status - The current status of the run. Possible values include: 'RunStatusQueued', 'RunStatusStarted', 'RunStatusRunning', 'RunStatusSucceeded', 'RunStatusFailed', 'RunStatusCanceled', 'RunStatusError', 'RunStatusTimeout' Status RunStatus `json:"status,omitempty"` @@ -2863,7 +2881,7 @@ type RunProperties struct { Status RunStatus `json:"status,omitempty"` // LastUpdatedTime - The last updated time for the run. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` - // RunType - The type of run. Possible values include: 'QuickBuild', 'AutoBuild' + // RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' RunType RunType `json:"runType,omitempty"` // CreateTime - The time the run was scheduled. CreateTime *date.Time `json:"createTime,omitempty"` @@ -2871,11 +2889,11 @@ type RunProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // FinishTime - The time the run finished. FinishTime *date.Time `json:"finishTime,omitempty"` - // OutputImages - The list of all images that were generated from the run. This is applicable if the run is of type Build. + // OutputImages - The list of all images that were generated from the run. This is applicable if the run generates base image dependencies. OutputImages *[]ImageDescriptor `json:"outputImages,omitempty"` // Task - The task against which run was scheduled. Task *string `json:"task,omitempty"` - // ImageUpdateTrigger - The image update trigger that caused the run. This is applicable if the task is of build type. + // ImageUpdateTrigger - The image update trigger that caused the run. This is applicable if the task has base image trigger configured. ImageUpdateTrigger *ImageUpdateTrigger `json:"imageUpdateTrigger,omitempty"` // SourceTrigger - The source trigger that caused the run. SourceTrigger *SourceTriggerDescriptor `json:"sourceTrigger,omitempty"` @@ -3100,7 +3118,7 @@ type SourceTrigger struct { SourceRepository *SourceProperties `json:"sourceRepository,omitempty"` // SourceTriggerEvents - The source event corresponding to the trigger. SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"` - // Status - The current status of build trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' + // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' Status TriggerStatus `json:"status,omitempty"` // Name - The name of the trigger. Name *string `json:"name,omitempty"` @@ -3130,7 +3148,7 @@ type SourceTriggerUpdateParameters struct { SourceRepository *SourceUpdateParameters `json:"sourceRepository,omitempty"` // SourceTriggerEvents - The source event corresponding to the trigger. SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"` - // Status - The current status of build trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' + // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled' Status TriggerStatus `json:"status,omitempty"` // Name - The name of the trigger. Name *string `json:"name,omitempty"` @@ -3719,6 +3737,8 @@ type BasicTaskStepProperties interface { type TaskStepProperties struct { // BaseImageDependencies - List of base image dependencies for a step. BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask' Type TypeBasicTaskStepProperties `json:"type,omitempty"` } @@ -3775,6 +3795,9 @@ func (tsp TaskStepProperties) MarshalJSON() ([]byte, error) { if tsp.BaseImageDependencies != nil { objectMap["baseImageDependencies"] = tsp.BaseImageDependencies } + if tsp.ContextPath != nil { + objectMap["contextPath"] = tsp.ContextPath + } if tsp.Type != "" { objectMap["type"] = tsp.Type } @@ -3816,6 +3839,8 @@ type BasicTaskStepUpdateParameters interface { // TaskStepUpdateParameters base properties for updating any task step. type TaskStepUpdateParameters struct { + // ContextPath - The URL(absolute or relative) of the source context for the task step. + ContextPath *string `json:"contextPath,omitempty"` // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask' Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"` } @@ -3869,6 +3894,9 @@ func unmarshalBasicTaskStepUpdateParametersArray(body []byte) ([]BasicTaskStepUp func (tsup TaskStepUpdateParameters) MarshalJSON() ([]byte, error) { tsup.Type = TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters objectMap := make(map[string]interface{}) + if tsup.ContextPath != nil { + objectMap["contextPath"] = tsup.ContextPath + } if tsup.Type != "" { objectMap["type"] = tsup.Type } @@ -3981,7 +4009,7 @@ func (tup *TaskUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// TriggerProperties the properties of a build trigger. +// TriggerProperties the properties of a trigger. type TriggerProperties struct { // SourceTriggers - The collection of triggers based on source code repository. SourceTriggers *[]SourceTrigger `json:"sourceTriggers,omitempty"` @@ -3989,7 +4017,7 @@ type TriggerProperties struct { BaseImageTrigger *BaseImageTrigger `json:"baseImageTrigger,omitempty"` } -// TriggerUpdateParameters the properties for updating build triggers. +// TriggerUpdateParameters the properties for updating triggers. type TriggerUpdateParameters struct { // SourceTriggers - The collection of triggers based on source code repository. SourceTriggers *[]SourceTriggerUpdateParameters `json:"sourceTriggers,omitempty"`