From a7f8d230e2e810de56b3233484e10e559f38478a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 10 Aug 2018 14:53:50 -0700 Subject: [PATCH] Generated from 7f91113e2307757835762f54c1b5ce165d189ee5 (#2442) Adding property syncType, and removing property startType from SourceControlSyncJobs. Renaming property syncJobStreamId to sourceControlSyncJobStreamId and updating example to reflect the changes. --- .../automation/mgmt/automation/models.go | 18 +++---- .../2017-05-15-preview/automation/models.go | 50 +++++++++---------- .../mgmt/2018-01-preview/automation/models.go | 50 +++++++++---------- 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/profiles/preview/preview/automation/mgmt/automation/models.go b/profiles/preview/preview/automation/mgmt/automation/models.go index 49b916d6a1d3..30947c33ef66 100644 --- a/profiles/preview/preview/automation/mgmt/automation/models.go +++ b/profiles/preview/preview/automation/mgmt/automation/models.go @@ -301,18 +301,18 @@ const ( VsoTfvc SourceType = original.VsoTfvc ) -type StartType = original.StartType +type StreamType = original.StreamType const ( - AutoSync StartType = original.AutoSync - ManualSync StartType = original.ManualSync + StreamTypeError StreamType = original.StreamTypeError + StreamTypeOutput StreamType = original.StreamTypeOutput ) -type StreamType = original.StreamType +type SyncType = original.SyncType const ( - StreamTypeError StreamType = original.StreamTypeError - StreamTypeOutput StreamType = original.StreamTypeOutput + FullSync SyncType = original.FullSync + PartialSync SyncType = original.PartialSync ) type TokenType = original.TokenType @@ -793,12 +793,12 @@ func PossibleSkuNameEnumValues() []SkuNameEnum { func PossibleSourceTypeValues() []SourceType { return original.PossibleSourceTypeValues() } -func PossibleStartTypeValues() []StartType { - return original.PossibleStartTypeValues() -} func PossibleStreamTypeValues() []StreamType { return original.PossibleStreamTypeValues() } +func PossibleSyncTypeValues() []SyncType { + return original.PossibleSyncTypeValues() +} func PossibleTokenTypeValues() []TokenType { return original.PossibleTokenTypeValues() } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go index de36f1dd3ccb..4cc053dba85b 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/models.go @@ -561,21 +561,6 @@ func PossibleSourceTypeValues() []SourceType { return []SourceType{GitHub, VsoGit, VsoTfvc} } -// StartType enumerates the values for start type. -type StartType string - -const ( - // AutoSync ... - AutoSync StartType = "AutoSync" - // ManualSync ... - ManualSync StartType = "ManualSync" -) - -// PossibleStartTypeValues returns an array of possible values for the StartType const type. -func PossibleStartTypeValues() []StartType { - return []StartType{AutoSync, ManualSync} -} - // StreamType enumerates the values for stream type. type StreamType string @@ -591,6 +576,21 @@ func PossibleStreamTypeValues() []StreamType { return []StreamType{StreamTypeError, StreamTypeOutput} } +// SyncType enumerates the values for sync type. +type SyncType string + +const ( + // FullSync ... + FullSync SyncType = "FullSync" + // PartialSync ... + PartialSync SyncType = "PartialSync" +) + +// PossibleSyncTypeValues returns an array of possible values for the SyncType const type. +func PossibleSyncTypeValues() []SyncType { + return []SyncType{FullSync, PartialSync} +} + // TokenType enumerates the values for token type. type TokenType string @@ -7474,8 +7474,8 @@ type SourceControlSyncJobByIDProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // StartType - The type of start for the sync job. Possible values include: 'AutoSync', 'ManualSync' - StartType StartType `json:"startType,omitempty"` + // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occured while running the sync job. Exception *string `json:"exception,omitempty"` } @@ -7639,8 +7639,8 @@ type SourceControlSyncJobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // StartType - The type of start for the sync job. Possible values include: 'AutoSync', 'ManualSync' - StartType StartType `json:"startType,omitempty"` + // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + SyncType SyncType `json:"syncType,omitempty"` } // SourceControlSyncJobStream definition of the source control sync job stream. @@ -7752,8 +7752,8 @@ func (scsjsbi *SourceControlSyncJobStreamByID) UnmarshalJSON(body []byte) error // SourceControlSyncJobStreamByIDProperties definition of source control sync job stream by id properties. type SourceControlSyncJobStreamByIDProperties struct { - // SyncJobStreamID - The sync job stream id. - SyncJobStreamID *string `json:"syncJobStreamId,omitempty"` + // SourceControlSyncJobStreamID - The sync job stream id. + SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - The time of the sync job stream. @@ -7769,8 +7769,8 @@ type SourceControlSyncJobStreamByIDProperties struct { // MarshalJSON is the custom marshaler for SourceControlSyncJobStreamByIDProperties. func (scsjsbip SourceControlSyncJobStreamByIDProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if scsjsbip.SyncJobStreamID != nil { - objectMap["syncJobStreamId"] = scsjsbip.SyncJobStreamID + if scsjsbip.SourceControlSyncJobStreamID != nil { + objectMap["sourceControlSyncJobStreamId"] = scsjsbip.SourceControlSyncJobStreamID } if scsjsbip.Summary != nil { objectMap["summary"] = scsjsbip.Summary @@ -7792,8 +7792,8 @@ func (scsjsbip SourceControlSyncJobStreamByIDProperties) MarshalJSON() ([]byte, // SourceControlSyncJobStreamProperties definition of source control sync job stream properties. type SourceControlSyncJobStreamProperties struct { - // SyncJobStreamID - The sync job stream id. - SyncJobStreamID *string `json:"syncJobStreamId,omitempty"` + // SourceControlSyncJobStreamID - The sync job stream id. + SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - The time of the sync job stream. diff --git a/services/preview/automation/mgmt/2018-01-preview/automation/models.go b/services/preview/automation/mgmt/2018-01-preview/automation/models.go index cdc16fbfc5cf..11da9da738fa 100644 --- a/services/preview/automation/mgmt/2018-01-preview/automation/models.go +++ b/services/preview/automation/mgmt/2018-01-preview/automation/models.go @@ -576,21 +576,6 @@ func PossibleSourceTypeValues() []SourceType { return []SourceType{GitHub, VsoGit, VsoTfvc} } -// StartType enumerates the values for start type. -type StartType string - -const ( - // AutoSync ... - AutoSync StartType = "AutoSync" - // ManualSync ... - ManualSync StartType = "ManualSync" -) - -// PossibleStartTypeValues returns an array of possible values for the StartType const type. -func PossibleStartTypeValues() []StartType { - return []StartType{AutoSync, ManualSync} -} - // StreamType enumerates the values for stream type. type StreamType string @@ -606,6 +591,21 @@ func PossibleStreamTypeValues() []StreamType { return []StreamType{StreamTypeError, StreamTypeOutput} } +// SyncType enumerates the values for sync type. +type SyncType string + +const ( + // FullSync ... + FullSync SyncType = "FullSync" + // PartialSync ... + PartialSync SyncType = "PartialSync" +) + +// PossibleSyncTypeValues returns an array of possible values for the SyncType const type. +func PossibleSyncTypeValues() []SyncType { + return []SyncType{FullSync, PartialSync} +} + // TokenType enumerates the values for token type. type TokenType string @@ -7952,8 +7952,8 @@ type SourceControlSyncJobByIDProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // StartType - The type of start for the sync job. Possible values include: 'AutoSync', 'ManualSync' - StartType StartType `json:"startType,omitempty"` + // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occured while running the sync job. Exception *string `json:"exception,omitempty"` } @@ -8117,8 +8117,8 @@ type SourceControlSyncJobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // StartType - The type of start for the sync job. Possible values include: 'AutoSync', 'ManualSync' - StartType StartType `json:"startType,omitempty"` + // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + SyncType SyncType `json:"syncType,omitempty"` } // SourceControlSyncJobStream definition of the source control sync job stream. @@ -8230,8 +8230,8 @@ func (scsjsbi *SourceControlSyncJobStreamByID) UnmarshalJSON(body []byte) error // SourceControlSyncJobStreamByIDProperties definition of source control sync job stream by id properties. type SourceControlSyncJobStreamByIDProperties struct { - // SyncJobStreamID - The sync job stream id. - SyncJobStreamID *string `json:"syncJobStreamId,omitempty"` + // SourceControlSyncJobStreamID - The sync job stream id. + SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - The time of the sync job stream. @@ -8247,8 +8247,8 @@ type SourceControlSyncJobStreamByIDProperties struct { // MarshalJSON is the custom marshaler for SourceControlSyncJobStreamByIDProperties. func (scsjsbip SourceControlSyncJobStreamByIDProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if scsjsbip.SyncJobStreamID != nil { - objectMap["syncJobStreamId"] = scsjsbip.SyncJobStreamID + if scsjsbip.SourceControlSyncJobStreamID != nil { + objectMap["sourceControlSyncJobStreamId"] = scsjsbip.SourceControlSyncJobStreamID } if scsjsbip.Summary != nil { objectMap["summary"] = scsjsbip.Summary @@ -8270,8 +8270,8 @@ func (scsjsbip SourceControlSyncJobStreamByIDProperties) MarshalJSON() ([]byte, // SourceControlSyncJobStreamProperties definition of source control sync job stream properties. type SourceControlSyncJobStreamProperties struct { - // SyncJobStreamID - The sync job stream id. - SyncJobStreamID *string `json:"syncJobStreamId,omitempty"` + // SourceControlSyncJobStreamID - The sync job stream id. + SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - The time of the sync job stream.