From f293435e1caa02dcc2e58dcdf46bfe689715737f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Nov 2020 03:00:20 +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 --- .../advisor/mgmt/2017-04-19/advisor/models.go | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/services/advisor/mgmt/2017-04-19/advisor/models.go b/services/advisor/mgmt/2017-04-19/advisor/models.go index ee9b0d06a8ea..9f1d53ef3d3f 100644 --- a/services/advisor/mgmt/2017-04-19/advisor/models.go +++ b/services/advisor/mgmt/2017-04-19/advisor/models.go @@ -274,8 +274,11 @@ func (page ConfigurationListResultPage) Values() []ConfigData { } // Creates a new instance of the ConfigurationListResultPage type. -func NewConfigurationListResultPage(getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage { - return ConfigurationListResultPage{fn: getNextPage} +func NewConfigurationListResultPage(cur ConfigurationListResult, getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage { + return ConfigurationListResultPage{ + fn: getNextPage, + clr: cur, + } } // MetadataEntity the metadata entity contract. @@ -511,8 +514,11 @@ func (page MetadataEntityListResultPage) Values() []MetadataEntity { } // Creates a new instance of the MetadataEntityListResultPage type. -func NewMetadataEntityListResultPage(getNextPage func(context.Context, MetadataEntityListResult) (MetadataEntityListResult, error)) MetadataEntityListResultPage { - return MetadataEntityListResultPage{fn: getNextPage} +func NewMetadataEntityListResultPage(cur MetadataEntityListResult, getNextPage func(context.Context, MetadataEntityListResult) (MetadataEntityListResult, error)) MetadataEntityListResultPage { + return MetadataEntityListResultPage{ + fn: getNextPage, + melr: cur, + } } // MetadataEntityProperties the metadata entity properties @@ -707,8 +713,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. @@ -1012,8 +1021,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, + } } // SetObject ... @@ -1030,8 +1042,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:"-"` // SuppressionProperties - The properties of the suppression. @@ -1113,7 +1125,8 @@ type SuppressionContractListResult struct { Value *[]SuppressionContract `json:"value,omitempty"` } -// SuppressionContractListResultIterator provides access to a complete listing of SuppressionContract values. +// SuppressionContractListResultIterator provides access to a complete listing of SuppressionContract +// values. type SuppressionContractListResultIterator struct { i int page SuppressionContractListResultPage @@ -1256,8 +1269,11 @@ func (page SuppressionContractListResultPage) Values() []SuppressionContract { } // Creates a new instance of the SuppressionContractListResultPage type. -func NewSuppressionContractListResultPage(getNextPage func(context.Context, SuppressionContractListResult) (SuppressionContractListResult, error)) SuppressionContractListResultPage { - return SuppressionContractListResultPage{fn: getNextPage} +func NewSuppressionContractListResultPage(cur SuppressionContractListResult, getNextPage func(context.Context, SuppressionContractListResult) (SuppressionContractListResult, error)) SuppressionContractListResultPage { + return SuppressionContractListResultPage{ + fn: getNextPage, + sclr: cur, + } } // SuppressionProperties the properties of the suppression.