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

[OperationalInsights] Add stable version for query packs #17923

Merged
merged 20 commits into from
Mar 15, 2022

Conversation

dabenhamMic
Copy link
Contributor

@dabenhamMic dabenhamMic commented Feb 21, 2022

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

Changelog

Add a changelog entry for 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 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 a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.
  • 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, @dabenhamMic 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 Feb 21, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 4 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ R1003 - ListInOperationName Since operation 'Queries_Search' response has model definition 'x-ms-pageable', 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.OperationalInsights/stable/2019-09-01/QueryPackQueries.json#L91
    ⚠️ R1006 - PutInOperationName 'PUT' operation 'Queries_Put' 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.OperationalInsights/stable/2019-09-01/QueryPackQueries.json#L191
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.OperationalInsights/stable/2019-09-01/QueryPackQueries.json#L452
    ⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'queries' with immediate parent 'LogAnalyticsQueryPack', must have a list by immediate parent operation.
    Location: Microsoft.OperationalInsights/stable/2019-09-01/QueryPackQueries.json#L356
    ️❌Avocado: 2 Errors, 1 Warnings failed [Detail]
    Rule Message
    NOT_LATEST_API_VERSION_IN_DEFAULT_TAG The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.
    readme: specification/operationalinsights/resource-manager/readme.md
    json: Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json
    NOT_LATEST_API_VERSION_IN_DEFAULT_TAG The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.
    readme: specification/operationalinsights/resource-manager/readme.md
    json: Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/operationalinsights/resource-manager/readme.md
    tag: specification/operationalinsights/resource-manager/readme.md#tag-package-2022-02
    ️️✔️~[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: 2 Warnings warning [Detail]
    Rule Message
    ⚠️ APIsBeingMovedToANewSpec "details":"Attention: There are some existing APIs currently documented in a new spec file. The validation may not be able to report breaking changes with these APIs. It is recommended not to rename swagger file or move public APIs to a new file when creating a new API version.The existing APIs being moved are:Queries_Get,
    Queries_Put,
    Queries_Update,
    Queries_Delete;",
    "location":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/QueryPackQueries.json"
    ⚠️ APIsBeingMovedToANewSpec "details":"Attention: There are some existing APIs currently documented in a new spec file. The validation may not be able to report breaking changes with these APIs. It is recommended not to rename swagger file or move public APIs to a new file when creating a new API version.The existing APIs being moved are:QueryPacks_Delete,
    QueryPacks_Get,
    QueryPacks_CreateOrUpdate,
    QueryPacks_UpdateTags;",
    "location":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/QueryPacks.json"
    ️️✔️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 Feb 21, 2022

    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 - armoperationalinsights - 0.4.0
    +	Type of `SystemData.CreatedByType` has been changed from `*CreatedByType` to `*IdentityType`
    +	Type of `SystemData.LastModifiedByType` has been changed from `*CreatedByType` to `*IdentityType`
    +	Type of `Table.SystemData` has been changed from `*SystemData` to `*SystemDataAutoGenerated`
    +	Type of `Workspace.SystemData` has been changed from `*SystemData` to `*SystemDataAutoGenerated`
    azure-sdk-for-go - operationalinsights/mgmt/2020-10-01/operationalinsights - v62.1.0
    +	Field `MaxCapacityReservationLevel` of struct `WorkspaceSku` has been removed
    +	Field `MaxCapacity` of struct `CapacityReservationProperties` has been removed
    azure-sdk-for-go - operationalinsights/mgmt/2020-08-01/operationalinsights - v62.1.0
    +	Field `AdditionalInfo` of struct `ErrorResponse` has been removed
    +	Field `Code` of struct `ErrorResponse` has been removed
    +	Field `Details` of struct `ErrorResponse` has been removed
    +	Field `Message` of struct `ErrorResponse` has been removed
    +	Field `Target` of struct `ErrorResponse` has been removed
    +	Function `ErrorResponse.MarshalJSON` has been removed
    +	Struct `ClusterErrorResponse` has been removed
    +	Struct `DataExportErrorResponse` has been removed
    +	Struct `ErrorContract` has been removed
    ️✔️azure-sdk-for-go - operationalinsights/mgmt/2015-03-20/operationalinsights - v62.1.0
    ️✔️azure-sdk-for-go - preview/operationalinsights/mgmt/2021-12-01-preview/operationalinsights - v62.1.0
    ️✔️azure-sdk-for-go - preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights - v62.1.0
    ️✔️azure-sdk-for-go - preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights - v62.1.0
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-loganalytics - 13.0.0b2
    azure-sdk-for-js - track2_@azure/arm-operationalinsights - 9.0.0-beta.1
    +	Interface ErrorDetail no longer has parameter additionalInfo
    +	Interface ErrorDetail no longer has parameter details
    +	Parameter code of interface ErrorDetail is now required
    +	Parameter message of interface ErrorDetail is now required
    azure-sdk-for-js - @azure/arm-operationalinsights - 9.0.0-beta.1
    +	Class OperationalInsightsManagementClient no longer has parameter schema
    +	Removed operation Tables.create
    +	Removed operation Tables.update
    +	Removed operation group Schema
    +	Type Alias Table no longer has parameter isTroubleshootEnabled
    +	Type Alias Table no longer has parameter isTroubleshootingAllowed
    +	Type Alias Table no longer has parameter lastTroubleshootDate
    ️❌ azure-sdk-for-net failed [Detail]
    • Failed [Logs]Release - Generate from 3c162c8. 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/operationalinsights/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
      cmderr	[Autorest] FATAL: System.InvalidOperationException: Swagger document contains two or more x-ms-enum extensions with the same name 'IdentityType' and different values: user,application,managedIdentity,key vs. SystemAssigned,UserAssigned,None
      cmderr	[Autorest]    at AutoRest.Modeler.ObjectBuilder.BuildServiceType(String serviceTypeName, Boolean required) in /opt/vsts/work/1/s/src/ObjectBuilder.cs:line 150
      cmderr	[Autorest]    at AutoRest.Modeler.SchemaBuilder.ParentBuildServiceType(String serviceTypeName, Boolean required) in /opt/vsts/work/1/s/src/SchemaBuilder.cs:line 217
      cmderr	[Autorest]    at AutoRest.Modeler.SchemaBuilder.BuildServiceType(String serviceTypeName, Boolean required) in /opt/vsts/work/1/s/src/SchemaBuilder.cs:line 48
      cmderr	[Autorest]    at AutoRest.Modeler.SchemaBuilder.BuildServiceType(String serviceTypeName, Boolean required) in /opt/vsts/work/1/s/src/SchemaBuilder.cs:line 133
      cmderr	[Autorest]    at AutoRest.Modeler.SchemaBuilder.BuildServiceType(String serviceTypeName, Boolean required) in /opt/vsts/work/1/s/src/SchemaBuilder.cs:line 133
      cmderr	[Autorest]    at AutoRest.Modeler.SwaggerModeler.BuildCompositeTypes() in /opt/vsts/work/1/s/src/SwaggerModeler.cs:line 348
      cmderr	[Autorest]    at AutoRest.Modeler.SwaggerModeler.Build(ServiceDefinition serviceDefinition) in /opt/vsts/work/1/s/src/SwaggerModeler.cs:line 66
      cmderr	[Autorest]    at AutoRest.Modeler.Program.<ProcessInternal>d__2.MoveNext() in /opt/vsts/work/1/s/src/Program.cs:line 60
      cmderr	[Autorest] --- End of stack trace from previous location where exception was thrown ---
      cmderr	[Autorest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      cmderr	[Autorest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      cmderr	[Autorest]    at NewPlugin.<Process>d__15.MoveNext()
      cmderr	[Autorest] FATAL: csharp/imodeler1 - FAILED
      cmderr	[Autorest] FATAL: Error: Plugin imodeler1 reported failure.
      cmderr	[Autorest]   Error: Plugin imodeler1 reported failure.
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: autorest
      warn	Skip package processing as generation is failed
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 3c162c8. SDK Automation 14.0.0
      command	sh ./eng/initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️operationalinsights/mgmt/2020-10-01/operationalinsights [View full logs]  [Release SDK Changes]
      Only show 20 items here, please refer to log for details.
      info	[Changelog] - New struct `TableProperties`
      info	[Changelog] - New struct `TablesClient`
      info	[Changelog] - New struct `TablesListResult`
      info	[Changelog] - New struct `Tag`
      info	[Changelog] - New struct `UsageMetric`
      info	[Changelog] - New struct `UsagesClient`
      info	[Changelog] - New struct `WorkspaceFeatures`
      info	[Changelog] - New struct `WorkspaceListManagementGroupsResult`
      info	[Changelog] - New struct `WorkspaceListUsagesResult`
      info	[Changelog] - New struct `WorkspacePurgeBody`
      info	[Changelog] - New struct `WorkspacePurgeBodyFilters`
      info	[Changelog] - New struct `WorkspacePurgeClient`
      info	[Changelog] - New struct `WorkspacePurgeResponse`
      info	[Changelog] - New struct `WorkspacePurgeStatusResponse`
      info	[Changelog] - New field `ModifiedDate` in struct `WorkspaceProperties`
      info	[Changelog] - New field `Features` in struct `WorkspaceProperties`
      info	[Changelog] - New field `CreatedDate` in struct `WorkspaceProperties`
      info	[Changelog] - New field `BillingType` in struct `ClusterPatchProperties`
      info	[Changelog]
      info	[Changelog] Total 2 breaking change(s), 452 additive change(s).
    • ️✔️operationalinsights/mgmt/2020-08-01/operationalinsights [View full logs
      Only show 20 items here, please refer to log for details.
      info	[Changelog] - Struct `DataExportErrorResponse` has been removed
      info	[Changelog] - Struct `ErrorContract` has been removed
      info	[Changelog] - Field `Code` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `Message` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `Target` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `Details` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `AdditionalInfo` of struct `ErrorResponse` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `WorkspaceSkuNameEnumLACluster`
      info	[Changelog] - New function `ErrorDetail.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New struct `ErrorDetail`
      info	[Changelog] - New field `ForceCmkForQuery` in struct `WorkspaceProperties`
      info	[Changelog] - New field `CreatedDate` in struct `WorkspaceProperties`
      info	[Changelog] - New field `ModifiedDate` in struct `WorkspaceProperties`
      info	[Changelog] - New field `Features` in struct `WorkspaceProperties`
      info	[Changelog] - New field `Error` in struct `ErrorResponse`
      info	[Changelog]
      info	[Changelog] Total 8 breaking change(s), 6 additive change(s).
    • ️✔️operationalinsights/mgmt/2015-03-20/operationalinsights [View full logs
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    • ️✔️preview/operationalinsights/mgmt/2021-12-01-preview/operationalinsights [View full logs
      info	[Changelog] This is a new package
      info	[Changelog]
    • ️✔️preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights [View full logs
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    • ️✔️preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights [View full logs
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    ️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 3c162c8. 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
    • ️✔️armoperationalinsights [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Type of `SystemData.LastModifiedByType` has been changed from `*CreatedByType` to `*IdentityType`
      info	[Changelog] - Type of `SystemData.CreatedByType` has been changed from `*CreatedByType` to `*IdentityType`
      info	[Changelog] - Type of `DataSource.Properties` has been changed from `map[string]interface{}` to `interface{}`
      info	[Changelog] - Type of `Table.SystemData` has been changed from `*SystemData` to `*SystemDataAutoGenerated`
      info	[Changelog] - Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}`
      info	[Changelog] - Type of `Workspace.SystemData` has been changed from `*SystemData` to `*SystemDataAutoGenerated`
      info	[Changelog] - Struct `DataSourceFilter` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `IdentityTypeApplication`
      info	[Changelog] - New const `IdentityTypeManagedIdentity`
      info	[Changelog] - New const `IdentityTypeKey`
      info	[Changelog] - New const `IdentityTypeUser`
      info	[Changelog] - New function `*QueryPacksClientListByResourceGroupPager.PageResponse() QueryPacksClientListByResourceGroupResponse`
      info	[Changelog] - New function `TagsResource.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `LogAnalyticsQueryPackQueryPropertiesRelated.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueryPacksClientListByResourceGroupPager.Err() error`
      info	[Changelog] - New function `LogAnalyticsQueryPackQuerySearchPropertiesRelated.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueriesClientListPager.Err() error`
      info	[Changelog] - New function `*QueryPacksClient.Delete(context.Context, string, string, *QueryPacksClientDeleteOptions) (QueryPacksClientDeleteResponse, error)`
      info	[Changelog] - New function `LogAnalyticsQueryPack.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueryPacksClient.CreateOrUpdate(context.Context, string, string, LogAnalyticsQueryPack, *QueryPacksClientCreateOrUpdateOptions) (QueryPacksClientCreateOrUpdateResponse, error)`
      info	[Changelog] - New function `*QueriesClientSearchPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `NewQueryPacksClient(string, azcore.TokenCredential, *arm.ClientOptions) *QueryPacksClient`
      info	[Changelog] - New function `*QueriesClient.Update(context.Context, string, string, string, LogAnalyticsQueryPackQuery, *QueriesClientUpdateOptions) (QueriesClientUpdateResponse, error)`
      info	[Changelog] - New function `SystemDataAutoGenerated.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueriesClient.List(string, string, *QueriesClientListOptions) *QueriesClientListPager`
      info	[Changelog] - New function `LogAnalyticsQueryPackQueryListResult.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `LogAnalyticsQueryPackQuerySearchProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*TablesClient.Migrate(context.Context, string, string, string, *TablesClientMigrateOptions) (TablesClientMigrateResponse, error)`
      info	[Changelog] - New function `*QueriesClientSearchPager.Err() error`
      info	[Changelog] - New function `*QueriesClient.Delete(context.Context, string, string, string, *QueriesClientDeleteOptions) (QueriesClientDeleteResponse, error)`
      info	[Changelog] - New function `*QueryPacksClient.ListByResourceGroup(string, *QueryPacksClientListByResourceGroupOptions) *QueryPacksClientListByResourceGroupPager`
      info	[Changelog] - New function `*QueryPacksClientListPager.Err() error`
      info	[Changelog] - New function `*QueryPacksClient.UpdateTags(context.Context, string, string, TagsResource, *QueryPacksClientUpdateTagsOptions) (QueryPacksClientUpdateTagsResponse, error)`
      info	[Changelog] - New function `NewQueriesClient(string, azcore.TokenCredential, *arm.ClientOptions) *QueriesClient`
      info	[Changelog] - New function `*QueriesClientListPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `*QueryPacksClient.List(*QueryPacksClientListOptions) *QueryPacksClientListPager`
      info	[Changelog] - New function `*QueryPacksClientListPager.PageResponse() QueryPacksClientListResponse`
      info	[Changelog] - New function `QueryPacksResource.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `LogAnalyticsQueryPackQuery.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueriesClient.Get(context.Context, string, string, string, *QueriesClientGetOptions) (QueriesClientGetResponse, error)`
      info	[Changelog] - New function `*QueriesClientSearchPager.PageResponse() QueriesClientSearchResponse`
      info	[Changelog] - New function `LogAnalyticsQueryPackProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueryPacksClientListPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `*SystemDataAutoGenerated.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*QueriesClient.Put(context.Context, string, string, string, LogAnalyticsQueryPackQuery, *QueriesClientPutOptions) (QueriesClientPutResponse, error)`
      info	[Changelog] - New function `*LogAnalyticsQueryPackProperties.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*QueriesClientListPager.PageResponse() QueriesClientListResponse`
      info	[Changelog] - New function `LogAnalyticsQueryPackQueryProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueriesClient.Search(string, string, LogAnalyticsQueryPackQuerySearchProperties, *QueriesClientSearchOptions) *QueriesClientSearchPager`
      info	[Changelog] - New function `LogAnalyticsQueryPackListResult.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*QueryPacksClientListByResourceGroupPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `*QueryPacksClient.Get(context.Context, string, string, *QueryPacksClientGetOptions) (QueryPacksClientGetResponse, error)`
      info	[Changelog] - New function `*LogAnalyticsQueryPackQueryProperties.UnmarshalJSON([]byte) error`
      info	[Changelog] - New struct `AzureResourceProperties`
      info	[Changelog] - New struct `LogAnalyticsQueryPack`
      info	[Changelog] - New struct `LogAnalyticsQueryPackListResult`
      info	[Changelog] - New struct `LogAnalyticsQueryPackProperties`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQuery`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQueryListResult`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQueryProperties`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQueryPropertiesRelated`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQuerySearchProperties`
      info	[Changelog] - New struct `LogAnalyticsQueryPackQuerySearchPropertiesRelated`
      info	[Changelog] - New struct `QueriesClient`
      info	[Changelog] - New struct `QueriesClientDeleteOptions`
      info	[Changelog] - New struct `QueriesClientDeleteResponse`
      info	[Changelog] - New struct `QueriesClientGetOptions`
      info	[Changelog] - New struct `QueriesClientGetResponse`
      info	[Changelog] - New struct `QueriesClientGetResult`
      info	[Changelog] - New struct `QueriesClientListOptions`
      info	[Changelog] - New struct `QueriesClientListPager`
      info	[Changelog] - New struct `QueriesClientListResponse`
      info	[Changelog] - New struct `QueriesClientListResult`
      info	[Changelog] - New struct `QueriesClientPutOptions`
      info	[Changelog] - New struct `QueriesClientPutResponse`
      info	[Changelog] - New struct `QueriesClientPutResult`
      info	[Changelog] - New struct `QueriesClientSearchOptions`
      info	[Changelog] - New struct `QueriesClientSearchPager`
      info	[Changelog] - New struct `QueriesClientSearchResponse`
      info	[Changelog] - New struct `QueriesClientSearchResult`
      info	[Changelog] - New struct `QueriesClientUpdateOptions`
      info	[Changelog] - New struct `QueriesClientUpdateResponse`
      info	[Changelog] - New struct `QueriesClientUpdateResult`
      info	[Changelog] - New struct `QueryPacksClient`
      info	[Changelog] - New struct `QueryPacksClientCreateOrUpdateOptions`
      info	[Changelog] - New struct `QueryPacksClientCreateOrUpdateResponse`
      info	[Changelog] - New struct `QueryPacksClientCreateOrUpdateResult`
      info	[Changelog] - New struct `QueryPacksClientDeleteOptions`
      info	[Changelog] - New struct `QueryPacksClientDeleteResponse`
      info	[Changelog] - New struct `QueryPacksClientGetOptions`
      info	[Changelog] - New struct `QueryPacksClientGetResponse`
      info	[Changelog] - New struct `QueryPacksClientGetResult`
      info	[Changelog] - New struct `QueryPacksClientListByResourceGroupOptions`
      info	[Changelog] - New struct `QueryPacksClientListByResourceGroupPager`
      info	[Changelog] - New struct `QueryPacksClientListByResourceGroupResponse`
      info	[Changelog] - New struct `QueryPacksClientListByResourceGroupResult`
      info	[Changelog] - New struct `QueryPacksClientListOptions`
      info	[Changelog] - New struct `QueryPacksClientListPager`
      info	[Changelog] - New struct `QueryPacksClientListResponse`
      info	[Changelog] - New struct `QueryPacksClientListResult`
      info	[Changelog] - New struct `QueryPacksClientUpdateTagsOptions`
      info	[Changelog] - New struct `QueryPacksClientUpdateTagsResponse`
      info	[Changelog] - New struct `QueryPacksClientUpdateTagsResult`
      info	[Changelog] - New struct `QueryPacksResource`
      info	[Changelog] - New struct `SystemDataAutoGenerated`
      info	[Changelog] - New struct `TablesClientMigrateOptions`
      info	[Changelog] - New struct `TablesClientMigrateResponse`
      info	[Changelog] - New struct `TagsResource`
      info	[Changelog]
      info	[Changelog] Total 7 breaking change(s), 156 additive change(s).
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 3c162c8. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh] npm notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 8.3.1 -> 8.5.4
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.5.4>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-loganalytics [View full logs]  [Release SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added operation group QueriesOperations
      info	[Changelog]   - Added operation group QueryPacksOperations
    ️⚠️ azure-sdk-for-js warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 3c162c8. SDK Automation 14.0.0
      command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
      cmderr	[automation_init.sh]  deprecated [email protected]: The functionality that this package provided is now in @npmcli/arborist
      cmderr	[automation_init.sh]  @opentelemetry/[email protected]: Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js
      cmderr	[automation_init.sh] npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      cmderr	[automation_init.sh] notice created a lockfile as package-lock.json. You should commit this file.
      cmderr	[automation_init.sh]  @octokit/[email protected] requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself.
      warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
      command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    • ️✔️@azure/arm-operationalinsights [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added operation group Queries
      info	[Changelog]   - Added operation group QueryPacks
      info	[Changelog]   - Added operation group SchemaOperations
      info	[Changelog]   - Added operation Tables.beginCreateOrUpdate
      info	[Changelog]   - Added operation Tables.beginCreateOrUpdateAndWait
      info	[Changelog]   - Added operation Tables.beginDelete
      info	[Changelog]   - Added operation Tables.beginDeleteAndWait
      info	[Changelog]   - Added operation Tables.beginUpdate
      info	[Changelog]   - Added operation Tables.beginUpdateAndWait
      info	[Changelog]   - Added operation Tables.migrate
      info	[Changelog]   - Added Interface AzureResourceProperties
      info	[Changelog]   - Added Interface Column
      info	[Changelog]   - Added Interface LogAnalyticsQueryPackListResult
      info	[Changelog]   - Added Interface LogAnalyticsQueryPackQueryListResult
      info	[Changelog]   - Added Interface LogAnalyticsQueryPackQueryPropertiesRelated
      info	[Changelog]   - Added Interface LogAnalyticsQueryPackQuerySearchProperties
      info	[Changelog]   - Added Interface LogAnalyticsQueryPackQuerySearchPropertiesRelated
      info	[Changelog]   - Added Interface QueriesDeleteOptionalParams
      info	[Changelog]   - Added Interface QueriesGetOptionalParams
      info	[Changelog]   - Added Interface QueriesListNextOptionalParams
      info	[Changelog]   - Added Interface QueriesListOptionalParams
      info	[Changelog]   - Added Interface QueriesPutOptionalParams
      info	[Changelog]   - Added Interface QueriesSearchNextOptionalParams
      info	[Changelog]   - Added Interface QueriesSearchOptionalParams
      info	[Changelog]   - Added Interface QueriesUpdateOptionalParams
      info	[Changelog]   - Added Interface QueryPacksCreateOrUpdateOptionalParams
      info	[Changelog]   - Added Interface QueryPacksDeleteOptionalParams
      info	[Changelog]   - Added Interface QueryPacksGetOptionalParams
      info	[Changelog]   - Added Interface QueryPacksListByResourceGroupNextOptionalParams
      info	[Changelog]   - Added Interface QueryPacksListByResourceGroupOptionalParams
      info	[Changelog]   - Added Interface QueryPacksListNextOptionalParams
      info	[Changelog]   - Added Interface QueryPacksListOptionalParams
      info	[Changelog]   - Added Interface QueryPacksResource
      info	[Changelog]   - Added Interface QueryPacksUpdateTagsOptionalParams
      info	[Changelog]   - Added Interface RestoredLogs
      info	[Changelog]   - Added Interface ResultStatistics
      info	[Changelog]   - Added Interface Schema
      info	[Changelog]   - Added Interface SearchResults
      info	[Changelog]   - Added Interface SystemData
      info	[Changelog]   - Added Interface SystemDataAutoGenerated
      info	[Changelog]   - Added Interface TablesCreateOrUpdateOptionalParams
      info	[Changelog]   - Added Interface TablesDeleteOptionalParams
      info	[Changelog]   - Added Interface TablesMigrateOptionalParams
      info	[Changelog]   - Added Interface TagsResource
      info	[Changelog]   - Added Type Alias ColumnDataTypeHintEnum
      info	[Changelog]   - Added Type Alias ColumnTypeEnum
      info	[Changelog]   - Added Type Alias CreatedByType
      info	[Changelog]   - Added Type Alias LogAnalyticsQueryPack
      info	[Changelog]   - Added Type Alias LogAnalyticsQueryPackQuery
      info	[Changelog]   - Added Type Alias ProvisioningStateEnum
      info	[Changelog]   - Added Type Alias QueriesGetResponse
      info	[Changelog]   - Added Type Alias QueriesListNextResponse
      info	[Changelog]   - Added Type Alias QueriesListResponse
      info	[Changelog]   - Added Type Alias QueriesPutResponse
      info	[Changelog]   - Added Type Alias QueriesSearchNextResponse
      info	[Changelog]   - Added Type Alias QueriesSearchResponse
      info	[Changelog]   - Added Type Alias QueriesUpdateResponse
      info	[Changelog]   - Added Type Alias QueryPacksCreateOrUpdateResponse
      info	[Changelog]   - Added Type Alias QueryPacksGetResponse
      info	[Changelog]   - Added Type Alias QueryPacksListByResourceGroupNextResponse
      info	[Changelog]   - Added Type Alias QueryPacksListByResourceGroupResponse
      info	[Changelog]   - Added Type Alias QueryPacksListNextResponse
      info	[Changelog]   - Added Type Alias QueryPacksListResponse
      info	[Changelog]   - Added Type Alias QueryPacksUpdateTagsResponse
      info	[Changelog]   - Added Type Alias SourceEnum
      info	[Changelog]   - Added Type Alias TablePlanEnum
      info	[Changelog]   - Added Type Alias TablesCreateOrUpdateResponse
      info	[Changelog]   - Added Type Alias TableSubTypeEnum
      info	[Changelog]   - Added Type Alias TableTypeEnum
      info	[Changelog]   - Interface TablesUpdateOptionalParams has a new optional parameter resumeFrom
      info	[Changelog]   - Interface TablesUpdateOptionalParams has a new optional parameter updateIntervalInMs
      info	[Changelog]   - Class OperationalInsightsManagementClient has a new parameter queries
      info	[Changelog]   - Class OperationalInsightsManagementClient has a new parameter queryPacks
      info	[Changelog]   - Class OperationalInsightsManagementClient has a new parameter schemaOperations
      info	[Changelog]   - Type Alias Table has a new parameter systemData
      info	[Changelog]   - Type Alias Table has a new parameter totalRetentionInDays
      info	[Changelog]   - Type Alias Table has a new parameter archiveRetentionInDays
      info	[Changelog]   - Type Alias Table has a new parameter searchResults
      info	[Changelog]   - Type Alias Table has a new parameter restoredLogs
      info	[Changelog]   - Type Alias Table has a new parameter resultStatistics
      info	[Changelog]   - Type Alias Table has a new parameter plan
      info	[Changelog]   - Type Alias Table has a new parameter lastPlanModifiedDate
      info	[Changelog]   - Type Alias Table has a new parameter schema
      info	[Changelog]   - Type Alias Table has a new parameter provisioningState
      info	[Changelog]   - Type Alias Workspace has a new parameter systemData
      info	[Changelog]   - Type Alias Workspace has a new parameter defaultDataCollectionRuleResourceId
      info	[Changelog]   - Type Alias WorkspacePatch has a new parameter defaultDataCollectionRuleResourceId
      info	[Changelog]   - Added Enum KnownColumnDataTypeHintEnum
      info	[Changelog]   - Added Enum KnownColumnTypeEnum
      info	[Changelog]   - Added Enum KnownCreatedByType
      info	[Changelog]   - Added Enum KnownIdentityType
      info	[Changelog]   - Added Enum KnownProvisioningStateEnum
      info	[Changelog]   - Added Enum KnownSourceEnum
      info	[Changelog]   - Added Enum KnownTablePlanEnum
      info	[Changelog]   - Added Enum KnownTableSubTypeEnum
      info	[Changelog]   - Added Enum KnownTableTypeEnum
      info	[Changelog]
      info	[Changelog] **Breaking Changes**
      info	[Changelog]
      info	[Changelog]   - Removed operation group Schema
      info	[Changelog]   - Removed operation Tables.create
      info	[Changelog]   - Removed operation Tables.update
      info	[Changelog]   - Class OperationalInsightsManagementClient no longer has parameter schema
      info	[Changelog]   - Type Alias Table no longer has parameter isTroubleshootingAllowed
      info	[Changelog]   - Type Alias Table no longer has parameter isTroubleshootEnabled
      info	[Changelog]   - Type Alias Table no longer has parameter lastTroubleshootDate
    ️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 3c162c8. 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
    • ️✔️operationalinsights [View full logs]  [Release Schema Changes]
    ️❌ azure-powershell failed [Detail]
    • Failed [Logs]Release - Generate from 3c162c8. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
      the given reference name 'refs/heads/sdkAuto/Az.' is not valid
      Error: the given reference name 'refs/heads/sdkAuto/Az.' is not valid
    • ⚠️Az. [View full logs
      error	Fatal error: the given reference name 'refs/heads/sdkAuto/Az.' is not valid
      error	The following packages are still pending:
      error		Az.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

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

    dabenhamMic and others added 2 commits March 6, 2022 12:14
    …perationalInsights/stable/2019-09-01/QueryPacks.json
    
    Co-authored-by: JianyeXi <[email protected]>
    …perationalInsights/stable/2019-09-01/QueryPackQueries.json
    
    Co-authored-by: JianyeXi <[email protected]>
    @dabenhamMic
    Copy link
    Contributor Author

    hi @jianyexi , thank you for the help. Can we proceed with this pr?

    @dabenhamMic
    Copy link
    Contributor Author

    @akning-ms can we move forward with this PR?

    @raych1
    Copy link
    Member

    raych1 commented Mar 8, 2022

    @msyyc , can you have a look at the python SDK failures?

    @dabenhamMic, can you remove holdon label if this PR is ready to merge.

    @dabenhamMic dabenhamMic removed the HoldOn label Mar 8, 2022
    @dabenhamMic
    Copy link
    Contributor Author

    @raych1 , tag was removed.
    Is there anything else needed here?

    @msyyc
    Copy link
    Member

    msyyc commented Mar 10, 2022

    Have fixed python failure

    @dabenhamMic
    Copy link
    Contributor Author

    @msyyc , @raych1 can this PR be merged?

    @akning-ms
    Copy link
    Contributor

    Hi @dabenhamMic, I just noticed you are creating a 2019 stable version, but your latest stable is :2021-06-01. Looks you are just moving a preview version into stable version, right? if so, can you use OpenAPI hub to do it which will make review more easy for us to know what change your PR include: below is guide in ARM review section in first comment
    Adding a new API version
    -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

    @dabenhamMic
    Copy link
    Contributor Author

    o stable version, right? if so, can you use OpenAPI hub to do it which will make review more

    @akning-ms This change is not only bumping the API version from package-2021-12-01-preview to package-2022-02,
    but also the addition of 2 resources:

    1. Microsoft.OperationalInsights/stable/2019-09-01/QueryPackQueries.json
    2. Microsoft.OperationalInsights/stable/2019-09-01/QueryPacks.json

    haven't found a way to do both actions through the link you sent...

    @akning-ms
    Copy link
    Contributor

    akning-ms commented Mar 14, 2022

    ven't found a way to do both actions through the link you sent...

    My key question is: beside version change from 2019-09-01-preview to 2019-09-01, what actual change you have made?
    as github diff is Not easy for us to know what change you had, so openapi hub can help you do copy file and change version and adding readme tag for a new version which can save you and us many effort. if openapi hub can not help you do all, you can make new commit to add it. so if you can confirm no other change for your new version. I can help you merge, but strong recommend you to do it via openapi hub in the future for all new API version

    @akning-ms akning-ms merged commit 3c162c8 into Azure:main Mar 15, 2022
    FredericHeem pushed a commit to grucloud/azure-rest-api-specs that referenced this pull request May 16, 2022
    * Add blockchain to latest profile
    
    * Add additional types
    
    * added QueryPack and QueryPackQueries stable version
    
    * update default swagger version to package-2022-02
    
    * fixed issue in x-ms-examples for QueryPacksList
    
    * added type: object to some definitions in order to fix build validations
    
    * removed Operations_List from QueryPacks resource
    
    * rename QueryPacks files to suit the file naming convention
    
    * rename files in readme.md
    
    * build errors
    
    * rename default package
    
    * update referenced package in readme to package-2022-02
    
    * update error details with common-type
    
    * build error
    
    * Update specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/QueryPacks.json
    
    Co-authored-by: JianyeXi <[email protected]>
    
    * Update specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2019-09-01/QueryPackQueries.json
    
    Co-authored-by: JianyeXi <[email protected]>
    
    * Update readme.python.md
    
    Co-authored-by: Mark Cowlishaw <[email protected]>
    Co-authored-by: JianyeXi <[email protected]>
    Co-authored-by: Jiefeng Chen <[email protected]>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    8 participants