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 eventgrid/resource-manager] typo: eventgrid/Microsoft.EventGrid #654

Merged
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
42 changes: 21 additions & 21 deletions packages/@azure/arm-eventgrid/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
181 changes: 81 additions & 100 deletions packages/@azure/arm-eventgrid/README.md
Original file line number Diff line number Diff line change
@@ -1,100 +1,81 @@
## Azure EventGridManagementClient SDK for JavaScript

This package contains an isomorphic SDK for EventGridManagementClient.

### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

```
npm install @azure/arm-eventgrid
```

### How to use

#### nodejs - Authentication, client creation and get domains as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { EventGridManagementClient, EventGridManagementModels, EventGridManagementMappers } from "@azure/arm-eventgrid";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new EventGridManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const domainName = "testdomainName";
client.domains.get(resourceGroupName, domainName).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
```

#### browser - Authentication, client creation and get domains as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```
npm install @azure/ms-rest-browserauth
```

##### Sample code

See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/arm-eventgrid sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-eventgrid/dist/arm-eventgrid.js"></script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmEventgrid.EventGridManagementClient(res.creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const domainName = "testdomainName";
client.domains.get(resourceGroupName, domainName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body></body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
# Azure EventGridManagementClient SDK for JavaScript
This package contains an isomorphic SDK for EventGridManagementClient.

## Currently supported environments
- Node.js version 6.x.x or higher
- Browser JavaScript

## How to Install
```
npm install @azure/arm-eventgrid
```


## How to use

### nodejs - Authentication, client creation and get domains as an example written in TypeScript.

```ts
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";
import * as msRestNodeAuth from "ms-rest-nodeauth";
import { EventGridManagementClient, EventGridManagementModels, EventGridManagementMappers } from "@azure/arm-eventgrid";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new EventGridManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const domainName = "testdomainName";
client.domains.get(resourceGroupName, domainName).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
```

### browser - Authentication, client creation and get domains as an example written in JavaScript.
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/arm-eventgrid sample</title>
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-eventgrid/dist/arm-eventgrid.js"></script>
<script>
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmEventgrid.EventGridManagementClient(res.creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const domainName = "testdomainName";
client.domains.get(resourceGroupName, domainName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body>
</body>
</html>
```

# Related projects
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";

const packageName = "@azure/arm-eventgrid";
const packageVersion = "0.1.0";
Expand Down
34 changes: 17 additions & 17 deletions packages/@azure/arm-eventgrid/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* regenerated.
*/

import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
import * as msRest from "ms-rest-js";

export { BaseResource, CloudError };

Expand Down Expand Up @@ -209,7 +209,7 @@ export interface AdvancedFilter {
operatorType: "AdvancedFilter";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
}
Expand Down Expand Up @@ -308,7 +308,7 @@ export interface NumberInAdvancedFilter {
operatorType: "NumberIn";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand Down Expand Up @@ -353,7 +353,7 @@ export interface NumberNotInAdvancedFilter {
operatorType: "NumberNotIn";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -375,7 +375,7 @@ export interface NumberLessThanAdvancedFilter {
operatorType: "NumberLessThan";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -397,7 +397,7 @@ export interface NumberGreaterThanAdvancedFilter {
operatorType: "NumberGreaterThan";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -419,7 +419,7 @@ export interface NumberLessThanOrEqualsAdvancedFilter {
operatorType: "NumberLessThanOrEquals";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -441,7 +441,7 @@ export interface NumberGreaterThanOrEqualsAdvancedFilter {
operatorType: "NumberGreaterThanOrEquals";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -463,7 +463,7 @@ export interface BoolEqualsAdvancedFilter {
operatorType: "BoolEquals";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -485,7 +485,7 @@ export interface StringInAdvancedFilter {
operatorType: "StringIn";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -507,7 +507,7 @@ export interface StringNotInAdvancedFilter {
operatorType: "StringNotIn";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -529,7 +529,7 @@ export interface StringBeginsWithAdvancedFilter {
operatorType: "StringBeginsWith";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -551,7 +551,7 @@ export interface StringEndsWithAdvancedFilter {
operatorType: "StringEndsWith";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand All @@ -573,7 +573,7 @@ export interface StringContainsAdvancedFilter {
operatorType: "StringContains";
/**
* @member {string} [key] The filter key. Represents an event property with
* upto two levels of nesting.
* up to two levels of nesting.
*/
key?: string;
/**
Expand Down Expand Up @@ -844,7 +844,7 @@ export interface Operation {
* An interface representing JsonField.
* This is used to express the source of an input schema mapping for a single
* target field in the Event Grid Event schema. This is currently used in the
* mappings for the 'id','topic' and 'eventtime' properties. This represents a
* mappings for the 'id','topic' and 'eventTime' properties. This represents a
* field in the input event schema.
*
*/
Expand All @@ -861,7 +861,7 @@ export interface JsonField {
* An interface representing JsonFieldWithDefault.
* This is used to express the source of an input schema mapping for a single
* target field in the Event Grid Event schema. This is currently used in the
* mappings for the 'subject','eventtype' and 'dataversion' properties. This
* mappings for the 'subject','eventType' and 'dataVersion' properties. This
* represents a field in the input event schema along with a default value to
* be used, and at least one of these two properties should be provided.
*
Expand Down
Loading