Skip to content

Conversation

@MiriBerezin
Copy link
Contributor

@MiriBerezin MiriBerezin commented Dec 12, 2021

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    - [x] new API version
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the 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 refresh required 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

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that label "WaitForARMFeedback" will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
  • 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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

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.

@openapi-workflow-bot
Copy link

Hi, @MiriBerezin 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-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Dec 12, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 16 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1252
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1293
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1331
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1376
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isEntire
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2746
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: publicContext
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2773
    ⚠️ R4000 - ParameterDescriptionRequired 'payload' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L584
    ⚠️ R4000 - ParameterDescriptionRequired 'payload' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L962
    ⚠️ R4000 - ParameterDescriptionRequired 'payload' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1085
    ⚠️ R4000 - ParameterDescriptionRequired 'payload' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1171
    ⚠️ R4000 - ParameterDescriptionRequired 'payload' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1216
    ⚠️ R4000 - ParameterDescriptionRequired 'stopSellSubscriptions' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1337
    ⚠️ R4021 - DescriptionAndTitleMissing 'newPlansNotifications' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2209
    ⚠️ R4021 - DescriptionAndTitleMissing 'subscriptionsIds' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2222
    ⚠️ R4021 - DescriptionAndTitleMissing 'stopSellNotifications' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2721
    ⚠️ R4021 - DescriptionAndTitleMissing 'subscriptions' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2792


    The following errors/warnings exist before current PR submission:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    R4037 - MissingTypeObject The schema 'PlanRequesterDetails' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1979
    R4037 - MissingTypeObject The schema 'display' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2909
    R4037 - MissingTypeObject The schema 'error' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2953
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2970
    R4039 - ParametersOrder The parameters:privateStoreId,offerId,collectionId should be kept in the same order as they present in the path.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L663
    R4039 - ParametersOrder The parameters:privateStoreId,offerId,collectionId should be kept in the same order as they present in the path.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L700
    R4039 - ParametersOrder The parameters:privateStoreId,offerId,collectionId should be kept in the same order as they present in the path.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L744
    R4039 - ParametersOrder The parameters:privateStoreId,offerId,collectionId should be kept in the same order as they present in the path.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L781
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStore_QueryOffers' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L172
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStore_BillingAccounts' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L210
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStoreCollection_TransferOffers' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L485
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStore_BulkCollectionsAction' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L578
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStore_GetApprovalRequestsList' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L833
    ⚠️ R1003 - ListInOperationName Since operation 'PrivateStore_AdminRequestApprovalsList' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1001
    ⚠️ R1005 - GetInOperationName 'GET' operation 'PrivateStore_AdminRequestApprovalsList' should use method name 'Get' or Method name start with 'List'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1001
    ⚠️ R1006 - PutInOperationName 'PUT' operation 'PrivateStore_UpdateAdminRequestApproval' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1076
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2178
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2664
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2938
    ⚠️ R2017 - PutRequestResponseScheme A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'PrivateStore_CreateOrUpdate' Request Model: 'PrivateStore' Response Model: ''
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L95
    ⚠️ R2029 - PageableOperation Based on the response model schema, operation 'PrivateStoreCollection_List' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L289
    ⚠️ R2029 - PageableOperation Based on the response model schema, operation 'PrivateStore_GetApprovalRequestsList' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L829
    ⚠️ R2029 - PageableOperation Based on the response model schema, operation 'PrivateStore_AdminRequestApprovalsList' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L997
    ⚠️ R2029 - PageableOperation Based on the response model schema, operation 'Operations_List' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1405
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L32
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L68
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L99
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L134
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L172
    ⚠️ R2063 - OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'PrivateStoreModel'. Consider using the plural form of 'PrivateStore' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L210
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️~[Staging] ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️❌Cross-Version Breaking Changes: 5 Errors, 2 Warnings failed [Detail]
    The following breaking changes are detected by comparison with the latest stable version:
    Rule Message
    1042 - ChangedParameterOrder The order of parameter 'payload' was changed.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L580:9
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L545:9
    1042 - ChangedParameterOrder The order of parameter 'payload' was changed.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L955:9
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L880:9
    1042 - ChangedParameterOrder The order of parameter 'payload' was changed.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1078:9
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L995:9
    1042 - ChangedParameterOrder The order of parameter 'payload' was changed.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1164:9
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L1079:9
    1042 - ChangedParameterOrder The order of parameter 'payload' was changed.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1209:9
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L1124:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L1419:13
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L1166:13
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.Marketplace/stable/2021-12-01/Marketplace.json#L2876:5
    Old: Microsoft.Marketplace/stable/2021-06-01/Marketplace.json#L2449:5
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Dec 12, 2021

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️❌SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-go-track2 - armmarketplace - 0.3.0
    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from baed104. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-6.0
      command	autorest --version=2.0.4421 --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/marketplace/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.Marketplace [View full logs]  [Release SDK Changes]
    ️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from baed104. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️armmarketplace [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Type of `SingleOperation.Properties` has been changed from `map[string]interface{}` to `interface{}`
      info	[Changelog] - Struct `ErrorResponse` has been removed
      info	[Changelog] - Struct `ErrorResponseError` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `SubscriptionStateWarned`
      info	[Changelog] - New const `SubscriptionStateDeleted`
      info	[Changelog] - New const `SubscriptionStatePastDue`
      info	[Changelog] - New const `SubscriptionStateEnabled`
      info	[Changelog] - New const `SubscriptionStateDisabled`
      info	[Changelog] - New function `*PrivateStoreClient.ListSubscriptionsContext(context.Context, string, *PrivateStoreClientListSubscriptionsContextOptions) (PrivateStoreClientListSubscriptionsContextResponse, error)`
      info	[Changelog] - New function `StopSellSubscriptions.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `SubscriptionsResponse.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*PrivateStoreClient.ListNewPlansNotifications(context.Context, string, *PrivateStoreClientListNewPlansNotificationsOptions) (PrivateStoreClientListNewPlansNotificationsResponse, error)`
      info	[Changelog] - New function `*PrivateStoreClient.FetchAllSubscriptionsInTenant(context.Context, string, *PrivateStoreClientFetchAllSubscriptionsInTenantOptions) (PrivateStoreClientFetchAllSubscriptionsInTenantResponse, error)`
      info	[Changelog] - New function `SubscriptionsContextList.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `NewPlansNotificationsList.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `PossibleSubscriptionStateValues() []SubscriptionState`
      info	[Changelog] - New function `StopSellOffersPlansNotificationsListProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `StopSellOffersPlansNotificationsList.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*PrivateStoreClient.ListStopSellOffersPlansNotifications(context.Context, string, *PrivateStoreClientListStopSellOffersPlansNotificationsOptions) (PrivateStoreClientListStopSellOffersPlansNotificationsResponse, error)`
      info	[Changelog] - New function `SubscriptionState.ToPtr() *SubscriptionState`
      info	[Changelog] - New struct `NewPlansNotificationsList`
      info	[Changelog] - New struct `PrivateStoreClientFetchAllSubscriptionsInTenantOptions`
      info	[Changelog] - New struct `PrivateStoreClientFetchAllSubscriptionsInTenantResponse`
      info	[Changelog] - New struct `PrivateStoreClientFetchAllSubscriptionsInTenantResult`
      info	[Changelog] - New struct `PrivateStoreClientListNewPlansNotificationsOptions`
      info	[Changelog] - New struct `PrivateStoreClientListNewPlansNotificationsResponse`
      info	[Changelog] - New struct `PrivateStoreClientListNewPlansNotificationsResult`
      info	[Changelog] - New struct `PrivateStoreClientListStopSellOffersPlansNotificationsOptions`
      info	[Changelog] - New struct `PrivateStoreClientListStopSellOffersPlansNotificationsResponse`
      info	[Changelog] - New struct `PrivateStoreClientListStopSellOffersPlansNotificationsResult`
      info	[Changelog] - New struct `PrivateStoreClientListSubscriptionsContextOptions`
      info	[Changelog] - New struct `PrivateStoreClientListSubscriptionsContextResponse`
      info	[Changelog] - New struct `PrivateStoreClientListSubscriptionsContextResult`
      info	[Changelog] - New struct `StopSellOffersPlansNotificationsList`
      info	[Changelog] - New struct `StopSellOffersPlansNotificationsListProperties`
      info	[Changelog] - New struct `StopSellSubscriptions`
      info	[Changelog] - New struct `Subscription`
      info	[Changelog] - New struct `SubscriptionsContextList`
      info	[Changelog] - New struct `SubscriptionsResponse`
      info	[Changelog]
      info	[Changelog] Total 5 breaking change(s), 55 additive change(s).
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from baed104. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️marketplace [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @MiriBerezin, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Dec 14, 2021
    @openapi-workflow-bot
    Copy link

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

    @MiriBerezin MiriBerezin marked this pull request as ready for review December 14, 2021 15:48
    }
    }
    },
    "/providers/Microsoft.Marketplace/privateStores/fetchAllSubscriptionsInTenant": {
    Copy link
    Member

    @mentat9 mentat9 Dec 14, 2021

    Choose a reason for hiding this comment

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

    fetchAllSubscriptionsInTenant

    This looks like a POST action, not GET. Did you intend to declare it as POST ? GETs are only applied to resource types. #Resolved

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    I sent an email to armapireview DL but did not get answer yet so I will ask my question here:

    The purpose of this API is to fetch ALL the subscriptions of the tenant ( unlike the get subscriptions API of subscriptions RP ).

    On the one hand, Subscription is not our RP resource, so cannot (and don't need) expose put/delete
    On the other hand, it is a pageable API and the call to the next page should always be GET.
    (according to this documentation)

    So what is the correct way to design this API?

    Maybe something like:
    GET providers/Microsoft.Marketplace/privetestores/{privateStoreId}/Subscriptions

    Copy link
    Member

    Choose a reason for hiding this comment

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

    Yes, I think that's probably the best way of doing what you want. That creates a RO resource type: Microsoft.Marketplace/privateStores/subscriptions (note 'subscriptions' is lower/camel case. It also requires that the objects returned in your list follow ARM resource format with name, id, and type at the top level and everything else in a "properties" object.

    You can also model this as a POST, but that requires you implement your own paging interfaces: Trying to use x-ms-pageable on a POST method still requires you to implement GET as you observed.

    Regarding your question to armapireview DL: please submit questions to stackoverflow (you can also send the link to armapireview for visibility). Guidance for posting on SO is here: https://armwiki.azurewebsites.net/troubleshooting/stackoverflow_guide.html#prerequisite.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    As this is not our resource I will use the POST option. Committed the change

    And thanks for the reference to SO :)

    "type": "object",
    "properties": {
    "offerId": {
    "description": "Gets offer id",
    Copy link
    Member

    @mentat9 mentat9 Dec 14, 2021

    Choose a reason for hiding this comment

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

    Gets

    Recommend removing "Gets". These are property descriptions not actions/methods. #Resolved

    Copy link
    Contributor Author

    @MiriBerezin MiriBerezin Dec 16, 2021

    Choose a reason for hiding this comment

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

    fixed

    "type": "boolean",
    "readOnly": true
    },
    "messageCode": {
    Copy link
    Member

    @mentat9 mentat9 Dec 14, 2021

    Choose a reason for hiding this comment

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

    messageCode

    Is this an id or a code? IOW, should it be messageId? #Resolved

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    Again we have this term - messageCode - in previous API version and we would like to stay with this term

    "type": "string",
    "description": "The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000."
    },
    "subscriptionId": {
    Copy link
    Member

    @mentat9 mentat9 Dec 14, 2021

    Choose a reason for hiding this comment

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

    subscriptionId

    ARM recommends against properties derived from other properties (subscriptionId is part of the id property). #Resolved

    Copy link
    Contributor Author

    @MiriBerezin MiriBerezin Dec 16, 2021

    Choose a reason for hiding this comment

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

    I copied it as is from Subscriptions RP documentation. I prefer to leave it as is

    "Disabled",
    "Deleted"
    ],
    "x-ms-enum": {
    Copy link
    Member

    @mentat9 mentat9 Dec 14, 2021

    Choose a reason for hiding this comment

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

    x-ms-enum

    You can add a description for each enum value as well. #Resolved

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    I think that the enum values are self-explained ( and I copied it as is from Subscriptions RP documentation)

    @mentat9 mentat9 added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Dec 17, 2021
    @openapi-workflow-bot
    Copy link

    Hi @MiriBerezin, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    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.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.

    @ruowan ruowan added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Dec 20, 2021
    @ghost
    Copy link

    ghost commented Jan 9, 2022

    Hi, @MiriBerezin. 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
    Copy link

    ghost commented Jan 30, 2022

    Hi, @MiriBerezin. 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.

    }
    },
    "@ts-common/iterator": {
    "version": "0.3.6",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    please do not change this file.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    removed changes that were committed by mistake

    @ruowan ruowan added Approved-OkToMerge <valid label in PR review process>add this label when assignee approve to merge the updates and removed CI-BreakingChange-Go-V2 labels Feb 17, 2022
    @ruowan
    Copy link
    Member

    ruowan commented Feb 28, 2022

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @ruowan ruowan merged commit baed104 into Azure:main Feb 28, 2022
    ghost pushed a commit to Azure/azure-resource-manager-schemas that referenced this pull request Feb 28, 2022
    FredericHeem pushed a commit to grucloud/azure-rest-api-specs that referenced this pull request Mar 7, 2022
    …on stable/2021-12-01 (Azure#17051)
    
    * Adds base for updating Microsoft.Marketplace from version stable/2021-06-01 to version 2021-12-01
    
    * Updates readme
    
    * Updates API version in new specs and examples
    
    * Adding new apis
    
    * Fix failed tests
    
    * revert parameters changes
    
    * missing object type
    
    * prettier
    
    * Fix review comments
    
    * fix semanticValidations test
    
    * fix to nextLink
    
    * changing fetchAllSubscriptions to post.
    Fix more comments
    
    * change to post and remove the pageable tag
    
    * revert changes in package-lock.json
    
    * Add x-ms-identifiers property
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 Approved-OkToMerge <valid label in PR review process>add this label when assignee approve to merge the updates ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go-V2 CI-FixRequiredOnFailure

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    3 participants