@azure/arm-eventgrid 14.0.0-beta.1 → 14.0.0-beta.2

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 (31) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/index.js +132 -4
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -1
  7. package/dist-esm/src/eventGridManagementClient.js +18 -1
  8. package/dist-esm/src/eventGridManagementClient.js.map +1 -1
  9. package/dist-esm/src/models/index.d.ts +39 -0
  10. package/dist-esm/src/models/index.d.ts.map +1 -1
  11. package/dist-esm/src/operations/domainEventSubscriptions.d.ts +8 -0
  12. package/dist-esm/src/operations/domainEventSubscriptions.d.ts.map +1 -1
  13. package/dist-esm/src/operations/domainEventSubscriptions.js +37 -1
  14. package/dist-esm/src/operations/domainEventSubscriptions.js.map +1 -1
  15. package/dist-esm/src/operations/domainTopicEventSubscriptions.d.ts +9 -0
  16. package/dist-esm/src/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
  17. package/dist-esm/src/operations/domainTopicEventSubscriptions.js +39 -1
  18. package/dist-esm/src/operations/domainTopicEventSubscriptions.js.map +1 -1
  19. package/dist-esm/src/operations/topicEventSubscriptions.d.ts +8 -0
  20. package/dist-esm/src/operations/topicEventSubscriptions.d.ts.map +1 -1
  21. package/dist-esm/src/operations/topicEventSubscriptions.js +37 -1
  22. package/dist-esm/src/operations/topicEventSubscriptions.js.map +1 -1
  23. package/package.json +5 -5
  24. package/review/arm-eventgrid.api.md +33 -0
  25. package/src/eventGridManagementClient.ts +25 -1
  26. package/src/models/index.ts +54 -3
  27. package/src/operations/domainEventSubscriptions.ts +54 -2
  28. package/src/operations/domainTopicEventSubscriptions.ts +58 -2
  29. package/src/operations/topicEventSubscriptions.ts +54 -2
  30. package/types/arm-eventgrid.d.ts +45 -0
  31. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 14.0.0-beta.1 (2022-04-06)
3
+ ## 14.0.0-beta.2 (2022-05-16)
4
4
 
5
5
  **Features**
6
6
 
@@ -30,6 +30,7 @@
30
30
  - Added Interface DomainEventSubscriptionsGetDeliveryAttributesOptionalParams
31
31
  - Added Interface DomainEventSubscriptionsGetFullUrlOptionalParams
32
32
  - Added Interface DomainEventSubscriptionsGetOptionalParams
33
+ - Added Interface DomainEventSubscriptionsListNextOptionalParams
33
34
  - Added Interface DomainEventSubscriptionsListOptionalParams
34
35
  - Added Interface DomainEventSubscriptionsUpdateOptionalParams
35
36
  - Added Interface DomainTopicEventSubscriptionsCreateOrUpdateOptionalParams
@@ -37,6 +38,7 @@
37
38
  - Added Interface DomainTopicEventSubscriptionsGetDeliveryAttributesOptionalParams
38
39
  - Added Interface DomainTopicEventSubscriptionsGetFullUrlOptionalParams
39
40
  - Added Interface DomainTopicEventSubscriptionsGetOptionalParams
41
+ - Added Interface DomainTopicEventSubscriptionsListNextOptionalParams
40
42
  - Added Interface DomainTopicEventSubscriptionsListOptionalParams
41
43
  - Added Interface DomainTopicEventSubscriptionsUpdateOptionalParams
42
44
  - Added Interface EventChannelDestination
@@ -132,6 +134,7 @@
132
134
  - Added Interface TopicEventSubscriptionsGetDeliveryAttributesOptionalParams
133
135
  - Added Interface TopicEventSubscriptionsGetFullUrlOptionalParams
134
136
  - Added Interface TopicEventSubscriptionsGetOptionalParams
137
+ - Added Interface TopicEventSubscriptionsListNextOptionalParams
135
138
  - Added Interface TopicEventSubscriptionsListOptionalParams
136
139
  - Added Interface TopicEventSubscriptionsUpdateOptionalParams
137
140
  - Added Interface VerifiedPartnersGetOptionalParams
@@ -152,12 +155,14 @@
152
155
  - Added Type Alias DomainEventSubscriptionsGetDeliveryAttributesResponse
153
156
  - Added Type Alias DomainEventSubscriptionsGetFullUrlResponse
154
157
  - Added Type Alias DomainEventSubscriptionsGetResponse
158
+ - Added Type Alias DomainEventSubscriptionsListNextResponse
155
159
  - Added Type Alias DomainEventSubscriptionsListResponse
156
160
  - Added Type Alias DomainEventSubscriptionsUpdateResponse
157
161
  - Added Type Alias DomainTopicEventSubscriptionsCreateOrUpdateResponse
158
162
  - Added Type Alias DomainTopicEventSubscriptionsGetDeliveryAttributesResponse
159
163
  - Added Type Alias DomainTopicEventSubscriptionsGetFullUrlResponse
160
164
  - Added Type Alias DomainTopicEventSubscriptionsGetResponse
165
+ - Added Type Alias DomainTopicEventSubscriptionsListNextResponse
161
166
  - Added Type Alias DomainTopicEventSubscriptionsListResponse
162
167
  - Added Type Alias DomainTopicEventSubscriptionsUpdateResponse
163
168
  - Added Type Alias EventChannel
@@ -249,6 +254,7 @@
249
254
  - Added Type Alias TopicEventSubscriptionsGetDeliveryAttributesResponse
250
255
  - Added Type Alias TopicEventSubscriptionsGetFullUrlResponse
251
256
  - Added Type Alias TopicEventSubscriptionsGetResponse
257
+ - Added Type Alias TopicEventSubscriptionsListNextResponse
252
258
  - Added Type Alias TopicEventSubscriptionsListResponse
253
259
  - Added Type Alias TopicEventSubscriptionsUpdateResponse
254
260
  - Added Type Alias VerifiedPartner
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
25
26
  }
26
27
 
27
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
28
30
 
29
31
  /*
30
32
  * Copyright (c) Microsoft Corporation.
@@ -7737,6 +7739,12 @@ class DomainTopicEventSubscriptionsImpl {
7737
7739
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7738
7740
  let result = yield tslib.__await(this._list(resourceGroupName, domainName, topicName, options));
7739
7741
  yield yield tslib.__await(result.value || []);
7742
+ let continuationToken = result.nextLink;
7743
+ while (continuationToken) {
7744
+ result = yield tslib.__await(this._listNext(resourceGroupName, domainName, topicName, continuationToken, options));
7745
+ continuationToken = result.nextLink;
7746
+ yield yield tslib.__await(result.value || []);
7747
+ }
7740
7748
  });
7741
7749
  }
7742
7750
  listPagingAll(resourceGroupName, domainName, topicName, options) {
@@ -8013,6 +8021,17 @@ class DomainTopicEventSubscriptionsImpl {
8013
8021
  options
8014
8022
  }, getDeliveryAttributesOperationSpec$4);
8015
8023
  }
8024
+ /**
8025
+ * ListNext
8026
+ * @param resourceGroupName The name of the resource group within the user's subscription.
8027
+ * @param domainName Name of the top level domain.
8028
+ * @param topicName Name of the domain topic.
8029
+ * @param nextLink The nextLink from the previous successful call to the List method.
8030
+ * @param options The options parameters.
8031
+ */
8032
+ _listNext(resourceGroupName, domainName, topicName, nextLink, options) {
8033
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, topicName, nextLink, options }, listNextOperationSpec$3);
8034
+ }
8016
8035
  }
8017
8036
  // Operation Specifications
8018
8037
  const serializer$h = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
@@ -8146,7 +8165,7 @@ const listOperationSpec$5 = {
8146
8165
  },
8147
8166
  default: {}
8148
8167
  },
8149
- queryParameters: [apiVersion],
8168
+ queryParameters: [apiVersion, filter, top],
8150
8169
  urlParameters: [
8151
8170
  $host,
8152
8171
  subscriptionId,
@@ -8178,6 +8197,27 @@ const getDeliveryAttributesOperationSpec$4 = {
8178
8197
  headerParameters: [accept],
8179
8198
  serializer: serializer$h
8180
8199
  };
8200
+ const listNextOperationSpec$3 = {
8201
+ path: "{nextLink}",
8202
+ httpMethod: "GET",
8203
+ responses: {
8204
+ 200: {
8205
+ bodyMapper: EventSubscriptionsListResult
8206
+ },
8207
+ default: {}
8208
+ },
8209
+ queryParameters: [apiVersion, filter, top],
8210
+ urlParameters: [
8211
+ $host,
8212
+ subscriptionId,
8213
+ resourceGroupName,
8214
+ nextLink,
8215
+ domainName,
8216
+ topicName
8217
+ ],
8218
+ headerParameters: [accept],
8219
+ serializer: serializer$h
8220
+ };
8181
8221
 
8182
8222
  /*
8183
8223
  * Copyright (c) Microsoft Corporation.
@@ -8220,6 +8260,12 @@ class TopicEventSubscriptionsImpl {
8220
8260
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8221
8261
  let result = yield tslib.__await(this._list(resourceGroupName, topicName, options));
8222
8262
  yield yield tslib.__await(result.value || []);
8263
+ let continuationToken = result.nextLink;
8264
+ while (continuationToken) {
8265
+ result = yield tslib.__await(this._listNext(resourceGroupName, topicName, continuationToken, options));
8266
+ continuationToken = result.nextLink;
8267
+ yield yield tslib.__await(result.value || []);
8268
+ }
8223
8269
  });
8224
8270
  }
8225
8271
  listPagingAll(resourceGroupName, topicName, options) {
@@ -8461,6 +8507,16 @@ class TopicEventSubscriptionsImpl {
8461
8507
  getDeliveryAttributes(resourceGroupName, topicName, eventSubscriptionName, options) {
8462
8508
  return this.client.sendOperationRequest({ resourceGroupName, topicName, eventSubscriptionName, options }, getDeliveryAttributesOperationSpec$3);
8463
8509
  }
8510
+ /**
8511
+ * ListNext
8512
+ * @param resourceGroupName The name of the resource group within the user's subscription.
8513
+ * @param topicName Name of the topic.
8514
+ * @param nextLink The nextLink from the previous successful call to the List method.
8515
+ * @param options The options parameters.
8516
+ */
8517
+ _listNext(resourceGroupName, topicName, nextLink, options) {
8518
+ return this.client.sendOperationRequest({ resourceGroupName, topicName, nextLink, options }, listNextOperationSpec$2);
8519
+ }
8464
8520
  }
8465
8521
  // Operation Specifications
8466
8522
  const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
@@ -8589,7 +8645,7 @@ const listOperationSpec$4 = {
8589
8645
  },
8590
8646
  default: {}
8591
8647
  },
8592
- queryParameters: [apiVersion],
8648
+ queryParameters: [apiVersion, filter, top],
8593
8649
  urlParameters: [
8594
8650
  $host,
8595
8651
  subscriptionId,
@@ -8619,6 +8675,26 @@ const getDeliveryAttributesOperationSpec$3 = {
8619
8675
  headerParameters: [accept],
8620
8676
  serializer: serializer$g
8621
8677
  };
8678
+ const listNextOperationSpec$2 = {
8679
+ path: "{nextLink}",
8680
+ httpMethod: "GET",
8681
+ responses: {
8682
+ 200: {
8683
+ bodyMapper: EventSubscriptionsListResult
8684
+ },
8685
+ default: {}
8686
+ },
8687
+ queryParameters: [apiVersion, filter, top],
8688
+ urlParameters: [
8689
+ $host,
8690
+ subscriptionId,
8691
+ resourceGroupName,
8692
+ nextLink,
8693
+ topicName
8694
+ ],
8695
+ headerParameters: [accept],
8696
+ serializer: serializer$g
8697
+ };
8622
8698
 
8623
8699
  /*
8624
8700
  * Copyright (c) Microsoft Corporation.
@@ -8661,6 +8737,12 @@ class DomainEventSubscriptionsImpl {
8661
8737
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8662
8738
  let result = yield tslib.__await(this._list(resourceGroupName, domainName, options));
8663
8739
  yield yield tslib.__await(result.value || []);
8740
+ let continuationToken = result.nextLink;
8741
+ while (continuationToken) {
8742
+ result = yield tslib.__await(this._listNext(resourceGroupName, domainName, continuationToken, options));
8743
+ continuationToken = result.nextLink;
8744
+ yield yield tslib.__await(result.value || []);
8745
+ }
8664
8746
  });
8665
8747
  }
8666
8748
  listPagingAll(resourceGroupName, domainName, options) {
@@ -8902,6 +8984,16 @@ class DomainEventSubscriptionsImpl {
8902
8984
  getDeliveryAttributes(resourceGroupName, domainName, eventSubscriptionName, options) {
8903
8985
  return this.client.sendOperationRequest({ resourceGroupName, domainName, eventSubscriptionName, options }, getDeliveryAttributesOperationSpec$2);
8904
8986
  }
8987
+ /**
8988
+ * ListNext
8989
+ * @param resourceGroupName The name of the resource group within the user's subscription.
8990
+ * @param domainName Name of the domain.
8991
+ * @param nextLink The nextLink from the previous successful call to the List method.
8992
+ * @param options The options parameters.
8993
+ */
8994
+ _listNext(resourceGroupName, domainName, nextLink, options) {
8995
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, nextLink, options }, listNextOperationSpec$1);
8996
+ }
8905
8997
  }
8906
8998
  // Operation Specifications
8907
8999
  const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
@@ -9030,7 +9122,7 @@ const listOperationSpec$3 = {
9030
9122
  },
9031
9123
  default: {}
9032
9124
  },
9033
- queryParameters: [apiVersion],
9125
+ queryParameters: [apiVersion, filter, top],
9034
9126
  urlParameters: [
9035
9127
  $host,
9036
9128
  subscriptionId,
@@ -9060,6 +9152,26 @@ const getDeliveryAttributesOperationSpec$2 = {
9060
9152
  headerParameters: [accept],
9061
9153
  serializer: serializer$f
9062
9154
  };
9155
+ const listNextOperationSpec$1 = {
9156
+ path: "{nextLink}",
9157
+ httpMethod: "GET",
9158
+ responses: {
9159
+ 200: {
9160
+ bodyMapper: EventSubscriptionsListResult
9161
+ },
9162
+ default: {}
9163
+ },
9164
+ queryParameters: [apiVersion, filter, top],
9165
+ urlParameters: [
9166
+ $host,
9167
+ subscriptionId,
9168
+ resourceGroupName,
9169
+ nextLink,
9170
+ domainName
9171
+ ],
9172
+ headerParameters: [accept],
9173
+ serializer: serializer$f
9174
+ };
9063
9175
 
9064
9176
  /*
9065
9177
  * Copyright (c) Microsoft Corporation.
@@ -14527,7 +14639,7 @@ class EventGridManagementClient extends coreClient__namespace.ServiceClient {
14527
14639
  requestContentType: "application/json; charset=utf-8",
14528
14640
  credential: credentials
14529
14641
  };
14530
- const packageDetails = `azsdk-js-arm-eventgrid/14.0.0-beta.1`;
14642
+ const packageDetails = `azsdk-js-arm-eventgrid/14.0.0-beta.2`;
14531
14643
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
14532
14644
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
14533
14645
  : `${packageDetails}`;
@@ -14538,6 +14650,22 @@ class EventGridManagementClient extends coreClient__namespace.ServiceClient {
14538
14650
  userAgentPrefix
14539
14651
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
14540
14652
  super(optionsWithDefaults);
14653
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
14654
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
14655
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
14656
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
14657
+ if (!bearerTokenAuthenticationPolicyFound) {
14658
+ this.pipeline.removePolicy({
14659
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
14660
+ });
14661
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
14662
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
14663
+ challengeCallbacks: {
14664
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
14665
+ }
14666
+ }));
14667
+ }
14668
+ }
14541
14669
  // Parameter assignments
14542
14670
  this.subscriptionId = subscriptionId;
14543
14671
  // Assigning values to Constant parameters