Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
15 changes: 8 additions & 7 deletions lib/services/graphManagement/lib/models/aDGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ const models = require('./index');
class ADGroup extends models['DirectoryObject'] {
/**
* Create a ADGroup.
* @member {string} [displayName] The display name of the group.
* @member {boolean} [mailEnabled] Whether the group is mail-enabled. Must be
* false. This is because only pure security groups can be created using the
* Graph API.
* @member {string} [mailNickname] The mail alias for the group.
* @member {boolean} [securityEnabled] Whether the group is security-enable.
* @member {string} [mail] The primary email address of the group.
* @property {string} [displayName] The display name of the group.
* @property {boolean} [mailEnabled] Whether the group is mail-enabled. Must
* be false. This is because only pure security groups can be created using
* the Graph API.
* @property {string} [mailNickname] The mail alias for the group.
* @property {boolean} [securityEnabled] Whether the group is
* security-enable.
* @property {string} [mail] The primary email address of the group.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class AddOwnerParameters {
/**
* Create a AddOwnerParameters.
* @member {string} url A owner object URL, such as
* @property {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,
Expand Down
18 changes: 9 additions & 9 deletions lib/services/graphManagement/lib/models/appRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
class AppRole {
/**
* Create a AppRole.
* @member {string} [id] Unique role identifier inside the appRoles
* @property {string} [id] Unique role identifier inside the appRoles
* collection.
* @member {array} [allowedMemberTypes] Specifies whether this app role
* @property {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
* @property {string} [description] Permission help text that appears in the
* admin app assignment and consent experiences.
* @member {string} [displayName] Display name for the permission that
* @property {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
* @property {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.
* @property {string} [value] Specifies the value of the roles claim that the
* application should expect in the authentication and access tokens.
*/
constructor() {
Expand Down
80 changes: 69 additions & 11 deletions lib/services/graphManagement/lib/models/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,29 @@ const models = require('./index');
class Application extends models['DirectoryObject'] {
/**
* Create a Application.
* @member {string} [appId] The application ID.
* @member {array} [appRoles] The collection of application roles that an
* @property {string} [appId] The application ID.
* @property {array} [appRoles] The collection of application roles that an
* application may declare. These roles can be assigned to users, groups or
* service principals.
* @member {array} [appPermissions] The application permissions.
* @member {boolean} [availableToOtherTenants] Whether the application is be
* available to other tenants.
* @member {string} [displayName] The display name of the application.
* @member {array} [identifierUris] A collection of URIs for the application.
* @member {array} [replyUrls] A collection of reply URLs for the
* @property {array} [appPermissions] The application permissions.
* @property {boolean} [availableToOtherTenants] Whether the application is
* be available to other tenants.
* @property {string} [displayName] The display name of the application.
* @property {array} [identifierUris] A collection of URIs for the
* application.
* @member {string} [homepage] The home page of the application.
* @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* @property {array} [replyUrls] A collection of reply URLs for the
* application.
* @property {string} [homepage] The home page of the application.
* @property {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* grant flow for OAuth2
* @member {array} [requiredResourceAccess] Specifies resources that this
* @property {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.
* @property {array} [keyCredentials] A collection of KeyCredential objects.
* @property {array} [passwordCredentials] A collection of PasswordCredential
* objects
*/
constructor() {
super();
Expand Down Expand Up @@ -205,6 +209,60 @@ class Application extends models['DirectoryObject'] {
}
}
}
},
keyCredentials: {
required: false,
serializedName: 'keyCredentials',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'KeyCredentialElementType',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'KeyCredential'
}
}
}
},
passwordCredentials: {
required: false,
serializedName: 'passwordCredentials',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'PasswordCredentialElementType',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'PasswordCredential'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
class ApplicationCreateParameters {
/**
* Create a ApplicationCreateParameters.
* @member {array} [appRoles] The collection of application roles that an
* @property {array} [appRoles] The collection of application roles that an
* application may declare. These roles can be assigned to users, groups or
* service principals.
* @member {boolean} availableToOtherTenants Whether the application is
* @property {boolean} availableToOtherTenants Whether the application is
* available to other tenants.
* @member {string} displayName The display name of the application.
* @member {string} [homepage] The home page of the application.
* @member {array} identifierUris A collection of URIs for the application.
* @member {array} [replyUrls] A collection of reply URLs for the
* @property {string} displayName The display name of the application.
* @property {string} [homepage] The home page of the application.
* @property {array} identifierUris A collection of URIs for the application.
* @property {array} [replyUrls] A collection of reply URLs for the
* application.
* @member {array} [keyCredentials] The list of KeyCredential objects.
* @member {array} [passwordCredentials] The list of PasswordCredential
* @property {array} [keyCredentials] The list of KeyCredential objects.
* @property {array} [passwordCredentials] The list of PasswordCredential
* objects.
* @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* @property {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* grant flow for OAuth2
* @member {array} [requiredResourceAccess] Specifies resources that this
* @property {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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class ApplicationListResult extends Array {
/**
* Create a ApplicationListResult.
* @member {string} [odatanextLink] The URL to get the next set of results.
* @property {string} [odatanextLink] The URL to get the next set of results.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,23 @@
class ApplicationUpdateParameters {
/**
* Create a ApplicationUpdateParameters.
* @member {array} [appRoles] The collection of application roles that an
* @property {array} [appRoles] The collection of application roles that an
* application may declare. These roles can be assigned to users, groups or
* service principals.
* @member {boolean} [availableToOtherTenants] Whether the application is
* @property {boolean} [availableToOtherTenants] Whether the application is
* available to other tenants
* @member {string} [displayName] The display name of the application.
* @member {string} [homepage] The home page of the application.
* @member {array} [identifierUris] A collection of URIs for the application.
* @member {array} [replyUrls] A collection of reply URLs for the
* @property {string} [displayName] The display name of the application.
* @property {string} [homepage] The home page of the application.
* @property {array} [identifierUris] A collection of URIs for the
* application.
* @member {array} [keyCredentials] The list of KeyCredential objects.
* @member {array} [passwordCredentials] The list of PasswordCredential
* @property {array} [replyUrls] A collection of reply URLs for the
* application.
* @property {array} [keyCredentials] The list of KeyCredential objects.
* @property {array} [passwordCredentials] The list of PasswordCredential
* objects.
* @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* @property {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
* grant flow for OAuth2
* @member {array} [requiredResourceAccess] Specifies resources that this
* @property {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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class CheckGroupMembershipParameters {
/**
* Create a CheckGroupMembershipParameters.
* @member {string} groupId The object ID of the group to check.
* @member {string} memberId The object ID of the contact, group, user, or
* @property {string} groupId The object ID of the group to check.
* @property {string} memberId The object ID of the contact, group, user, or
* service principal to check for membership in the specified group.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class CheckGroupMembershipResult {
/**
* Create a CheckGroupMembershipResult.
* @member {boolean} [value] True if the specified user, group, contact, or
* @property {boolean} [value] True if the specified user, group, contact, or
* service principal has either direct or transitive membership in the
* specified group; otherwise, false.
*/
Expand Down
8 changes: 4 additions & 4 deletions lib/services/graphManagement/lib/models/directoryObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
class DirectoryObject {
/**
* Create a DirectoryObject.
* @member {string} [objectId] The object ID.
* @member {date} [deletionTimestamp] The time at which the directory object
* was deleted.
* @member {string} objectType Polymorphic Discriminator
* @property {string} [objectId] The object ID.
* @property {date} [deletionTimestamp] The time at which the directory
* object was deleted.
* @property {string} objectType Polymorphic Discriminator
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DirectoryObjectListResult extends Array {
/**
* Create a DirectoryObjectListResult.
* @member {string} [odatanextLink] The URL to get the next set of results.
* @property {string} [odatanextLink] The URL to get the next set of results.
*/
constructor() {
super();
Expand Down
11 changes: 6 additions & 5 deletions lib/services/graphManagement/lib/models/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
class Domain {
/**
* Create a Domain.
* @member {string} [authenticationType] the type of the authentication into
* the domain.
* @member {boolean} [isDefault] if this is the default domain in the tenant.
* @member {boolean} [isVerified] if this domain's ownership is verified.
* @member {string} name the domain name.
* @property {string} [authenticationType] the type of the authentication
* into the domain.
* @property {boolean} [isDefault] if this is the default domain in the
* tenant.
* @property {boolean} [isVerified] if this domain's ownership is verified.
* @property {string} name the domain name.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
class GetObjectsParameters {
/**
* Create a GetObjectsParameters.
* @member {array} [objectIds] The requested object IDs.
* @member {array} [types] The requested object types.
* @member {boolean} [includeDirectoryObjectReferences] If true, also
* @property {array} [objectIds] The requested object IDs.
* @property {array} [types] The requested object types.
* @property {boolean} [includeDirectoryObjectReferences] If true, also
* searches for object IDs in the partner tenant.
*/
constructor() {
Expand Down
4 changes: 2 additions & 2 deletions lib/services/graphManagement/lib/models/graphError.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class GraphError {
/**
* Create a GraphError.
* @member {string} [code] Error code.
* @member {string} [message] Error message value.
* @property {string} [code] Error code.
* @property {string} [message] Error message value.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class GroupAddMemberParameters {
/**
* Create a GroupAddMemberParameters.
* @member {string} url A member object URL, such as
* @property {string} url A member 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 member
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class GroupCreateParameters {
/**
* Create a GroupCreateParameters.
* @member {string} displayName Group display name
* @member {string} mailNickname Mail nickname
* @property {string} displayName Group display name
* @property {string} mailNickname Mail nickname
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class GroupGetMemberGroupsParameters {
/**
* Create a GroupGetMemberGroupsParameters.
* @member {boolean} securityEnabledOnly If true, only membership in
* @property {boolean} securityEnabledOnly If true, only membership in
* security-enabled groups should be checked. Otherwise, membership in all
* groups should be checked.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/services/graphManagement/lib/models/groupListResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class GroupListResult extends Array {
/**
* Create a GroupListResult.
* @member {string} [odatanextLink] The URL to get the next set of results.
* @property {string} [odatanextLink] The URL to get the next set of results.
*/
constructor() {
super();
Expand Down
Loading