From ad3974bbfbec3f083646f8b807c8b2b9416c55d7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 16 Oct 2018 15:21:37 -0700 Subject: [PATCH] Generated from 38e72e8bf46e5fcbea6f9cfda52f6f98e3560a24 (#3043) Removing PartialSync and adding IncrementalSync for sync type. Also, updating examples. --- .../preview/automation/mgmt/automation/models.go | 4 ++-- .../mgmt/2015-10-31/automation/runbookdraft.go | 8 -------- .../mgmt/2017-05-15-preview/automation/models.go | 10 +++++----- .../mgmt/2017-05-15-preview/automation/runbookdraft.go | 8 -------- .../2018-01-15-preview/automation/dsccompilationjob.go | 4 ---- .../automation/dscnodeconfiguration.go | 4 ---- .../mgmt/2018-01-15-preview/automation/models.go | 10 +++++----- .../mgmt/2018-01-15-preview/automation/runbookdraft.go | 8 -------- .../2018-06-30-preview/automation/dsccompilationjob.go | 4 ---- .../automation/dscnodeconfiguration.go | 4 ---- .../mgmt/2018-06-30-preview/automation/models.go | 10 +++++----- .../mgmt/2018-06-30-preview/automation/runbook.go | 4 ---- .../mgmt/2018-06-30-preview/automation/runbookdraft.go | 4 ---- 13 files changed, 17 insertions(+), 65 deletions(-) diff --git a/profiles/preview/preview/automation/mgmt/automation/models.go b/profiles/preview/preview/automation/mgmt/automation/models.go index 50d42928e82e..b3cc8e627bcf 100644 --- a/profiles/preview/preview/automation/mgmt/automation/models.go +++ b/profiles/preview/preview/automation/mgmt/automation/models.go @@ -318,8 +318,8 @@ const ( type SyncType = original.SyncType const ( - FullSync SyncType = original.FullSync - PartialSync SyncType = original.PartialSync + FullSync SyncType = original.FullSync + IncrementalSync SyncType = original.IncrementalSync ) type TagOperators = original.TagOperators diff --git a/services/automation/mgmt/2015-10-31/automation/runbookdraft.go b/services/automation/mgmt/2015-10-31/automation/runbookdraft.go index ce3d3f111c44..93da52e05fd3 100644 --- a/services/automation/mgmt/2015-10-31/automation/runbookdraft.go +++ b/services/automation/mgmt/2015-10-31/automation/runbookdraft.go @@ -254,10 +254,6 @@ func (client RunbookDraftClient) PublishSender(req *http.Request) (future Runboo if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } @@ -337,10 +333,6 @@ func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } 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 1fb788f57f3c..6285091a8f82 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 @@ -582,13 +582,13 @@ type SyncType string const ( // FullSync ... FullSync SyncType = "FullSync" - // PartialSync ... - PartialSync SyncType = "PartialSync" + // IncrementalSync ... + IncrementalSync SyncType = "IncrementalSync" ) // PossibleSyncTypeValues returns an array of possible values for the SyncType const type. func PossibleSyncTypeValues() []SyncType { - return []SyncType{FullSync, PartialSync} + return []SyncType{FullSync, IncrementalSync} } // TagOperators enumerates the values for tag operators. @@ -7499,7 +7499,7 @@ type SourceControlSyncJobByIDProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occured while running the sync job. Exception *string `json:"exception,omitempty"` @@ -7664,7 +7664,7 @@ type SourceControlSyncJobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` } diff --git a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go index ce3d3f111c44..93da52e05fd3 100644 --- a/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2017-05-15-preview/automation/runbookdraft.go @@ -254,10 +254,6 @@ func (client RunbookDraftClient) PublishSender(req *http.Request) (future Runboo if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } @@ -337,10 +333,6 @@ func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go index 673577eaafd8..8658c0cad704 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dsccompilationjob.go @@ -107,10 +107,6 @@ func (client DscCompilationJobClient) CreateSender(req *http.Request) (future Ds if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go index 673ece89dfda..e888952495ef 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/dscnodeconfiguration.go @@ -113,10 +113,6 @@ func (client DscNodeConfigurationClient) CreateOrUpdateSender(req *http.Request) if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go index b8f74a884091..ae7697a1a840 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/models.go @@ -597,13 +597,13 @@ type SyncType string const ( // FullSync ... FullSync SyncType = "FullSync" - // PartialSync ... - PartialSync SyncType = "PartialSync" + // IncrementalSync ... + IncrementalSync SyncType = "IncrementalSync" ) // PossibleSyncTypeValues returns an array of possible values for the SyncType const type. func PossibleSyncTypeValues() []SyncType { - return []SyncType{FullSync, PartialSync} + return []SyncType{FullSync, IncrementalSync} } // TagOperators enumerates the values for tag operators. @@ -7977,7 +7977,7 @@ type SourceControlSyncJobByIDProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occured while running the sync job. Exception *string `json:"exception,omitempty"` @@ -8142,7 +8142,7 @@ type SourceControlSyncJobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` } diff --git a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go index b7b8a43ff956..54200a547d14 100644 --- a/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2018-01-15-preview/automation/runbookdraft.go @@ -254,10 +254,6 @@ func (client RunbookDraftClient) PublishSender(req *http.Request) (future Runboo if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } @@ -337,10 +333,6 @@ func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go index 673577eaafd8..8658c0cad704 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dsccompilationjob.go @@ -107,10 +107,6 @@ func (client DscCompilationJobClient) CreateSender(req *http.Request) (future Ds if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go index 673ece89dfda..e888952495ef 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/dscnodeconfiguration.go @@ -113,10 +113,6 @@ func (client DscNodeConfigurationClient) CreateOrUpdateSender(req *http.Request) if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go index 2e233306a1f1..2905f47e70ec 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/models.go @@ -597,13 +597,13 @@ type SyncType string const ( // FullSync ... FullSync SyncType = "FullSync" - // PartialSync ... - PartialSync SyncType = "PartialSync" + // IncrementalSync ... + IncrementalSync SyncType = "IncrementalSync" ) // PossibleSyncTypeValues returns an array of possible values for the SyncType const type. func PossibleSyncTypeValues() []SyncType { - return []SyncType{FullSync, PartialSync} + return []SyncType{FullSync, IncrementalSync} } // TagOperators enumerates the values for tag operators. @@ -8051,7 +8051,7 @@ type SourceControlSyncJobByIDProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occured while running the sync job. Exception *string `json:"exception,omitempty"` @@ -8216,7 +8216,7 @@ type SourceControlSyncJobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // SyncType - The sync type. Possible values include: 'PartialSync', 'FullSync' + // SyncType - The sync type. Possible values include: 'IncrementalSync', 'FullSync' SyncType SyncType `json:"syncType,omitempty"` } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go index 1359d52c5840..57dcd211df53 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbook.go @@ -530,10 +530,6 @@ func (client RunbookClient) PublishSender(req *http.Request) (future RunbookPubl if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return } diff --git a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go index 7f8f4b641a2b..8ecd48a2c073 100644 --- a/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go +++ b/services/preview/automation/mgmt/2018-06-30-preview/automation/runbookdraft.go @@ -257,10 +257,6 @@ func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future if err != nil { return } - err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - if err != nil { - return - } future.Future, err = azure.NewFutureFromResponse(resp) return }