@azure/arm-containerregistry 9.0.0-alpha.20211025.2 → 10.0.0-alpha.20211105.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 +12 -13
- package/dist/index.js +705 -682
- 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/src/containerRegistryManagementClientContext.js +1 -1
- package/dist-esm/src/containerRegistryManagementClientContext.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +185 -177
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +2 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +16 -16
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +312 -291
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -10
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.d.ts +7 -7
- package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
- package/dist-esm/src/operations/connectedRegistries.js +30 -30
- package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
- package/dist-esm/src/operations/exportPipelines.d.ts +7 -7
- package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/exportPipelines.js +27 -27
- package/dist-esm/src/operations/exportPipelines.js.map +1 -1
- package/dist-esm/src/operations/importPipelines.d.ts +7 -7
- package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/importPipelines.js +27 -27
- package/dist-esm/src/operations/importPipelines.js.map +1 -1
- package/dist-esm/src/operations/pipelineRuns.d.ts +7 -7
- package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/pipelineRuns.js +27 -27
- package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +27 -27
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/registries.d.ts +32 -32
- package/dist-esm/src/operations/registries.d.ts.map +1 -1
- package/dist-esm/src/operations/registries.js +102 -102
- package/dist-esm/src/operations/registries.js.map +1 -1
- package/dist-esm/src/operations/replications.d.ts +7 -7
- package/dist-esm/src/operations/replications.d.ts.map +1 -1
- package/dist-esm/src/operations/replications.js +27 -27
- package/dist-esm/src/operations/replications.js.map +1 -1
- package/dist-esm/src/operations/scopeMaps.d.ts +7 -7
- package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
- package/dist-esm/src/operations/scopeMaps.js +27 -27
- package/dist-esm/src/operations/scopeMaps.js.map +1 -1
- package/dist-esm/src/operations/tokens.d.ts +7 -7
- package/dist-esm/src/operations/tokens.d.ts.map +1 -1
- package/dist-esm/src/operations/tokens.js +27 -27
- package/dist-esm/src/operations/tokens.js.map +1 -1
- package/dist-esm/src/operations/webhooks.d.ts +11 -11
- package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
- package/dist-esm/src/operations/webhooks.js +39 -39
- package/dist-esm/src/operations/webhooks.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/registries.d.ts +13 -13
- package/dist-esm/src/operationsInterfaces/registries.d.ts.map +1 -1
- package/package.json +4 -5
- package/review/arm-containerregistry.api.md +13 -6
- package/src/containerRegistryManagementClientContext.ts +1 -1
- package/src/models/index.ts +215 -207
- package/src/models/mappers.ts +330 -308
- package/src/models/parameters.ts +11 -11
- package/src/operations/connectedRegistries.ts +40 -40
- package/src/operations/exportPipelines.ts +37 -37
- package/src/operations/importPipelines.ts +37 -37
- package/src/operations/pipelineRuns.ts +37 -37
- package/src/operations/privateEndpointConnections.ts +37 -37
- package/src/operations/registries.ts +152 -152
- package/src/operations/replications.ts +37 -37
- package/src/operations/scopeMaps.ts +37 -37
- package/src/operations/tokens.ts +37 -37
- package/src/operations/webhooks.ts +54 -54
- package/src/operationsInterfaces/registries.ts +21 -21
- package/types/arm-containerregistry.d.ts +27 -17
- package/types/tsdoc-metadata.json +1 -1
@@ -16,10 +16,10 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
18
18
|
Registry,
|
19
|
-
RegistriesListByResourceGroupNextOptionalParams,
|
20
|
-
RegistriesListByResourceGroupOptionalParams,
|
21
19
|
RegistriesListNextOptionalParams,
|
22
20
|
RegistriesListOptionalParams,
|
21
|
+
RegistriesListByResourceGroupNextOptionalParams,
|
22
|
+
RegistriesListByResourceGroupOptionalParams,
|
23
23
|
PrivateLinkResource,
|
24
24
|
RegistriesListPrivateLinkResourcesNextOptionalParams,
|
25
25
|
RegistriesListPrivateLinkResourcesOptionalParams,
|
@@ -28,6 +28,8 @@ import {
|
|
28
28
|
RegistryNameCheckRequest,
|
29
29
|
RegistriesCheckNameAvailabilityOptionalParams,
|
30
30
|
RegistriesCheckNameAvailabilityResponse,
|
31
|
+
RegistriesListResponse,
|
32
|
+
RegistriesListByResourceGroupResponse,
|
31
33
|
RegistriesGetOptionalParams,
|
32
34
|
RegistriesGetResponse,
|
33
35
|
RegistriesCreateOptionalParams,
|
@@ -36,16 +38,14 @@ import {
|
|
36
38
|
RegistryUpdateParameters,
|
37
39
|
RegistriesUpdateOptionalParams,
|
38
40
|
RegistriesUpdateResponse,
|
39
|
-
|
40
|
-
|
41
|
+
RegistriesListUsagesOptionalParams,
|
42
|
+
RegistriesListUsagesResponse,
|
43
|
+
RegistriesListPrivateLinkResourcesResponse,
|
41
44
|
RegistriesListCredentialsOptionalParams,
|
42
45
|
RegistriesListCredentialsResponse,
|
43
46
|
RegenerateCredentialParameters,
|
44
47
|
RegistriesRegenerateCredentialOptionalParams,
|
45
48
|
RegistriesRegenerateCredentialResponse,
|
46
|
-
RegistriesListUsagesOptionalParams,
|
47
|
-
RegistriesListUsagesResponse,
|
48
|
-
RegistriesListPrivateLinkResourcesResponse,
|
49
49
|
GenerateCredentialsParameters,
|
50
50
|
RegistriesGenerateCredentialsOptionalParams,
|
51
51
|
RegistriesGenerateCredentialsResponse,
|
@@ -54,8 +54,8 @@ import {
|
|
54
54
|
RegistriesScheduleRunResponse,
|
55
55
|
RegistriesGetBuildSourceUploadUrlOptionalParams,
|
56
56
|
RegistriesGetBuildSourceUploadUrlResponse,
|
57
|
-
RegistriesListByResourceGroupNextResponse,
|
58
57
|
RegistriesListNextResponse,
|
58
|
+
RegistriesListByResourceGroupNextResponse,
|
59
59
|
RegistriesListPrivateLinkResourcesNextResponse
|
60
60
|
} from "../models";
|
61
61
|
|
@@ -73,15 +73,13 @@ export class RegistriesImpl implements Registries {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
/**
|
76
|
-
* Lists all the container registries under the specified
|
77
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
76
|
+
* Lists all the container registries under the specified subscription.
|
78
77
|
* @param options The options parameters.
|
79
78
|
*/
|
80
|
-
public
|
81
|
-
|
82
|
-
options?: RegistriesListByResourceGroupOptionalParams
|
79
|
+
public list(
|
80
|
+
options?: RegistriesListOptionalParams
|
83
81
|
): PagedAsyncIterableIterator<Registry> {
|
84
|
-
const iter = this.
|
82
|
+
const iter = this.listPagingAll(options);
|
85
83
|
return {
|
86
84
|
next() {
|
87
85
|
return iter.next();
|
@@ -90,49 +88,42 @@ export class RegistriesImpl implements Registries {
|
|
90
88
|
return this;
|
91
89
|
},
|
92
90
|
byPage: () => {
|
93
|
-
return this.
|
91
|
+
return this.listPagingPage(options);
|
94
92
|
}
|
95
93
|
};
|
96
94
|
}
|
97
95
|
|
98
|
-
private async *
|
99
|
-
|
100
|
-
options?: RegistriesListByResourceGroupOptionalParams
|
96
|
+
private async *listPagingPage(
|
97
|
+
options?: RegistriesListOptionalParams
|
101
98
|
): AsyncIterableIterator<Registry[]> {
|
102
|
-
let result = await this.
|
99
|
+
let result = await this._list(options);
|
103
100
|
yield result.value || [];
|
104
101
|
let continuationToken = result.nextLink;
|
105
102
|
while (continuationToken) {
|
106
|
-
result = await this.
|
107
|
-
resourceGroupName,
|
108
|
-
continuationToken,
|
109
|
-
options
|
110
|
-
);
|
103
|
+
result = await this._listNext(continuationToken, options);
|
111
104
|
continuationToken = result.nextLink;
|
112
105
|
yield result.value || [];
|
113
106
|
}
|
114
107
|
}
|
115
108
|
|
116
|
-
private async *
|
117
|
-
|
118
|
-
options?: RegistriesListByResourceGroupOptionalParams
|
109
|
+
private async *listPagingAll(
|
110
|
+
options?: RegistriesListOptionalParams
|
119
111
|
): AsyncIterableIterator<Registry> {
|
120
|
-
for await (const page of this.
|
121
|
-
resourceGroupName,
|
122
|
-
options
|
123
|
-
)) {
|
112
|
+
for await (const page of this.listPagingPage(options)) {
|
124
113
|
yield* page;
|
125
114
|
}
|
126
115
|
}
|
127
116
|
|
128
117
|
/**
|
129
|
-
* Lists all the container registries under the specified
|
118
|
+
* Lists all the container registries under the specified resource group.
|
119
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
130
120
|
* @param options The options parameters.
|
131
121
|
*/
|
132
|
-
public
|
133
|
-
|
122
|
+
public listByResourceGroup(
|
123
|
+
resourceGroupName: string,
|
124
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
134
125
|
): PagedAsyncIterableIterator<Registry> {
|
135
|
-
const iter = this.
|
126
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
136
127
|
return {
|
137
128
|
next() {
|
138
129
|
return iter.next();
|
@@ -141,28 +132,37 @@ export class RegistriesImpl implements Registries {
|
|
141
132
|
return this;
|
142
133
|
},
|
143
134
|
byPage: () => {
|
144
|
-
return this.
|
135
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
145
136
|
}
|
146
137
|
};
|
147
138
|
}
|
148
139
|
|
149
|
-
private async *
|
150
|
-
|
140
|
+
private async *listByResourceGroupPagingPage(
|
141
|
+
resourceGroupName: string,
|
142
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
151
143
|
): AsyncIterableIterator<Registry[]> {
|
152
|
-
let result = await this.
|
144
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
153
145
|
yield result.value || [];
|
154
146
|
let continuationToken = result.nextLink;
|
155
147
|
while (continuationToken) {
|
156
|
-
result = await this.
|
148
|
+
result = await this._listByResourceGroupNext(
|
149
|
+
resourceGroupName,
|
150
|
+
continuationToken,
|
151
|
+
options
|
152
|
+
);
|
157
153
|
continuationToken = result.nextLink;
|
158
154
|
yield result.value || [];
|
159
155
|
}
|
160
156
|
}
|
161
157
|
|
162
|
-
private async *
|
163
|
-
|
158
|
+
private async *listByResourceGroupPagingAll(
|
159
|
+
resourceGroupName: string,
|
160
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
164
161
|
): AsyncIterableIterator<Registry> {
|
165
|
-
for await (const page of this.
|
162
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
163
|
+
resourceGroupName,
|
164
|
+
options
|
165
|
+
)) {
|
166
166
|
yield* page;
|
167
167
|
}
|
168
168
|
}
|
@@ -339,6 +339,31 @@ export class RegistriesImpl implements Registries {
|
|
339
339
|
);
|
340
340
|
}
|
341
341
|
|
342
|
+
/**
|
343
|
+
* Lists all the container registries under the specified subscription.
|
344
|
+
* @param options The options parameters.
|
345
|
+
*/
|
346
|
+
private _list(
|
347
|
+
options?: RegistriesListOptionalParams
|
348
|
+
): Promise<RegistriesListResponse> {
|
349
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* Lists all the container registries under the specified resource group.
|
354
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
355
|
+
* @param options The options parameters.
|
356
|
+
*/
|
357
|
+
private _listByResourceGroup(
|
358
|
+
resourceGroupName: string,
|
359
|
+
options?: RegistriesListByResourceGroupOptionalParams
|
360
|
+
): Promise<RegistriesListByResourceGroupResponse> {
|
361
|
+
return this.client.sendOperationRequest(
|
362
|
+
{ resourceGroupName, options },
|
363
|
+
listByResourceGroupOperationSpec
|
364
|
+
);
|
365
|
+
}
|
366
|
+
|
342
367
|
/**
|
343
368
|
* Gets the properties of the specified container registry.
|
344
369
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -617,28 +642,37 @@ export class RegistriesImpl implements Registries {
|
|
617
642
|
}
|
618
643
|
|
619
644
|
/**
|
620
|
-
*
|
645
|
+
* Gets the quota usages for the specified container registry.
|
621
646
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
647
|
+
* @param registryName The name of the container registry.
|
622
648
|
* @param options The options parameters.
|
623
649
|
*/
|
624
|
-
|
650
|
+
listUsages(
|
625
651
|
resourceGroupName: string,
|
626
|
-
|
627
|
-
|
652
|
+
registryName: string,
|
653
|
+
options?: RegistriesListUsagesOptionalParams
|
654
|
+
): Promise<RegistriesListUsagesResponse> {
|
628
655
|
return this.client.sendOperationRequest(
|
629
|
-
{ resourceGroupName, options },
|
630
|
-
|
656
|
+
{ resourceGroupName, registryName, options },
|
657
|
+
listUsagesOperationSpec
|
631
658
|
);
|
632
659
|
}
|
633
660
|
|
634
661
|
/**
|
635
|
-
* Lists
|
662
|
+
* Lists the private link resources for a container registry.
|
663
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
664
|
+
* @param registryName The name of the container registry.
|
636
665
|
* @param options The options parameters.
|
637
666
|
*/
|
638
|
-
private
|
639
|
-
|
640
|
-
|
641
|
-
|
667
|
+
private _listPrivateLinkResources(
|
668
|
+
resourceGroupName: string,
|
669
|
+
registryName: string,
|
670
|
+
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
671
|
+
): Promise<RegistriesListPrivateLinkResourcesResponse> {
|
672
|
+
return this.client.sendOperationRequest(
|
673
|
+
{ resourceGroupName, registryName, options },
|
674
|
+
listPrivateLinkResourcesOperationSpec
|
675
|
+
);
|
642
676
|
}
|
643
677
|
|
644
678
|
/**
|
@@ -683,40 +717,6 @@ export class RegistriesImpl implements Registries {
|
|
683
717
|
);
|
684
718
|
}
|
685
719
|
|
686
|
-
/**
|
687
|
-
* Gets the quota usages for the specified container registry.
|
688
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
689
|
-
* @param registryName The name of the container registry.
|
690
|
-
* @param options The options parameters.
|
691
|
-
*/
|
692
|
-
listUsages(
|
693
|
-
resourceGroupName: string,
|
694
|
-
registryName: string,
|
695
|
-
options?: RegistriesListUsagesOptionalParams
|
696
|
-
): Promise<RegistriesListUsagesResponse> {
|
697
|
-
return this.client.sendOperationRequest(
|
698
|
-
{ resourceGroupName, registryName, options },
|
699
|
-
listUsagesOperationSpec
|
700
|
-
);
|
701
|
-
}
|
702
|
-
|
703
|
-
/**
|
704
|
-
* Lists the private link resources for a container registry.
|
705
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
706
|
-
* @param registryName The name of the container registry.
|
707
|
-
* @param options The options parameters.
|
708
|
-
*/
|
709
|
-
private _listPrivateLinkResources(
|
710
|
-
resourceGroupName: string,
|
711
|
-
registryName: string,
|
712
|
-
options?: RegistriesListPrivateLinkResourcesOptionalParams
|
713
|
-
): Promise<RegistriesListPrivateLinkResourcesResponse> {
|
714
|
-
return this.client.sendOperationRequest(
|
715
|
-
{ resourceGroupName, registryName, options },
|
716
|
-
listPrivateLinkResourcesOperationSpec
|
717
|
-
);
|
718
|
-
}
|
719
|
-
|
720
720
|
/**
|
721
721
|
* Generate keys for a token of a specified container registry.
|
722
722
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -919,6 +919,21 @@ export class RegistriesImpl implements Registries {
|
|
919
919
|
);
|
920
920
|
}
|
921
921
|
|
922
|
+
/**
|
923
|
+
* ListNext
|
924
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
925
|
+
* @param options The options parameters.
|
926
|
+
*/
|
927
|
+
private _listNext(
|
928
|
+
nextLink: string,
|
929
|
+
options?: RegistriesListNextOptionalParams
|
930
|
+
): Promise<RegistriesListNextResponse> {
|
931
|
+
return this.client.sendOperationRequest(
|
932
|
+
{ nextLink, options },
|
933
|
+
listNextOperationSpec
|
934
|
+
);
|
935
|
+
}
|
936
|
+
|
922
937
|
/**
|
923
938
|
* ListByResourceGroupNext
|
924
939
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -936,21 +951,6 @@ export class RegistriesImpl implements Registries {
|
|
936
951
|
);
|
937
952
|
}
|
938
953
|
|
939
|
-
/**
|
940
|
-
* ListNext
|
941
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
942
|
-
* @param options The options parameters.
|
943
|
-
*/
|
944
|
-
private _listNext(
|
945
|
-
nextLink: string,
|
946
|
-
options?: RegistriesListNextOptionalParams
|
947
|
-
): Promise<RegistriesListNextResponse> {
|
948
|
-
return this.client.sendOperationRequest(
|
949
|
-
{ nextLink, options },
|
950
|
-
listNextOperationSpec
|
951
|
-
);
|
952
|
-
}
|
953
|
-
|
954
954
|
/**
|
955
955
|
* ListPrivateLinkResourcesNext
|
956
956
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -1007,6 +1007,38 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
1007
1007
|
mediaType: "json",
|
1008
1008
|
serializer
|
1009
1009
|
};
|
1010
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
1011
|
+
path:
|
1012
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
|
1013
|
+
httpMethod: "GET",
|
1014
|
+
responses: {
|
1015
|
+
200: {
|
1016
|
+
bodyMapper: Mappers.RegistryListResult
|
1017
|
+
}
|
1018
|
+
},
|
1019
|
+
queryParameters: [Parameters.apiVersion],
|
1020
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
1021
|
+
headerParameters: [Parameters.accept],
|
1022
|
+
serializer
|
1023
|
+
};
|
1024
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
1025
|
+
path:
|
1026
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
|
1027
|
+
httpMethod: "GET",
|
1028
|
+
responses: {
|
1029
|
+
200: {
|
1030
|
+
bodyMapper: Mappers.RegistryListResult
|
1031
|
+
}
|
1032
|
+
},
|
1033
|
+
queryParameters: [Parameters.apiVersion],
|
1034
|
+
urlParameters: [
|
1035
|
+
Parameters.$host,
|
1036
|
+
Parameters.subscriptionId,
|
1037
|
+
Parameters.resourceGroupName
|
1038
|
+
],
|
1039
|
+
headerParameters: [Parameters.accept],
|
1040
|
+
serializer
|
1041
|
+
};
|
1010
1042
|
const getOperationSpec: coreClient.OperationSpec = {
|
1011
1043
|
path:
|
1012
1044
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
|
@@ -1100,35 +1132,41 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
1100
1132
|
mediaType: "json",
|
1101
1133
|
serializer
|
1102
1134
|
};
|
1103
|
-
const
|
1135
|
+
const listUsagesOperationSpec: coreClient.OperationSpec = {
|
1104
1136
|
path:
|
1105
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
|
1137
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
|
1106
1138
|
httpMethod: "GET",
|
1107
1139
|
responses: {
|
1108
1140
|
200: {
|
1109
|
-
bodyMapper: Mappers.
|
1141
|
+
bodyMapper: Mappers.RegistryUsageListResult
|
1110
1142
|
}
|
1111
1143
|
},
|
1112
1144
|
queryParameters: [Parameters.apiVersion],
|
1113
1145
|
urlParameters: [
|
1114
1146
|
Parameters.$host,
|
1115
1147
|
Parameters.subscriptionId,
|
1116
|
-
Parameters.resourceGroupName
|
1148
|
+
Parameters.resourceGroupName,
|
1149
|
+
Parameters.registryName
|
1117
1150
|
],
|
1118
1151
|
headerParameters: [Parameters.accept],
|
1119
1152
|
serializer
|
1120
1153
|
};
|
1121
|
-
const
|
1154
|
+
const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
|
1122
1155
|
path:
|
1123
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
|
1156
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources",
|
1124
1157
|
httpMethod: "GET",
|
1125
1158
|
responses: {
|
1126
1159
|
200: {
|
1127
|
-
bodyMapper: Mappers.
|
1160
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
1128
1161
|
}
|
1129
1162
|
},
|
1130
1163
|
queryParameters: [Parameters.apiVersion],
|
1131
|
-
urlParameters: [
|
1164
|
+
urlParameters: [
|
1165
|
+
Parameters.$host,
|
1166
|
+
Parameters.subscriptionId,
|
1167
|
+
Parameters.resourceGroupName,
|
1168
|
+
Parameters.registryName
|
1169
|
+
],
|
1132
1170
|
headerParameters: [Parameters.accept],
|
1133
1171
|
serializer
|
1134
1172
|
};
|
@@ -1172,44 +1210,6 @@ const regenerateCredentialOperationSpec: coreClient.OperationSpec = {
|
|
1172
1210
|
mediaType: "json",
|
1173
1211
|
serializer
|
1174
1212
|
};
|
1175
|
-
const listUsagesOperationSpec: coreClient.OperationSpec = {
|
1176
|
-
path:
|
1177
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
|
1178
|
-
httpMethod: "GET",
|
1179
|
-
responses: {
|
1180
|
-
200: {
|
1181
|
-
bodyMapper: Mappers.RegistryUsageListResult
|
1182
|
-
}
|
1183
|
-
},
|
1184
|
-
queryParameters: [Parameters.apiVersion],
|
1185
|
-
urlParameters: [
|
1186
|
-
Parameters.$host,
|
1187
|
-
Parameters.subscriptionId,
|
1188
|
-
Parameters.resourceGroupName,
|
1189
|
-
Parameters.registryName
|
1190
|
-
],
|
1191
|
-
headerParameters: [Parameters.accept],
|
1192
|
-
serializer
|
1193
|
-
};
|
1194
|
-
const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
|
1195
|
-
path:
|
1196
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources",
|
1197
|
-
httpMethod: "GET",
|
1198
|
-
responses: {
|
1199
|
-
200: {
|
1200
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
1201
|
-
}
|
1202
|
-
},
|
1203
|
-
queryParameters: [Parameters.apiVersion],
|
1204
|
-
urlParameters: [
|
1205
|
-
Parameters.$host,
|
1206
|
-
Parameters.subscriptionId,
|
1207
|
-
Parameters.resourceGroupName,
|
1208
|
-
Parameters.registryName
|
1209
|
-
],
|
1210
|
-
headerParameters: [Parameters.accept],
|
1211
|
-
serializer
|
1212
|
-
};
|
1213
1213
|
const generateCredentialsOperationSpec: coreClient.OperationSpec = {
|
1214
1214
|
path:
|
1215
1215
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials",
|
@@ -1295,7 +1295,7 @@ const getBuildSourceUploadUrlOperationSpec: coreClient.OperationSpec = {
|
|
1295
1295
|
headerParameters: [Parameters.accept],
|
1296
1296
|
serializer
|
1297
1297
|
};
|
1298
|
-
const
|
1298
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
1299
1299
|
path: "{nextLink}",
|
1300
1300
|
httpMethod: "GET",
|
1301
1301
|
responses: {
|
@@ -1307,13 +1307,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1307
1307
|
urlParameters: [
|
1308
1308
|
Parameters.$host,
|
1309
1309
|
Parameters.subscriptionId,
|
1310
|
-
Parameters.resourceGroupName,
|
1311
1310
|
Parameters.nextLink
|
1312
1311
|
],
|
1313
1312
|
headerParameters: [Parameters.accept],
|
1314
1313
|
serializer
|
1315
1314
|
};
|
1316
|
-
const
|
1315
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
1317
1316
|
path: "{nextLink}",
|
1318
1317
|
httpMethod: "GET",
|
1319
1318
|
responses: {
|
@@ -1325,6 +1324,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1325
1324
|
urlParameters: [
|
1326
1325
|
Parameters.$host,
|
1327
1326
|
Parameters.subscriptionId,
|
1327
|
+
Parameters.resourceGroupName,
|
1328
1328
|
Parameters.nextLink
|
1329
1329
|
],
|
1330
1330
|
headerParameters: [Parameters.accept],
|
@@ -18,6 +18,7 @@ import {
|
|
18
18
|
Replication,
|
19
19
|
ReplicationsListNextOptionalParams,
|
20
20
|
ReplicationsListOptionalParams,
|
21
|
+
ReplicationsListResponse,
|
21
22
|
ReplicationsGetOptionalParams,
|
22
23
|
ReplicationsGetResponse,
|
23
24
|
ReplicationsCreateOptionalParams,
|
@@ -26,7 +27,6 @@ import {
|
|
26
27
|
ReplicationUpdateParameters,
|
27
28
|
ReplicationsUpdateOptionalParams,
|
28
29
|
ReplicationsUpdateResponse,
|
29
|
-
ReplicationsListResponse,
|
30
30
|
ReplicationsListNextResponse
|
31
31
|
} from "../models";
|
32
32
|
|
@@ -102,6 +102,23 @@ export class ReplicationsImpl implements Replications {
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
|
105
|
+
/**
|
106
|
+
* Lists all the replications for the specified container registry.
|
107
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
108
|
+
* @param registryName The name of the container registry.
|
109
|
+
* @param options The options parameters.
|
110
|
+
*/
|
111
|
+
private _list(
|
112
|
+
resourceGroupName: string,
|
113
|
+
registryName: string,
|
114
|
+
options?: ReplicationsListOptionalParams
|
115
|
+
): Promise<ReplicationsListResponse> {
|
116
|
+
return this.client.sendOperationRequest(
|
117
|
+
{ resourceGroupName, registryName, options },
|
118
|
+
listOperationSpec
|
119
|
+
);
|
120
|
+
}
|
121
|
+
|
105
122
|
/**
|
106
123
|
* Gets the properties of the specified replication.
|
107
124
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -408,23 +425,6 @@ export class ReplicationsImpl implements Replications {
|
|
408
425
|
return poller.pollUntilDone();
|
409
426
|
}
|
410
427
|
|
411
|
-
/**
|
412
|
-
* Lists all the replications for the specified container registry.
|
413
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
414
|
-
* @param registryName The name of the container registry.
|
415
|
-
* @param options The options parameters.
|
416
|
-
*/
|
417
|
-
private _list(
|
418
|
-
resourceGroupName: string,
|
419
|
-
registryName: string,
|
420
|
-
options?: ReplicationsListOptionalParams
|
421
|
-
): Promise<ReplicationsListResponse> {
|
422
|
-
return this.client.sendOperationRequest(
|
423
|
-
{ resourceGroupName, registryName, options },
|
424
|
-
listOperationSpec
|
425
|
-
);
|
426
|
-
}
|
427
|
-
|
428
428
|
/**
|
429
429
|
* ListNext
|
430
430
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -447,6 +447,25 @@ export class ReplicationsImpl implements Replications {
|
|
447
447
|
// Operation Specifications
|
448
448
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
449
449
|
|
450
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
451
|
+
path:
|
452
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications",
|
453
|
+
httpMethod: "GET",
|
454
|
+
responses: {
|
455
|
+
200: {
|
456
|
+
bodyMapper: Mappers.ReplicationListResult
|
457
|
+
}
|
458
|
+
},
|
459
|
+
queryParameters: [Parameters.apiVersion],
|
460
|
+
urlParameters: [
|
461
|
+
Parameters.$host,
|
462
|
+
Parameters.subscriptionId,
|
463
|
+
Parameters.resourceGroupName,
|
464
|
+
Parameters.registryName
|
465
|
+
],
|
466
|
+
headerParameters: [Parameters.accept],
|
467
|
+
serializer
|
468
|
+
};
|
450
469
|
const getOperationSpec: coreClient.OperationSpec = {
|
451
470
|
path:
|
452
471
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}",
|
@@ -544,25 +563,6 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
544
563
|
mediaType: "json",
|
545
564
|
serializer
|
546
565
|
};
|
547
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
548
|
-
path:
|
549
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications",
|
550
|
-
httpMethod: "GET",
|
551
|
-
responses: {
|
552
|
-
200: {
|
553
|
-
bodyMapper: Mappers.ReplicationListResult
|
554
|
-
}
|
555
|
-
},
|
556
|
-
queryParameters: [Parameters.apiVersion],
|
557
|
-
urlParameters: [
|
558
|
-
Parameters.$host,
|
559
|
-
Parameters.subscriptionId,
|
560
|
-
Parameters.resourceGroupName,
|
561
|
-
Parameters.registryName
|
562
|
-
],
|
563
|
-
headerParameters: [Parameters.accept],
|
564
|
-
serializer
|
565
|
-
};
|
566
566
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
567
567
|
path: "{nextLink}",
|
568
568
|
httpMethod: "GET",
|