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

Grlin/Adding Principal Type to RA #3737

Merged
merged 5 commits into from
Sep 4, 2018

Conversation

grlin
Copy link
Contributor

@grlin grlin commented Aug 27, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Aug 27, 2018

Automation for azure-sdk-for-python

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

@AutorestCI
Copy link

AutorestCI commented Aug 27, 2018

Automation for azure-sdk-for-ruby

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

@AutorestCI
Copy link

AutorestCI commented Aug 27, 2018

Automation for azure-sdk-for-node

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

@AutorestCI
Copy link

AutorestCI commented Aug 27, 2018

Automation for azure-sdk-for-java

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

@AutorestCI
Copy link

AutorestCI commented Aug 27, 2018

Automation for azure-sdk-for-go

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

@anuchandy
Copy link
Member

@annatisch is it ok if i take this PR? I'm working with @grlin already on this.

@annatisch annatisch removed their assignment Aug 28, 2018
@annatisch annatisch removed their request for review August 28, 2018 13:51
@annatisch
Copy link
Member

Thanks @anuchandy! :)

@anuchandy anuchandy added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Aug 29, 2018
"principalType": {
"type": "string",
"description": "The principal type of the assigned principal ID, e.g. user, service principal."
},
Copy link
Member

Choose a reason for hiding this comment

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

Is there a list of known values for principal types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there is. Where should I include this?

Copy link
Member

Choose a reason for hiding this comment

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

you can define it as an openapi enum type, like

        "principalType": {
          "type": "string",
          "description": "The principal type of the assigned principal ID, e.g. user, service principal",
          "enum": [
            "User",
            "<other-value1>",
            "<other-value2>"
          ],
          "x-ms-enum": {
            "name": "PrincipalType",
            "modelAsString": true|false
          }
        }

List all the possible values under principalType::enum array.

If this list is limited and not going to change at least in this api-version then use "modelAsString":false otherwise "modelAsString": true.

Also is this a readonly property? then you can mark it as readonly: true as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How can I update this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've pushed the commit

@ravbhatnagar ravbhatnagar 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 Sep 3, 2018
@anuchandy anuchandy merged commit 47a0b4a into Azure:master Sep 4, 2018
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.

6 participants