@azure/arm-deviceupdate 1.0.1-alpha.20230127.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -9
- package/LICENSE +1 -1
- package/dist/index.js +133 -51
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.js +11 -3
- package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +11 -3
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsHeadSample.js +11 -3
- package/dist-esm/samples-dev/accountsHeadSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +13 -4
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/instancesCreateSample.js +11 -3
- package/dist-esm/samples-dev/instancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/instancesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/instancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/instancesGetSample.js +11 -3
- package/dist-esm/samples-dev/instancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/instancesHeadSample.js +11 -3
- package/dist-esm/samples-dev/instancesHeadSample.js.map +1 -1
- package/dist-esm/samples-dev/instancesListByAccountSample.js +11 -3
- package/dist-esm/samples-dev/instancesListByAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/instancesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/instancesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js.map +1 -1
- package/dist-esm/src/deviceUpdate.d.ts.map +1 -1
- package/dist-esm/src/deviceUpdate.js +4 -7
- package/dist-esm/src/deviceUpdate.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +37 -16
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/instances.d.ts.map +1 -1
- package/dist-esm/src/operations/instances.js +19 -8
- package/dist-esm/src/operations/instances.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionProxies.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnectionProxies.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +8 -4
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +7 -5
- package/review/arm-deviceupdate.api.md +3 -0
- package/src/deviceUpdate.ts +5 -6
- package/src/index.ts +1 -0
- package/src/models/index.ts +25 -25
- package/src/operations/accounts.ts +45 -18
- package/src/operations/instances.ts +26 -13
- package/src/operations/operations.ts +21 -9
- package/src/operations/privateEndpointConnectionProxies.ts +11 -9
- package/src/operations/privateEndpointConnections.ts +11 -9
- package/src/operations/privateLinkResources.ts +11 -9
- package/src/pagingHelper.ts +39 -0
- package/types/arm-deviceupdate.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateEndpointConnectionProxies } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -65,11 +65,15 @@ export class PrivateEndpointConnectionProxiesImpl
|
|
|
65
65
|
[Symbol.asyncIterator]() {
|
|
66
66
|
return this;
|
|
67
67
|
},
|
|
68
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
69
72
|
return this.listByAccountPagingPage(
|
|
70
73
|
resourceGroupName,
|
|
71
74
|
accountName,
|
|
72
|
-
options
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
73
77
|
);
|
|
74
78
|
}
|
|
75
79
|
};
|
|
@@ -78,13 +82,11 @@ export class PrivateEndpointConnectionProxiesImpl
|
|
|
78
82
|
private async *listByAccountPagingPage(
|
|
79
83
|
resourceGroupName: string,
|
|
80
84
|
accountName: string,
|
|
81
|
-
options?: PrivateEndpointConnectionProxiesListByAccountOptionalParams
|
|
85
|
+
options?: PrivateEndpointConnectionProxiesListByAccountOptionalParams,
|
|
86
|
+
_settings?: PageSettings
|
|
82
87
|
): AsyncIterableIterator<PrivateEndpointConnectionProxy[]> {
|
|
83
|
-
let result
|
|
84
|
-
|
|
85
|
-
accountName,
|
|
86
|
-
options
|
|
87
|
-
);
|
|
88
|
+
let result: PrivateEndpointConnectionProxiesListByAccountResponse;
|
|
89
|
+
result = await this._listByAccount(resourceGroupName, accountName, options);
|
|
88
90
|
yield result.value || [];
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -62,11 +62,15 @@ export class PrivateEndpointConnectionsImpl
|
|
|
62
62
|
[Symbol.asyncIterator]() {
|
|
63
63
|
return this;
|
|
64
64
|
},
|
|
65
|
-
byPage: () => {
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
66
69
|
return this.listByAccountPagingPage(
|
|
67
70
|
resourceGroupName,
|
|
68
71
|
accountName,
|
|
69
|
-
options
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
70
74
|
);
|
|
71
75
|
}
|
|
72
76
|
};
|
|
@@ -75,13 +79,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
75
79
|
private async *listByAccountPagingPage(
|
|
76
80
|
resourceGroupName: string,
|
|
77
81
|
accountName: string,
|
|
78
|
-
options?: PrivateEndpointConnectionsListByAccountOptionalParams
|
|
82
|
+
options?: PrivateEndpointConnectionsListByAccountOptionalParams,
|
|
83
|
+
_settings?: PageSettings
|
|
79
84
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
80
|
-
let result
|
|
81
|
-
|
|
82
|
-
accountName,
|
|
83
|
-
options
|
|
84
|
-
);
|
|
85
|
+
let result: PrivateEndpointConnectionsListByAccountResponse;
|
|
86
|
+
result = await this._listByAccount(resourceGroupName, accountName, options);
|
|
85
87
|
yield result.value || [];
|
|
86
88
|
}
|
|
87
89
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -56,11 +56,15 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
56
56
|
[Symbol.asyncIterator]() {
|
|
57
57
|
return this;
|
|
58
58
|
},
|
|
59
|
-
byPage: () => {
|
|
59
|
+
byPage: (settings?: PageSettings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
+
}
|
|
60
63
|
return this.listByAccountPagingPage(
|
|
61
64
|
resourceGroupName,
|
|
62
65
|
accountName,
|
|
63
|
-
options
|
|
66
|
+
options,
|
|
67
|
+
settings
|
|
64
68
|
);
|
|
65
69
|
}
|
|
66
70
|
};
|
|
@@ -69,13 +73,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
69
73
|
private async *listByAccountPagingPage(
|
|
70
74
|
resourceGroupName: string,
|
|
71
75
|
accountName: string,
|
|
72
|
-
options?: PrivateLinkResourcesListByAccountOptionalParams
|
|
76
|
+
options?: PrivateLinkResourcesListByAccountOptionalParams,
|
|
77
|
+
_settings?: PageSettings
|
|
73
78
|
): AsyncIterableIterator<GroupInformation[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
accountName,
|
|
77
|
-
options
|
|
78
|
-
);
|
|
79
|
+
let result: PrivateLinkResourcesListByAccountResponse;
|
|
80
|
+
result = await this._listByAccount(resourceGroupName, accountName, options);
|
|
79
81
|
yield result.value || [];
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
|
@@ -386,6 +386,15 @@ export declare interface ErrorResponse {
|
|
|
386
386
|
error?: ErrorDetail;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
+
/**
|
|
390
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
391
|
+
* returns a continuation token that can be used to begin paging from
|
|
392
|
+
* that point later.
|
|
393
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
394
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
395
|
+
*/
|
|
396
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
397
|
+
|
|
389
398
|
/** Group connectivity details. */
|
|
390
399
|
export declare interface GroupConnectivityInformation {
|
|
391
400
|
/**
|