@azure/arm-eventgrid 13.0.0-beta.1 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +6 -71
  2. package/README.md +4 -0
  3. package/dist/index.js +54 -75
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/eventGridManagementClient.d.ts +5 -2
  8. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/eventGridManagementClient.js +32 -3
  10. package/dist-esm/src/eventGridManagementClient.js.map +1 -1
  11. package/dist-esm/src/index.d.ts +0 -1
  12. package/dist-esm/src/index.d.ts.map +1 -1
  13. package/dist-esm/src/index.js +0 -1
  14. package/dist-esm/src/index.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +23 -23
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/mappers.d.ts +2 -2
  18. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  19. package/dist-esm/src/models/mappers.js +48 -48
  20. package/dist-esm/src/models/mappers.js.map +1 -1
  21. package/dist-esm/src/operations/domainTopics.d.ts +2 -2
  22. package/dist-esm/src/operations/domainTopics.d.ts.map +1 -1
  23. package/dist-esm/src/operations/domainTopics.js.map +1 -1
  24. package/dist-esm/src/operations/domains.d.ts +2 -2
  25. package/dist-esm/src/operations/domains.d.ts.map +1 -1
  26. package/dist-esm/src/operations/domains.js.map +1 -1
  27. package/dist-esm/src/operations/eventSubscriptions.d.ts +2 -2
  28. package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -1
  29. package/dist-esm/src/operations/eventSubscriptions.js.map +1 -1
  30. package/dist-esm/src/operations/extensionTopics.d.ts +2 -2
  31. package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -1
  32. package/dist-esm/src/operations/extensionTopics.js.map +1 -1
  33. package/dist-esm/src/operations/operations.d.ts +2 -2
  34. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  35. package/dist-esm/src/operations/operations.js.map +1 -1
  36. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  37. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  38. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  39. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  40. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  41. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  42. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +2 -2
  43. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
  44. package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -1
  45. package/dist-esm/src/operations/systemTopics.d.ts +2 -2
  46. package/dist-esm/src/operations/systemTopics.d.ts.map +1 -1
  47. package/dist-esm/src/operations/systemTopics.js.map +1 -1
  48. package/dist-esm/src/operations/topicTypes.d.ts +2 -2
  49. package/dist-esm/src/operations/topicTypes.d.ts.map +1 -1
  50. package/dist-esm/src/operations/topicTypes.js.map +1 -1
  51. package/dist-esm/src/operations/topics.d.ts +2 -2
  52. package/dist-esm/src/operations/topics.d.ts.map +1 -1
  53. package/dist-esm/src/operations/topics.js.map +1 -1
  54. package/package.json +4 -3
  55. package/review/arm-eventgrid.api.md +7 -12
  56. package/src/eventGridManagementClient.ts +46 -3
  57. package/src/index.ts +0 -1
  58. package/src/models/index.ts +24 -24
  59. package/src/models/mappers.ts +53 -53
  60. package/src/operations/domainTopics.ts +3 -3
  61. package/src/operations/domains.ts +3 -3
  62. package/src/operations/eventSubscriptions.ts +3 -3
  63. package/src/operations/extensionTopics.ts +3 -3
  64. package/src/operations/operations.ts +3 -3
  65. package/src/operations/privateEndpointConnections.ts +3 -3
  66. package/src/operations/privateLinkResources.ts +3 -3
  67. package/src/operations/systemTopicEventSubscriptions.ts +3 -3
  68. package/src/operations/systemTopics.ts +3 -3
  69. package/src/operations/topicTypes.ts +3 -3
  70. package/src/operations/topics.ts +3 -3
  71. package/types/arm-eventgrid.d.ts +4 -15
  72. package/dist-esm/src/eventGridManagementClientContext.d.ts +0 -17
  73. package/dist-esm/src/eventGridManagementClientContext.d.ts.map +0 -1
  74. package/dist-esm/src/eventGridManagementClientContext.js +0 -50
  75. package/dist-esm/src/eventGridManagementClientContext.js.map +0 -1
  76. package/src/eventGridManagementClientContext.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,76 +1,11 @@
1
- ## 13.0.0-beta.1 (2021-11-16)
2
-
3
- **Features**
4
-
5
- - Added Type Alias Enum18
6
- - Added Type Alias Enum19
7
- - Added Type Alias Enum20
8
- - Added Type Alias Enum21
9
- - Type Alias ExtensionTopic has a new parameter systemData
10
- - Added Enum KnownEnum18
11
- - Added Enum KnownEnum19
12
- - Added Enum KnownEnum20
13
- - Added Enum KnownEnum21
14
-
15
- **Breaking Changes**
16
-
17
- - Removed operation group EventChannels
18
- - Removed operation group PartnerNamespaces
19
- - Removed operation group PartnerRegistrations
20
- - Removed operation group PartnerTopicEventSubscriptions
21
- - Removed operation group PartnerTopics
22
- - Operation PrivateEndpointConnections.beginDelete has a new signature
23
- - Operation PrivateEndpointConnections.beginDeleteAndWait has a new signature
24
- - Operation PrivateEndpointConnections.beginUpdate has a new signature
25
- - Operation PrivateEndpointConnections.beginUpdateAndWait has a new signature
26
- - Operation PrivateEndpointConnections.get has a new signature
27
- - Operation PrivateEndpointConnections.listByResource has a new signature
28
- - Interface DomainUpdateParameters no longer has parameter sku
29
- - Interface Operation no longer has parameter isDataAction
30
- - Interface TopicUpdateParameters no longer has parameter sku
31
- - Class EventGridManagementClient no longer has parameter eventChannels
32
- - Class EventGridManagementClient no longer has parameter partnerNamespaces
33
- - Class EventGridManagementClient no longer has parameter partnerRegistrations
34
- - Class EventGridManagementClient no longer has parameter partnerTopicEventSubscriptions
35
- - Class EventGridManagementClient no longer has parameter partnerTopics
36
- - Type Alias Domain no longer has parameter sku
37
- - Type Alias Topic no longer has parameter sku
38
- - Type Alias Topic no longer has parameter kind
39
- - Type Alias Topic no longer has parameter extendedLocation
40
- - Removed Enum KnownEnum25
41
- - Removed Enum KnownEnum26
42
- - Removed Enum KnownEnum27
43
- - Removed Enum KnownEnum28
44
- - Removed Enum KnownEventChannelProvisioningState
45
- - Removed Enum KnownPartnerNamespaceProvisioningState
46
- - Removed Enum KnownPartnerRegistrationProvisioningState
47
- - Removed Enum KnownPartnerRegistrationVisibilityState
48
- - Removed Enum KnownPartnerTopicActivationState
49
- - Removed Enum KnownPartnerTopicProvisioningState
50
- - Removed Enum KnownPartnerTopicReadinessState
51
- - Removed Enum KnownResourceKind
52
- - Removed Enum KnownSku
53
- - Enum KnownAdvancedFilterOperatorType no longer has value IsNotNull
54
- - Enum KnownAdvancedFilterOperatorType no longer has value IsNullOrUndefined
55
- - Enum KnownAdvancedFilterOperatorType no longer has value NumberInRange
56
- - Enum KnownAdvancedFilterOperatorType no longer has value NumberNotInRange
57
- - Enum KnownAdvancedFilterOperatorType no longer has value StringNotBeginsWith
58
- - Enum KnownAdvancedFilterOperatorType no longer has value StringNotContains
59
- - Enum KnownAdvancedFilterOperatorType no longer has value StringNotEndsWith
60
-
61
1
  # Release History
2
+
3
+ ## 13.0.0 (2021-12-09)
62
4
 
63
- ## 12.0.0-beta.1 (2021-10-09)
64
-
65
- This is the first preview for the new version of the `@azure/arm-eventgrid` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
5
+ The package of @azure/arm-eventgrid is using our next generation design principles since version 13.0.0, which contains breaking changes.
66
6
 
67
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
68
8
 
69
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
70
10
 
71
- **Noteworthy changes and features**
72
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
73
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
74
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
75
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
76
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new EventGridManagementClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### EventGridManagementClient
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
9
  /*
@@ -167,35 +167,6 @@ var coreLro = require('@azure/core-lro');
167
167
  * Code generated by Microsoft (R) AutoRest Code Generator.
168
168
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
169
169
  */
170
- const Resource = {
171
- type: {
172
- name: "Composite",
173
- className: "Resource",
174
- modelProperties: {
175
- id: {
176
- serializedName: "id",
177
- readOnly: true,
178
- type: {
179
- name: "String"
180
- }
181
- },
182
- name: {
183
- serializedName: "name",
184
- readOnly: true,
185
- type: {
186
- name: "String"
187
- }
188
- },
189
- type: {
190
- serializedName: "type",
191
- readOnly: true,
192
- type: {
193
- name: "String"
194
- }
195
- }
196
- }
197
- }
198
- };
199
170
  const PrivateEndpoint = {
200
171
  type: {
201
172
  name: "Composite",
@@ -236,6 +207,35 @@ const ConnectionState = {
236
207
  }
237
208
  }
238
209
  };
210
+ const Resource = {
211
+ type: {
212
+ name: "Composite",
213
+ className: "Resource",
214
+ modelProperties: {
215
+ id: {
216
+ serializedName: "id",
217
+ readOnly: true,
218
+ type: {
219
+ name: "String"
220
+ }
221
+ },
222
+ name: {
223
+ serializedName: "name",
224
+ readOnly: true,
225
+ type: {
226
+ name: "String"
227
+ }
228
+ },
229
+ type: {
230
+ serializedName: "type",
231
+ readOnly: true,
232
+ type: {
233
+ name: "String"
234
+ }
235
+ }
236
+ }
237
+ }
238
+ };
239
239
  const InputSchemaMapping = {
240
240
  type: {
241
241
  name: "Composite",
@@ -1314,25 +1314,6 @@ const JsonFieldWithDefault = {
1314
1314
  }
1315
1315
  }
1316
1316
  };
1317
- const TrackedResource = {
1318
- type: {
1319
- name: "Composite",
1320
- className: "TrackedResource",
1321
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1322
- serializedName: "location",
1323
- required: true,
1324
- type: {
1325
- name: "String"
1326
- }
1327
- }, tags: {
1328
- serializedName: "tags",
1329
- type: {
1330
- name: "Dictionary",
1331
- value: { type: { name: "String" } }
1332
- }
1333
- } })
1334
- }
1335
- };
1336
1317
  const PrivateEndpointConnection = {
1337
1318
  type: {
1338
1319
  name: "Composite",
@@ -1367,6 +1348,25 @@ const PrivateEndpointConnection = {
1367
1348
  } })
1368
1349
  }
1369
1350
  };
1351
+ const TrackedResource = {
1352
+ type: {
1353
+ name: "Composite",
1354
+ className: "TrackedResource",
1355
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1356
+ serializedName: "location",
1357
+ required: true,
1358
+ type: {
1359
+ name: "String"
1360
+ }
1361
+ }, tags: {
1362
+ serializedName: "tags",
1363
+ type: {
1364
+ name: "Dictionary",
1365
+ value: { type: { name: "String" } }
1366
+ }
1367
+ } })
1368
+ }
1369
+ };
1370
1370
  const DomainTopic = {
1371
1371
  type: {
1372
1372
  name: "Composite",
@@ -2362,9 +2362,9 @@ let discriminators = {
2362
2362
 
2363
2363
  var Mappers = /*#__PURE__*/Object.freeze({
2364
2364
  __proto__: null,
2365
- Resource: Resource,
2366
2365
  PrivateEndpoint: PrivateEndpoint,
2367
2366
  ConnectionState: ConnectionState,
2367
+ Resource: Resource,
2368
2368
  InputSchemaMapping: InputSchemaMapping,
2369
2369
  InboundIpRule: InboundIpRule,
2370
2370
  SystemData: SystemData,
@@ -2404,8 +2404,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
2404
2404
  TopicTypesListResult: TopicTypesListResult,
2405
2405
  JsonField: JsonField,
2406
2406
  JsonFieldWithDefault: JsonFieldWithDefault,
2407
- TrackedResource: TrackedResource,
2408
2407
  PrivateEndpointConnection: PrivateEndpointConnection,
2408
+ TrackedResource: TrackedResource,
2409
2409
  DomainTopic: DomainTopic,
2410
2410
  EventSubscription: EventSubscription,
2411
2411
  EventType: EventType,
@@ -7556,9 +7556,9 @@ const listEventTypesOperationSpec$1 = {
7556
7556
  * Code generated by Microsoft (R) AutoRest Code Generator.
7557
7557
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7558
7558
  */
7559
- class EventGridManagementClientContext extends coreClient.ServiceClient {
7559
+ class EventGridManagementClient extends coreClient.ServiceClient {
7560
7560
  /**
7561
- * Initializes a new instance of the EventGridManagementClientContext class.
7561
+ * Initializes a new instance of the EventGridManagementClient class.
7562
7562
  * @param credentials Subscription credentials which uniquely identify client subscription.
7563
7563
  * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure
7564
7564
  * subscription. The subscription ID forms part of the URI for every service call.
@@ -7579,7 +7579,7 @@ class EventGridManagementClientContext extends coreClient.ServiceClient {
7579
7579
  requestContentType: "application/json; charset=utf-8",
7580
7580
  credential: credentials
7581
7581
  };
7582
- const packageDetails = `azsdk-js-arm-eventgrid/13.0.0-beta.1`;
7582
+ const packageDetails = `azsdk-js-arm-eventgrid/13.0.0`;
7583
7583
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7584
7584
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7585
7585
  : `${packageDetails}`;
@@ -7595,26 +7595,6 @@ class EventGridManagementClientContext extends coreClient.ServiceClient {
7595
7595
  // Assigning values to Constant parameters
7596
7596
  this.$host = options.$host || "https://management.azure.com";
7597
7597
  this.apiVersion = options.apiVersion || "2021-12-01";
7598
- }
7599
- }
7600
-
7601
- /*
7602
- * Copyright (c) Microsoft Corporation.
7603
- * Licensed under the MIT License.
7604
- *
7605
- * Code generated by Microsoft (R) AutoRest Code Generator.
7606
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7607
- */
7608
- class EventGridManagementClient extends EventGridManagementClientContext {
7609
- /**
7610
- * Initializes a new instance of the EventGridManagementClient class.
7611
- * @param credentials Subscription credentials which uniquely identify client subscription.
7612
- * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure
7613
- * subscription. The subscription ID forms part of the URI for every service call.
7614
- * @param options The parameter options
7615
- */
7616
- constructor(credentials, subscriptionId, options) {
7617
- super(credentials, subscriptionId, options);
7618
7598
  this.domains = new DomainsImpl(this);
7619
7599
  this.domainTopics = new DomainTopicsImpl(this);
7620
7600
  this.eventSubscriptions = new EventSubscriptionsImpl(this);
@@ -7630,5 +7610,4 @@ class EventGridManagementClient extends EventGridManagementClientContext {
7630
7610
  }
7631
7611
 
7632
7612
  exports.EventGridManagementClient = EventGridManagementClient;
7633
- exports.EventGridManagementClientContext = EventGridManagementClientContext;
7634
7613
  //# sourceMappingURL=index.js.map