From 5e796fd694609b2cf561578695af21f4cb942772 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Nov 2020 03:01:03 +0000 Subject: [PATCH] CodeGen from PR 11433 in Azure/azure-rest-api-specs Updates advisor.Json to improve Documentation for Suppressions_Get operation (#11433) Co-authored-by: Yen-Chun Chang --- .../mgmt/2016-07-12-preview/advisor/models.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/models.go b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/models.go index bb8d1196f50a..e12f08190f24 100644 --- a/services/preview/advisor/mgmt/2016-07-12-preview/advisor/models.go +++ b/services/preview/advisor/mgmt/2016-07-12-preview/advisor/models.go @@ -209,8 +209,11 @@ func (page OperationEntityListResultPage) Values() []OperationEntity { } // Creates a new instance of the OperationEntityListResultPage type. -func NewOperationEntityListResultPage(getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage { - return OperationEntityListResultPage{fn: getNextPage} +func NewOperationEntityListResultPage(cur OperationEntityListResult, getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage { + return OperationEntityListResultPage{ + fn: getNextPage, + oelr: cur, + } } // RecommendationProperties the properties of the recommendation. @@ -543,8 +546,11 @@ func (page ResourceRecommendationBaseListResultPage) Values() []ResourceRecommen } // Creates a new instance of the ResourceRecommendationBaseListResultPage type. -func NewResourceRecommendationBaseListResultPage(getNextPage func(context.Context, ResourceRecommendationBaseListResult) (ResourceRecommendationBaseListResult, error)) ResourceRecommendationBaseListResultPage { - return ResourceRecommendationBaseListResultPage{fn: getNextPage} +func NewResourceRecommendationBaseListResultPage(cur ResourceRecommendationBaseListResult, getNextPage func(context.Context, ResourceRecommendationBaseListResult) (ResourceRecommendationBaseListResult, error)) ResourceRecommendationBaseListResultPage { + return ResourceRecommendationBaseListResultPage{ + fn: getNextPage, + rrblr: cur, + } } // ShortDescription a summary of the recommendation. @@ -555,8 +561,8 @@ type ShortDescription struct { Solution *string `json:"solution,omitempty"` } -// SuppressionContract the details of the snoozed or dismissed rule; for example, the duration, name, and GUID -// associated with the rule. +// SuppressionContract the details of the snoozed or dismissed rule; for example, the duration, name, and +// GUID associated with the rule. type SuppressionContract struct { autorest.Response `json:"-"` // SuppressionID - The GUID of the suppression.