Permalink
Browse files

Merge pull request #2270 from amarzavery/graph

updating graph library with the latest swagger changes as of 9/22/2017
  • Loading branch information...
2 parents 3121a07 + fa13ed1 commit ca6b8ad04a2571553bd2fba3bc344f76211fdf6f @amarzavery amarzavery committed on GitHub Sep 23, 2017
Showing with 2,315 additions and 981 deletions.
  1. +7 −3 lib/services/graphManagement/lib/graphRbacManagementClient.d.ts
  2. +17 −27 lib/services/graphManagement/lib/graphRbacManagementClient.js
  3. +113 −25 lib/services/graphManagement/lib/models/aADObject.js
  4. +8 −13 lib/services/graphManagement/lib/models/aDGroup.js
  5. +23 −22 lib/services/graphManagement/lib/models/application.js
  6. +42 −19 lib/services/graphManagement/lib/models/applicationCreateParameters.js
  7. +4 −6 lib/services/graphManagement/lib/models/applicationListResult.js
  8. +42 −19 lib/services/graphManagement/lib/models/applicationUpdateParameters.js
  9. +6 −8 lib/services/graphManagement/lib/models/checkGroupMembershipParameters.js
  10. +6 −7 lib/services/graphManagement/lib/models/checkGroupMembershipResult.js
  11. +80 −0 lib/services/graphManagement/lib/models/domain.js
  12. +59 −0 lib/services/graphManagement/lib/models/domainListResult.js
  13. +7 −10 lib/services/graphManagement/lib/models/getObjectsParameters.js
  14. +4 −6 lib/services/graphManagement/lib/models/getObjectsResult.js
  15. +5 −7 lib/services/graphManagement/lib/models/graphError.js
  16. +8 −9 lib/services/graphManagement/lib/models/groupAddMemberParameters.js
  17. +5 −7 lib/services/graphManagement/lib/models/groupCreateParameters.js
  18. +6 −7 lib/services/graphManagement/lib/models/groupGetMemberGroupsParameters.js
  19. +3 −4 lib/services/graphManagement/lib/models/groupGetMemberGroupsResult.js
  20. +4 −6 lib/services/graphManagement/lib/models/groupListResult.js
  21. +166 −379 lib/services/graphManagement/lib/models/index.d.ts
  22. +6 −9 lib/services/graphManagement/lib/models/index.js
  23. +10 −16 lib/services/graphManagement/lib/models/keyCredential.js
  24. +3 −4 lib/services/graphManagement/lib/models/keyCredentialListResult.js
  25. +4 −5 lib/services/graphManagement/lib/models/keyCredentialsUpdateParameters.js
  26. +7 −11 lib/services/graphManagement/lib/models/passwordCredential.js
  27. +3 −4 lib/services/graphManagement/lib/models/passwordCredentialListResult.js
  28. +4 −5 lib/services/graphManagement/lib/models/passwordCredentialsUpdateParameters.js
  29. +6 −8 lib/services/graphManagement/lib/models/passwordProfile.js
  30. +78 −0 lib/services/graphManagement/lib/models/requiredResourceAccess.js
  31. +64 −0 lib/services/graphManagement/lib/models/resourceAccess.js
  32. +9 −14 lib/services/graphManagement/lib/models/servicePrincipal.js
  33. +8 −12 lib/services/graphManagement/lib/models/servicePrincipalCreateParameters.js
  34. +4 −6 lib/services/graphManagement/lib/models/servicePrincipalListResult.js
  35. +63 −0 lib/services/graphManagement/lib/models/signInName.js
  36. +76 −28 lib/services/graphManagement/lib/models/user.js
  37. +91 −0 lib/services/graphManagement/lib/models/userBase.js
  38. +54 −28 lib/services/graphManagement/lib/models/userCreateParameters.js
  39. +6 −7 lib/services/graphManagement/lib/models/userGetMemberGroupsParameters.js
  40. +3 −4 lib/services/graphManagement/lib/models/userGetMemberGroupsResult.js
  41. +4 −6 lib/services/graphManagement/lib/models/userListResult.js
  42. +58 −17 lib/services/graphManagement/lib/models/userUpdateParameters.js
  43. +113 −50 lib/services/graphManagement/lib/operations/applications.js
  44. +476 −0 lib/services/graphManagement/lib/operations/domains.js
  45. +71 −54 lib/services/graphManagement/lib/operations/groups.js
  46. +229 −0 lib/services/graphManagement/lib/operations/index.d.ts
  47. +1 −0 lib/services/graphManagement/lib/operations/index.js
  48. +23 −22 lib/services/graphManagement/lib/operations/objects.js
  49. +59 −46 lib/services/graphManagement/lib/operations/servicePrincipals.js
  50. +164 −38 lib/services/graphManagement/lib/operations/users.js
  51. +3 −3 lib/services/graphManagement/package.json
@@ -8,10 +8,11 @@
* regenerated.
*/
-import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
+import { ServiceClientCredentials } from 'ms-rest';
+import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
-declare class GraphRbacManagementClient {
+declare class GraphRbacManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the GraphRbacManagementClient class.
* @constructor
@@ -39,10 +40,12 @@ declare class GraphRbacManagementClient {
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
- constructor(credentials: ServiceClientCredentials, tenantID: string, baseUri?: string, options?: ServiceClientOptions);
+ constructor(credentials: ServiceClientCredentials, tenantID: string, baseUri?: string, options?: AzureServiceClientOptions);
credentials: ServiceClientCredentials;
+ apiVersion: string;
+
tenantID: string;
acceptLanguage: string;
@@ -57,6 +60,7 @@ declare class GraphRbacManagementClient {
groups: operations.Groups;
servicePrincipals: operations.ServicePrincipals;
users: operations.Users;
+ domains: operations.Domains;
}
export = GraphRbacManagementClient;
@@ -22,34 +22,22 @@ const models = require('./models');
const operations = require('./operations');
-/**
- * @class
- * Initializes a new instance of the GraphRbacManagementClient class.
- * @constructor
- *
- * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
- *
- * @param {string} tenantID - The tenant ID.
- *
- * @param {string} [baseUri] - The base URI of the service.
- *
- * @param {object} [options] - The parameter options
- *
- * @param {Array} [options.filters] - Filters to be added to the request pipeline
- *
- * @param {object} [options.requestOptions] - Options for the underlying request object
- * {@link https://github.com/request/request#requestoptions-callback Options doc}
- *
- * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
- *
- * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
- *
- * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
- *
- * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
- *
- */
+/** Class representing a GraphRbacManagementClient. */
class GraphRbacManagementClient extends ServiceClient {
+ /**
+ * Create a GraphRbacManagementClient.
+ * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
+ * @param {string} tenantID - The tenant ID.
+ * @param {string} [baseUri] - The base URI of the service.
+ * @param {object} [options] - The parameter options
+ * @param {Array} [options.filters] - Filters to be added to the request pipeline
+ * @param {object} [options.requestOptions] - Options for the underlying request object
+ * {@link https://github.com/request/request#requestoptions-callback Options doc}
+ * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
+ * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
+ * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
+ * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
+ */
constructor(credentials, tenantID, baseUri, options) {
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
@@ -62,6 +50,7 @@ class GraphRbacManagementClient extends ServiceClient {
super(credentials, options);
+ this.apiVersion = '1.6';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
@@ -88,6 +77,7 @@ class GraphRbacManagementClient extends ServiceClient {
this.groups = new operations.Groups(this);
this.servicePrincipals = new operations.ServicePrincipals(this);
this.users = new operations.Users(this);
+ this.domains = new operations.Domains(this);
this.models = models;
msRest.addSerializationMixin(this);
}
View
@@ -11,35 +11,38 @@
'use strict';
/**
- * @class
- * Initializes a new instance of the AADObject class.
- * @constructor
* The properties of an Active Directory object.
*
- * @member {string} [objectId] The ID of the object.
- *
- * @member {string} [objectType] The type of AAD object.
- *
- * @member {string} [displayName] The display name of the object.
- *
- * @member {string} [userPrincipalName] The principal name of the object.
- *
- * @member {string} [mail] The primary email address of the object.
- *
- * @member {boolean} [mailEnabled] Whether the AAD object is mail-enabled.
- *
- * @member {boolean} [securityEnabled] Whether the AAD object is
- * security-enabled.
- *
- * @member {string} [signInName] The sign-in name of the object.
- *
- * @member {array} [servicePrincipalNames] A collection of service principal
- * names associated with the object.
- *
- * @member {string} [userType] The user type of the object.
- *
*/
class AADObject {
+ /**
+ * Create a AADObject.
+ * @member {string} [objectId] The ID of the object.
+ * @member {string} [objectType] The type of AAD object.
+ * @member {string} [displayName] The display name of the object.
+ * @member {string} [userPrincipalName] The principal name of the object.
+ * @member {string} [mail] The primary email address of the object.
+ * @member {boolean} [mailEnabled] Whether the AAD object is mail-enabled.
+ * @member {string} [mailNickname] The mail alias for the user.
+ * @member {boolean} [securityEnabled] Whether the AAD object is
+ * security-enabled.
+ * @member {string} [signInName] The sign-in name of the object.
+ * @member {array} [servicePrincipalNames] A collection of service principal
+ * names associated with the object.
+ * @member {string} [userType] The user type of the object.
+ * @member {string} [usageLocation] A two letter country code (ISO standard
+ * 3166). Required for users that will be assigned licenses due to legal
+ * requirement to check for availability of services in countries. Examples
+ * include: "US", "JP", and "GB".
+ * @member {string} [appId] The application ID.
+ * @member {array} [appPermissions] The application permissions.
+ * @member {boolean} [availableToOtherTenants] Whether the application is be
+ * available to other tenants.
+ * @member {array} [identifierUris] A collection of URIs for the application.
+ * @member {array} [replyUrls] A collection of reply URLs for the
+ * application.
+ * @member {string} [homepage] The home page of the application.
+ */
constructor() {
}
@@ -99,6 +102,14 @@ class AADObject {
name: 'Boolean'
}
},
+ mailNickname: {
+ required: false,
+ readOnly: true,
+ serializedName: 'mailNickname',
+ type: {
+ name: 'String'
+ }
+ },
securityEnabled: {
required: false,
serializedName: 'securityEnabled',
@@ -133,6 +144,83 @@ class AADObject {
type: {
name: 'String'
}
+ },
+ usageLocation: {
+ required: false,
+ readOnly: true,
+ serializedName: 'usageLocation',
+ type: {
+ name: 'String'
+ }
+ },
+ appId: {
+ required: false,
+ readOnly: true,
+ serializedName: 'appId',
+ type: {
+ name: 'String'
+ }
+ },
+ appPermissions: {
+ required: false,
+ readOnly: true,
+ serializedName: 'appPermissions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ availableToOtherTenants: {
+ required: false,
+ readOnly: true,
+ serializedName: 'availableToOtherTenants',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ identifierUris: {
+ required: false,
+ readOnly: true,
+ serializedName: 'identifierUris',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ replyUrls: {
+ required: false,
+ readOnly: true,
+ serializedName: 'replyUrls',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ homepage: {
+ required: false,
+ readOnly: true,
+ serializedName: 'homepage',
+ type: {
+ name: 'String'
+ }
}
}
}
View
@@ -11,23 +11,18 @@
'use strict';
/**
- * @class
- * Initializes a new instance of the ADGroup class.
- * @constructor
* Active Directory group information.
*
- * @member {string} [objectId] The object ID.
- *
- * @member {string} [objectType] The object type.
- *
- * @member {string} [displayName] The display name of the group.
- *
- * @member {boolean} [securityEnabled] Whether the group is security-enable.
- *
- * @member {string} [mail] The primary email address of the group.
- *
*/
class ADGroup {
+ /**
+ * Create a ADGroup.
+ * @member {string} [objectId] The object ID.
+ * @member {string} [objectType] The object type.
+ * @member {string} [displayName] The display name of the group.
+ * @member {boolean} [securityEnabled] Whether the group is security-enable.
+ * @member {string} [mail] The primary email address of the group.
+ */
constructor() {
}
@@ -11,32 +11,26 @@
'use strict';
/**
- * @class
- * Initializes a new instance of the Application class.
- * @constructor
* Active Directory application information.
*
- * @member {string} [objectId] The object ID.
- *
- * @member {string} [objectType] The object type.
- *
- * @member {string} [appId] The application ID.
- *
- * @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 application.
- *
- * @member {string} [homepage] The home page of the application.
- *
*/
class Application {
+ /**
+ * Create a Application.
+ * @member {string} [objectId] The object ID.
+ * @member {string} [objectType] The object type.
+ * @member {string} [appId] The application ID.
+ * @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
+ * application.
+ * @member {string} [homepage] The home page of the application.
+ * @member {boolean} [oauth2AllowImplicitFlow] Whether to allow implicit
+ * grant flow for OAuth2
+ */
constructor() {
}
@@ -137,6 +131,13 @@ class Application {
type: {
name: 'String'
}
+ },
+ oauth2AllowImplicitFlow: {
+ required: false,
+ serializedName: 'oauth2AllowImplicitFlow',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
Oops, something went wrong.

0 comments on commit ca6b8ad

Please sign in to comment.