Skip to content

Commit 924d69d

Browse files
authored
arm-eventgrid-release (Azure#13867)
1 parent c1f64c9 commit 924d69d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10916
-1466
lines changed

sdk/eventgrid/arm-eventgrid/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/eventgrid/arm-eventgrid/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-eventgrid
1515

1616
### How to use
1717

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

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

@@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { EventGridManagementClient, EventGridManagementModels, EventGridManagementMappers } from "@azure/arm-eventgrid";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { EventGridManagementClient } = require("@azure/arm-eventgrid");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/eventgrid/arm-eventgrid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-eventgrid",
33
"author": "Microsoft Corporation",
44
"description": "EventGridManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "9.0.0",
5+
"version": "10.0.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/eventgrid/arm-eventgrid/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -19,11 +18,19 @@ class EventGridManagementClient extends EventGridManagementClientContext {
1918
// Operation groups
2019
domains: operations.Domains;
2120
domainTopics: operations.DomainTopics;
21+
eventChannels: operations.EventChannels;
2222
eventSubscriptions: operations.EventSubscriptions;
23+
systemTopicEventSubscriptions: operations.SystemTopicEventSubscriptions;
24+
partnerTopicEventSubscriptions: operations.PartnerTopicEventSubscriptions;
2325
operations: operations.Operations;
24-
topics: operations.Topics;
26+
partnerNamespaces: operations.PartnerNamespaces;
27+
partnerRegistrations: operations.PartnerRegistrations;
28+
partnerTopics: operations.PartnerTopics;
2529
privateEndpointConnections: operations.PrivateEndpointConnections;
2630
privateLinkResources: operations.PrivateLinkResources;
31+
systemTopics: operations.SystemTopics;
32+
topics: operations.Topics;
33+
extensionTopics: operations.ExtensionTopics;
2734
topicTypes: operations.TopicTypes;
2835

2936
/**
@@ -37,11 +44,19 @@ class EventGridManagementClient extends EventGridManagementClientContext {
3744
super(credentials, subscriptionId, options);
3845
this.domains = new operations.Domains(this);
3946
this.domainTopics = new operations.DomainTopics(this);
47+
this.eventChannels = new operations.EventChannels(this);
4048
this.eventSubscriptions = new operations.EventSubscriptions(this);
49+
this.systemTopicEventSubscriptions = new operations.SystemTopicEventSubscriptions(this);
50+
this.partnerTopicEventSubscriptions = new operations.PartnerTopicEventSubscriptions(this);
4151
this.operations = new operations.Operations(this);
42-
this.topics = new operations.Topics(this);
52+
this.partnerNamespaces = new operations.PartnerNamespaces(this);
53+
this.partnerRegistrations = new operations.PartnerRegistrations(this);
54+
this.partnerTopics = new operations.PartnerTopics(this);
4355
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
4456
this.privateLinkResources = new operations.PrivateLinkResources(this);
57+
this.systemTopics = new operations.SystemTopics(this);
58+
this.topics = new operations.Topics(this);
59+
this.extensionTopics = new operations.ExtensionTopics(this);
4560
this.topicTypes = new operations.TopicTypes(this);
4661
}
4762
}

sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
1413

1514
const packageName = "@azure/arm-eventgrid";
16-
const packageVersion = "9.0.0";
15+
const packageVersion = "10.0.0";
1716

1817
export class EventGridManagementClientContext extends msRestAzure.AzureServiceClient {
1918
credentials: msRest.ServiceClientCredentials;
@@ -38,25 +37,25 @@ export class EventGridManagementClientContext extends msRestAzure.AzureServiceCl
3837
if (!options) {
3938
options = {};
4039
}
41-
if(!options.userAgent) {
40+
if (!options.userAgent) {
4241
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4342
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4443
}
4544

4645
super(credentials, options);
4746

48-
this.apiVersion = '2020-06-01';
47+
this.apiVersion = '2020-10-15-preview';
4948
this.acceptLanguage = 'en-US';
5049
this.longRunningOperationRetryTimeout = 30;
5150
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5251
this.requestContentType = "application/json; charset=utf-8";
5352
this.credentials = credentials;
5453
this.subscriptionId = subscriptionId;
5554

56-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
55+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5756
this.acceptLanguage = options.acceptLanguage;
5857
}
59-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
58+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
6059
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6160
}
6261
}

sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -15,41 +15,69 @@ export {
1515
CloudError,
1616
ConnectionState,
1717
DeadLetterDestination,
18+
DeadLetterWithResourceIdentity,
19+
DeliveryAttributeMapping,
20+
DeliveryWithResourceIdentity,
1821
Domain,
1922
DomainTopic,
2023
DomainTopicsListResult,
24+
DynamicDeliveryAttributeMapping,
25+
EventChannel,
26+
EventChannelDestination,
27+
EventChannelFilter,
28+
EventChannelSource,
2129
EventHubEventSubscriptionDestination,
2230
EventSubscription,
2331
EventSubscriptionDestination,
2432
EventSubscriptionFilter,
33+
EventSubscriptionIdentity,
2534
EventType,
35+
ExtendedLocation,
36+
ExtensionTopic,
2637
HybridConnectionEventSubscriptionDestination,
38+
IdentityInfo,
2739
InboundIpRule,
2840
InputSchemaMapping,
41+
IsNotNullAdvancedFilter,
42+
IsNullOrUndefinedAdvancedFilter,
2943
JsonField,
3044
JsonFieldWithDefault,
3145
JsonInputSchemaMapping,
3246
NumberGreaterThanAdvancedFilter,
3347
NumberGreaterThanOrEqualsAdvancedFilter,
3448
NumberInAdvancedFilter,
49+
NumberInRangeAdvancedFilter,
3550
NumberLessThanAdvancedFilter,
3651
NumberLessThanOrEqualsAdvancedFilter,
3752
NumberNotInAdvancedFilter,
53+
NumberNotInRangeAdvancedFilter,
54+
PartnerNamespace,
55+
PartnerRegistration,
56+
PartnerTopic,
57+
PartnerTopicType,
3858
PrivateEndpoint,
3959
PrivateEndpointConnection,
4060
Resource,
61+
ResourceSku,
4162
RetryPolicy,
4263
ServiceBusQueueEventSubscriptionDestination,
4364
ServiceBusTopicEventSubscriptionDestination,
65+
StaticDeliveryAttributeMapping,
4466
StorageBlobDeadLetterDestination,
4567
StorageQueueEventSubscriptionDestination,
4668
StringBeginsWithAdvancedFilter,
4769
StringContainsAdvancedFilter,
4870
StringEndsWithAdvancedFilter,
4971
StringInAdvancedFilter,
72+
StringNotBeginsWithAdvancedFilter,
73+
StringNotContainsAdvancedFilter,
74+
StringNotEndsWithAdvancedFilter,
5075
StringNotInAdvancedFilter,
76+
SystemData,
77+
SystemTopic,
5178
Topic,
5279
TopicTypeInfo,
5380
TrackedResource,
81+
UserIdentityProperties,
5482
WebHookEventSubscriptionDestination
5583
} from "../models/mappers";

sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -15,44 +15,72 @@ export {
1515
CloudError,
1616
ConnectionState,
1717
DeadLetterDestination,
18+
DeadLetterWithResourceIdentity,
19+
DeliveryAttributeMapping,
20+
DeliveryWithResourceIdentity,
1821
Domain,
1922
DomainRegenerateKeyRequest,
2023
DomainSharedAccessKeys,
2124
DomainsListResult,
2225
DomainTopic,
2326
DomainUpdateParameters,
27+
DynamicDeliveryAttributeMapping,
28+
EventChannel,
29+
EventChannelDestination,
30+
EventChannelFilter,
31+
EventChannelSource,
2432
EventHubEventSubscriptionDestination,
2533
EventSubscription,
2634
EventSubscriptionDestination,
2735
EventSubscriptionFilter,
36+
EventSubscriptionIdentity,
2837
EventType,
38+
ExtendedLocation,
39+
ExtensionTopic,
2940
HybridConnectionEventSubscriptionDestination,
41+
IdentityInfo,
3042
InboundIpRule,
3143
InputSchemaMapping,
44+
IsNotNullAdvancedFilter,
45+
IsNullOrUndefinedAdvancedFilter,
3246
JsonField,
3347
JsonFieldWithDefault,
3448
JsonInputSchemaMapping,
3549
NumberGreaterThanAdvancedFilter,
3650
NumberGreaterThanOrEqualsAdvancedFilter,
3751
NumberInAdvancedFilter,
52+
NumberInRangeAdvancedFilter,
3853
NumberLessThanAdvancedFilter,
3954
NumberLessThanOrEqualsAdvancedFilter,
4055
NumberNotInAdvancedFilter,
56+
NumberNotInRangeAdvancedFilter,
57+
PartnerNamespace,
58+
PartnerRegistration,
59+
PartnerTopic,
60+
PartnerTopicType,
4161
PrivateEndpoint,
4262
PrivateEndpointConnection,
4363
Resource,
64+
ResourceSku,
4465
RetryPolicy,
4566
ServiceBusQueueEventSubscriptionDestination,
4667
ServiceBusTopicEventSubscriptionDestination,
68+
StaticDeliveryAttributeMapping,
4769
StorageBlobDeadLetterDestination,
4870
StorageQueueEventSubscriptionDestination,
4971
StringBeginsWithAdvancedFilter,
5072
StringContainsAdvancedFilter,
5173
StringEndsWithAdvancedFilter,
5274
StringInAdvancedFilter,
75+
StringNotBeginsWithAdvancedFilter,
76+
StringNotContainsAdvancedFilter,
77+
StringNotEndsWithAdvancedFilter,
5378
StringNotInAdvancedFilter,
79+
SystemData,
80+
SystemTopic,
5481
Topic,
5582
TopicTypeInfo,
5683
TrackedResource,
84+
UserIdentityProperties,
5785
WebHookEventSubscriptionDestination
5886
} from "../models/mappers";
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AdvancedFilter,
12+
AzureFunctionEventSubscriptionDestination,
13+
BaseResource,
14+
BoolEqualsAdvancedFilter,
15+
CloudError,
16+
ConnectionState,
17+
DeadLetterDestination,
18+
DeadLetterWithResourceIdentity,
19+
DeliveryAttributeMapping,
20+
DeliveryWithResourceIdentity,
21+
Domain,
22+
DomainTopic,
23+
DynamicDeliveryAttributeMapping,
24+
EventChannel,
25+
EventChannelDestination,
26+
EventChannelFilter,
27+
EventChannelsListResult,
28+
EventChannelSource,
29+
EventHubEventSubscriptionDestination,
30+
EventSubscription,
31+
EventSubscriptionDestination,
32+
EventSubscriptionFilter,
33+
EventSubscriptionIdentity,
34+
EventType,
35+
ExtendedLocation,
36+
ExtensionTopic,
37+
HybridConnectionEventSubscriptionDestination,
38+
IdentityInfo,
39+
InboundIpRule,
40+
InputSchemaMapping,
41+
IsNotNullAdvancedFilter,
42+
IsNullOrUndefinedAdvancedFilter,
43+
JsonField,
44+
JsonFieldWithDefault,
45+
JsonInputSchemaMapping,
46+
NumberGreaterThanAdvancedFilter,
47+
NumberGreaterThanOrEqualsAdvancedFilter,
48+
NumberInAdvancedFilter,
49+
NumberInRangeAdvancedFilter,
50+
NumberLessThanAdvancedFilter,
51+
NumberLessThanOrEqualsAdvancedFilter,
52+
NumberNotInAdvancedFilter,
53+
NumberNotInRangeAdvancedFilter,
54+
PartnerNamespace,
55+
PartnerRegistration,
56+
PartnerTopic,
57+
PartnerTopicType,
58+
PrivateEndpoint,
59+
PrivateEndpointConnection,
60+
Resource,
61+
ResourceSku,
62+
RetryPolicy,
63+
ServiceBusQueueEventSubscriptionDestination,
64+
ServiceBusTopicEventSubscriptionDestination,
65+
StaticDeliveryAttributeMapping,
66+
StorageBlobDeadLetterDestination,
67+
StorageQueueEventSubscriptionDestination,
68+
StringBeginsWithAdvancedFilter,
69+
StringContainsAdvancedFilter,
70+
StringEndsWithAdvancedFilter,
71+
StringInAdvancedFilter,
72+
StringNotBeginsWithAdvancedFilter,
73+
StringNotContainsAdvancedFilter,
74+
StringNotEndsWithAdvancedFilter,
75+
StringNotInAdvancedFilter,
76+
SystemData,
77+
SystemTopic,
78+
Topic,
79+
TopicTypeInfo,
80+
TrackedResource,
81+
UserIdentityProperties,
82+
WebHookEventSubscriptionDestination
83+
} from "../models/mappers";

0 commit comments

Comments
 (0)