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[]; } /** diff --git a/lib/services/graphManagement/package.json b/lib/services/graphManagement/package.json index 6afd38301a..00057257c8 100644 --- a/lib/services/graphManagement/package.json +++ b/lib/services/graphManagement/package.json @@ -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" @@ -22,4 +22,4 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} +} \ No newline at end of file