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

added new api version for Tables resource #11850

Merged
merged 21 commits into from
Dec 14, 2020
Merged

Conversation

dabenhamMic
Copy link
Contributor

@dabenhamMic dabenhamMic commented Nov 30, 2020

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

Changelog

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

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

Contribution checklist:

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

ARM API Review Checklist

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

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

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

Breaking Change Review Checklist

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

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

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

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

IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 30, 2020

Swagger Validation Report

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

Rule Message
⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'tables' with immediate parent 'Workspace', must have a list by immediate parent operation.
New: Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json#L401
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isTroubleshootingAllowed
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L190
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isTroubleshootEnabled
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L195
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️⚠️[Staging] Cross Version BreakingChange (Base on preview version): 11 Warnings warning [Detail] Only 10 items are listed, please refer to log for more details.

Rule Message
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'code' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'details' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'target' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'message' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'additionalInfo' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L183:9
Old: Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json#L183:9
⚠️ 1037 - ConstraintIsWeaker The new version has a less constraining 'minimum' value than the previous one.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L183:9
Old: Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json#L183:9
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json#L194:7
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json#L194:7
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json#L194:7
️⚠️[Staging] Cross Version BreakingChange (Base on stable version): 11 Warnings warning [Detail] Only 10 items are listed, please refer to log for more details.

Rule Message
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'code' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'details' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'target' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'message' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'additionalInfo' renamed or removed?
New: common-types/resource-management/v2/types.json#L316:7
Old: common-types/resource-management/v1/types.json#L280:7
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L183:9
Old: Microsoft.OperationalInsights/stable/2020-08-01/Tables.json#L183:9
⚠️ 1037 - ConstraintIsWeaker The new version has a less constraining 'minimum' value than the previous one.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L183:9
Old: Microsoft.OperationalInsights/stable/2020-08-01/Tables.json#L183:9
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/stable/2020-08-01/Tables.json#L194:7
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/stable/2020-08-01/Tables.json#L194:7
⚠️ 1041 - AddedPropertyInResponse The new version has a new property 'systemData' in response that was not found in the old version.
New: Microsoft.OperationalInsights/stable/2020-10-01/Tables.json#L208:7
Old: Microsoft.OperationalInsights/stable/2020-08-01/Tables.json#L194:7
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
Posted by Swagger Pipeline | How to fix these errors?

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 30, 2020
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 30, 2020

Swagger Generation Artifacts

️🔄 azure-sdk-for-net inProgress [Detail]
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 2219606. 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] 2020-12-14 02:31:05 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-loganalytics"
    cmderr	[generate.py] 2020-12-14 02:31:05 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
    cmderr	[generate.py] 2020-12-14 02:31:05 INFO autorest --version=3.0.6327 --use=@autorest/java@4.0.5 --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/loganalytics/azure-resourcemanager-loganalytics --java.namespace=com.azure.resourcemanager.loganalytics  --package-version=1.0.0-beta.1 --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --pipeline.modelerfour.flatten-payloads=false --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md
    cmderr	[generate.py] 2020-12-14 02:31:51 INFO [CI][Success] Write to ci.yml
    cmderr	[generate.py] 2020-12-14 02:31:51 INFO [POM][Process] dealing with pom.xml
    cmderr	[generate.py] 2020-12-14 02:31:51 INFO [POM][Success] Write to pom.xml
    cmderr	[generate.py] 2020-12-14 02:31:51 INFO [POM][Process] dealing with root pom
    cmderr	[generate.py] 2020-12-14 02:31:51 INFO [POM][Skip] pom already has module sdk/loganalytics
    cmderr	[generate.py] WARNING: An illegal reflective access operation has occurred
    cmderr	[generate.py] WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/home/vsts/.m2/repository/org/codehaus/groovy/groovy/3.0.0-beta-2/groovy-3.0.0-beta-2-indy.jar) to method java.util.Collections$UnmodifiableCollection.toString()
    cmderr	[generate.py] WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
    cmderr	[generate.py] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    cmderr	[generate.py] WARNING: All illegal access operations will be denied in a future release
  • ️✔️azure-resourcemanager-loganalytics [View full logs]  [Release SDK Changes]
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Got artifact_id: azure-resourcemanager-loganalytics
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Got artifact: pom.xml
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Got artifact: azure-resourcemanager-loganalytics-1.0.0-beta.1-javadoc.jar
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Got artifact: azure-resourcemanager-loganalytics-1.0.0-beta.1-sources.jar
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Got artifact: azure-resourcemanager-loganalytics-1.0.0-beta.1.jar
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG Match jar package: azure-resourcemanager-loganalytics-1.0.0-beta.1.jar
    cmderr	[Inst] 2020-12-14 02:34:40 DEBUG output: {"full": "curl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/11850/azure-sdk-for-java/azure-resourcemanager-loganalytics/azure-resourcemanager-loganalytics-1.0.0-beta.1.jar\" -o azure-resourcemanager-loganalytics-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-loganalytics -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-loganalytics-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true\n"}
