Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions lib/services/graphManagement/lib/models/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class Application extends models['DirectoryObject'] {
* @member {string} [homepage] The home page of the application.
* @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* grant flow for OAuth2
* @member {array} [requiredResourceAccess] Specifies resources that this
* application requires access to and the set of OAuth permission scopes and
* application roles that it needs under each of those resources. This
* pre-configuration of required resource access drives the consent
* experience.
*/
constructor() {
super();
Expand Down Expand Up @@ -173,6 +178,33 @@ class Application extends models['DirectoryObject'] {
type: {
name: 'Boolean'
}
},
requiredResourceAccess: {
required: false,
serializedName: 'requiredResourceAccess',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'RequiredResourceAccessElementType',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'RequiredResourceAccess'
}
}
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions lib/services/graphManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ export interface ApplicationUpdateParameters {
* @member {string} [homepage] The home page of the application.
* @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit grant
* flow for OAuth2
* @member {array} [requiredResourceAccess] Specifies resources that this
* application requires access to and the set of OAuth permission scopes and
* application roles that it needs under each of those resources. This
* pre-configuration of required resource access drives the consent experience.
*/
export interface Application extends DirectoryObject {
appId?: string;
Expand All @@ -300,6 +304,7 @@ export interface Application extends DirectoryObject {
replyUrls?: string[];
homepage?: string;
oauth2AllowImplicitFlow?: boolean;
requiredResourceAccess?: RequiredResourceAccess[];
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/services/graphManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-graph",
"author": "Microsoft Corporation",
"description": "GraphRbacManagementClient Library with typescript type definitions for node",
"version": "4.1.0",
"version": "4.2.0",
"dependencies": {
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
Expand All @@ -22,4 +22,4 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-node/issues"
}
}
}