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

[HDInsight] Support the latest azure monitor api #14496

Merged
merged 22 commits into from
May 27, 2021

Conversation

aim-for-better
Copy link
Member

@aim-for-better aim-for-better commented May 20, 2021

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

This PR supports GET, PUT and DELETE of the API "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor"

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.
    Now it is.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
    As soon as possible, ETA is 5/27/2021
  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
    • Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
    • 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 Breaking Change 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 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.

Zhenyu Zhou added 22 commits October 10, 2020 15:56
@openapi-workflow-bot
Copy link

Hi, @aim-for-better 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 May 20, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️[Staging] SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation
    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️[Staging] 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 May 20, 2021

    Swagger Generation Artifacts

    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
    ️⌛[Staging] SDK Breaking Change Tracking pending [Detail]
    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 394395e. 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/hdinsight/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.HDInsight [View full logs]  [Release SDK Changes]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 394395e. 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
    • ️✔️hdinsight/mgmt/2018-06-01/hdinsight [View full logs]  [Release SDK Changes] Breaking Change Detected
      Only show 60 items here, please refer to log for details.
      info	[Changelog] - Const `AsyncOperationStateFailed` has been removed
      info	[Changelog] - Const `JSONWebKeyEncryptionAlgorithmRSA15` has been removed
      info	[Changelog] - Const `FilterModeExclude` has been removed
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New const `ActiveDirectory`
      info	[Changelog] - New const `Sunday`
      info	[Changelog] - New const `Saturday`
      info	[Changelog] - New const `Enabled`
      info	[Changelog] - New const `SystemAssigned`
      info	[Changelog] - New const `Monday`
      info	[Changelog] - New const `Standard`
      info	[Changelog] - New const `Wednesday`
      info	[Changelog] - New const `Include`
      info	[Changelog] - New const `Linux`
      info	[Changelog] - New const `RSAOAEP256`
      info	[Changelog] - New const `None`
      info	[Changelog] - New const `Outbound`
      info	[Changelog] - New const `Friday`
      info	[Changelog] - New const `Premium`
      info	[Changelog] - New const `Recommend`
      info	[Changelog] - New const `RSA15`
      info	[Changelog] - New const `InProgress`
      info	[Changelog] - New const `Thursday`
      info	[Changelog] - New const `Windows`
      info	[Changelog] - New const `Inbound`
      info	[Changelog] - New const `RSAOAEP`
      info	[Changelog] - New const `Exclude`
      info	[Changelog] - New const `Tuesday`
      info	[Changelog] - New const `SystemAssignedUserAssigned`
      info	[Changelog] - New const `Disabled`
      info	[Changelog] - New const `UserAssigned`
      info	[Changelog] - New const `Default`
      info	[Changelog] - New const `Succeeded`
      info	[Changelog] - New const `Failed`
      info	[Changelog] - New function `ExtensionsClient.DisableAzureMonitorPreparer(context.Context, string, string) (*http.Request, error)`
      info	[Changelog] - New function `ExtensionsClient.EnableAzureMonitorPreparer(context.Context, string, string, AzureMonitorRequest) (*http.Request, error)`
      info	[Changelog] - New function `*ExtensionsDisableAzureMonitorFuture.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `ExtensionsClient.DisableAzureMonitor(context.Context, string, string) (ExtensionsDisableAzureMonitorFuture, error)`
      info	[Changelog] - New function `AzureMonitorSelectedConfigurations.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `ExtensionsClient.GetAzureMonitorStatusSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `*ExtensionsEnableAzureMonitorFuture.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `ExtensionsClient.EnableAzureMonitor(context.Context, string, string, AzureMonitorRequest) (ExtensionsEnableAzureMonitorFuture, error)`
      info	[Changelog] - New function `ExtensionsClient.DisableAzureMonitorResponder(*http.Response) (autorest.Response, error)`
      info	[Changelog] - New function `ExtensionsClient.GetAzureMonitorStatusResponder(*http.Response) (AzureMonitorResponse, error)`
      info	[Changelog] - New function `ExtensionsClient.GetAzureMonitorStatus(context.Context, string, string) (AzureMonitorResponse, error)`
      info	[Changelog] - New function `ExtensionsClient.EnableAzureMonitorResponder(*http.Response) (autorest.Response, error)`
      info	[Changelog] - New function `ExtensionsClient.EnableAzureMonitorSender(*http.Request) (ExtensionsEnableAzureMonitorFuture, error)`
      info	[Changelog] - New function `ExtensionsClient.GetAzureMonitorStatusPreparer(context.Context, string, string) (*http.Request, error)`
      info	[Changelog] - New function `ExtensionsClient.DisableAzureMonitorSender(*http.Request) (ExtensionsDisableAzureMonitorFuture, error)`
      info	[Changelog] - New struct `AzureMonitorRequest`
      info	[Changelog] - New struct `AzureMonitorResponse`
      info	[Changelog] - New struct `AzureMonitorSelectedConfigurations`
      info	[Changelog] - New struct `AzureMonitorTableConfiguration`
      info	[Changelog] - New struct `ExtensionsDisableAzureMonitorFuture`
      info	[Changelog] - New struct `ExtensionsEnableAzureMonitorFuture`
      info	[Changelog]
      info	[Changelog] Total 30 breaking change(s), 57 additive change(s).
      info	[Changelog]
    • ️✔️preview/hdinsight/mgmt/2015-03-01-preview/hdinsight [View full logs]  [Release SDK Changes] Breaking Change Detected
      Only show 60 items here, please refer to log for details.
      info	[Changelog] - New function `ExtensionsClient.GetAzureAsyncOperationStatus(context.Context, string, string, string, string) (AsyncOperationResult, error)`
      info	[Changelog] - New function `VirtualMachinesClient.GetAsyncOperationStatus(context.Context, string, string, string) (AsyncOperationResult, error)`
      info	[Changelog] - New function `ExtensionsClient.EnableAzureMonitorPreparer(context.Context, string, string, AzureMonitorRequest) (*http.Request, error)`
      info	[Changelog] - New function `ScriptActionsClient.GetExecutionAsyncOperationStatusResponder(*http.Response) (AsyncOperationResult, error)`
      info	[Changelog] - New struct `AaddsResourceDetails`
      info	[Changelog] - New struct `AsyncOperationResult`
      info	[Changelog] - New struct `AzureMonitorRequest`
      info	[Changelog] - New struct `AzureMonitorResponse`
      info	[Changelog] - New struct `AzureMonitorSelectedConfigurations`
      info	[Changelog] - New struct `AzureMonitorTableConfiguration`
      info	[Changelog] - New struct `ClusterCreateRequestValidationParameters`
      info	[Changelog] - New struct `ClusterCreateValidationResult`
      info	[Changelog] - New struct `ClustersUpdateIdentityCertificateFuture`
      info	[Changelog] - New struct `ComputeIsolationProperties`
      info	[Changelog] - New struct `Dimension`
      info	[Changelog] - New struct `ExcludedServicesConfig`
      info	[Changelog] - New struct `ExtensionCreateFuture`
      info	[Changelog] - New struct `ExtensionDeleteFuture`
      info	[Changelog] - New struct `ExtensionsClient`
      info	[Changelog] - New struct `ExtensionsDisableAzureMonitorFuture`
      info	[Changelog] - New struct `ExtensionsEnableAzureMonitorFuture`
      info	[Changelog] - New struct `HostInfo`
      info	[Changelog] - New struct `ListHostInfo`
      info	[Changelog] - New struct `MetricSpecifications`
      info	[Changelog] - New struct `NameAvailabilityCheckRequestParameters`
      info	[Changelog] - New struct `NameAvailabilityCheckResult`
      info	[Changelog] - New struct `OperationProperties`
      info	[Changelog] - New struct `ServiceSpecification`
      info	[Changelog] - New struct `UpdateClusterIdentityCertificateParameters`
      info	[Changelog] - New struct `VMSizeProperty`
      info	[Changelog] - New struct `ValidationErrorInfo`
      info	[Changelog] - New struct `VirtualMachinesClient`
      info	[Changelog] - New struct `VirtualMachinesRestartHostsFuture`
      info	[Changelog] - New field `Vmsizes` in struct `CapabilitiesResult`
      info	[Changelog] - New field `VmsizeFilters` in struct `CapabilitiesResult`
      info	[Changelog] - New field `PrivateIPAddress` in struct `ConnectivityEndpoint`
      info	[Changelog] - New field `VMSizesWithEncryptionAtHost` in struct `BillingResponseListResult`
      info	[Changelog] - New field `VMSizeProperties` in struct `BillingResponseListResult`
      info	[Changelog] - New field `Saskey` in struct `StorageAccount`
      info	[Changelog] - New field `Fileshare` in struct `StorageAccount`
      info	[Changelog] - New field `Properties` in struct `Operation`
      info	[Changelog] - New field `Description` in struct `OperationDisplay`
      info	[Changelog] - New field `VMGroupName` in struct `Role`
      info	[Changelog] - New field `EncryptDataDisks` in struct `Role`
      info	[Changelog] - New field `PrivateIPAddress` in struct `ApplicationGetEndpoint`
      info	[Changelog] - New field `ComputeIsolationProperties` in struct `ClusterGetProperties`
      info	[Changelog] - New field `ExcludedServicesConfig` in struct `ClusterGetProperties`
      info	[Changelog] - New field `ClusterHdpVersion` in struct `ClusterGetProperties`
      info	[Changelog] - New field `StorageProfile` in struct `ClusterGetProperties`
      info	[Changelog] - New field `ComputeIsolationProperties` in struct `ClusterCreateProperties`
      info	[Changelog] - New field `TenantID` in struct `ClusterIdentityUserAssignedIdentitiesValue`
      info	[Changelog] - New field `ESPApplied` in struct `VMSizeCompatibilityFilter`
      info	[Changelog] - New field `OsType` in struct `VMSizeCompatibilityFilter`
      info	[Changelog] - New field `VMSizes` in struct `VMSizeCompatibilityFilter`
      info	[Changelog] - New field `ComputeIsolationSupported` in struct `VMSizeCompatibilityFilter`
      info	[Changelog] - New field `ConfigurationOverride` in struct `KafkaRestProperties`
      info	[Changelog] - New field `PrivateIPAddress` in struct `ApplicationGetHTTPSEndpoint`
      info	[Changelog]
      info	[Changelog] Total 13 breaking change(s), 146 additive change(s).
      info	[Changelog]
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 394395e. SDK Automation 14.0.0
      command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
      command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
      cmderr	[generate.py] 2021-05-31 05:59:57 INFO [VERSION][Found] current version "com.azure.resourcemanager:azure-resourcemanager-hdinsight;1.0.0-beta.3;1.0.0-beta.4"
      cmderr	[generate.py] 2021-05-31 05:59:57 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.4"
      cmderr	[generate.py] 2021-05-31 05:59:57 INFO autorest --version=3.1.3 --use=@autorest/[email protected] --java.azure-libraries-for-java-folder=/home/vsts/work/1/s/azure-sdk-for-java --java.output-folder=/home/vsts/work/1/s/azure-sdk-for-java/sdk/hdinsight/azure-resourcemanager-hdinsight --java.namespace=com.azure.resourcemanager.hdinsight   --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [CI][Skip] ci.yml already has module azure-resourcemanager-hdinsight
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Skip] pom already has module azure-resourcemanager-hdinsight
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Skip] pom already has module sdk/hdinsight
      cmderr	[generate.py] 2021-05-31 06:00:36 INFO [POM][Success] Write to root pom
    • ️✔️azure-resourcemanager-hdinsight [View full logs]  [Release SDK Changes]
      cmderr	[Inst] 2021-05-31 06:04:34 DEBUG Got artifact_id: azure-resourcemanager-hdinsight
      cmderr	[Inst] 2021-05-31 06:04:34 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-05-31 06:04:34 DEBUG Got artifact: azure-resourcemanager-hdinsight-1.0.0-beta.4.jar
      cmderr	[Inst] 2021-05-31 06:04:34 DEBUG Match jar package: azure-resourcemanager-hdinsight-1.0.0-beta.4.jar
      cmderr	[Inst] 2021-05-31 06:04:34 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/14496/azure-sdk-for-java/azure-resourcemanager-hdinsight/azure-resourcemanager-hdinsight-1.0.0-beta.4.jar\" -o azure-resourcemanager-hdinsight-1.0.0-beta.4.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-hdinsight -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-hdinsight-1.0.0-beta.4.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 394395e. 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] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.2.2 requires azure-core<2.0.0,>=1.9.0, but you have azure-core 1.6.0 which is incompatible.
      cmderr	[automation_init.sh] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.2.2 requires azure-core<2.0.0,>=1.9.0, but you have azure-core 1.6.0 which is incompatible.
      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
    • ️✔️azure-mgmt-hdinsight [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model KafkaRestProperties has a new parameter configuration_override
      info	[Changelog]   - Model VmSizeCompatibilityFilter has a new parameter os_type
      info	[Changelog]   - Model VmSizeCompatibilityFilter has a new parameter esp_applied
      info	[Changelog]   - Model VmSizeCompatibilityFilter has a new parameter vm_sizes
      info	[Changelog]   - Model VmSizeCompatibilityFilter has a new parameter compute_isolation_supported
      info	[Changelog]   - Model CapabilitiesResult has a new parameter vmsize_filters
      info	[Changelog]   - Model CapabilitiesResult has a new parameter vmsizes
      info	[Changelog]   - Model StorageAccount has a new parameter fileshare
      info	[Changelog]   - Model StorageAccount has a new parameter saskey
      info	[Changelog]   - Model Role has a new parameter vm_group_name
      info	[Changelog]   - Model ApplicationGetHttpsEndpoint has a new parameter private_ip_address
      info	[Changelog]   - Added operation VirtualMachinesOperations.get_async_operation_status
      info	[Changelog]   - Added operation ExtensionsOperations.get_azure_async_operation_status
      info	[Changelog]   - Added operation ExtensionsOperations.disable_azure_monitor
      info	[Changelog]   - Added operation ExtensionsOperations.get_azure_monitor_status
      info	[Changelog]   - Added operation ExtensionsOperations.enable_azure_monitor
      info	[Changelog]   - Added operation ScriptActionsOperations.get_execution_async_operation_status
      info	[Changelog]   - Added operation LocationsOperations.get_azure_async_operation_status
      info	[Changelog]   - Added operation LocationsOperations.validate_cluster_create_request
      info	[Changelog]   - Added operation LocationsOperations.check_name_availability
      info	[Changelog]   - Added operation ClustersOperations.get_azure_async_operation_status
      info	[Changelog]   - Added operation ClustersOperations.update_identity_certificate
      info	[Changelog]   - Added operation ApplicationsOperations.get_azure_async_operation_status
      info	[Changelog]
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Model VmSizeCompatibilityFilter no longer has parameter vmsizes
      info	[Changelog]   - Model CapabilitiesResult no longer has parameter vm_size_filters
      info	[Changelog]   - Model CapabilitiesResult no longer has parameter vm_sizes
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 394395e. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md
    • ️✔️@azure/arm-hdinsight [View full logs]  [Release SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/hDInsightManagementClient.js → ./dist/arm-hdinsight.js...
      cmderr	[npmPack] created ./dist/arm-hdinsight.js in 457ms
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 394395e. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      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
      warn	No file changes detected after generation
    • ️✔️hdinsight [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    NewApiVersionRequired reason:

    A service’s API is a contract with customers and is represented by using the api-version query parameter. Changes such as adding an optional property to a request/response or introducing a new operation is a change to the service’s contract and therefore requires a new api-version value. This is critically important for documentation, client libraries, and customer support.

    EXAMPLE: if a customer calls a service in the public cloud using api-version=2020-07-27, the new property or operation may exist but if they call the service in a government cloud, air-gapped cloud, or Azure Stack Hub cloud using the same api-version, the property or operation may not exist. Because there is no clear relationship between the service api-version and the new property/operation, customers can’t trust the documentation and Azure customer have difficulty helping customers diagnose issues. In addition, each client library version documents the service version it supports. When an optional property or new operation is added to a service and its Swagger, new client libraries must be produced to expose this functionality to customers. Without updating the api-version, it is unclear to customers which version of a client library supports these new features.

    @openapi-workflow-bot
    Copy link

    Hi, @aim-for-better your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]). cc @leni-msft

    Copy link
    Contributor

    @leni-msft leni-msft left a comment

    Choose a reason for hiding this comment

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

    Will merge once ARM sign off.

    @aim-for-better
    Copy link
    Member Author

    Will merge once ARM sign off.

    Thanks~

    @aim-for-better
    Copy link
    Member Author

    Hi @RamyasreeChakka , Thanks for your review. Our backend only returns 202 for the put request without any schema.
    I add this 200 response code just in order to satisfy the validation rule.

    "in": "body",
    "required": true,
    "schema": {
    "$ref": "#/definitions/AzureMonitorRequest"
    Copy link
    Member

    Choose a reason for hiding this comment

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

    The PUT request body doesn't match the ARM standard pattern at all. I see properties workspaceId, primaryKey are exposed at top-level instead of having them under properties envelope. For more details, refer RPC here https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md#resource-request-properties-envelope

    However, I understand the swagger already defined the extensions API and this PR is just adding an instance of extension resource. I would give the exception for this reason and sign off.

    I would recommend to have a workItem/task on your side to correct the request/response formats in future new API versions.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Hi @RamyasreeChakka, Thanks for your comment and approval.

    it seems that the we follow the rule: the workspaceId and primaryKey under that properties of the AzureMonitorRequest definion. Could you please help me understand better about this rule so that our service can satisfy the ARM standard pattern next time?

    "AzureMonitorRequest": 
    {      
      "description": "The azure monitor parameters.", 
        "properties": 
          {       
             "workspaceId":  {          
                  "description": "The Log Analytics workspace ID.", 
                    "type": "string"       
               },        
               "primaryKey": {
                 "description": "The Log Analytics workspace key.",  
                     "type": "string"        
               },       
              "selectedConfigurations": {        
                "description": "The selected configurations.",   
                 "$ref": "#/definitions/AzureMonitorSelectedConfigurations"       
                } 
          }
    }
    

    @RamyasreeChakka RamyasreeChakka 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 May 27, 2021
    Copy link
    Member

    @RamyasreeChakka RamyasreeChakka left a comment

    Choose a reason for hiding this comment

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

    :shipit:

    @RAY-316
    Copy link
    Contributor

    RAY-316 commented May 31, 2021

    /azp run

    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * Add networkProperties and clusterId
    
    * Add Azure Monitor API
    
    * Add azure monitor examples and modify descriptions and add related api in 2015-03-01-preview
    
    Co-authored-by: Zhenyu Zhou <[email protected]>
    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 ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-BreakingChange-Python
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants