Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/graph] Add "mail" parameter to UserUpdateParameters in graphrbac #2989

Closed
wants to merge 1 commit into from
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
2 changes: 1 addition & 1 deletion sdk/graphrbac/graph/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions sdk/graphrbac/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "GraphRbacManagementClient Library with typescript type definitions for node.js and browser.",
"version": "5.0.1",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.0",
"@azure/ms-rest-js": "^2.0.3",
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
Expand All @@ -20,11 +20,11 @@
"module": "./esm/graphRbacManagementClient.js",
"types": "./esm/graphRbacManagementClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/graphrbac/graph",
"repository": {
Expand Down
5 changes: 2 additions & 3 deletions sdk/graphrbac/graph/src/graphRbacManagementClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
16 changes: 4 additions & 12 deletions sdk/graphrbac/graph/src/graphRbacManagementClientContext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/graph";
const packageVersion = "5.0.0";
const packageVersion = "5.0.1";

export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down Expand Up @@ -47,14 +46,7 @@ export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceCl
this.apiVersion = '1.6';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;

// This is a manual patch to mitigate a bug in autorest.typescript
// https://github.com/Azure/autorest.typescript/issues/545
//
// If you are regenerating this package, and you have seen a diff that removes
// this comment or changes the following line. Please check to see if the bug
// above has been fixed. If not, please keep this change.
this.baseUri = options.baseUri || "https://graph.windows.net";
this.baseUri = options.baseUri || this.baseUri || "https://graph.windows.net";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.tenantID = tenantID;
Expand Down
5 changes: 3 additions & 2 deletions sdk/graphrbac/graph/src/models/applicationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -16,6 +16,7 @@ export {
ApplicationListResult,
ApplicationUpdateParameters,
AppRole,
AppRoleAssignment,
DirectoryObject,
DirectoryObjectListResult,
GraphError,
Expand Down
5 changes: 3 additions & 2 deletions sdk/graphrbac/graph/src/models/deletedApplicationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -12,6 +12,7 @@ export {
Application,
ApplicationListResult,
AppRole,
AppRoleAssignment,
DirectoryObject,
GraphError,
InformationalUrl,
Expand Down
4 changes: 2 additions & 2 deletions sdk/graphrbac/graph/src/models/domainsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
5 changes: 3 additions & 2 deletions sdk/graphrbac/graph/src/models/groupsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -12,6 +12,7 @@ export {
ADGroup,
Application,
AppRole,
AppRoleAssignment,
CheckGroupMembershipParameters,
CheckGroupMembershipResult,
DirectoryObject,
Expand Down
166 changes: 161 additions & 5 deletions sdk/graphrbac/graph/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -178,7 +178,7 @@ export interface GraphError {
/**
* Contains the possible cases for DirectoryObject.
*/
export type DirectoryObjectUnion = DirectoryObject | Application | ADGroup | ServicePrincipal | User;
export type DirectoryObjectUnion = DirectoryObject | Application | AppRoleAssignment | ADGroup | ServicePrincipal | User;

/**
* Represents an Azure Active Directory object.
Expand Down Expand Up @@ -390,8 +390,9 @@ export interface ApplicationBase {
errorUrl?: string;
/**
* Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
* Possible values include: 'None', 'SecurityGroup', 'All'
*/
groupMembershipClaims?: any;
groupMembershipClaims?: GroupMembershipClaimTypes;
/**
* The home page of the application.
*/
Expand Down Expand Up @@ -575,8 +576,9 @@ export interface Application {
errorUrl?: string;
/**
* Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
* Possible values include: 'None', 'SecurityGroup', 'All'
*/
groupMembershipClaims?: any;
groupMembershipClaims?: GroupMembershipClaimTypes;
/**
* The home page of the application.
*/
Expand Down Expand Up @@ -709,6 +711,52 @@ export interface AddOwnerParameters {
[property: string]: any;
}

/**
* AppRoleAssignment information.
*/
export interface AppRoleAssignment {
/**
* Polymorphic Discriminator
*/
objectType: "AppRoleAssignment";
/**
* The object ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly objectId?: string;
/**
* The time at which the directory object was deleted.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly deletionTimestamp?: Date;
/**
* The role id that was assigned to the principal. This role must be declared by the target
* resource application resourceId in its appRoles property.
*/
id?: string;
/**
* The display name of the principal that was granted the access.
*/
principalDisplayName?: string;
/**
* The unique identifier (objectId) for the principal being granted the access.
*/
principalId?: string;
/**
* The type of principal. This can either be "User", "Group" or "ServicePrincipal".
*/
principalType?: string;
/**
* The display name of the resource to which the assignment was made.
*/
resourceDisplayName?: string;
/**
* The unique identifier (objectId) for the target resource (service principal) for which the
* assignment was made.
*/
resourceId?: string;
}

/**
* Request parameters for a KeyCredentials update operation
*/
Expand Down Expand Up @@ -1122,6 +1170,10 @@ export interface UserUpdateParameters extends UserBase {
* The mail alias for the user.
*/
mailNickname?: string;
/**
* The primary email address of the user.
*/
mail?: string;
}

/**
Expand Down Expand Up @@ -1374,6 +1426,10 @@ export interface UsersListOptionalParams extends msRest.RequestOptionsBase {
* The filter to apply to the operation.
*/
filter?: string;
/**
* The expand value for the operation result.
*/
expand?: string;
}

/**
Expand Down Expand Up @@ -1486,6 +1542,18 @@ export interface ServicePrincipalListResult extends Array<ServicePrincipal> {
odatanextLink?: string;
}

/**
* @interface
* AppRoleAssignment list operation result.
* @extends Array<AppRoleAssignment>
*/
export interface AppRoleAssignmentListResult extends Array<AppRoleAssignment> {
/**
* The URL to get the next set of results.
*/
odatanextLink?: string;
}

/**
* @interface
* Server response for Get tenant users API call.
Expand Down Expand Up @@ -1526,6 +1594,14 @@ export interface OAuth2PermissionGrantListResult extends Array<OAuth2PermissionG
odatanextLink?: string;
}

/**
* Defines values for GroupMembershipClaimTypes.
* Possible values include: 'None', 'SecurityGroup', 'All'
* @readonly
* @enum {string}
*/
export type GroupMembershipClaimTypes = 'None' | 'SecurityGroup' | 'All';

/**
* Defines values for UserType.
* Possible values include: 'Member', 'Guest'
Expand Down Expand Up @@ -2102,6 +2178,46 @@ export type ServicePrincipalsGetResponse = ServicePrincipal & {
};
};

/**
* Contains response data for the listAppRoleAssignedTo operation.
*/
export type ServicePrincipalsListAppRoleAssignedToResponse = AppRoleAssignmentListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AppRoleAssignmentListResult;
};
};

/**
* Contains response data for the listAppRoleAssignments operation.
*/
export type ServicePrincipalsListAppRoleAssignmentsResponse = AppRoleAssignmentListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AppRoleAssignmentListResult;
};
};

/**
* Contains response data for the listOwners operation.
*/
Expand Down Expand Up @@ -2182,6 +2298,46 @@ export type ServicePrincipalsListNextResponse = ServicePrincipalListResult & {
};
};

/**
* Contains response data for the listAppRoleAssignedToNext operation.
*/
export type ServicePrincipalsListAppRoleAssignedToNextResponse = AppRoleAssignmentListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AppRoleAssignmentListResult;
};
};

/**
* Contains response data for the listAppRoleAssignmentsNext operation.
*/
export type ServicePrincipalsListAppRoleAssignmentsNextResponse = AppRoleAssignmentListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AppRoleAssignmentListResult;
};
};

/**
* Contains response data for the listOwnersNext operation.
*/
Expand Down
Loading