@azure/arm-deviceupdate 1.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/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +3665 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/accountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsCreateSample.js +32 -0
- package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.js +31 -0
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsHeadSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsHeadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsHeadSample.js +31 -0
- package/dist-esm/samples-dev/accountsHeadSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js +32 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +53 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/instancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesCreateSample.js +46 -0
- package/dist-esm/samples-dev/instancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/instancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/instancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/instancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesGetSample.js +32 -0
- package/dist-esm/samples-dev/instancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/instancesHeadSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesHeadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesHeadSample.js +32 -0
- package/dist-esm/samples-dev/instancesHeadSample.js.map +1 -0
- package/dist-esm/samples-dev/instancesListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/instancesListByAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/instancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/instancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/instancesUpdateSample.js +33 -0
- package/dist-esm/samples-dev/instancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js +53 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js +39 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js +53 -0
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js.map +1 -0
- package/dist-esm/src/deviceUpdate.d.ts +31 -0
- package/dist-esm/src/deviceUpdate.d.ts.map +1 -0
- package/dist-esm/src/deviceUpdate.js +133 -0
- package/dist-esm/src/deviceUpdate.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +941 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +105 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +44 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1266 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +22 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +176 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +114 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +537 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/instances.d.ts +98 -0
- package/dist-esm/src/operations/instances.d.ts.map +1 -0
- package/dist-esm/src/operations/instances.js +408 -0
- package/dist-esm/src/operations/instances.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts +100 -0
- package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionProxies.js +402 -0
- package/dist-esm/src/operations/privateEndpointConnectionProxies.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +78 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +320 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +131 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/instances.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/instances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/instances.js +9 -0
- package/dist-esm/src/operationsInterfaces/instances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts +83 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +38 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +122 -0
- package/review/arm-deviceupdate.api.md +805 -0
- package/rollup.config.js +122 -0
- package/src/deviceUpdate.ts +204 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1080 -0
- package/src/models/mappers.ts +1356 -0
- package/src/models/parameters.ts +210 -0
- package/src/operations/accounts.ts +722 -0
- package/src/operations/index.ts +14 -0
- package/src/operations/instances.ts +579 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/privateEndpointConnectionProxies.ts +559 -0
- package/src/operations/privateEndpointConnections.ts +450 -0
- package/src/operations/privateLinkResources.ts +179 -0
- package/src/operationsInterfaces/accounts.ts +152 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/instances.ts +142 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnectionProxies.ts +153 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +114 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/tsconfig.json +33 -0
- package/types/arm-deviceupdate.d.ts +1412 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { DeviceUpdate } from "../deviceUpdate";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PrivateEndpointConnection,
|
|
19
|
+
PrivateEndpointConnectionsListByAccountOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsListByAccountResponse,
|
|
21
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
22
|
+
PrivateEndpointConnectionsGetResponse,
|
|
23
|
+
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
24
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
25
|
+
PrivateEndpointConnectionsDeleteOptionalParams
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
30
|
+
export class PrivateEndpointConnectionsImpl
|
|
31
|
+
implements PrivateEndpointConnections {
|
|
32
|
+
private readonly client: DeviceUpdate;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: DeviceUpdate) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* List all private endpoint connections in a device update account.
|
|
44
|
+
* @param resourceGroupName The resource group name.
|
|
45
|
+
* @param accountName Account name.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public listByAccount(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
accountName: string,
|
|
51
|
+
options?: PrivateEndpointConnectionsListByAccountOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
53
|
+
const iter = this.listByAccountPagingAll(
|
|
54
|
+
resourceGroupName,
|
|
55
|
+
accountName,
|
|
56
|
+
options
|
|
57
|
+
);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
64
|
+
},
|
|
65
|
+
byPage: () => {
|
|
66
|
+
return this.listByAccountPagingPage(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
accountName,
|
|
69
|
+
options
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listByAccountPagingPage(
|
|
76
|
+
resourceGroupName: string,
|
|
77
|
+
accountName: string,
|
|
78
|
+
options?: PrivateEndpointConnectionsListByAccountOptionalParams
|
|
79
|
+
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
80
|
+
let result = await this._listByAccount(
|
|
81
|
+
resourceGroupName,
|
|
82
|
+
accountName,
|
|
83
|
+
options
|
|
84
|
+
);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listByAccountPagingAll(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
accountName: string,
|
|
91
|
+
options?: PrivateEndpointConnectionsListByAccountOptionalParams
|
|
92
|
+
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
93
|
+
for await (const page of this.listByAccountPagingPage(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
accountName,
|
|
96
|
+
options
|
|
97
|
+
)) {
|
|
98
|
+
yield* page;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* List all private endpoint connections in a device update account.
|
|
104
|
+
* @param resourceGroupName The resource group name.
|
|
105
|
+
* @param accountName Account name.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
private _listByAccount(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
accountName: string,
|
|
111
|
+
options?: PrivateEndpointConnectionsListByAccountOptionalParams
|
|
112
|
+
): Promise<PrivateEndpointConnectionsListByAccountResponse> {
|
|
113
|
+
return this.client.sendOperationRequest(
|
|
114
|
+
{ resourceGroupName, accountName, options },
|
|
115
|
+
listByAccountOperationSpec
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Get the specified private endpoint connection associated with the device update account.
|
|
121
|
+
* @param resourceGroupName The resource group name.
|
|
122
|
+
* @param accountName Account name.
|
|
123
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
124
|
+
* Azure resource
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
get(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
accountName: string,
|
|
130
|
+
privateEndpointConnectionName: string,
|
|
131
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
132
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
133
|
+
return this.client.sendOperationRequest(
|
|
134
|
+
{
|
|
135
|
+
resourceGroupName,
|
|
136
|
+
accountName,
|
|
137
|
+
privateEndpointConnectionName,
|
|
138
|
+
options
|
|
139
|
+
},
|
|
140
|
+
getOperationSpec
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Update the state of specified private endpoint connection associated with the device update account.
|
|
146
|
+
* @param resourceGroupName The resource group name.
|
|
147
|
+
* @param accountName Account name.
|
|
148
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
149
|
+
* Azure resource
|
|
150
|
+
* @param privateEndpointConnection The parameters for creating a private endpoint connection.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
async beginCreateOrUpdate(
|
|
154
|
+
resourceGroupName: string,
|
|
155
|
+
accountName: string,
|
|
156
|
+
privateEndpointConnectionName: string,
|
|
157
|
+
privateEndpointConnection: PrivateEndpointConnection,
|
|
158
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
159
|
+
): Promise<
|
|
160
|
+
PollerLike<
|
|
161
|
+
PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
162
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse
|
|
163
|
+
>
|
|
164
|
+
> {
|
|
165
|
+
const directSendOperation = async (
|
|
166
|
+
args: coreClient.OperationArguments,
|
|
167
|
+
spec: coreClient.OperationSpec
|
|
168
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
|
169
|
+
return this.client.sendOperationRequest(args, spec);
|
|
170
|
+
};
|
|
171
|
+
const sendOperation = async (
|
|
172
|
+
args: coreClient.OperationArguments,
|
|
173
|
+
spec: coreClient.OperationSpec
|
|
174
|
+
) => {
|
|
175
|
+
let currentRawResponse:
|
|
176
|
+
| coreClient.FullOperationResponse
|
|
177
|
+
| undefined = undefined;
|
|
178
|
+
const providedCallback = args.options?.onResponse;
|
|
179
|
+
const callback: coreClient.RawResponseCallback = (
|
|
180
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
181
|
+
flatResponse: unknown
|
|
182
|
+
) => {
|
|
183
|
+
currentRawResponse = rawResponse;
|
|
184
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
185
|
+
};
|
|
186
|
+
const updatedArgs = {
|
|
187
|
+
...args,
|
|
188
|
+
options: {
|
|
189
|
+
...args.options,
|
|
190
|
+
onResponse: callback
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
194
|
+
return {
|
|
195
|
+
flatResponse,
|
|
196
|
+
rawResponse: {
|
|
197
|
+
statusCode: currentRawResponse!.status,
|
|
198
|
+
body: currentRawResponse!.parsedBody,
|
|
199
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const lro = new LroImpl(
|
|
205
|
+
sendOperation,
|
|
206
|
+
{
|
|
207
|
+
resourceGroupName,
|
|
208
|
+
accountName,
|
|
209
|
+
privateEndpointConnectionName,
|
|
210
|
+
privateEndpointConnection,
|
|
211
|
+
options
|
|
212
|
+
},
|
|
213
|
+
createOrUpdateOperationSpec
|
|
214
|
+
);
|
|
215
|
+
const poller = new LroEngine(lro, {
|
|
216
|
+
resumeFrom: options?.resumeFrom,
|
|
217
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
219
|
+
});
|
|
220
|
+
await poller.poll();
|
|
221
|
+
return poller;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Update the state of specified private endpoint connection associated with the device update account.
|
|
226
|
+
* @param resourceGroupName The resource group name.
|
|
227
|
+
* @param accountName Account name.
|
|
228
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
229
|
+
* Azure resource
|
|
230
|
+
* @param privateEndpointConnection The parameters for creating a private endpoint connection.
|
|
231
|
+
* @param options The options parameters.
|
|
232
|
+
*/
|
|
233
|
+
async beginCreateOrUpdateAndWait(
|
|
234
|
+
resourceGroupName: string,
|
|
235
|
+
accountName: string,
|
|
236
|
+
privateEndpointConnectionName: string,
|
|
237
|
+
privateEndpointConnection: PrivateEndpointConnection,
|
|
238
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
239
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
240
|
+
const poller = await this.beginCreateOrUpdate(
|
|
241
|
+
resourceGroupName,
|
|
242
|
+
accountName,
|
|
243
|
+
privateEndpointConnectionName,
|
|
244
|
+
privateEndpointConnection,
|
|
245
|
+
options
|
|
246
|
+
);
|
|
247
|
+
return poller.pollUntilDone();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Deletes the specified private endpoint connection associated with the device update account.
|
|
252
|
+
* @param resourceGroupName The resource group name.
|
|
253
|
+
* @param accountName Account name.
|
|
254
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
255
|
+
* Azure resource
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
async beginDelete(
|
|
259
|
+
resourceGroupName: string,
|
|
260
|
+
accountName: string,
|
|
261
|
+
privateEndpointConnectionName: string,
|
|
262
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
263
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
264
|
+
const directSendOperation = async (
|
|
265
|
+
args: coreClient.OperationArguments,
|
|
266
|
+
spec: coreClient.OperationSpec
|
|
267
|
+
): Promise<void> => {
|
|
268
|
+
return this.client.sendOperationRequest(args, spec);
|
|
269
|
+
};
|
|
270
|
+
const sendOperation = async (
|
|
271
|
+
args: coreClient.OperationArguments,
|
|
272
|
+
spec: coreClient.OperationSpec
|
|
273
|
+
) => {
|
|
274
|
+
let currentRawResponse:
|
|
275
|
+
| coreClient.FullOperationResponse
|
|
276
|
+
| undefined = undefined;
|
|
277
|
+
const providedCallback = args.options?.onResponse;
|
|
278
|
+
const callback: coreClient.RawResponseCallback = (
|
|
279
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
280
|
+
flatResponse: unknown
|
|
281
|
+
) => {
|
|
282
|
+
currentRawResponse = rawResponse;
|
|
283
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
284
|
+
};
|
|
285
|
+
const updatedArgs = {
|
|
286
|
+
...args,
|
|
287
|
+
options: {
|
|
288
|
+
...args.options,
|
|
289
|
+
onResponse: callback
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
293
|
+
return {
|
|
294
|
+
flatResponse,
|
|
295
|
+
rawResponse: {
|
|
296
|
+
statusCode: currentRawResponse!.status,
|
|
297
|
+
body: currentRawResponse!.parsedBody,
|
|
298
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
const lro = new LroImpl(
|
|
304
|
+
sendOperation,
|
|
305
|
+
{
|
|
306
|
+
resourceGroupName,
|
|
307
|
+
accountName,
|
|
308
|
+
privateEndpointConnectionName,
|
|
309
|
+
options
|
|
310
|
+
},
|
|
311
|
+
deleteOperationSpec
|
|
312
|
+
);
|
|
313
|
+
const poller = new LroEngine(lro, {
|
|
314
|
+
resumeFrom: options?.resumeFrom,
|
|
315
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
316
|
+
lroResourceLocationConfig: "location"
|
|
317
|
+
});
|
|
318
|
+
await poller.poll();
|
|
319
|
+
return poller;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Deletes the specified private endpoint connection associated with the device update account.
|
|
324
|
+
* @param resourceGroupName The resource group name.
|
|
325
|
+
* @param accountName Account name.
|
|
326
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
327
|
+
* Azure resource
|
|
328
|
+
* @param options The options parameters.
|
|
329
|
+
*/
|
|
330
|
+
async beginDeleteAndWait(
|
|
331
|
+
resourceGroupName: string,
|
|
332
|
+
accountName: string,
|
|
333
|
+
privateEndpointConnectionName: string,
|
|
334
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
335
|
+
): Promise<void> {
|
|
336
|
+
const poller = await this.beginDelete(
|
|
337
|
+
resourceGroupName,
|
|
338
|
+
accountName,
|
|
339
|
+
privateEndpointConnectionName,
|
|
340
|
+
options
|
|
341
|
+
);
|
|
342
|
+
return poller.pollUntilDone();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
// Operation Specifications
|
|
346
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
347
|
+
|
|
348
|
+
const listByAccountOperationSpec: coreClient.OperationSpec = {
|
|
349
|
+
path:
|
|
350
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections",
|
|
351
|
+
httpMethod: "GET",
|
|
352
|
+
responses: {
|
|
353
|
+
200: {
|
|
354
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
355
|
+
},
|
|
356
|
+
default: {
|
|
357
|
+
bodyMapper: Mappers.ErrorResponse
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
queryParameters: [Parameters.apiVersion],
|
|
361
|
+
urlParameters: [
|
|
362
|
+
Parameters.$host,
|
|
363
|
+
Parameters.subscriptionId,
|
|
364
|
+
Parameters.resourceGroupName,
|
|
365
|
+
Parameters.accountName
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept],
|
|
368
|
+
serializer
|
|
369
|
+
};
|
|
370
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
371
|
+
path:
|
|
372
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
373
|
+
httpMethod: "GET",
|
|
374
|
+
responses: {
|
|
375
|
+
200: {
|
|
376
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
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.accountName,
|
|
388
|
+
Parameters.privateEndpointConnectionName
|
|
389
|
+
],
|
|
390
|
+
headerParameters: [Parameters.accept],
|
|
391
|
+
serializer
|
|
392
|
+
};
|
|
393
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
394
|
+
path:
|
|
395
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
396
|
+
httpMethod: "PUT",
|
|
397
|
+
responses: {
|
|
398
|
+
200: {
|
|
399
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
400
|
+
},
|
|
401
|
+
201: {
|
|
402
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
403
|
+
},
|
|
404
|
+
202: {
|
|
405
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
406
|
+
},
|
|
407
|
+
204: {
|
|
408
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
409
|
+
},
|
|
410
|
+
default: {
|
|
411
|
+
bodyMapper: Mappers.ErrorResponse
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
requestBody: Parameters.privateEndpointConnection,
|
|
415
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
|
+
urlParameters: [
|
|
417
|
+
Parameters.$host,
|
|
418
|
+
Parameters.subscriptionId,
|
|
419
|
+
Parameters.resourceGroupName,
|
|
420
|
+
Parameters.accountName,
|
|
421
|
+
Parameters.privateEndpointConnectionName
|
|
422
|
+
],
|
|
423
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
424
|
+
mediaType: "json",
|
|
425
|
+
serializer
|
|
426
|
+
};
|
|
427
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
428
|
+
path:
|
|
429
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
430
|
+
httpMethod: "DELETE",
|
|
431
|
+
responses: {
|
|
432
|
+
200: {},
|
|
433
|
+
201: {},
|
|
434
|
+
202: {},
|
|
435
|
+
204: {},
|
|
436
|
+
default: {
|
|
437
|
+
bodyMapper: Mappers.ErrorResponse
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
queryParameters: [Parameters.apiVersion],
|
|
441
|
+
urlParameters: [
|
|
442
|
+
Parameters.$host,
|
|
443
|
+
Parameters.subscriptionId,
|
|
444
|
+
Parameters.resourceGroupName,
|
|
445
|
+
Parameters.accountName,
|
|
446
|
+
Parameters.privateEndpointConnectionName
|
|
447
|
+
],
|
|
448
|
+
headerParameters: [Parameters.accept],
|
|
449
|
+
serializer
|
|
450
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { DeviceUpdate } from "../deviceUpdate";
|
|
15
|
+
import {
|
|
16
|
+
GroupInformation,
|
|
17
|
+
PrivateLinkResourcesListByAccountOptionalParams,
|
|
18
|
+
PrivateLinkResourcesListByAccountResponse,
|
|
19
|
+
PrivateLinkResourcesGetOptionalParams,
|
|
20
|
+
PrivateLinkResourcesGetResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing PrivateLinkResources operations. */
|
|
25
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
26
|
+
private readonly client: DeviceUpdate;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: DeviceUpdate) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* List all private link resources in a device update account.
|
|
38
|
+
* @param resourceGroupName The resource group name.
|
|
39
|
+
* @param accountName Account name.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
public listByAccount(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
accountName: string,
|
|
45
|
+
options?: PrivateLinkResourcesListByAccountOptionalParams
|
|
46
|
+
): PagedAsyncIterableIterator<GroupInformation> {
|
|
47
|
+
const iter = this.listByAccountPagingAll(
|
|
48
|
+
resourceGroupName,
|
|
49
|
+
accountName,
|
|
50
|
+
options
|
|
51
|
+
);
|
|
52
|
+
return {
|
|
53
|
+
next() {
|
|
54
|
+
return iter.next();
|
|
55
|
+
},
|
|
56
|
+
[Symbol.asyncIterator]() {
|
|
57
|
+
return this;
|
|
58
|
+
},
|
|
59
|
+
byPage: () => {
|
|
60
|
+
return this.listByAccountPagingPage(
|
|
61
|
+
resourceGroupName,
|
|
62
|
+
accountName,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listByAccountPagingPage(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
accountName: string,
|
|
72
|
+
options?: PrivateLinkResourcesListByAccountOptionalParams
|
|
73
|
+
): AsyncIterableIterator<GroupInformation[]> {
|
|
74
|
+
let result = await this._listByAccount(
|
|
75
|
+
resourceGroupName,
|
|
76
|
+
accountName,
|
|
77
|
+
options
|
|
78
|
+
);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listByAccountPagingAll(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
accountName: string,
|
|
85
|
+
options?: PrivateLinkResourcesListByAccountOptionalParams
|
|
86
|
+
): AsyncIterableIterator<GroupInformation> {
|
|
87
|
+
for await (const page of this.listByAccountPagingPage(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
accountName,
|
|
90
|
+
options
|
|
91
|
+
)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* List all private link resources in a device update account.
|
|
98
|
+
* @param resourceGroupName The resource group name.
|
|
99
|
+
* @param accountName Account name.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
private _listByAccount(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
accountName: string,
|
|
105
|
+
options?: PrivateLinkResourcesListByAccountOptionalParams
|
|
106
|
+
): Promise<PrivateLinkResourcesListByAccountResponse> {
|
|
107
|
+
return this.client.sendOperationRequest(
|
|
108
|
+
{ resourceGroupName, accountName, options },
|
|
109
|
+
listByAccountOperationSpec
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Get the specified private link resource associated with the device update account.
|
|
115
|
+
* @param resourceGroupName The resource group name.
|
|
116
|
+
* @param accountName Account name.
|
|
117
|
+
* @param groupId The group ID of the private link resource.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
get(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
accountName: string,
|
|
123
|
+
groupId: string,
|
|
124
|
+
options?: PrivateLinkResourcesGetOptionalParams
|
|
125
|
+
): Promise<PrivateLinkResourcesGetResponse> {
|
|
126
|
+
return this.client.sendOperationRequest(
|
|
127
|
+
{ resourceGroupName, accountName, groupId, options },
|
|
128
|
+
getOperationSpec
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// Operation Specifications
|
|
133
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
134
|
+
|
|
135
|
+
const listByAccountOperationSpec: coreClient.OperationSpec = {
|
|
136
|
+
path:
|
|
137
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateLinkResources",
|
|
138
|
+
httpMethod: "GET",
|
|
139
|
+
responses: {
|
|
140
|
+
200: {
|
|
141
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
142
|
+
},
|
|
143
|
+
default: {
|
|
144
|
+
bodyMapper: Mappers.ErrorResponse
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
queryParameters: [Parameters.apiVersion],
|
|
148
|
+
urlParameters: [
|
|
149
|
+
Parameters.$host,
|
|
150
|
+
Parameters.subscriptionId,
|
|
151
|
+
Parameters.resourceGroupName,
|
|
152
|
+
Parameters.accountName
|
|
153
|
+
],
|
|
154
|
+
headerParameters: [Parameters.accept],
|
|
155
|
+
serializer
|
|
156
|
+
};
|
|
157
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
158
|
+
path:
|
|
159
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateLinkResources/{groupId}",
|
|
160
|
+
httpMethod: "GET",
|
|
161
|
+
responses: {
|
|
162
|
+
200: {
|
|
163
|
+
bodyMapper: Mappers.GroupInformation
|
|
164
|
+
},
|
|
165
|
+
default: {
|
|
166
|
+
bodyMapper: Mappers.ErrorResponse
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
queryParameters: [Parameters.apiVersion],
|
|
170
|
+
urlParameters: [
|
|
171
|
+
Parameters.$host,
|
|
172
|
+
Parameters.subscriptionId,
|
|
173
|
+
Parameters.resourceGroupName,
|
|
174
|
+
Parameters.accountName,
|
|
175
|
+
Parameters.groupId
|
|
176
|
+
],
|
|
177
|
+
headerParameters: [Parameters.accept],
|
|
178
|
+
serializer
|
|
179
|
+
};
|