Skip to content

[Do not merge]Add azure managed application, get application definition API#6680

Closed
dandanwang0320 wants to merge 6 commits intoAzure:masterfrom
dandanwang0320:AddAppDefArtifact
Closed

[Do not merge]Add azure managed application, get application definition API#6680
dandanwang0320 wants to merge 6 commits intoAzure:masterfrom
dandanwang0320:AddAppDefArtifact

Conversation

@dandanwang0320
Copy link
Contributor

Reference code
ARM\AzureUX\ARM\src\providers\Roles\Providers.Feature\Controllers\ApplicationDefinitionArtifactController.cs

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.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jul 19, 2019

In Testing, Please Ignore

[Logs] (Generated from 5e7f34b, Iteration 6)

Warning .NET: test-repo-billy/azure-sdk-for-net [Logs] [Diff]
  • No packages generated.
Failed Python: test-repo-billy/azure-sdk-for-python [Logs]
  • No packages generated.
Failed Java: test-repo-billy/azure-sdk-for-java [Logs] [Diff]
  • Failed features/resource-manager/v2015_12_01 [Logs] [Generation PR]
  • Failed locks/resource-manager/v2016_09_01 [Logs]
  • Failed policy/resource-manager/v2016_12_01 [Logs]
  • Failed policy/resource-manager/v2018_03_01 [Logs]
  • Failed policy/resource-manager/v2018_05_01 [Logs]
  • Failed policy/resource-manager/v2019_01_01 [Logs]
  • Failed resources/resource-manager/v2016_06_01 [Logs]
  • Failed resources/resource-manager/v2016_09_01 [Logs]
  • Failed resources/resource-manager/v2018_02_01 [Logs]
  • Failed resources/resource-manager/v2018_06_01 [Logs]
  • Failed resources/resource-manager/v2019_03_01 [Logs]
  • Failed resources/resource-manager/v2019_05_01 [Logs]
  • Failed resources/resource-manager/v2019_05_10 [Logs]
  • Failed resources/resource-manager/v2019_07_01 [Logs]
In-Progress Go: test-repo-billy/azure-sdk-for-go [Logs] [Diff]
  • Warning preview/resources/mgmt/2015-10-01-preview [Logs]
  • Warning preview/resources/mgmt/2016-09-01-preview [Logs]
  • Warning preview/resources/mgmt/2017-06-01-preview [Logs]
  • Warning resources/mgmt/2015-01-01 [Logs]
  • Warning resources/mgmt/2015-11-01 [Logs]
  • Failed resources/mgmt/2015-12-01 [Logs]
  • Warning resources/mgmt/2016-02-01 [Logs]
  • Warning resources/mgmt/2016-04-01 [Logs]
  • Warning resources/mgmt/2016-06-01 [Logs]
  • Warning resources/mgmt/2016-07-01 [Logs]
  • Warning resources/mgmt/2016-09-01 [Logs]
  • Warning resources/mgmt/2016-12-01 [Logs]
  • Warning resources/mgmt/2017-05-10 [Logs]
  • Warning resources/mgmt/2017-09-01 [Logs]
  • Warning resources/mgmt/2018-02-01 [Logs]
  • Warning resources/mgmt/2018-03-01 [Logs]
  • Warning resources/mgmt/2018-05-01 [Logs]
  • Warning resources/mgmt/2018-06-01 [Logs]
  • Warning resources/mgmt/2019-01-01 [Logs]
  • Succeeded resources/mgmt/2019-03-01 [Logs] [Instructions] [Generation PR]
  • Failed resources/mgmt/2019-05-01 [Logs]
Succeeded JavaScript: test-repo-billy/azure-sdk-for-js [Logs] [Diff]

@AutorestCI
Copy link

AutorestCI commented Jul 19, 2019

Automation for azure-sdk-for-python

Encountered an unknown error: (azure-sdk-for-python)

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
    yield context
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
    return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
    rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
    sdk_tag=sdk_tag
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
    with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
    clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
    repo.git.checkout(branch_or_commit)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
    return self.execute(call, **exec_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git checkout 65cfeddeff682bc643a103d6f35fae67802318d9
  stderr: 'fatal: reference is not a tree: 65cfeddeff682bc643a103d6f35fae67802318d9'

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Jul 19, 2019

Automation for azure-sdk-for-go

Encountered an unknown error: (azure-sdk-for-go)

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
    yield context
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
    return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
    rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
    sdk_tag=sdk_tag
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
    with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
    clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
    repo.git.checkout(branch_or_commit)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
    return self.execute(call, **exec_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git checkout 65cfeddeff682bc643a103d6f35fae67802318d9
  stderr: 'fatal: reference is not a tree: 65cfeddeff682bc643a103d6f35fae67802318d9'

@AutorestCI
Copy link

AutorestCI commented Jul 19, 2019

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

Copy link
Member

@raych1 raych1 left a comment

Choose a reason for hiding this comment

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

@dandanwang0320 , pls resolve the CI failures.

…table/2019-03-01/managedapplications.json

Co-Authored-By: Nick Schonning <nschonni@gmail.com>
@dandanwang0320
Copy link
Contributor Author

@dandanwang0320 , pls resolve the CI failures.

I think these errors are unrelated to this change. The new changes are in commit 75cf949

Also I have another PR 5889 that works on the same folder that should fix the model validations.
So I did not make the same fixes here.

@raych1
Copy link
Member

raych1 commented Aug 2, 2019

@dandanwang0320 , pls resolve the CI failures.

I think these errors are unrelated to this change. The new changes are in commit 75cf949
Also I have another PR 5889 that works on the same folder that should fix the model validations.
So I did not make the same fixes here.

@dandanwang0320 , it doens't allow duplicated operation_id - ApplicationDefinitions_Get defined. operation_id has to be unique.

@raych1
Copy link
Member

raych1 commented Aug 2, 2019

@dandanwang0320 , can you reference the errors to fix README.md file to include the referenced files.

@dandanwang0320
Copy link
Contributor Author

Should be fixed now. Also fixed model validation errors in example files.

@dandanwang0320 , can you reference the errors to fix README.md file to include the referenced files.

@raych1 raych1 added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Aug 7, 2019
@raych1
Copy link
Member

raych1 commented Aug 7, 2019

@Tiano2017 @rajshah11 @vivsriaus, can you review this PR?

Copy link
Contributor

@ravbhatnagar ravbhatnagar left a comment

Choose a reason for hiding this comment

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

@dandanwang0320 - please take a look

@raych1
Copy link
Member

raych1 commented Aug 13, 2019

@dandanwang0320 , please resolve the comments.

@dandanwang0320 dandanwang0320 changed the title Add azure managed application, get application definition API [Do not merge]Add azure managed application, get application definition API Aug 27, 2019
@dandanwang0320
Copy link
Contributor Author

Having a internal discussion about whether we should have this API.

@ravbhatnagar
Copy link
Contributor

@dandanwang0320 - can you please confirm with Manohar whether this API needs to be documented. If not, please close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants