Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,10 @@
"type": "string",
"description": "The role definition description."
},
"roletype": {
"type": {
"type": "string",
Copy link
Contributor

@mcardosos mcardosos Nov 22, 2017

Choose a reason for hiding this comment

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

From what we talked offline, this should be renamed to roleName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since there are two fields with name "type" in the response that is sent by the service.
we cant name this as rolename,because it wouldnt match the property "type" and would miss out having the value like custom role/builtin role

Copy link
Contributor

Choose a reason for hiding this comment

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

Okok, there was some confusion on my side.
The property name should be the very same that is returned by the service. In this case, if you want to still get the benefits from x-ms-client-flatten, there is another extension that can be used to override the property name in the SDK code without changing serialization. Look into x-ms-client-name


In reply to: 152688623 [](ancestors = 152688623)

Copy link
Contributor

Choose a reason for hiding this comment

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

Okok, there was some confusion on my side.
The property name should be the very same that is returned by the service. In this case, if you want to still get the benefits from x-ms-client-flatten, there is another extension that can be used to override the property name in the SDK code without changing serialization. Look into x-ms-client-name

"description": "The role type."
"description": "The role type.",
"x-ms-client-name": "roleType"
},
"permissions": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"body": {
"properties": {
"roleName": "Role name",
"roletype": "roletype",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"properties": {
"roleName": "Role name",
"roletype": "roletype",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"body": {
"properties": {
"roleName": "Role name",
"roletype": "roletype",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"body": {
"properties": {
"roleName": "Role name",
"roletype": "roletype",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"body": {
"properties": {
"roleName": "Role name",
"roletype": "roletype",
"type": "roletype",
"description": "Role description",
"assignableScopes": [
"/subscriptions/subId"
Expand Down