This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3789 from Azure/restapi_auto_graphrbac/data-plane
[AutoPR] graphrbac/data-plane
- Loading branch information
Showing
26 changed files
with
5,103 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
lib/services/graphManagement/lib/models/addOwnerParameters.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Request parameters for adding a owner to an application. | ||
* | ||
*/ | ||
class AddOwnerParameters { | ||
/** | ||
* Create a AddOwnerParameters. | ||
* @member {string} url A owner object URL, such as | ||
* "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", | ||
* where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and | ||
* "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, | ||
* application, servicePrincipal, group) to be added. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of AddOwnerParameters | ||
* | ||
* @returns {object} metadata of AddOwnerParameters | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AddOwnerParameters', | ||
type: { | ||
name: 'Composite', | ||
additionalProperties: { | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'ObjectElementType', | ||
type: { | ||
name: 'Object' | ||
} | ||
} | ||
} | ||
}, | ||
className: 'AddOwnerParameters', | ||
modelProperties: { | ||
url: { | ||
required: true, | ||
serializedName: 'url', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AddOwnerParameters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Class representing a AppRole. | ||
*/ | ||
class AppRole { | ||
/** | ||
* Create a AppRole. | ||
* @member {string} [id] Unique role identifier inside the appRoles | ||
* collection. | ||
* @member {array} [allowedMemberTypes] Specifies whether this app role | ||
* definition can be assigned to users and groups by setting to 'User', or to | ||
* other applications (that are accessing this application in daemon service | ||
* scenarios) by setting to 'Application', or to both. | ||
* @member {string} [description] Permission help text that appears in the | ||
* admin app assignment and consent experiences. | ||
* @member {string} [displayName] Display name for the permission that | ||
* appears in the admin consent and app assignment experiences. | ||
* @member {boolean} [isEnabled] When creating or updating a role definition, | ||
* this must be set to true (which is the default). To delete a role, this | ||
* must first be set to false. At that point, in a subsequent call, this role | ||
* may be removed. | ||
* @member {string} [value] Specifies the value of the roles claim that the | ||
* application should expect in the authentication and access tokens. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of AppRole | ||
* | ||
* @returns {object} metadata of AppRole | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AppRole', | ||
type: { | ||
name: 'Composite', | ||
className: 'AppRole', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
allowedMemberTypes: { | ||
required: false, | ||
serializedName: 'allowedMemberTypes', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
description: { | ||
required: false, | ||
serializedName: 'description', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
displayName: { | ||
required: false, | ||
serializedName: 'displayName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
isEnabled: { | ||
required: false, | ||
serializedName: 'isEnabled', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
value: { | ||
required: false, | ||
serializedName: 'value', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AppRole; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.