Skip to content

Conversation

@debugthings
Copy link
Contributor

Updating the componentWorkItemConfigs_API.json swagger def to address S360 work item.

Changes

  • Added PATCH and GET for a specific WorkItemConfig
  • Added examples for both PATCH and GET
  • Updated the WorkItemConfigsCreate (POST) example to match new schema
  • Updated the WorkItemCreateConfiguration schema definition to match what is currently being sent by ARM and what is expected.
    • Changed ValidateOnly property to string from boolean to match current implementation
    • Changed WorkItemProperties to be a generic dictionary to match current implementation

Latest improvements:

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

Contribution checklist:

  • I have reviewed the documentation for the workflow.
  • Validation tools were run on swagger spec(s) and have all been fixed in this PR.
  • The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
  • adding/removing APIs.
  • adding/removing properties.
  • adding/removing API-version.
  • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@AutorestCI
Copy link

AutorestCI commented May 6, 2019

Automation for azure-sdk-for-ruby

Encountered a Subprocess error: (azure-sdk-for-ruby)

Command: ['/usr/local/bin/autorest', '/tmp/tmpytq_4_vn/rest/specification/applicationinsights/resource-manager/readme.md', '--perform-load=false', '--swagger-to-sdk', '--output-artifact=configuration.json', '--input-file=foo', '--output-folder=/tmp/tmpahxixbbr']
Finished with return code 7
and output:

AutoRest code generation utility [version: 2.0.4283; node: v8.12.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Failure:
Error: Unable to start AutoRest Core from /root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core
Error: Unable to start AutoRest Core from /root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core
    at main (/opt/node_modules/autorest/dist/app.js:232:19)
    at <anonymous>

/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist/app.js:33
    autorest_core_1.Shutdown();
    ^
ReferenceError: autorest_core_1 is not defined
    at process.on (/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist/app.js:33:5)
    at emitOne (events.js:121:20)
    at process.emit (events.js:211:7)
    at process.emit (/node_modules/source-map-support/source-map-support.js:439:21)
fs.js:612
  return binding.close(fd);
                 ^

Error: EBADF: bad file descriptor, close
    at Object.fs.closeSync (fs.js:612:18)
    at StaticVolumeFile.shutdown (/opt/node_modules/autorest/dist/static-loader.js:352:10)
    at StaticFilesystem.shutdown (/opt/node_modules/autorest/dist/static-loader.js:406:17)
    at process.exit.n [as exit] (/opt/node_modules/autorest/dist/static-loader.js:169:11)
    at printErrorAndExit (/node_modules/source-map-support/source-map-support.js:423:11)
    at process.emit (/node_modules/source-map-support/source-map-support.js:435:16)
    at process._fatalException (bootstrap_node.js:391:26)

@AutorestCI
Copy link

AutorestCI commented May 6, 2019

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#2022

@AutorestCI
Copy link

AutorestCI commented May 6, 2019

Automation for azure-sdk-for-js

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-js#2794

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented May 6, 2019

Automation for azure-sdk-for-go

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-go#4768

@debugthings
Copy link
Contributor Author

@TomMilos can you look this over as well to make sure it's good for CDS?

adxsdknet added a commit to adxsdknet/azure-sdk-for-net that referenced this pull request May 6, 2019
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit
@adxsdknet
Copy link

adxsdknet commented May 6, 2019

Automation for azure-sdk-for-net

A PR has been created for you:
Azure/azure-sdk-for-net#6137
.NET SDK Commits:
adxsdknet/azure-sdk-for-net@b87c384
adxsdknet/azure-sdk-for-net@2989561

@AutorestCI
Copy link

AutorestCI commented May 6, 2019

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@majastrz
Copy link
Member

majastrz commented May 7, 2019

"WorkItemCreateConfiguration": {

Just a heads-up, but this resource type schema is a violation of the RPC. Given that this was already available like this, I'm not going to block these changes.

However, ARM API review will block additions of new resource types that are not compliant with the RPC documented at https://github.com/Azure/azure-resource-manager-rpc #Pending


Refers to: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json:304 in dba4561. [](commit_id = dba4561, deletion_comment = False)

Copy link
Member

@majastrz majastrz left a comment

Choose a reason for hiding this comment

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

I added some comments. Please take a look.

adxsdknet added a commit to adxsdknet/azure-sdk-for-net that referenced this pull request May 9, 2019
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit
@debugthings
Copy link
Contributor Author

@dsgouda and @majastrz I've completed the reviewed changes. Please check again and let me know if there are more fixes needed.

Copy link
Member

@majastrz majastrz left a comment

Choose a reason for hiding this comment

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

Looks like all my comments were addressed. Thanks!

@majastrz majastrz added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed ARMChangesRequested WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels May 9, 2019
Copy link
Contributor

@dsgouda dsgouda left a comment

Choose a reason for hiding this comment

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

LGTM

@dsgouda
Copy link
Contributor

dsgouda commented May 9, 2019

@debugthings Pleazse fix the model validation errors reported here

@debugthings
Copy link
Contributor Author

@dsgouda All good now it seems. Thanks for all your help

@dsgouda dsgouda merged commit 39f45ec into Azure:master May 9, 2019
dsgouda pushed a commit to Azure/azure-sdk-for-net that referenced this pull request May 9, 2019
* .NET SDK Resource Provider:'ApplicationInsights'
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit

* .NET SDK Resource Provider:'ApplicationInsights'
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit
mentat9 pushed a commit to mentat9/azure-sdk-for-net that referenced this pull request Jun 10, 2019
…#6137)

* .NET SDK Resource Provider:'ApplicationInsights'
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit

* .NET SDK Resource Provider:'ApplicationInsights'
REST Spec PR 'Azure/azure-rest-api-specs#5870'
REST Spec PR Author 'debugthings'
REST Spec PR Last commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants