From d7182f8115d7c96a10d3a0b3c768c3c38b5b6d10 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 4 Dec 2020 02:30:35 +0000 Subject: [PATCH] CodeGen from PR 11753 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2020-06-01 (#11753) * Creating separate swagger file for exports * add exports swagger to readme * edit api version * add "TheLast7Days" to exports timeframes * remove 'TheLast7Days' from export timeframes * prettier fix * prettier fix 2 * Fix for swagger correctness: eTag property missing and recurrence not required --- .../mgmt/2019-10-01/costmanagement/CHANGELOG.md | 7 +++++++ .../mgmt/2019-10-01/costmanagement/models.go | 14 +++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md new file mode 100644 index 000000000000..3430499dd2dd --- /dev/null +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/CHANGELOG.md @@ -0,0 +1,7 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 + +Code generator @microsoft.azure/autorest.go@~2.1.161 + +## Breaking Changes + +- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go index 3fd3818162a3..4b7bfc0f9c33 100644 --- a/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go +++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go @@ -381,7 +381,8 @@ type ExportExecutionProperties struct { RunSettings *CommonExportProperties `json:"runSettings,omitempty"` } -// ExportListResult result of listing exports. It contains a list of available exports in the scope provided. +// ExportListResult result of listing exports. It contains a list of available exports in the scope +// provided. type ExportListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; The list of exports. @@ -445,8 +446,8 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } -// OperationListResult result of listing cost management operations. It contains a list of operations and a URL -// link to get the next set of results. +// OperationListResult result of listing cost management operations. It contains a list of operations and a +// URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of cost management operations supported by the Microsoft.CostManagement resource provider. @@ -598,8 +599,11 @@ func (page OperationListResultPage) Values() []Operation { } // Creates a new instance of the OperationListResultPage type. -func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { - return OperationListResultPage{fn: getNextPage} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } } // QueryAggregation the aggregation expression to be used in the query.