️⚠️ azure-sdk-for-js warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 2219606. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.4 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md
    warn	No file changes detected after generation
    warn	No package detected after generation
️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 2219606. Schema Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	autorest --use=@autorest/azureresourceschema@3.0.92 --version=3.0.6320 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md
  • ️✔️operationalinsights [View full logs]  [Release Schema Changes]
    cmderr	[resource-manager] node-pre-gyp
    cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
    cmderr	[resource-manager]  template-schema-validation-tools@1.0.0 No repository field.
    cmderr	[resource-manager] optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
    cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 2219606. 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
  • ️✔️operationalinsights/mgmt/2020-10-01/operationalinsights [View full logs]  [Release SDK Changes]
    Only show 24 items here, please refer to log for details.
    info	[Changelog] 1. TableProperties.MarshalJSON() ([]byte, error)
    info	[Changelog] 1. TablesClient.Get(context.Context, string, string, string) (Table, error)
    info	[Changelog] 1. TablesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error)
    info	[Changelog] 1. TablesClient.GetResponder(*http.Response) (Table, error)
    info	[Changelog] 1. TablesClient.GetSender(*http.Request) (*http.Response, error)
    info	[Changelog] 1. TablesClient.ListByWorkspace(context.Context, string, string) (TablesListResult, error)
    info	[Changelog] 1. TablesClient.ListByWorkspacePreparer(context.Context, string, string) (*http.Request, error)
    info	[Changelog] 1. TablesClient.ListByWorkspaceResponder(*http.Response) (TablesListResult, error)
    info	[Changelog] 1. TablesClient.ListByWorkspaceSender(*http.Request) (*http.Response, error)
    info	[Changelog] 1. TablesClient.Update(context.Context, string, string, string, Table) (Table, error)
    info	[Changelog] 1. TablesClient.UpdatePreparer(context.Context, string, string, string, Table) (*http.Request, error)
    info	[Changelog] 1. TablesClient.UpdateResponder(*http.Response) (Table, error)
    info	[Changelog] 1. TablesClient.UpdateSender(*http.Request) (*http.Response, error)
    info	[Changelog]
    info	[Changelog] ## Struct Changes
    info	[Changelog]
    info	[Changelog] ### New Structs
    info	[Changelog]
    info	[Changelog] 1. SystemData
    info	[Changelog] 1. Table
    info	[Changelog] 1. TableProperties
    info	[Changelog] 1. TablesClient
    info	[Changelog] 1. TablesListResult
    info	[Changelog]
  • ️✔️operationalinsights/mgmt/2020-08-01/operationalinsights [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
  • ️✔️preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
  • ️✔️preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
  • ️✔️operationalinsights/mgmt/2015-03-20/operationalinsights [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 2219606. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	python3 -m venv venv
    command	pip install --upgrade setuptools wheel pip
    command	pip install pathlib jinja2 msrestazure
    command	autorest --version=V2 --use=@microsoft.azure/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md
    warn	No file changes detected after generation
    warn	No package detected after generation
️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

@ghost
Copy link

ghost commented Nov 30, 2020

Thank you for your contribution dabenhamMic! We will review the pull request and get back to you soon.

@ghost
Copy link

ghost commented Nov 30, 2020

CLA assistant check
All CLA requirements met.

@kairu-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@kairu-ms
Copy link
Contributor

@ArcturusZhang CI is failed for go SDK

@kairu-ms
Copy link
Contributor

@jianyexi Could you help with CI LintDiff issues?

@jianyexi
Copy link
Contributor

@jianyexi Could you help with CI LintDiff issues?

Please use v2/types.json to void conflict and also it contains correct "ErrorResponse"

@kairu-ms kairu-ms merged commit 2219606 into Azure:master Dec 14, 2020
kairu-ms added a commit that referenced this pull request Dec 14, 2020
@jianyexi jianyexi mentioned this pull request Dec 14, 2020
25 tasks
giromm2ms pushed a commit to giromm2ms/azure-rest-api-specs that referenced this pull request Dec 20, 2020
* added3 new properties to TableProperties:
IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.

* added Tables new api version

* changed bool to boolean types

* prettified jsons

* fix erroes in swagger

* undo changes to 2020-03-01-preview version

* pr fixes

* updated TableUpdate example

* changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example

* changed v1 to v2

* changed WorkspaceNameParameter back to V1

* changed ErrorResponse to default ErrorResponse without ref to local definition

* added systemData

* removed systemData

* added systemData to Patch and Get

* moved systemData to Table properties

* deleted systemData from Table.json, added to Get and Put examles

* changed location of systemData in Tables.json

* moved systemData to inside Table definition

* moved systemData inside Table properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants