@azure/arm-eventgrid 14.2.0 → 15.0.0-beta.1
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.
- package/README.md +5 -3
- package/dist/browser/eventGridManagementClient.d.ts +6 -4
- package/dist/browser/eventGridManagementClient.d.ts.map +1 -1
- package/dist/browser/eventGridManagementClient.js +10 -7
- package/dist/browser/eventGridManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +1000 -283
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +174 -16
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +48 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +1301 -268
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +13 -6
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +116 -48
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/eventSubscriptions.js +34 -34
- package/dist/browser/operations/eventSubscriptions.js.map +1 -1
- package/dist/browser/operations/index.d.ts +5 -3
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +5 -3
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operations/partnerDestinations.d.ts +114 -0
- package/dist/browser/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operations/partnerDestinations.js +574 -0
- package/dist/browser/operations/partnerDestinations.js.map +1 -0
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +5 -3
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +5 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/eventGridManagementClient.d.ts +6 -4
- package/dist/commonjs/eventGridManagementClient.d.ts.map +1 -1
- package/dist/commonjs/eventGridManagementClient.js +9 -6
- package/dist/commonjs/eventGridManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1000 -283
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +176 -18
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +48 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +1306 -273
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +13 -6
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +117 -49
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.js +34 -34
- package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +5 -3
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +5 -3
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +260 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operations/partnerDestinations.d.ts +114 -0
- package/dist/commonjs/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operations/partnerDestinations.js +578 -0
- package/dist/commonjs/operations/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -3
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +5 -3
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js +10 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/eventGridManagementClient.d.ts +6 -4
- package/dist/esm/eventGridManagementClient.d.ts.map +1 -1
- package/dist/esm/eventGridManagementClient.js +10 -7
- package/dist/esm/eventGridManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +1000 -283
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +174 -16
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +48 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +1301 -268
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +13 -6
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +116 -48
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/eventSubscriptions.js +34 -34
- package/dist/esm/operations/eventSubscriptions.js.map +1 -1
- package/dist/esm/operations/index.d.ts +5 -3
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +5 -3
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operations/partnerDestinations.d.ts +114 -0
- package/dist/esm/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operations/partnerDestinations.js +574 -0
- package/dist/esm/operations/partnerDestinations.js.map +1 -0
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +5 -3
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +5 -3
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/eventGridManagementClient.d.ts +6 -4
- package/dist/react-native/eventGridManagementClient.d.ts.map +1 -1
- package/dist/react-native/eventGridManagementClient.js +10 -7
- package/dist/react-native/eventGridManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1000 -283
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +174 -16
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +48 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +1301 -268
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +13 -6
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +116 -48
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.js +38 -38
- package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.js +34 -34
- package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +5 -3
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +5 -3
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operations/partnerDestinations.d.ts +114 -0
- package/dist/react-native/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operations/partnerDestinations.js +574 -0
- package/dist/react-native/operations/partnerDestinations.js.map +1 -0
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/systemTopicEventSubscriptions.js +30 -30
- package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -3
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +5 -3
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/package.json +32 -45
- package/CHANGELOG.md +0 -2065
- package/review/arm-eventgrid.api.md +0 -4226
|
@@ -0,0 +1,574 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing PartnerDestinations operations. */
|
|
17
|
+
export class PartnerDestinationsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class PartnerDestinations class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List all the partner destinations under an Azure subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listBySubscription(options) {
|
|
30
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._listBySubscription(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listBySubscriptionPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* List all the partner destinations under a resource group.
|
|
88
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
92
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get properties of a partner destination.
|
|
150
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
151
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
get(resourceGroupName, partnerDestinationName, options) {
|
|
155
|
+
return this.client.sendOperationRequest({ resourceGroupName, partnerDestinationName, options }, getOperationSpec);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Asynchronously creates a new partner destination with the specified parameters.
|
|
159
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
160
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
161
|
+
* @param partnerDestination Partner destination create information.
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
async beginCreateOrUpdate(resourceGroupName, partnerDestinationName, partnerDestination, options) {
|
|
165
|
+
const directSendOperation = async (args, spec) => {
|
|
166
|
+
return this.client.sendOperationRequest(args, spec);
|
|
167
|
+
};
|
|
168
|
+
const sendOperationFn = async (args, spec) => {
|
|
169
|
+
var _a;
|
|
170
|
+
let currentRawResponse = undefined;
|
|
171
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
172
|
+
const callback = (rawResponse, flatResponse) => {
|
|
173
|
+
currentRawResponse = rawResponse;
|
|
174
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
175
|
+
};
|
|
176
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
177
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
178
|
+
return {
|
|
179
|
+
flatResponse,
|
|
180
|
+
rawResponse: {
|
|
181
|
+
statusCode: currentRawResponse.status,
|
|
182
|
+
body: currentRawResponse.parsedBody,
|
|
183
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
const lro = createLroSpec({
|
|
188
|
+
sendOperationFn,
|
|
189
|
+
args: {
|
|
190
|
+
resourceGroupName,
|
|
191
|
+
partnerDestinationName,
|
|
192
|
+
partnerDestination,
|
|
193
|
+
options,
|
|
194
|
+
},
|
|
195
|
+
spec: createOrUpdateOperationSpec,
|
|
196
|
+
});
|
|
197
|
+
const poller = await createHttpPoller(lro, {
|
|
198
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
199
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
200
|
+
resourceLocationConfig: "azure-async-operation",
|
|
201
|
+
});
|
|
202
|
+
await poller.poll();
|
|
203
|
+
return poller;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Asynchronously creates a new partner destination with the specified parameters.
|
|
207
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
208
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
209
|
+
* @param partnerDestination Partner destination create information.
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, partnerDestinationName, partnerDestination, options) {
|
|
213
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, partnerDestinationName, partnerDestination, options);
|
|
214
|
+
return poller.pollUntilDone();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Delete existing partner destination.
|
|
218
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
219
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
220
|
+
* @param options The options parameters.
|
|
221
|
+
*/
|
|
222
|
+
async beginDelete(resourceGroupName, partnerDestinationName, options) {
|
|
223
|
+
const directSendOperation = async (args, spec) => {
|
|
224
|
+
return this.client.sendOperationRequest(args, spec);
|
|
225
|
+
};
|
|
226
|
+
const sendOperationFn = async (args, spec) => {
|
|
227
|
+
var _a;
|
|
228
|
+
let currentRawResponse = undefined;
|
|
229
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
230
|
+
const callback = (rawResponse, flatResponse) => {
|
|
231
|
+
currentRawResponse = rawResponse;
|
|
232
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
233
|
+
};
|
|
234
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
235
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
236
|
+
return {
|
|
237
|
+
flatResponse,
|
|
238
|
+
rawResponse: {
|
|
239
|
+
statusCode: currentRawResponse.status,
|
|
240
|
+
body: currentRawResponse.parsedBody,
|
|
241
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
const lro = createLroSpec({
|
|
246
|
+
sendOperationFn,
|
|
247
|
+
args: { resourceGroupName, partnerDestinationName, options },
|
|
248
|
+
spec: deleteOperationSpec,
|
|
249
|
+
});
|
|
250
|
+
const poller = await createHttpPoller(lro, {
|
|
251
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
252
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
253
|
+
resourceLocationConfig: "location",
|
|
254
|
+
});
|
|
255
|
+
await poller.poll();
|
|
256
|
+
return poller;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Delete existing partner destination.
|
|
260
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
261
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
async beginDeleteAndWait(resourceGroupName, partnerDestinationName, options) {
|
|
265
|
+
const poller = await this.beginDelete(resourceGroupName, partnerDestinationName, options);
|
|
266
|
+
return poller.pollUntilDone();
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Asynchronously updates a partner destination with the specified parameters.
|
|
270
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
271
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
272
|
+
* @param partnerDestinationUpdateParameters Partner destination update information.
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
async beginUpdate(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, options) {
|
|
276
|
+
const directSendOperation = async (args, spec) => {
|
|
277
|
+
return this.client.sendOperationRequest(args, spec);
|
|
278
|
+
};
|
|
279
|
+
const sendOperationFn = async (args, spec) => {
|
|
280
|
+
var _a;
|
|
281
|
+
let currentRawResponse = undefined;
|
|
282
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
283
|
+
const callback = (rawResponse, flatResponse) => {
|
|
284
|
+
currentRawResponse = rawResponse;
|
|
285
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
286
|
+
};
|
|
287
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
288
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
289
|
+
return {
|
|
290
|
+
flatResponse,
|
|
291
|
+
rawResponse: {
|
|
292
|
+
statusCode: currentRawResponse.status,
|
|
293
|
+
body: currentRawResponse.parsedBody,
|
|
294
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
const lro = createLroSpec({
|
|
299
|
+
sendOperationFn,
|
|
300
|
+
args: {
|
|
301
|
+
resourceGroupName,
|
|
302
|
+
partnerDestinationName,
|
|
303
|
+
partnerDestinationUpdateParameters,
|
|
304
|
+
options,
|
|
305
|
+
},
|
|
306
|
+
spec: updateOperationSpec,
|
|
307
|
+
});
|
|
308
|
+
const poller = await createHttpPoller(lro, {
|
|
309
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
310
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
311
|
+
resourceLocationConfig: "azure-async-operation",
|
|
312
|
+
});
|
|
313
|
+
await poller.poll();
|
|
314
|
+
return poller;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Asynchronously updates a partner destination with the specified parameters.
|
|
318
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
319
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
320
|
+
* @param partnerDestinationUpdateParameters Partner destination update information.
|
|
321
|
+
* @param options The options parameters.
|
|
322
|
+
*/
|
|
323
|
+
async beginUpdateAndWait(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, options) {
|
|
324
|
+
const poller = await this.beginUpdate(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, options);
|
|
325
|
+
return poller.pollUntilDone();
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* List all the partner destinations under an Azure subscription.
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
_listBySubscription(options) {
|
|
332
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* List all the partner destinations under a resource group.
|
|
336
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
340
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Activate a newly created partner destination.
|
|
344
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
345
|
+
* @param partnerDestinationName Name of the partner destination.
|
|
346
|
+
* @param options The options parameters.
|
|
347
|
+
*/
|
|
348
|
+
activate(resourceGroupName, partnerDestinationName, options) {
|
|
349
|
+
return this.client.sendOperationRequest({ resourceGroupName, partnerDestinationName, options }, activateOperationSpec);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* ListBySubscriptionNext
|
|
353
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
354
|
+
* @param options The options parameters.
|
|
355
|
+
*/
|
|
356
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
357
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* ListByResourceGroupNext
|
|
361
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
362
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
363
|
+
* @param options The options parameters.
|
|
364
|
+
*/
|
|
365
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
366
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
// Operation Specifications
|
|
370
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
371
|
+
const getOperationSpec = {
|
|
372
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
373
|
+
httpMethod: "GET",
|
|
374
|
+
responses: {
|
|
375
|
+
200: {
|
|
376
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
377
|
+
},
|
|
378
|
+
default: {
|
|
379
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
queryParameters: [Parameters.apiVersion],
|
|
383
|
+
urlParameters: [
|
|
384
|
+
Parameters.$host,
|
|
385
|
+
Parameters.subscriptionId,
|
|
386
|
+
Parameters.resourceGroupName,
|
|
387
|
+
Parameters.partnerDestinationName,
|
|
388
|
+
],
|
|
389
|
+
headerParameters: [Parameters.accept],
|
|
390
|
+
serializer,
|
|
391
|
+
};
|
|
392
|
+
const createOrUpdateOperationSpec = {
|
|
393
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
394
|
+
httpMethod: "PUT",
|
|
395
|
+
responses: {
|
|
396
|
+
200: {
|
|
397
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
398
|
+
},
|
|
399
|
+
201: {
|
|
400
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
401
|
+
},
|
|
402
|
+
202: {
|
|
403
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
404
|
+
},
|
|
405
|
+
204: {
|
|
406
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
407
|
+
},
|
|
408
|
+
default: {
|
|
409
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
requestBody: Parameters.partnerDestination,
|
|
413
|
+
queryParameters: [Parameters.apiVersion],
|
|
414
|
+
urlParameters: [
|
|
415
|
+
Parameters.$host,
|
|
416
|
+
Parameters.subscriptionId,
|
|
417
|
+
Parameters.resourceGroupName,
|
|
418
|
+
Parameters.partnerDestinationName,
|
|
419
|
+
],
|
|
420
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
421
|
+
mediaType: "json",
|
|
422
|
+
serializer,
|
|
423
|
+
};
|
|
424
|
+
const deleteOperationSpec = {
|
|
425
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
426
|
+
httpMethod: "DELETE",
|
|
427
|
+
responses: {
|
|
428
|
+
200: {},
|
|
429
|
+
201: {},
|
|
430
|
+
202: {},
|
|
431
|
+
204: {},
|
|
432
|
+
default: {
|
|
433
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
queryParameters: [Parameters.apiVersion],
|
|
437
|
+
urlParameters: [
|
|
438
|
+
Parameters.$host,
|
|
439
|
+
Parameters.subscriptionId,
|
|
440
|
+
Parameters.resourceGroupName,
|
|
441
|
+
Parameters.partnerDestinationName,
|
|
442
|
+
],
|
|
443
|
+
headerParameters: [Parameters.accept],
|
|
444
|
+
serializer,
|
|
445
|
+
};
|
|
446
|
+
const updateOperationSpec = {
|
|
447
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
448
|
+
httpMethod: "PATCH",
|
|
449
|
+
responses: {
|
|
450
|
+
200: {
|
|
451
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
452
|
+
},
|
|
453
|
+
201: {
|
|
454
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
455
|
+
},
|
|
456
|
+
202: {
|
|
457
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
458
|
+
},
|
|
459
|
+
204: {
|
|
460
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
461
|
+
},
|
|
462
|
+
default: {
|
|
463
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
requestBody: Parameters.partnerDestinationUpdateParameters,
|
|
467
|
+
queryParameters: [Parameters.apiVersion],
|
|
468
|
+
urlParameters: [
|
|
469
|
+
Parameters.$host,
|
|
470
|
+
Parameters.subscriptionId,
|
|
471
|
+
Parameters.resourceGroupName,
|
|
472
|
+
Parameters.partnerDestinationName,
|
|
473
|
+
],
|
|
474
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
475
|
+
mediaType: "json",
|
|
476
|
+
serializer,
|
|
477
|
+
};
|
|
478
|
+
const listBySubscriptionOperationSpec = {
|
|
479
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerDestinations",
|
|
480
|
+
httpMethod: "GET",
|
|
481
|
+
responses: {
|
|
482
|
+
200: {
|
|
483
|
+
bodyMapper: Mappers.PartnerDestinationsListResult,
|
|
484
|
+
},
|
|
485
|
+
default: {
|
|
486
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
490
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
491
|
+
headerParameters: [Parameters.accept],
|
|
492
|
+
serializer,
|
|
493
|
+
};
|
|
494
|
+
const listByResourceGroupOperationSpec = {
|
|
495
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations",
|
|
496
|
+
httpMethod: "GET",
|
|
497
|
+
responses: {
|
|
498
|
+
200: {
|
|
499
|
+
bodyMapper: Mappers.PartnerDestinationsListResult,
|
|
500
|
+
},
|
|
501
|
+
default: {
|
|
502
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
506
|
+
urlParameters: [
|
|
507
|
+
Parameters.$host,
|
|
508
|
+
Parameters.subscriptionId,
|
|
509
|
+
Parameters.resourceGroupName,
|
|
510
|
+
],
|
|
511
|
+
headerParameters: [Parameters.accept],
|
|
512
|
+
serializer,
|
|
513
|
+
};
|
|
514
|
+
const activateOperationSpec = {
|
|
515
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}/activate",
|
|
516
|
+
httpMethod: "POST",
|
|
517
|
+
responses: {
|
|
518
|
+
200: {
|
|
519
|
+
bodyMapper: Mappers.PartnerDestination,
|
|
520
|
+
},
|
|
521
|
+
default: {
|
|
522
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
queryParameters: [Parameters.apiVersion],
|
|
526
|
+
urlParameters: [
|
|
527
|
+
Parameters.$host,
|
|
528
|
+
Parameters.subscriptionId,
|
|
529
|
+
Parameters.resourceGroupName,
|
|
530
|
+
Parameters.partnerDestinationName,
|
|
531
|
+
],
|
|
532
|
+
headerParameters: [Parameters.accept],
|
|
533
|
+
serializer,
|
|
534
|
+
};
|
|
535
|
+
const listBySubscriptionNextOperationSpec = {
|
|
536
|
+
path: "{nextLink}",
|
|
537
|
+
httpMethod: "GET",
|
|
538
|
+
responses: {
|
|
539
|
+
200: {
|
|
540
|
+
bodyMapper: Mappers.PartnerDestinationsListResult,
|
|
541
|
+
},
|
|
542
|
+
default: {
|
|
543
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
urlParameters: [
|
|
547
|
+
Parameters.$host,
|
|
548
|
+
Parameters.subscriptionId,
|
|
549
|
+
Parameters.nextLink,
|
|
550
|
+
],
|
|
551
|
+
headerParameters: [Parameters.accept],
|
|
552
|
+
serializer,
|
|
553
|
+
};
|
|
554
|
+
const listByResourceGroupNextOperationSpec = {
|
|
555
|
+
path: "{nextLink}",
|
|
556
|
+
httpMethod: "GET",
|
|
557
|
+
responses: {
|
|
558
|
+
200: {
|
|
559
|
+
bodyMapper: Mappers.PartnerDestinationsListResult,
|
|
560
|
+
},
|
|
561
|
+
default: {
|
|
562
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
urlParameters: [
|
|
566
|
+
Parameters.$host,
|
|
567
|
+
Parameters.subscriptionId,
|
|
568
|
+
Parameters.resourceGroupName,
|
|
569
|
+
Parameters.nextLink,
|
|
570
|
+
],
|
|
571
|
+
headerParameters: [Parameters.accept],
|
|
572
|
+
serializer,
|
|
573
|
+
};
|
|
574
|
+
//# sourceMappingURL=partnerDestinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partnerDestinations.js","sourceRoot":"","sources":["../../../src/operations/partnerDestinations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,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ACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PartnerDestinations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PartnerDestination,\n PartnerDestinationsListBySubscriptionNextOptionalParams,\n PartnerDestinationsListBySubscriptionOptionalParams,\n PartnerDestinationsListBySubscriptionResponse,\n PartnerDestinationsListByResourceGroupNextOptionalParams,\n PartnerDestinationsListByResourceGroupOptionalParams,\n PartnerDestinationsListByResourceGroupResponse,\n PartnerDestinationsGetOptionalParams,\n PartnerDestinationsGetResponse,\n PartnerDestinationsCreateOrUpdateOptionalParams,\n PartnerDestinationsCreateOrUpdateResponse,\n PartnerDestinationsDeleteOptionalParams,\n PartnerDestinationUpdateParameters,\n PartnerDestinationsUpdateOptionalParams,\n PartnerDestinationsUpdateResponse,\n PartnerDestinationsActivateOptionalParams,\n PartnerDestinationsActivateResponse,\n PartnerDestinationsListBySubscriptionNextResponse,\n PartnerDestinationsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PartnerDestinations operations. */\nexport class PartnerDestinationsImpl implements PartnerDestinations {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class PartnerDestinations class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the partner destinations under an Azure subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: PartnerDestinationsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<PartnerDestination> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: PartnerDestinationsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PartnerDestination[]> {\n let result: PartnerDestinationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: PartnerDestinationsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<PartnerDestination> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the partner destinations under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: PartnerDestinationsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<PartnerDestination> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: PartnerDestinationsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PartnerDestination[]> {\n let result: PartnerDestinationsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: PartnerDestinationsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<PartnerDestination> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of a partner destination.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n partnerDestinationName: string,\n options?: PartnerDestinationsGetOptionalParams,\n ): Promise<PartnerDestinationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, partnerDestinationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates a new partner destination with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param partnerDestination Partner destination create information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n partnerDestinationName: string,\n partnerDestination: PartnerDestination,\n options?: PartnerDestinationsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PartnerDestinationsCreateOrUpdateResponse>,\n PartnerDestinationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PartnerDestinationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n partnerDestinationName,\n partnerDestination,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PartnerDestinationsCreateOrUpdateResponse,\n OperationState<PartnerDestinationsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new partner destination with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param partnerDestination Partner destination create information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n partnerDestinationName: string,\n partnerDestination: PartnerDestination,\n options?: PartnerDestinationsCreateOrUpdateOptionalParams,\n ): Promise<PartnerDestinationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n partnerDestinationName,\n partnerDestination,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete existing partner destination.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n partnerDestinationName: string,\n options?: PartnerDestinationsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, partnerDestinationName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete existing partner destination.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n partnerDestinationName: string,\n options?: PartnerDestinationsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n partnerDestinationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Asynchronously updates a partner destination with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param partnerDestinationUpdateParameters Partner destination update information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n partnerDestinationName: string,\n partnerDestinationUpdateParameters: PartnerDestinationUpdateParameters,\n options?: PartnerDestinationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PartnerDestinationsUpdateResponse>,\n PartnerDestinationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PartnerDestinationsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n partnerDestinationName,\n partnerDestinationUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PartnerDestinationsUpdateResponse,\n OperationState<PartnerDestinationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously updates a partner destination with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param partnerDestinationUpdateParameters Partner destination update information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n partnerDestinationName: string,\n partnerDestinationUpdateParameters: PartnerDestinationUpdateParameters,\n options?: PartnerDestinationsUpdateOptionalParams,\n ): Promise<PartnerDestinationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n partnerDestinationName,\n partnerDestinationUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all the partner destinations under an Azure subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: PartnerDestinationsListBySubscriptionOptionalParams,\n ): Promise<PartnerDestinationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List all the partner destinations under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: PartnerDestinationsListByResourceGroupOptionalParams,\n ): Promise<PartnerDestinationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Activate a newly created partner destination.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerDestinationName Name of the partner destination.\n * @param options The options parameters.\n */\n activate(\n resourceGroupName: string,\n partnerDestinationName: string,\n options?: PartnerDestinationsActivateOptionalParams,\n ): Promise<PartnerDestinationsActivateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, partnerDestinationName, options },\n activateOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: PartnerDestinationsListBySubscriptionNextOptionalParams,\n ): Promise<PartnerDestinationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: PartnerDestinationsListByResourceGroupNextOptionalParams,\n ): Promise<PartnerDestinationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestination,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.partnerDestinationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 201: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 202: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 204: {\n bodyMapper: Mappers.PartnerDestination,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.partnerDestination,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.partnerDestinationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.partnerDestinationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 201: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 202: {\n bodyMapper: Mappers.PartnerDestination,\n },\n 204: {\n bodyMapper: Mappers.PartnerDestination,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.partnerDestinationUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.partnerDestinationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerDestinations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestinationsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestinationsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst activateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestination,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.partnerDestinationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestinationsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerDestinationsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|