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

Regenerated mgmt plane packages that were affected due to a bug in generating polymorphic mappers #4468

Merged
merged 4 commits into from
Jul 27, 2019
Merged
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: 2 additions & 0 deletions sdk/edgegateway/arm-edgegateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/edgegateway/arm-edgegateway/README.png)
14 changes: 7 additions & 7 deletions sdk/edgegateway/arm-edgegateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@azure/arm-edgegateway",
"author": "Microsoft Corporation",
"description": "DataBoxEdgeManagementClient Library with typescript type definitions for node.js and browser.",
"version": "2.0.0",
"version": "2.0.1",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.6.0",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.0",
"@azure/ms-rest-js": "^2.0.3",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -26,13 +26,13 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/edgegateway/arm-edgegateway",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/edgegateway/arm-edgegateway",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-edgegateway";
const packageVersion = "2.0.0";
const packageVersion = "2.0.1";

export class DataBoxEdgeManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down
4 changes: 2 additions & 2 deletions sdk/edgegateway/arm-edgegateway/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export const Trigger: msRest.CompositeMapper = {
serializedName: "kind",
clientName: "kind"
},
uberParent: "Trigger",
uberParent: "BaseResource",
className: "Trigger",
modelProperties: {
...ARMBaseModel.type.modelProperties,
Expand Down Expand Up @@ -777,7 +777,7 @@ export const Role: msRest.CompositeMapper = {
serializedName: "kind",
clientName: "kind"
},
uberParent: "Role",
uberParent: "BaseResource",
className: "Role",
modelProperties: {
...ARMBaseModel.type.modelProperties,
Expand Down
2 changes: 1 addition & 1 deletion sdk/edgegateway/arm-edgegateway/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es6"],
"lib": ["es6", "dom"],
"declaration": true,
"outDir": "./esm",
"importHelpers": true
Expand Down
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) 2018 Microsoft
Copyright (c) 2019 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
10 changes: 7 additions & 3 deletions sdk/graphrbac/graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { GraphRbacManagementClient, GraphRbacManagementModels, GraphRbacManagementMappers } from "@azure/graph";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new GraphRbacManagementClient(creds, subscriptionId);
msRestNodeAuth.interactiveLogin({{ tokenAudience: "https://graph.windows.net" }}).then((creds) => {
const client = new GraphRbacManagementClient(creds, subscriptionId, {
baseUri: "https://graph.windows.net"
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now updating the sample #3191

client.signedInUser.get().then((result) => {
console.log("The result is:");
console.log(result);
Expand Down Expand Up @@ -76,7 +78,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
// may cause redirects
authManager.login();
}
const client = new Azure.Graph.GraphRbacManagementClient(res.creds, subscriptionId);
const client = new Azure.Graph.GraphRbacManagementClient(res.creds, subscriptionId, {
baseUri: "https://graph.windows.net"
});
client.signedInUser.get().then((result) => {
console.log("The result is:");
console.log(result);
Expand Down
18 changes: 10 additions & 8 deletions sdk/graphrbac/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@azure/graph",
"author": "Microsoft Corporation",
"description": "GraphRbacManagementClient Library with typescript type definitions for node.js and browser.",
"version": "4.3.0",
"version": "5.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.1.0",
"@azure/ms-rest-js": "^1.1.0",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.0",
"@azure/ms-rest-js": "^2.0.3",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -23,15 +23,16 @@
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/graphrbac/graph",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/graphrbac/graph",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand All @@ -43,6 +44,7 @@
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
Expand All @@ -52,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}
4 changes: 2 additions & 2 deletions sdk/graphrbac/graph/src/graphRbacManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GraphRbacManagementClient extends GraphRbacManagementClientContext {
users: operations.Users;
objects: operations.Objects;
domains: operations.Domains;
oAuth2: operations.OAuth2;
oAuth2PermissionGrant: operations.OAuth2PermissionGrantOperations;

/**
* Initializes a new instance of the GraphRbacManagementClient class.
Expand All @@ -43,7 +43,7 @@ class GraphRbacManagementClient extends GraphRbacManagementClientContext {
this.users = new operations.Users(this);
this.objects = new operations.Objects(this);
this.domains = new operations.Domains(this);
this.oAuth2 = new operations.OAuth2(this);
this.oAuth2PermissionGrant = new operations.OAuth2PermissionGrantOperations(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

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

export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down
40 changes: 23 additions & 17 deletions sdk/graphrbac/graph/src/models/applicationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
ApplicationCreateParameters,
AppRole,
KeyCredential,
PasswordCredential,
RequiredResourceAccess,
ResourceAccess,
AddOwnerParameters,
ADGroup,
Application,
DirectoryObject,
GraphError,
ApplicationBase,
ApplicationCreateParameters,
ApplicationListResult,
ApplicationUpdateParameters,
AppRole,
DirectoryObject,
DirectoryObjectListResult,
AddOwnerParameters,
GraphError,
InformationalUrl,
KeyCredential,
KeyCredentialListResult,
KeyCredentialsUpdateParameters,
OAuth2Permission,
OptionalClaim,
OptionalClaims,
PasswordCredential,
PasswordCredentialListResult,
PasswordCredentialsUpdateParameters,
ADGroup,
PreAuthorizedApplication,
PreAuthorizedApplicationExtension,
PreAuthorizedApplicationPermission,
RequiredResourceAccess,
ResourceAccess,
ServicePrincipal,
User,
SignInName
ServicePrincipalObjectResult,
SignInName,
User
} from "../models/mappers";

28 changes: 17 additions & 11 deletions sdk/graphrbac/graph/src/models/deletedApplicationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
ADGroup,
Application,
DirectoryObject,
ApplicationListResult,
AppRole,
DirectoryObject,
GraphError,
InformationalUrl,
KeyCredential,
OAuth2Permission,
OptionalClaim,
OptionalClaims,
PasswordCredential,
PreAuthorizedApplication,
PreAuthorizedApplicationExtension,
PreAuthorizedApplicationPermission,
RequiredResourceAccess,
ResourceAccess,
GraphError,
ApplicationListResult,
ADGroup,
ServicePrincipal,
User,
SignInName
SignInName,
User
} from "../models/mappers";

11 changes: 4 additions & 7 deletions sdk/graphrbac/graph/src/models/domainsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
DomainListResult,
CloudError,
Domain,
CloudError
DomainListResult
} from "../models/mappers";

34 changes: 20 additions & 14 deletions sdk/graphrbac/graph/src/models/groupsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
AddOwnerParameters,
ADGroup,
Application,
AppRole,
CheckGroupMembershipParameters,
CheckGroupMembershipResult,
DirectoryObject,
DirectoryObjectListResult,
GraphError,
GroupAddMemberParameters,
GroupCreateParameters,
ADGroup,
DirectoryObject,
GroupListResult,
DirectoryObjectListResult,
GroupGetMemberGroupsParameters,
GroupGetMemberGroupsResult,
AddOwnerParameters,
Application,
AppRole,
GroupListResult,
InformationalUrl,
KeyCredential,
OAuth2Permission,
OptionalClaim,
OptionalClaims,
PasswordCredential,
PreAuthorizedApplication,
PreAuthorizedApplicationExtension,
PreAuthorizedApplicationPermission,
RequiredResourceAccess,
ResourceAccess,
ServicePrincipal,
User,
SignInName
SignInName,
User
} from "../models/mappers";

Loading