Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev cost management microsoft.cost management 2020 12 01 preview new #12259

Conversation

absyed
Copy link
Contributor

@absyed absyed commented Dec 30, 2020

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@absyed absyed requested a review from lirenhe as a code owner December 30, 2020 19:44
@openapi-workflow-bot
Copy link

Hi, @absyed Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Dec 30, 2020

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 2 Warnings warning [Detail]

    Rule Message
    ⚠️ R2007 - LongRunningOperationsWithLongRunningExtension The operation 'GenerateDetailedCostReportOperationResults_Get' returns 202 status code, which indicates a long running operation, please enable 'x-ms-long-running-operation.
    New: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L123
    ⚠️ R2066 - PostOperationIdContainsUrlVerb OperationId should contain the verb: 'generatedetailedcostreport' in:'GenerateDetailedCostReport_CreateOperation'. Consider updating the operationId
    New: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L41
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Dec 30, 2020

    Swagger Generation Artifacts

    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from e366b9157aad5c2e123137050e52c40c1e56af8f. Schema Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      command	autorest --use=@autorest/[email protected] --version=3.0.6320 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/cost-management/resource-manager/readme.md
      cmdout	[Autorest] WARNING: Found duplicate definition for variable-named type Microsoft.CostManagement/reports. Skipping definition with path '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}'.
      cmdout	[Autorest] WARNING: Found duplicate definition for variable-named type Microsoft.CostManagement/reports. Using definition with path '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}'.
    • ️✔️cost-management [View full logs]  [Preview Schema Changes]
      cmderr	[resource-manager] node-pre-gyp
      cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
      cmderr	[resource-manager]  [email protected] No repository field.
      cmderr	[resource-manager]  SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
      cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      cmderr	[resource-manager] npm ERR! code ELIFECYCLE
      cmderr	[resource-manager] npm ERR! errno 9
      cmderr	[resource-manager]  [email protected] test: `mocha -r ts-node/register tests.ts`
      cmderr	[resource-manager] npm ERR! Exit status 9
      cmderr	[resource-manager] npm ERR!
      cmderr	[resource-manager] npm ERR! Failed at the [email protected] test script.
      cmderr	[resource-manager] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      cmderr	[resource-manager] npm ERR! A complete log of this run can be found in:
      cmderr	[resource-manager] npm ERR!     /home/vsts/.npm/_logs/2021-01-04T12_27_40_621Z-debug.log
      cmderr	[resource-manager] Error: Command failed: npm run test --prefix tools
      cmderr	[resource-manager]     at checkExecSyncError (child_process.js:635:11)
      cmderr	[resource-manager]     at Object.execSync (child_process.js:671:15)
      cmderr	[resource-manager]     at Object.<anonymous> (/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas/sdkauto_afterscript.js:13:28)
      cmderr	[resource-manager]     at Module._compile (internal/modules/cjs/loader.js:999:30)
      cmderr	[resource-manager]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
      cmderr	[resource-manager]     at Module.load (internal/modules/cjs/loader.js:863:32)
      cmderr	[resource-manager]     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
      cmderr	[resource-manager]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
      cmderr	[resource-manager]     at internal/main/run_main_module.js:17:47 {
      cmderr	[resource-manager]   status: 9,
      cmderr	[resource-manager]   signal: null,
      cmderr	[resource-manager]   output: [ null, null, null ],
      cmderr	[resource-manager]   pid: 3076,
      cmderr	[resource-manager]   stdout: null,
      cmderr	[resource-manager]   stderr: null
      cmderr	[resource-manager] }
    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from e366b9157aad5c2e123137050e52c40c1e56af8f. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/cost-management/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • ️✔️Microsoft.Azure.Management.CostManagement [View full logs]  [Preview SDK Changes]
    ️️✔️ azure-sdk-for-python succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from e366b9157aad5c2e123137050e52c40c1e56af8f. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      command	python3 -m venv venv
      command	pip install --upgrade setuptools wheel pip
      command	pip install pathlib jinja2 msrestazure
      command	autorest --version=V2 [email protected]/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk ../azure-rest-api-specs/specification/cost-management/resource-manager/readme.md
    • ️✔️azure-mgmt-costmanagement [View full logs]  [Preview SDK Changes] Breaking Change Detected
      cmderr	[buildConf] INFO:packaging_tools:Building template azure-mgmt-costmanagement
      cmderr	[buildConf] INFO:packaging_tools.conf:Skipping default conf since the file exists
      cmderr	[buildConf] INFO:packaging_tools:Skipping CHANGELOG.md template, since a previous one was found
      cmderr	[buildConf] INFO:packaging_tools:Template done azure-mgmt-costmanagement
      cmderr	[buildPackage] warning: no files found matching '*.py' under directory 'tests'
      cmderr	[buildPackage] warning: no files found matching '*.yaml' under directory 'tests'
      cmderr	[buildPackage] warning: no files found matching '*.py' under directory 'tests'
      cmderr	[buildPackage] warning: no files found matching '*.yaml' under directory 'tests'
      cmderr	[changelogSetup] WARNING: Skipping azure-nspkg as it is not installed.
      cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.costmanagement
      cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.costmanagement
      cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.costmanagement
      cmderr	[changelogReport] INFO:__main__:Report written to sdk/costmanagement/azure-mgmt-costmanagement/code_reports/latest/report.json
      cmderr	[changelogReportLatest] INFO:__main__:Download versions of azure-mgmt-costmanagement on PyPI
      cmderr	[changelogReportLatest] INFO:__main__:Got ['0.1.0', '0.2.0', '1.0.0b1']
      cmderr	[changelogReportLatest] INFO:__main__:Only keep last PyPI version
      cmderr	[changelogReportLatest] INFO:__main__:Installing version 0.2.0 of azure-mgmt-costmanagement in a venv
      cmderr	[changelogReportLatest] Cache entry deserialization failed, entry ignored
      cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.costmanagement
      cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.costmanagement
      cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.costmanagement
      cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/costmanagement/azure-mgmt-costmanagement/code_reports/0.2.0/report.json
      cmdout	[Changelog] Size of delta 65.127% size of original (original: 34284 chars, delta: 22328 chars)
      cmdout	[Changelog] **Features**
      cmdout	[Changelog]   - Model ExportExecution has a new parameter error
      cmdout	[Changelog]   - Model ExportExecution has a new parameter e_tag
      cmdout	[Changelog]   - Model Export has a new parameter run_history
      cmdout	[Changelog]   - Model Export has a new parameter e_tag
      cmdout	[Changelog]   - Model Export has a new parameter next_run_time_estimate
      cmdout	[Changelog]   - Model CommonExportProperties has a new parameter run_history
      cmdout	[Changelog]   - Model CommonExportProperties has a new parameter next_run_time_estimate
      cmdout	[Changelog]   - Added operation QueryOperations.usage_by_external_cloud_provider_type
      cmdout	[Changelog]   - Added operation DimensionsOperations.by_external_cloud_provider_type
      cmdout	[Changelog]   - Added operation group AlertsOperations
      cmdout	[Changelog]   - Added operation group ViewsOperations
      cmdout	[Changelog]   - Added operation group ForecastOperations
      cmdout	[Changelog] **Breaking changes**
      cmdout	[Changelog]   - Operation ExportsOperations.get has a new signature
      cmdout	[Changelog]   - Operation ExportsOperations.list has a new signature
      cmdout	[Changelog]   - Model ExportExecution no longer has parameter tags
      cmdout	[Changelog]   - Model Export no longer has parameter tags
      warn	Breaking change found in changelog
    ️️✔️ azure-cli-extensions succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from e366b9157aad5c2e123137050e52c40c1e56af8f. Azure CLI Automation 14.0.0
      Only show 120 items here, please refer to log for details.
      cmderr	[Autorest]     - name: /Alerts/get/BillingAccountAlerts
      cmderr	[Autorest]     - name: /Alerts/get/BillingProfileAlerts
      cmderr	[Autorest]     - name: /Alerts/get/DepartmentAlerts
      cmderr	[Autorest]     - name: /Alerts/get/EnrollmentAccountAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ExternalBillingAccountAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ExternalSubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/InvoiceSectionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/get/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/patch/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/patch/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ExternalBillingAccountDimensionList
      cmderr	[Autorest]     - name: /Dimensions/get/ExternalSubscriptionDimensionList
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ResourceGroupDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/SubscriptionDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateByBillingAccount
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateByDepartment
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateByManagementGroup
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateByResourceGroup
      cmderr	[Autorest]     - name: /Exports/put/ExportCreateOrUpdateBySubscription
      cmderr	[Autorest]     - name: /Exports/get/ExportGetByBillingAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportGetByDepartment
      cmderr	[Autorest]     - name: /Exports/get/ExportGetByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportGetByManagementGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportGetByResourceGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportGetBySubscription
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetByBillingAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetByDepartment
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetByManagementGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetByResourceGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportRunHistoryGetBySubscription
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetByBillingAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetByDepartment
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetByManagementGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetByResourceGroup
      cmderr	[Autorest]     - name: /Exports/get/ExportsGetBySubscription
      cmderr	[Autorest]     - name: /Exports/post/ExportRunByBillingAccount
      cmderr	[Autorest]     - name: /Exports/post/ExportRunByDepartment
      cmderr	[Autorest]     - name: /Exports/post/ExportRunByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/post/ExportRunByManagementGroup
      cmderr	[Autorest]     - name: /Exports/post/ExportRunByResourceGroup
      cmderr	[Autorest]     - name: /Exports/post/ExportRunBySubscription
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteByBillingAccount
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteByDepartment
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteByEnrollmentAccount
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteByManagementGroup
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteByResourceGroup
      cmderr	[Autorest]     - name: /Exports/delete/ExportDeleteBySubscription
      cmderr	[Autorest]     - name: /Forecast/post/BillingAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/BillingProfileForecast
      cmderr	[Autorest]     - name: /Forecast/post/DepartmentForecast
      cmderr	[Autorest]     - name: /Forecast/post/EnrollmentAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/ExternalBillingAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/ExternalSubscriptionForecast
      cmderr	[Autorest]     - name: /Forecast/post/InvoiceSectionForecast
      cmderr	[Autorest]     - name: /Forecast/post/ResourceGroupForecast
      cmderr	[Autorest]     - name: /Forecast/post/SubscriptionForecast
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingProfileQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingProfileQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/CustomerQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/CustomerQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/DepartmentQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/DepartmentQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/EnrollmentAccountQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/EnrollmentAccountQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/ExternalBillingAccountQueryList
      cmderr	[Autorest]     - name: /Query/post/ExternalSubscriptionsQuery
      cmderr	[Autorest]     - name: /Query/post/InvoiceSectionQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/InvoiceSectionQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/ManagementGroupQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/ManagementGroupQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/ResourceGroupQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/ResourceGroupQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/SubscriptionQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/SubscriptionQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Views/put/CreateOrUpdatePrivateView
      cmderr	[Autorest]     - name: /Views/put/ResourceGroupCreateOrUpdateView
      cmderr	[Autorest]     - name: /Views/get/PrivateView
      cmderr	[Autorest]     - name: /Views/get/PrivateViewList
      cmderr	[Autorest]     - name: /Views/get/ResourceGroupView
      cmderr	[Autorest]     - name: /Views/get/ResourceGroupViewList
      cmderr	[Autorest]     - name: /Views/delete/DeletePrivateView
      cmderr	[Autorest]     - name: /Views/delete/ResourceGroupDeleteView
      cmderr	[Autorest] --------------------------------------------------------
      cmderr	[Autorest] /bin/sh: 1: cd: can't cd to home/vsts/work/1/s/azure-rest-api-specs
      cmderr	[Autorest] fatal: not a git repository (or any of the parent directories): .git
      cmderr	[Autorest] fatal: not a git repository (or any of the parent directories): .git
    • ️✔️costmanagement [View full logs]  [Preview Azure CLI Changes]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from e366b9157aad5c2e123137050e52c40c1e56af8f. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	go run ./tools/generator/main.go ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️costmanagement/mgmt/2019-10-01/costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️preview/costmanagement/mgmt/2019-03-01/costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️costmanagement/mgmt/2019-01-01/costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️preview/costmanagement/mgmt/2018-08-01-preview/costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️costmanagement/mgmt/2018-05-31/costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi, @absyed your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]). cc @yungezz

    "description": "The URL to download the generated report.",
    "type": "string"
    },
    "validTill": {
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    perhaps consider a different name such as expirationDate, also might be worth adding the format as part of the description: e.g. 2020-10-01 01:01 UTC something like that.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Added more information in description

    "modelAsString": true
    }
    },
    "timePeriod": {
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    What happens when a POST operation has timePeriod and billingPeriod? which one wins? consider adding this info as part of the description.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    If the customer has both timePeriod and billingPeriod, API will return back a 400 and ask the client to only use one. This is what I have in description for them, let me know if I should update it "Can only have one of either timePeriod or invoiceId or billingPeriod parameters."

    }
    }
    },
    "Resource": {
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Curious why all properties are readOnly?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Keeping it consistent with how it already has been defined in costmangement.json

    @yungezz
    Copy link
    Member

    yungezz commented Jan 4, 2021

    Need ARM review since new API version added. hi @absyed, could you pls fix LintDiff CI failure?

    @openapi-workflow-bot
    Copy link

    Hi @absyed, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @jorgecotillo
    Copy link
    Contributor

    ARM signed off

    @jorgecotillo jorgecotillo added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jan 4, 2021

    These settings apply only when `--tag=package-preview-2020-12` is specified on the command line.

    ```yaml $(tag) == 'package-preview-2020-12'
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    why this preview tag contains table version Swaggers?

    @yungezz
    Copy link
    Member

    yungezz commented Jan 5, 2021

    hi @msyyc could you pls check impact to Python SDK? thanks

    @yungezz yungezz added the DoNotMerge <valid label in PR review process> use to hold merge after approval label Jan 5, 2021
    @msyyc
    Copy link
    Member

    msyyc commented Jan 5, 2021

    hi @msyyc could you pls check impact to Python SDK? thanks

    It's ok for Python

    @ghost
    Copy link

    ghost commented Jan 24, 2021

    Hi, @absyed. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

    @ghost ghost added the no-recent-activity label Jan 24, 2021
    @absyed
    Copy link
    Contributor Author

    absyed commented Jan 25, 2021

    hi @msyyc could you pls check impact to Python SDK? thanks

    It's ok for Python

    @yungezz anything else missing here

    @yungezz
    Copy link
    Member

    yungezz commented Jan 25, 2021

    hi @msyyc could you pls check impact to Python SDK? thanks

    It's ok for Python

    @yungezz anything else missing here

    HI @absyed, is service side change on Prod now? If yes, the PR is ok to merge. I'll remove donotmerge label then.

    @msyyc
    Copy link
    Member

    msyyc commented Jan 25, 2021

    For python, the breaking change is not caused by this PR

    @absyed
    Copy link
    Contributor Author

    absyed commented Feb 2, 2021

    hi @msyyc could you pls check impact to Python SDK? thanks

    It's ok for Python

    @yungezz anything else missing here

    HI @absyed, is service side change on Prod now? If yes, the PR is ok to merge. I'll remove donotmerge label then.

    Hi @yungezz, server side changes are in Production now and the PR is Ok to be merged in.

    "description": "The URL to check the status of the asynchronous operation.",
    "type": "string"
    },
    "Azure-AsyncOperation": {
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    what's difference between Azure-AsyncOperation and Azure-Consumption-AsyncOperation?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    The both return the same value.
    We have been offering both headers for this service for some time, so am maintaining consistency here.

    @yungezz yungezz removed the DoNotMerge <valid label in PR review process> use to hold merge after approval label Feb 2, 2021
    @ghost ghost removed the no-recent-activity label Feb 2, 2021
    @yungezz
    Copy link
    Member

    yungezz commented Feb 2, 2021

    hi @absyed, before merging, one thing to confirm, about the swagger file name costmanagement.generatedetailedcostreport.json , why it's naming as xxx.xxx.json, since normal swagger file is just <resourcename>.json. No idea of impact of it, I saw cost management has swagger file name in that format already

    @absyed
    Copy link
    Contributor Author

    absyed commented Feb 2, 2021

    hi @absyed, before merging, one thing to confirm, about the swagger file name costmanagement.generatedetailedcostreport.json , why it's naming as xxx.xxx.json, since normal swagger file is just <resourcename>.json. No idea of impact of it, I saw cost management has swagger file name in that format already

    Hi @yungezz, this is following the costmanagement.export.json which already exist. In this new preview API version is the first time generatedetailedcostreport API is being introduced.

    @absyed
    Copy link
    Contributor Author

    absyed commented Feb 8, 2021

    @lirenhe can you please let me know if there is anything else required for this PR to be checked in?

    @yungezz yungezz merged commit 6bb1040 into Azure:master Feb 10, 2021
    iscai-msft added a commit to iscai-msft/azure-rest-api-specs that referenced this pull request Feb 10, 2021
    …into fix_resource_multiapi_submodule
    
    * 'master' of https://github.com/Azure/azure-rest-api-specs: (452 commits)
      Dev cost management microsoft.cost management 2020 12 01 preview new (Azure#12259)
      Edit securityContact swagger for 2020-01-01 (Azure#12265)
      [Hub Generated] Review request for Microsoft.Insights to add version stable/2020-10-01 (Azure#11579)
      [Hub Generated] Review request for Microsoft.Media to add version stable/2020-05-01 (Azure#12681)
      Fix TimeSeriesInsights swagger issues (Azure#12204)
      Fixing error in lastModifiedAt description (Azure#12854)
      Update comment.yml (Azure#12910)
      Fixing RI s360 Flagged corrections in 2019-10-01 version (Azure#12777)
      [Hub Generated] Review request for Microsoft.Web to add version stable/2020-10-01 (Azure#11636)
      [Ready For Review] New version 20210101 (Azure#12111)
      Update scheduledQueryRule_API.json (Azure#12895)
      Remove UserAssigned MSI (Azure#12900)
      Update library.json (Azure#12922)
      KeyVault: Feature/update security domain spec (Azure#12863)
      Fixes ExampleId type and incorrect ArmTokenParameter name (Azure#12896)
      Update contract for anomaly detector (Azure#12487)
      [NetAppFiles] Urgent bug fix, backup response, remove systemData(not in response yet) (Azure#12852)
      [AML] Add PipelineEndpoint with version and DataPathAssignments fields in AzureMLExecutePipeline (Azure#12744)
      remove duplicated schema (Azure#12779)
      [Web] Add Swagger for Service Principal (Azure#12780)
      ...
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Python
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    4 participants