diff --git a/lib/services/graphManagement/lib/models/application.js b/lib/services/graphManagement/lib/models/application.js index 52acf53ed4..cde51e7052 100644 --- a/lib/services/graphManagement/lib/models/application.js +++ b/lib/services/graphManagement/lib/models/application.js @@ -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(); @@ -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' + } + } + } } } } diff --git a/lib/services/graphManagement/lib/models/index.d.ts b/lib/services/graphManagement/lib/models/index.d.ts index 2a41f6f5ab..5faedd14fe 100644 --- a/lib/services/graphManagement/lib/models/index.d.ts +++ b/lib/services/graphManagement/lib/models/index.d.ts @@ -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; @@ -300,6 +304,7 @@ export interface Application extends DirectoryObject { replyUrls?: string[]; homepage?: string; oauth2AllowImplicitFlow?: boolean; + requiredResourceAccess?: RequiredResourceAccess[]; } /**