@azure/arm-containerregistry 10.1.0-beta.2 → 10.1.0-beta.4
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 +32 -11
- package/README.md +1 -1
- package/dist/index.js +623 -167
- 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/connectedRegistriesCreateSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesDeactivateSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesListSample.js +1 -1
- package/dist-esm/samples-dev/connectedRegistriesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesCreateSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesGetSample.js +1 -1
- package/dist-esm/samples-dev/exportPipelinesListSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesCreateSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesGetSample.js +1 -1
- package/dist-esm/samples-dev/importPipelinesListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsCreateSample.js +2 -2
- package/dist-esm/samples-dev/pipelineRunsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsGetSample.js +1 -1
- package/dist-esm/samples-dev/pipelineRunsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
- package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
- package/dist-esm/samples-dev/registriesGetSample.js +1 -1
- package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
- package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
- package/dist-esm/samples-dev/registriesListSample.js +1 -1
- package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
- package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
- package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
- package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
- package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
- package/dist-esm/samples-dev/tokensGetSample.js +1 -1
- package/dist-esm/samples-dev/tokensListSample.js +1 -1
- package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
- package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
- package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
- package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
- package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
- package/dist-esm/samples-dev/webhooksListSample.js +1 -1
- package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
- package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
- package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerRegistryManagementClient.js +25 -6
- package/dist-esm/src/containerRegistryManagementClient.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 +235 -59
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +141 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +94 -33
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
- package/dist-esm/src/operations/agentPools.js +19 -7
- package/dist-esm/src/operations/agentPools.js.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.js +19 -7
- package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
- package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/exportPipelines.js +19 -7
- package/dist-esm/src/operations/exportPipelines.js.map +1 -1
- package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/importPipelines.js +19 -7
- package/dist-esm/src/operations/importPipelines.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/pipelineRuns.js +19 -7
- package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/registries.d.ts.map +1 -1
- package/dist-esm/src/operations/registries.js +55 -21
- package/dist-esm/src/operations/registries.js.map +1 -1
- package/dist-esm/src/operations/replications.d.ts.map +1 -1
- package/dist-esm/src/operations/replications.js +19 -7
- package/dist-esm/src/operations/replications.js.map +1 -1
- package/dist-esm/src/operations/runs.d.ts.map +1 -1
- package/dist-esm/src/operations/runs.js +19 -7
- package/dist-esm/src/operations/runs.js.map +1 -1
- package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
- package/dist-esm/src/operations/scopeMaps.js +19 -7
- package/dist-esm/src/operations/scopeMaps.js.map +1 -1
- package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/taskRuns.js +19 -7
- package/dist-esm/src/operations/taskRuns.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +19 -7
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/tokens.d.ts.map +1 -1
- package/dist-esm/src/operations/tokens.js +19 -7
- package/dist-esm/src/operations/tokens.js.map +1 -1
- package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
- package/dist-esm/src/operations/webhooks.js +37 -14
- package/dist-esm/src/operations/webhooks.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/dist-esm/test/containerregistry_examples.d.ts.map +1 -1
- package/dist-esm/test/containerregistry_examples.js +16 -18
- package/dist-esm/test/containerregistry_examples.js.map +1 -1
- package/package.json +15 -11
- package/review/arm-containerregistry.api.md +177 -280
- package/src/containerRegistryManagementClient.ts +35 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +243 -60
- package/src/models/mappers.ts +98 -34
- package/src/models/parameters.ts +1 -1
- package/src/operations/agentPools.ts +27 -9
- package/src/operations/connectedRegistries.ts +26 -8
- package/src/operations/exportPipelines.ts +26 -8
- package/src/operations/importPipelines.ts +26 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/pipelineRuns.ts +26 -8
- package/src/operations/privateEndpointConnections.ts +26 -8
- package/src/operations/registries.ts +71 -29
- package/src/operations/replications.ts +26 -8
- package/src/operations/runs.ts +26 -8
- package/src/operations/scopeMaps.ts +26 -8
- package/src/operations/taskRuns.ts +27 -9
- package/src/operations/tasks.ts +26 -8
- package/src/operations/tokens.ts +26 -8
- package/src/operations/webhooks.ts +53 -22
- package/src/pagingHelper.ts +39 -0
- package/types/arm-containerregistry.d.ts +250 -60
- package/types/tsdoc-metadata.json +1 -1
package/src/models/mappers.ts
CHANGED
@@ -1471,18 +1471,6 @@ export const NetworkRuleSet: coreClient.CompositeMapper = {
|
|
1471
1471
|
name: "String"
|
1472
1472
|
}
|
1473
1473
|
},
|
1474
|
-
virtualNetworkRules: {
|
1475
|
-
serializedName: "virtualNetworkRules",
|
1476
|
-
type: {
|
1477
|
-
name: "Sequence",
|
1478
|
-
element: {
|
1479
|
-
type: {
|
1480
|
-
name: "Composite",
|
1481
|
-
className: "VirtualNetworkRule"
|
1482
|
-
}
|
1483
|
-
}
|
1484
|
-
}
|
1485
|
-
},
|
1486
1474
|
ipRules: {
|
1487
1475
|
serializedName: "ipRules",
|
1488
1476
|
type: {
|
@@ -1499,34 +1487,13 @@ export const NetworkRuleSet: coreClient.CompositeMapper = {
|
|
1499
1487
|
}
|
1500
1488
|
};
|
1501
1489
|
|
1502
|
-
export const VirtualNetworkRule: coreClient.CompositeMapper = {
|
1503
|
-
type: {
|
1504
|
-
name: "Composite",
|
1505
|
-
className: "VirtualNetworkRule",
|
1506
|
-
modelProperties: {
|
1507
|
-
action: {
|
1508
|
-
serializedName: "action",
|
1509
|
-
type: {
|
1510
|
-
name: "String"
|
1511
|
-
}
|
1512
|
-
},
|
1513
|
-
virtualNetworkResourceId: {
|
1514
|
-
serializedName: "id",
|
1515
|
-
required: true,
|
1516
|
-
type: {
|
1517
|
-
name: "String"
|
1518
|
-
}
|
1519
|
-
}
|
1520
|
-
}
|
1521
|
-
}
|
1522
|
-
};
|
1523
|
-
|
1524
1490
|
export const IPRule: coreClient.CompositeMapper = {
|
1525
1491
|
type: {
|
1526
1492
|
name: "Composite",
|
1527
1493
|
className: "IPRule",
|
1528
1494
|
modelProperties: {
|
1529
1495
|
action: {
|
1496
|
+
defaultValue: "Allow",
|
1530
1497
|
serializedName: "action",
|
1531
1498
|
type: {
|
1532
1499
|
name: "String"
|
@@ -1575,6 +1542,20 @@ export const Policies: coreClient.CompositeMapper = {
|
|
1575
1542
|
name: "Composite",
|
1576
1543
|
className: "ExportPolicy"
|
1577
1544
|
}
|
1545
|
+
},
|
1546
|
+
azureADAuthenticationAsArmPolicy: {
|
1547
|
+
serializedName: "azureADAuthenticationAsArmPolicy",
|
1548
|
+
type: {
|
1549
|
+
name: "Composite",
|
1550
|
+
className: "AzureADAuthenticationAsArmPolicy"
|
1551
|
+
}
|
1552
|
+
},
|
1553
|
+
softDeletePolicy: {
|
1554
|
+
serializedName: "softDeletePolicy",
|
1555
|
+
type: {
|
1556
|
+
name: "Composite",
|
1557
|
+
className: "SoftDeletePolicy"
|
1558
|
+
}
|
1578
1559
|
}
|
1579
1560
|
}
|
1580
1561
|
}
|
@@ -1662,6 +1643,51 @@ export const ExportPolicy: coreClient.CompositeMapper = {
|
|
1662
1643
|
}
|
1663
1644
|
};
|
1664
1645
|
|
1646
|
+
export const AzureADAuthenticationAsArmPolicy: coreClient.CompositeMapper = {
|
1647
|
+
type: {
|
1648
|
+
name: "Composite",
|
1649
|
+
className: "AzureADAuthenticationAsArmPolicy",
|
1650
|
+
modelProperties: {
|
1651
|
+
status: {
|
1652
|
+
defaultValue: "enabled",
|
1653
|
+
serializedName: "status",
|
1654
|
+
type: {
|
1655
|
+
name: "String"
|
1656
|
+
}
|
1657
|
+
}
|
1658
|
+
}
|
1659
|
+
}
|
1660
|
+
};
|
1661
|
+
|
1662
|
+
export const SoftDeletePolicy: coreClient.CompositeMapper = {
|
1663
|
+
type: {
|
1664
|
+
name: "Composite",
|
1665
|
+
className: "SoftDeletePolicy",
|
1666
|
+
modelProperties: {
|
1667
|
+
retentionDays: {
|
1668
|
+
defaultValue: 7,
|
1669
|
+
serializedName: "retentionDays",
|
1670
|
+
type: {
|
1671
|
+
name: "Number"
|
1672
|
+
}
|
1673
|
+
},
|
1674
|
+
lastUpdatedTime: {
|
1675
|
+
serializedName: "lastUpdatedTime",
|
1676
|
+
readOnly: true,
|
1677
|
+
type: {
|
1678
|
+
name: "DateTime"
|
1679
|
+
}
|
1680
|
+
},
|
1681
|
+
status: {
|
1682
|
+
serializedName: "status",
|
1683
|
+
type: {
|
1684
|
+
name: "String"
|
1685
|
+
}
|
1686
|
+
}
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
};
|
1690
|
+
|
1665
1691
|
export const EncryptionProperty: coreClient.CompositeMapper = {
|
1666
1692
|
type: {
|
1667
1693
|
name: "Composite",
|
@@ -4080,6 +4106,44 @@ export const BaseImageTriggerUpdateParameters: coreClient.CompositeMapper = {
|
|
4080
4106
|
}
|
4081
4107
|
};
|
4082
4108
|
|
4109
|
+
export const StorageAccountProperties: coreClient.CompositeMapper = {
|
4110
|
+
type: {
|
4111
|
+
name: "Composite",
|
4112
|
+
className: "StorageAccountProperties",
|
4113
|
+
modelProperties: {
|
4114
|
+
id: {
|
4115
|
+
serializedName: "id",
|
4116
|
+
required: true,
|
4117
|
+
type: {
|
4118
|
+
name: "String"
|
4119
|
+
}
|
4120
|
+
}
|
4121
|
+
}
|
4122
|
+
}
|
4123
|
+
};
|
4124
|
+
|
4125
|
+
export const PackageType: coreClient.CompositeMapper = {
|
4126
|
+
type: {
|
4127
|
+
name: "Composite",
|
4128
|
+
className: "PackageType",
|
4129
|
+
modelProperties: {
|
4130
|
+
name: {
|
4131
|
+
serializedName: "name",
|
4132
|
+
type: {
|
4133
|
+
name: "String"
|
4134
|
+
}
|
4135
|
+
},
|
4136
|
+
endpoint: {
|
4137
|
+
serializedName: "endpoint",
|
4138
|
+
readOnly: true,
|
4139
|
+
type: {
|
4140
|
+
name: "String"
|
4141
|
+
}
|
4142
|
+
}
|
4143
|
+
}
|
4144
|
+
}
|
4145
|
+
};
|
4146
|
+
|
4083
4147
|
export const ActiveDirectoryObject: coreClient.CompositeMapper = {
|
4084
4148
|
type: {
|
4085
4149
|
name: "Composite",
|
package/src/models/parameters.ts
CHANGED
@@ -69,7 +69,7 @@ export const $host: OperationURLParameter = {
|
|
69
69
|
export const apiVersion: OperationQueryParameter = {
|
70
70
|
parameterPath: "apiVersion",
|
71
71
|
mapper: {
|
72
|
-
defaultValue: "
|
72
|
+
defaultValue: "2022-02-01-preview",
|
73
73
|
isConstant: true,
|
74
74
|
serializedName: "api-version",
|
75
75
|
type: {
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { AgentPools } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -18,6 +19,7 @@ import {
|
|
18
19
|
AgentPool,
|
19
20
|
AgentPoolsListNextOptionalParams,
|
20
21
|
AgentPoolsListOptionalParams,
|
22
|
+
AgentPoolsListResponse,
|
21
23
|
AgentPoolsGetOptionalParams,
|
22
24
|
AgentPoolsGetResponse,
|
23
25
|
AgentPoolsCreateOptionalParams,
|
@@ -26,7 +28,6 @@ import {
|
|
26
28
|
AgentPoolUpdateParameters,
|
27
29
|
AgentPoolsUpdateOptionalParams,
|
28
30
|
AgentPoolsUpdateResponse,
|
29
|
-
AgentPoolsListResponse,
|
30
31
|
AgentPoolsGetQueueStatusOptionalParams,
|
31
32
|
AgentPoolsGetQueueStatusResponse,
|
32
33
|
AgentPoolsListNextResponse
|
@@ -64,8 +65,16 @@ export class AgentPoolsImpl implements AgentPools {
|
|
64
65
|
[Symbol.asyncIterator]() {
|
65
66
|
return this;
|
66
67
|
},
|
67
|
-
byPage: () => {
|
68
|
-
|
68
|
+
byPage: (settings?: PageSettings) => {
|
69
|
+
if (settings?.maxPageSize) {
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
71
|
+
}
|
72
|
+
return this.listPagingPage(
|
73
|
+
resourceGroupName,
|
74
|
+
registryName,
|
75
|
+
options,
|
76
|
+
settings
|
77
|
+
);
|
69
78
|
}
|
70
79
|
};
|
71
80
|
}
|
@@ -73,11 +82,18 @@ export class AgentPoolsImpl implements AgentPools {
|
|
73
82
|
private async *listPagingPage(
|
74
83
|
resourceGroupName: string,
|
75
84
|
registryName: string,
|
76
|
-
options?: AgentPoolsListOptionalParams
|
85
|
+
options?: AgentPoolsListOptionalParams,
|
86
|
+
settings?: PageSettings
|
77
87
|
): AsyncIterableIterator<AgentPool[]> {
|
78
|
-
let result
|
79
|
-
|
80
|
-
|
88
|
+
let result: AgentPoolsListResponse;
|
89
|
+
let continuationToken = settings?.continuationToken;
|
90
|
+
if (!continuationToken) {
|
91
|
+
result = await this._list(resourceGroupName, registryName, options);
|
92
|
+
let page = result.value || [];
|
93
|
+
continuationToken = result.nextLink;
|
94
|
+
setContinuationToken(page, continuationToken);
|
95
|
+
yield page;
|
96
|
+
}
|
81
97
|
while (continuationToken) {
|
82
98
|
result = await this._listNext(
|
83
99
|
resourceGroupName,
|
@@ -86,7 +102,9 @@ export class AgentPoolsImpl implements AgentPools {
|
|
86
102
|
options
|
87
103
|
);
|
88
104
|
continuationToken = result.nextLink;
|
89
|
-
|
105
|
+
let page = result.value || [];
|
106
|
+
setContinuationToken(page, continuationToken);
|
107
|
+
yield page;
|
90
108
|
}
|
91
109
|
}
|
92
110
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { ConnectedRegistries } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -63,8 +64,16 @@ export class ConnectedRegistriesImpl implements ConnectedRegistries {
|
|
63
64
|
[Symbol.asyncIterator]() {
|
64
65
|
return this;
|
65
66
|
},
|
66
|
-
byPage: () => {
|
67
|
-
|
67
|
+
byPage: (settings?: PageSettings) => {
|
68
|
+
if (settings?.maxPageSize) {
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
70
|
+
}
|
71
|
+
return this.listPagingPage(
|
72
|
+
resourceGroupName,
|
73
|
+
registryName,
|
74
|
+
options,
|
75
|
+
settings
|
76
|
+
);
|
68
77
|
}
|
69
78
|
};
|
70
79
|
}
|
@@ -72,11 +81,18 @@ export class ConnectedRegistriesImpl implements ConnectedRegistries {
|
|
72
81
|
private async *listPagingPage(
|
73
82
|
resourceGroupName: string,
|
74
83
|
registryName: string,
|
75
|
-
options?: ConnectedRegistriesListOptionalParams
|
84
|
+
options?: ConnectedRegistriesListOptionalParams,
|
85
|
+
settings?: PageSettings
|
76
86
|
): AsyncIterableIterator<ConnectedRegistry[]> {
|
77
|
-
let result
|
78
|
-
|
79
|
-
|
87
|
+
let result: ConnectedRegistriesListResponse;
|
88
|
+
let continuationToken = settings?.continuationToken;
|
89
|
+
if (!continuationToken) {
|
90
|
+
result = await this._list(resourceGroupName, registryName, options);
|
91
|
+
let page = result.value || [];
|
92
|
+
continuationToken = result.nextLink;
|
93
|
+
setContinuationToken(page, continuationToken);
|
94
|
+
yield page;
|
95
|
+
}
|
80
96
|
while (continuationToken) {
|
81
97
|
result = await this._listNext(
|
82
98
|
resourceGroupName,
|
@@ -85,7 +101,9 @@ export class ConnectedRegistriesImpl implements ConnectedRegistries {
|
|
85
101
|
options
|
86
102
|
);
|
87
103
|
continuationToken = result.nextLink;
|
88
|
-
|
104
|
+
let page = result.value || [];
|
105
|
+
setContinuationToken(page, continuationToken);
|
106
|
+
yield page;
|
89
107
|
}
|
90
108
|
}
|
91
109
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { ExportPipelines } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -59,8 +60,16 @@ export class ExportPipelinesImpl implements ExportPipelines {
|
|
59
60
|
[Symbol.asyncIterator]() {
|
60
61
|
return this;
|
61
62
|
},
|
62
|
-
byPage: () => {
|
63
|
-
|
63
|
+
byPage: (settings?: PageSettings) => {
|
64
|
+
if (settings?.maxPageSize) {
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
66
|
+
}
|
67
|
+
return this.listPagingPage(
|
68
|
+
resourceGroupName,
|
69
|
+
registryName,
|
70
|
+
options,
|
71
|
+
settings
|
72
|
+
);
|
64
73
|
}
|
65
74
|
};
|
66
75
|
}
|
@@ -68,11 +77,18 @@ export class ExportPipelinesImpl implements ExportPipelines {
|
|
68
77
|
private async *listPagingPage(
|
69
78
|
resourceGroupName: string,
|
70
79
|
registryName: string,
|
71
|
-
options?: ExportPipelinesListOptionalParams
|
80
|
+
options?: ExportPipelinesListOptionalParams,
|
81
|
+
settings?: PageSettings
|
72
82
|
): AsyncIterableIterator<ExportPipeline[]> {
|
73
|
-
let result
|
74
|
-
|
75
|
-
|
83
|
+
let result: ExportPipelinesListResponse;
|
84
|
+
let continuationToken = settings?.continuationToken;
|
85
|
+
if (!continuationToken) {
|
86
|
+
result = await this._list(resourceGroupName, registryName, options);
|
87
|
+
let page = result.value || [];
|
88
|
+
continuationToken = result.nextLink;
|
89
|
+
setContinuationToken(page, continuationToken);
|
90
|
+
yield page;
|
91
|
+
}
|
76
92
|
while (continuationToken) {
|
77
93
|
result = await this._listNext(
|
78
94
|
resourceGroupName,
|
@@ -81,7 +97,9 @@ export class ExportPipelinesImpl implements ExportPipelines {
|
|
81
97
|
options
|
82
98
|
);
|
83
99
|
continuationToken = result.nextLink;
|
84
|
-
|
100
|
+
let page = result.value || [];
|
101
|
+
setContinuationToken(page, continuationToken);
|
102
|
+
yield page;
|
85
103
|
}
|
86
104
|
}
|
87
105
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { ImportPipelines } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -59,8 +60,16 @@ export class ImportPipelinesImpl implements ImportPipelines {
|
|
59
60
|
[Symbol.asyncIterator]() {
|
60
61
|
return this;
|
61
62
|
},
|
62
|
-
byPage: () => {
|
63
|
-
|
63
|
+
byPage: (settings?: PageSettings) => {
|
64
|
+
if (settings?.maxPageSize) {
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
66
|
+
}
|
67
|
+
return this.listPagingPage(
|
68
|
+
resourceGroupName,
|
69
|
+
registryName,
|
70
|
+
options,
|
71
|
+
settings
|
72
|
+
);
|
64
73
|
}
|
65
74
|
};
|
66
75
|
}
|
@@ -68,11 +77,18 @@ export class ImportPipelinesImpl implements ImportPipelines {
|
|
68
77
|
private async *listPagingPage(
|
69
78
|
resourceGroupName: string,
|
70
79
|
registryName: string,
|
71
|
-
options?: ImportPipelinesListOptionalParams
|
80
|
+
options?: ImportPipelinesListOptionalParams,
|
81
|
+
settings?: PageSettings
|
72
82
|
): AsyncIterableIterator<ImportPipeline[]> {
|
73
|
-
let result
|
74
|
-
|
75
|
-
|
83
|
+
let result: ImportPipelinesListResponse;
|
84
|
+
let continuationToken = settings?.continuationToken;
|
85
|
+
if (!continuationToken) {
|
86
|
+
result = await this._list(resourceGroupName, registryName, options);
|
87
|
+
let page = result.value || [];
|
88
|
+
continuationToken = result.nextLink;
|
89
|
+
setContinuationToken(page, continuationToken);
|
90
|
+
yield page;
|
91
|
+
}
|
76
92
|
while (continuationToken) {
|
77
93
|
result = await this._listNext(
|
78
94
|
resourceGroupName,
|
@@ -81,7 +97,9 @@ export class ImportPipelinesImpl implements ImportPipelines {
|
|
81
97
|
options
|
82
98
|
);
|
83
99
|
continuationToken = result.nextLink;
|
84
|
-
|
100
|
+
let page = result.value || [];
|
101
|
+
setContinuationToken(page, continuationToken);
|
102
|
+
yield page;
|
85
103
|
}
|
86
104
|
}
|
87
105
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
48
49
|
[Symbol.asyncIterator]() {
|
49
50
|
return this;
|
50
51
|
},
|
51
|
-
byPage: () => {
|
52
|
-
|
52
|
+
byPage: (settings?: PageSettings) => {
|
53
|
+
if (settings?.maxPageSize) {
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
55
|
+
}
|
56
|
+
return this.listPagingPage(options, settings);
|
53
57
|
}
|
54
58
|
};
|
55
59
|
}
|
56
60
|
|
57
61
|
private async *listPagingPage(
|
58
|
-
options?: OperationsListOptionalParams
|
62
|
+
options?: OperationsListOptionalParams,
|
63
|
+
settings?: PageSettings
|
59
64
|
): AsyncIterableIterator<OperationDefinition[]> {
|
60
|
-
let result
|
61
|
-
|
62
|
-
|
65
|
+
let result: OperationsListResponse;
|
66
|
+
let continuationToken = settings?.continuationToken;
|
67
|
+
if (!continuationToken) {
|
68
|
+
result = await this._list(options);
|
69
|
+
let page = result.value || [];
|
70
|
+
continuationToken = result.nextLink;
|
71
|
+
setContinuationToken(page, continuationToken);
|
72
|
+
yield page;
|
73
|
+
}
|
63
74
|
while (continuationToken) {
|
64
75
|
result = await this._listNext(continuationToken, options);
|
65
76
|
continuationToken = result.nextLink;
|
66
|
-
|
77
|
+
let page = result.value || [];
|
78
|
+
setContinuationToken(page, continuationToken);
|
79
|
+
yield page;
|
67
80
|
}
|
68
81
|
}
|
69
82
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { PipelineRuns } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -59,8 +60,16 @@ export class PipelineRunsImpl implements PipelineRuns {
|
|
59
60
|
[Symbol.asyncIterator]() {
|
60
61
|
return this;
|
61
62
|
},
|
62
|
-
byPage: () => {
|
63
|
-
|
63
|
+
byPage: (settings?: PageSettings) => {
|
64
|
+
if (settings?.maxPageSize) {
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
66
|
+
}
|
67
|
+
return this.listPagingPage(
|
68
|
+
resourceGroupName,
|
69
|
+
registryName,
|
70
|
+
options,
|
71
|
+
settings
|
72
|
+
);
|
64
73
|
}
|
65
74
|
};
|
66
75
|
}
|
@@ -68,11 +77,18 @@ export class PipelineRunsImpl implements PipelineRuns {
|
|
68
77
|
private async *listPagingPage(
|
69
78
|
resourceGroupName: string,
|
70
79
|
registryName: string,
|
71
|
-
options?: PipelineRunsListOptionalParams
|
80
|
+
options?: PipelineRunsListOptionalParams,
|
81
|
+
settings?: PageSettings
|
72
82
|
): AsyncIterableIterator<PipelineRun[]> {
|
73
|
-
let result
|
74
|
-
|
75
|
-
|
83
|
+
let result: PipelineRunsListResponse;
|
84
|
+
let continuationToken = settings?.continuationToken;
|
85
|
+
if (!continuationToken) {
|
86
|
+
result = await this._list(resourceGroupName, registryName, options);
|
87
|
+
let page = result.value || [];
|
88
|
+
continuationToken = result.nextLink;
|
89
|
+
setContinuationToken(page, continuationToken);
|
90
|
+
yield page;
|
91
|
+
}
|
76
92
|
while (continuationToken) {
|
77
93
|
result = await this._listNext(
|
78
94
|
resourceGroupName,
|
@@ -81,7 +97,9 @@ export class PipelineRunsImpl implements PipelineRuns {
|
|
81
97
|
options
|
82
98
|
);
|
83
99
|
continuationToken = result.nextLink;
|
84
|
-
|
100
|
+
let page = result.value || [];
|
101
|
+
setContinuationToken(page, continuationToken);
|
102
|
+
yield page;
|
85
103
|
}
|
86
104
|
}
|
87
105
|
|
@@ -6,7 +6,8 @@
|
|
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
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -60,8 +61,16 @@ export class PrivateEndpointConnectionsImpl
|
|
60
61
|
[Symbol.asyncIterator]() {
|
61
62
|
return this;
|
62
63
|
},
|
63
|
-
byPage: () => {
|
64
|
-
|
64
|
+
byPage: (settings?: PageSettings) => {
|
65
|
+
if (settings?.maxPageSize) {
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
67
|
+
}
|
68
|
+
return this.listPagingPage(
|
69
|
+
resourceGroupName,
|
70
|
+
registryName,
|
71
|
+
options,
|
72
|
+
settings
|
73
|
+
);
|
65
74
|
}
|
66
75
|
};
|
67
76
|
}
|
@@ -69,11 +78,18 @@ export class PrivateEndpointConnectionsImpl
|
|
69
78
|
private async *listPagingPage(
|
70
79
|
resourceGroupName: string,
|
71
80
|
registryName: string,
|
72
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
81
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
82
|
+
settings?: PageSettings
|
73
83
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
74
|
-
let result
|
75
|
-
|
76
|
-
|
84
|
+
let result: PrivateEndpointConnectionsListResponse;
|
85
|
+
let continuationToken = settings?.continuationToken;
|
86
|
+
if (!continuationToken) {
|
87
|
+
result = await this._list(resourceGroupName, registryName, options);
|
88
|
+
let page = result.value || [];
|
89
|
+
continuationToken = result.nextLink;
|
90
|
+
setContinuationToken(page, continuationToken);
|
91
|
+
yield page;
|
92
|
+
}
|
77
93
|
while (continuationToken) {
|
78
94
|
result = await this._listNext(
|
79
95
|
resourceGroupName,
|
@@ -82,7 +98,9 @@ export class PrivateEndpointConnectionsImpl
|
|
82
98
|
options
|
83
99
|
);
|
84
100
|
continuationToken = result.nextLink;
|
85
|
-
|
101
|
+
let page = result.value || [];
|
102
|
+
setContinuationToken(page, continuationToken);
|
103
|
+
yield page;
|
86
104
|
}
|
87
105
|
}
|
88
106
|
|