@azure/arm-containerregistry 10.0.0-beta.1 → 10.0.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 -20
- package/README.md +4 -0
- package/dist/index.js +3431 -7196
- 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/containerRegistryManagementClient.d.ts +5 -9
- package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerRegistryManagementClient.js +32 -10
- package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +200 -1116
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -121
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +10 -50
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +320 -1560
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -21
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +38 -158
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/agentPools.d.ts +2 -2
- package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
- package/dist-esm/src/operations/agentPools.js +2 -2
- package/dist-esm/src/operations/agentPools.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +0 -6
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +0 -6
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/registries.d.ts +11 -19
- package/dist-esm/src/operations/registries.d.ts.map +1 -1
- package/dist-esm/src/operations/registries.js +31 -84
- package/dist-esm/src/operations/registries.js.map +1 -1
- package/dist-esm/src/operations/replications.d.ts +2 -2
- package/dist-esm/src/operations/replications.d.ts.map +1 -1
- package/dist-esm/src/operations/replications.js +2 -2
- package/dist-esm/src/operations/replications.js.map +1 -1
- package/dist-esm/src/operations/runs.d.ts +2 -2
- package/dist-esm/src/operations/runs.d.ts.map +1 -1
- package/dist-esm/src/operations/runs.js +3 -3
- package/dist-esm/src/operations/runs.js.map +1 -1
- package/dist-esm/src/operations/taskRuns.d.ts +2 -2
- package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/taskRuns.js +2 -2
- package/dist-esm/src/operations/taskRuns.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts +2 -2
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +2 -2
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/webhooks.d.ts +2 -2
- package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
- package/dist-esm/src/operations/webhooks.js +2 -2
- package/dist-esm/src/operations/webhooks.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -6
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/registries.d.ts +9 -17
- package/dist-esm/src/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist-esm/test/containerregistry_examples.d.ts +3 -1
- package/dist-esm/test/containerregistry_examples.d.ts.map +1 -1
- package/dist-esm/test/containerregistry_examples.js +89 -146
- package/dist-esm/test/containerregistry_examples.js.map +1 -1
- package/package.json +5 -4
- package/review/arm-containerregistry.api.md +17 -815
- package/src/containerRegistryManagementClient.ts +44 -27
- package/src/index.ts +0 -1
- package/src/models/index.ts +323 -1385
- package/src/models/mappers.ts +1508 -2838
- package/src/models/parameters.ts +39 -184
- package/src/operations/agentPools.ts +5 -5
- package/src/operations/index.ts +0 -6
- package/src/operations/operations.ts +3 -3
- package/src/operations/privateEndpointConnections.ts +4 -4
- package/src/operations/registries.ts +45 -129
- package/src/operations/replications.ts +5 -5
- package/src/operations/runs.ts +6 -6
- package/src/operations/taskRuns.ts +5 -5
- package/src/operations/tasks.ts +5 -5
- package/src/operations/webhooks.ts +5 -5
- package/src/operationsInterfaces/index.ts +0 -6
- package/src/operationsInterfaces/registries.ts +15 -34
- package/types/arm-containerregistry.d.ts +135 -1592
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/containerRegistryManagementClientContext.d.ts +0 -15
- package/dist-esm/src/containerRegistryManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/containerRegistryManagementClientContext.js +0 -48
- package/dist-esm/src/containerRegistryManagementClientContext.js.map +0 -1
- package/dist-esm/src/operations/connectedRegistries.d.ts +0 -115
- package/dist-esm/src/operations/connectedRegistries.d.ts.map +0 -1
- package/dist-esm/src/operations/connectedRegistries.js +0 -503
- package/dist-esm/src/operations/connectedRegistries.js.map +0 -1
- package/dist-esm/src/operations/exportPipelines.d.ts +0 -81
- package/dist-esm/src/operations/exportPipelines.d.ts.map +0 -1
- package/dist-esm/src/operations/exportPipelines.js +0 -316
- package/dist-esm/src/operations/exportPipelines.js.map +0 -1
- package/dist-esm/src/operations/importPipelines.d.ts +0 -81
- package/dist-esm/src/operations/importPipelines.d.ts.map +0 -1
- package/dist-esm/src/operations/importPipelines.js +0 -316
- package/dist-esm/src/operations/importPipelines.js.map +0 -1
- package/dist-esm/src/operations/pipelineRuns.d.ts +0 -81
- package/dist-esm/src/operations/pipelineRuns.d.ts.map +0 -1
- package/dist-esm/src/operations/pipelineRuns.js +0 -316
- package/dist-esm/src/operations/pipelineRuns.js.map +0 -1
- package/dist-esm/src/operations/scopeMaps.d.ts +0 -99
- package/dist-esm/src/operations/scopeMaps.d.ts.map +0 -1
- package/dist-esm/src/operations/scopeMaps.js +0 -405
- package/dist-esm/src/operations/scopeMaps.js.map +0 -1
- package/dist-esm/src/operations/tokens.d.ts +0 -99
- package/dist-esm/src/operations/tokens.d.ts.map +0 -1
- package/dist-esm/src/operations/tokens.js +0 -405
- package/dist-esm/src/operations/tokens.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts +0 -90
- package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/connectedRegistries.js +0 -9
- package/dist-esm/src/operationsInterfaces/connectedRegistries.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts +0 -56
- package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/exportPipelines.js +0 -9
- package/dist-esm/src/operationsInterfaces/exportPipelines.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/importPipelines.d.ts +0 -56
- package/dist-esm/src/operationsInterfaces/importPipelines.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/importPipelines.js +0 -9
- package/dist-esm/src/operationsInterfaces/importPipelines.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts +0 -56
- package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/pipelineRuns.js +0 -9
- package/dist-esm/src/operationsInterfaces/pipelineRuns.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts +0 -74
- package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/scopeMaps.js +0 -9
- package/dist-esm/src/operationsInterfaces/scopeMaps.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/tokens.d.ts +0 -74
- package/dist-esm/src/operationsInterfaces/tokens.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/tokens.js +0 -9
- package/dist-esm/src/operationsInterfaces/tokens.js.map +0 -1
- package/src/containerRegistryManagementClientContext.ts +0 -68
- package/src/operations/connectedRegistries.ts +0 -718
- package/src/operations/exportPipelines.ts +0 -449
- package/src/operations/importPipelines.ts +0 -449
- package/src/operations/pipelineRuns.ts +0 -449
- package/src/operations/scopeMaps.ts +0 -584
- package/src/operations/tokens.ts +0 -578
- package/src/operationsInterfaces/connectedRegistries.ts +0 -174
- package/src/operationsInterfaces/exportPipelines.ts +0 -109
- package/src/operationsInterfaces/importPipelines.ts +0 -109
- package/src/operationsInterfaces/pipelineRuns.ts +0 -109
- package/src/operationsInterfaces/scopeMaps.ts +0 -147
- package/src/operationsInterfaces/tokens.ts +0 -141
@@ -11,7 +11,7 @@ import { Registries } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -41,14 +41,13 @@ import {
|
|
41
41
|
RegistriesListUsagesOptionalParams,
|
42
42
|
RegistriesListUsagesResponse,
|
43
43
|
RegistriesListPrivateLinkResourcesResponse,
|
44
|
+
RegistriesGetPrivateLinkResourceOptionalParams,
|
45
|
+
RegistriesGetPrivateLinkResourceResponse,
|
44
46
|
RegistriesListCredentialsOptionalParams,
|
45
47
|
RegistriesListCredentialsResponse,
|
46
48
|
RegenerateCredentialParameters,
|
47
49
|
RegistriesRegenerateCredentialOptionalParams,
|
48
50
|
RegistriesRegenerateCredentialResponse,
|
49
|
-
GenerateCredentialsParameters,
|
50
|
-
RegistriesGenerateCredentialsOptionalParams,
|
51
|
-
RegistriesGenerateCredentialsResponse,
|
52
51
|
RunRequestUnion,
|
53
52
|
RegistriesScheduleRunOptionalParams,
|
54
53
|
RegistriesScheduleRunResponse,
|
@@ -62,13 +61,13 @@ import {
|
|
62
61
|
/// <reference lib="esnext.asynciterable" />
|
63
62
|
/** Class containing Registries operations. */
|
64
63
|
export class RegistriesImpl implements Registries {
|
65
|
-
private readonly client:
|
64
|
+
private readonly client: ContainerRegistryManagementClient;
|
66
65
|
|
67
66
|
/**
|
68
67
|
* Initialize a new instance of the class Registries class.
|
69
68
|
* @param client Reference to the service client
|
70
69
|
*/
|
71
|
-
constructor(client:
|
70
|
+
constructor(client: ContainerRegistryManagementClient) {
|
72
71
|
this.client = client;
|
73
72
|
}
|
74
73
|
|
@@ -675,6 +674,25 @@ export class RegistriesImpl implements Registries {
|
|
675
674
|
);
|
676
675
|
}
|
677
676
|
|
677
|
+
/**
|
678
|
+
* Gets a private link resource by a specified group name for a container registry.
|
679
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
680
|
+
* @param registryName The name of the container registry.
|
681
|
+
* @param groupName The name of the private link resource.
|
682
|
+
* @param options The options parameters.
|
683
|
+
*/
|
684
|
+
getPrivateLinkResource(
|
685
|
+
resourceGroupName: string,
|
686
|
+
registryName: string,
|
687
|
+
groupName: string,
|
688
|
+
options?: RegistriesGetPrivateLinkResourceOptionalParams
|
689
|
+
): Promise<RegistriesGetPrivateLinkResourceResponse> {
|
690
|
+
return this.client.sendOperationRequest(
|
691
|
+
{ resourceGroupName, registryName, groupName, options },
|
692
|
+
getPrivateLinkResourceOperationSpec
|
693
|
+
);
|
694
|
+
}
|
695
|
+
|
678
696
|
/**
|
679
697
|
* Lists the login credentials for the specified container registry.
|
680
698
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -717,101 +735,6 @@ export class RegistriesImpl implements Registries {
|
|
717
735
|
);
|
718
736
|
}
|
719
737
|
|
720
|
-
/**
|
721
|
-
* Generate keys for a token of a specified container registry.
|
722
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
723
|
-
* @param registryName The name of the container registry.
|
724
|
-
* @param generateCredentialsParameters The parameters for generating credentials.
|
725
|
-
* @param options The options parameters.
|
726
|
-
*/
|
727
|
-
async beginGenerateCredentials(
|
728
|
-
resourceGroupName: string,
|
729
|
-
registryName: string,
|
730
|
-
generateCredentialsParameters: GenerateCredentialsParameters,
|
731
|
-
options?: RegistriesGenerateCredentialsOptionalParams
|
732
|
-
): Promise<
|
733
|
-
PollerLike<
|
734
|
-
PollOperationState<RegistriesGenerateCredentialsResponse>,
|
735
|
-
RegistriesGenerateCredentialsResponse
|
736
|
-
>
|
737
|
-
> {
|
738
|
-
const directSendOperation = async (
|
739
|
-
args: coreClient.OperationArguments,
|
740
|
-
spec: coreClient.OperationSpec
|
741
|
-
): Promise<RegistriesGenerateCredentialsResponse> => {
|
742
|
-
return this.client.sendOperationRequest(args, spec);
|
743
|
-
};
|
744
|
-
const sendOperation = async (
|
745
|
-
args: coreClient.OperationArguments,
|
746
|
-
spec: coreClient.OperationSpec
|
747
|
-
) => {
|
748
|
-
let currentRawResponse:
|
749
|
-
| coreClient.FullOperationResponse
|
750
|
-
| undefined = undefined;
|
751
|
-
const providedCallback = args.options?.onResponse;
|
752
|
-
const callback: coreClient.RawResponseCallback = (
|
753
|
-
rawResponse: coreClient.FullOperationResponse,
|
754
|
-
flatResponse: unknown
|
755
|
-
) => {
|
756
|
-
currentRawResponse = rawResponse;
|
757
|
-
providedCallback?.(rawResponse, flatResponse);
|
758
|
-
};
|
759
|
-
const updatedArgs = {
|
760
|
-
...args,
|
761
|
-
options: {
|
762
|
-
...args.options,
|
763
|
-
onResponse: callback
|
764
|
-
}
|
765
|
-
};
|
766
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
767
|
-
return {
|
768
|
-
flatResponse,
|
769
|
-
rawResponse: {
|
770
|
-
statusCode: currentRawResponse!.status,
|
771
|
-
body: currentRawResponse!.parsedBody,
|
772
|
-
headers: currentRawResponse!.headers.toJSON()
|
773
|
-
}
|
774
|
-
};
|
775
|
-
};
|
776
|
-
|
777
|
-
const lro = new LroImpl(
|
778
|
-
sendOperation,
|
779
|
-
{
|
780
|
-
resourceGroupName,
|
781
|
-
registryName,
|
782
|
-
generateCredentialsParameters,
|
783
|
-
options
|
784
|
-
},
|
785
|
-
generateCredentialsOperationSpec
|
786
|
-
);
|
787
|
-
return new LroEngine(lro, {
|
788
|
-
resumeFrom: options?.resumeFrom,
|
789
|
-
intervalInMs: options?.updateIntervalInMs
|
790
|
-
});
|
791
|
-
}
|
792
|
-
|
793
|
-
/**
|
794
|
-
* Generate keys for a token of a specified container registry.
|
795
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
796
|
-
* @param registryName The name of the container registry.
|
797
|
-
* @param generateCredentialsParameters The parameters for generating credentials.
|
798
|
-
* @param options The options parameters.
|
799
|
-
*/
|
800
|
-
async beginGenerateCredentialsAndWait(
|
801
|
-
resourceGroupName: string,
|
802
|
-
registryName: string,
|
803
|
-
generateCredentialsParameters: GenerateCredentialsParameters,
|
804
|
-
options?: RegistriesGenerateCredentialsOptionalParams
|
805
|
-
): Promise<RegistriesGenerateCredentialsResponse> {
|
806
|
-
const poller = await this.beginGenerateCredentials(
|
807
|
-
resourceGroupName,
|
808
|
-
registryName,
|
809
|
-
generateCredentialsParameters,
|
810
|
-
options
|
811
|
-
);
|
812
|
-
return poller.pollUntilDone();
|
813
|
-
}
|
814
|
-
|
815
738
|
/**
|
816
739
|
* Schedules a new run based on the request parameters and add it to the run queue.
|
817
740
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -1003,7 +926,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
1003
926
|
requestBody: Parameters.registryNameCheckRequest,
|
1004
927
|
queryParameters: [Parameters.apiVersion],
|
1005
928
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
1006
|
-
headerParameters: [Parameters.
|
929
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
1007
930
|
mediaType: "json",
|
1008
931
|
serializer
|
1009
932
|
};
|
@@ -1084,7 +1007,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
1084
1007
|
Parameters.resourceGroupName,
|
1085
1008
|
Parameters.registryName
|
1086
1009
|
],
|
1087
|
-
headerParameters: [Parameters.
|
1010
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
1088
1011
|
mediaType: "json",
|
1089
1012
|
serializer
|
1090
1013
|
};
|
@@ -1128,7 +1051,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
1128
1051
|
Parameters.resourceGroupName,
|
1129
1052
|
Parameters.registryName
|
1130
1053
|
],
|
1131
|
-
headerParameters: [Parameters.
|
1054
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
1132
1055
|
mediaType: "json",
|
1133
1056
|
serializer
|
1134
1057
|
};
|
@@ -1170,13 +1093,16 @@ const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
|
|
1170
1093
|
headerParameters: [Parameters.accept],
|
1171
1094
|
serializer
|
1172
1095
|
};
|
1173
|
-
const
|
1096
|
+
const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = {
|
1174
1097
|
path:
|
1175
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/
|
1176
|
-
httpMethod: "
|
1098
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources/{groupName}",
|
1099
|
+
httpMethod: "GET",
|
1177
1100
|
responses: {
|
1178
1101
|
200: {
|
1179
|
-
bodyMapper: Mappers.
|
1102
|
+
bodyMapper: Mappers.PrivateLinkResource
|
1103
|
+
},
|
1104
|
+
default: {
|
1105
|
+
bodyMapper: Mappers.ErrorResponse
|
1180
1106
|
}
|
1181
1107
|
},
|
1182
1108
|
queryParameters: [Parameters.apiVersion],
|
@@ -1184,21 +1110,21 @@ const listCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
1184
1110
|
Parameters.$host,
|
1185
1111
|
Parameters.subscriptionId,
|
1186
1112
|
Parameters.resourceGroupName,
|
1187
|
-
Parameters.registryName
|
1113
|
+
Parameters.registryName,
|
1114
|
+
Parameters.groupName
|
1188
1115
|
],
|
1189
1116
|
headerParameters: [Parameters.accept],
|
1190
1117
|
serializer
|
1191
1118
|
};
|
1192
|
-
const
|
1119
|
+
const listCredentialsOperationSpec: coreClient.OperationSpec = {
|
1193
1120
|
path:
|
1194
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/
|
1121
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials",
|
1195
1122
|
httpMethod: "POST",
|
1196
1123
|
responses: {
|
1197
1124
|
200: {
|
1198
1125
|
bodyMapper: Mappers.RegistryListCredentialsResult
|
1199
1126
|
}
|
1200
1127
|
},
|
1201
|
-
requestBody: Parameters.regenerateCredentialParameters,
|
1202
1128
|
queryParameters: [Parameters.apiVersion],
|
1203
1129
|
urlParameters: [
|
1204
1130
|
Parameters.$host,
|
@@ -1206,29 +1132,19 @@ const regenerateCredentialOperationSpec: coreClient.OperationSpec = {
|
|
1206
1132
|
Parameters.resourceGroupName,
|
1207
1133
|
Parameters.registryName
|
1208
1134
|
],
|
1209
|
-
headerParameters: [Parameters.accept
|
1210
|
-
mediaType: "json",
|
1135
|
+
headerParameters: [Parameters.accept],
|
1211
1136
|
serializer
|
1212
1137
|
};
|
1213
|
-
const
|
1138
|
+
const regenerateCredentialOperationSpec: coreClient.OperationSpec = {
|
1214
1139
|
path:
|
1215
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/
|
1140
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential",
|
1216
1141
|
httpMethod: "POST",
|
1217
1142
|
responses: {
|
1218
1143
|
200: {
|
1219
|
-
bodyMapper: Mappers.
|
1220
|
-
},
|
1221
|
-
201: {
|
1222
|
-
bodyMapper: Mappers.GenerateCredentialsResult
|
1223
|
-
},
|
1224
|
-
202: {
|
1225
|
-
bodyMapper: Mappers.GenerateCredentialsResult
|
1226
|
-
},
|
1227
|
-
204: {
|
1228
|
-
bodyMapper: Mappers.GenerateCredentialsResult
|
1144
|
+
bodyMapper: Mappers.RegistryListCredentialsResult
|
1229
1145
|
}
|
1230
1146
|
},
|
1231
|
-
requestBody: Parameters.
|
1147
|
+
requestBody: Parameters.regenerateCredentialParameters,
|
1232
1148
|
queryParameters: [Parameters.apiVersion],
|
1233
1149
|
urlParameters: [
|
1234
1150
|
Parameters.$host,
|
@@ -1236,7 +1152,7 @@ const generateCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
1236
1152
|
Parameters.resourceGroupName,
|
1237
1153
|
Parameters.registryName
|
1238
1154
|
],
|
1239
|
-
headerParameters: [Parameters.
|
1155
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
1240
1156
|
mediaType: "json",
|
1241
1157
|
serializer
|
1242
1158
|
};
|
@@ -1269,7 +1185,7 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = {
|
|
1269
1185
|
Parameters.resourceGroupName,
|
1270
1186
|
Parameters.registryName
|
1271
1187
|
],
|
1272
|
-
headerParameters: [Parameters.
|
1188
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
1273
1189
|
mediaType: "json",
|
1274
1190
|
serializer
|
1275
1191
|
};
|
@@ -11,7 +11,7 @@ import { Replications } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -33,13 +33,13 @@ import {
|
|
33
33
|
/// <reference lib="esnext.asynciterable" />
|
34
34
|
/** Class containing Replications operations. */
|
35
35
|
export class ReplicationsImpl implements Replications {
|
36
|
-
private readonly client:
|
36
|
+
private readonly client: ContainerRegistryManagementClient;
|
37
37
|
|
38
38
|
/**
|
39
39
|
* Initialize a new instance of the class Replications class.
|
40
40
|
* @param client Reference to the service client
|
41
41
|
*/
|
42
|
-
constructor(client:
|
42
|
+
constructor(client: ContainerRegistryManagementClient) {
|
43
43
|
this.client = client;
|
44
44
|
}
|
45
45
|
|
@@ -513,7 +513,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
513
513
|
Parameters.registryName,
|
514
514
|
Parameters.replicationName
|
515
515
|
],
|
516
|
-
headerParameters: [Parameters.
|
516
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
517
517
|
mediaType: "json",
|
518
518
|
serializer
|
519
519
|
};
|
@@ -559,7 +559,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
559
559
|
Parameters.registryName,
|
560
560
|
Parameters.replicationName
|
561
561
|
],
|
562
|
-
headerParameters: [Parameters.
|
562
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
563
563
|
mediaType: "json",
|
564
564
|
serializer
|
565
565
|
};
|
package/src/operations/runs.ts
CHANGED
@@ -11,7 +11,7 @@ import { Runs } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -33,13 +33,13 @@ import {
|
|
33
33
|
/// <reference lib="esnext.asynciterable" />
|
34
34
|
/** Class containing Runs operations. */
|
35
35
|
export class RunsImpl implements Runs {
|
36
|
-
private readonly client:
|
36
|
+
private readonly client: ContainerRegistryManagementClient;
|
37
37
|
|
38
38
|
/**
|
39
39
|
* Initialize a new instance of the class Runs class.
|
40
40
|
* @param client Reference to the service client
|
41
41
|
*/
|
42
|
-
constructor(client:
|
42
|
+
constructor(client: ContainerRegistryManagementClient) {
|
43
43
|
this.client = client;
|
44
44
|
}
|
45
45
|
|
@@ -368,7 +368,7 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
368
368
|
bodyMapper: Mappers.ErrorResponse
|
369
369
|
}
|
370
370
|
},
|
371
|
-
queryParameters: [Parameters.
|
371
|
+
queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top],
|
372
372
|
urlParameters: [
|
373
373
|
Parameters.$host,
|
374
374
|
Parameters.subscriptionId,
|
@@ -431,7 +431,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
431
431
|
Parameters.registryName,
|
432
432
|
Parameters.runId
|
433
433
|
],
|
434
|
-
headerParameters: [Parameters.
|
434
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
435
435
|
mediaType: "json",
|
436
436
|
serializer
|
437
437
|
};
|
@@ -493,7 +493,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
493
493
|
bodyMapper: Mappers.ErrorResponse
|
494
494
|
}
|
495
495
|
},
|
496
|
-
queryParameters: [Parameters.
|
496
|
+
queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top],
|
497
497
|
urlParameters: [
|
498
498
|
Parameters.$host,
|
499
499
|
Parameters.subscriptionId,
|
@@ -11,7 +11,7 @@ import { TaskRuns } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -35,13 +35,13 @@ import {
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
36
36
|
/** Class containing TaskRuns operations. */
|
37
37
|
export class TaskRunsImpl implements TaskRuns {
|
38
|
-
private readonly client:
|
38
|
+
private readonly client: ContainerRegistryManagementClient;
|
39
39
|
|
40
40
|
/**
|
41
41
|
* Initialize a new instance of the class TaskRuns class.
|
42
42
|
* @param client Reference to the service client
|
43
43
|
*/
|
44
|
-
constructor(client:
|
44
|
+
constructor(client: ContainerRegistryManagementClient) {
|
45
45
|
this.client = client;
|
46
46
|
}
|
47
47
|
|
@@ -515,7 +515,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
515
515
|
Parameters.registryName,
|
516
516
|
Parameters.taskRunName
|
517
517
|
],
|
518
|
-
headerParameters: [Parameters.
|
518
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
519
519
|
mediaType: "json",
|
520
520
|
serializer
|
521
521
|
};
|
@@ -573,7 +573,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
573
573
|
Parameters.registryName,
|
574
574
|
Parameters.taskRunName
|
575
575
|
],
|
576
|
-
headerParameters: [Parameters.
|
576
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
577
577
|
mediaType: "json",
|
578
578
|
serializer
|
579
579
|
};
|
package/src/operations/tasks.ts
CHANGED
@@ -11,7 +11,7 @@ import { Tasks } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -35,13 +35,13 @@ import {
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
36
36
|
/** Class containing Tasks operations. */
|
37
37
|
export class TasksImpl implements Tasks {
|
38
|
-
private readonly client:
|
38
|
+
private readonly client: ContainerRegistryManagementClient;
|
39
39
|
|
40
40
|
/**
|
41
41
|
* Initialize a new instance of the class Tasks class.
|
42
42
|
* @param client Reference to the service client
|
43
43
|
*/
|
44
|
-
constructor(client:
|
44
|
+
constructor(client: ContainerRegistryManagementClient) {
|
45
45
|
this.client = client;
|
46
46
|
}
|
47
47
|
|
@@ -537,7 +537,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
537
537
|
Parameters.registryName,
|
538
538
|
Parameters.taskName
|
539
539
|
],
|
540
|
-
headerParameters: [Parameters.
|
540
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
541
541
|
mediaType: "json",
|
542
542
|
serializer
|
543
543
|
};
|
@@ -595,7 +595,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
595
595
|
Parameters.registryName,
|
596
596
|
Parameters.taskName
|
597
597
|
],
|
598
|
-
headerParameters: [Parameters.
|
598
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
599
599
|
mediaType: "json",
|
600
600
|
serializer
|
601
601
|
};
|
@@ -11,7 +11,7 @@ import { Webhooks } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
12
12
|
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient";
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
16
16
|
import { LroImpl } from "../lroImpl";
|
17
17
|
import {
|
@@ -43,13 +43,13 @@ import {
|
|
43
43
|
/// <reference lib="esnext.asynciterable" />
|
44
44
|
/** Class containing Webhooks operations. */
|
45
45
|
export class WebhooksImpl implements Webhooks {
|
46
|
-
private readonly client:
|
46
|
+
private readonly client: ContainerRegistryManagementClient;
|
47
47
|
|
48
48
|
/**
|
49
49
|
* Initialize a new instance of the class Webhooks class.
|
50
50
|
* @param client Reference to the service client
|
51
51
|
*/
|
52
|
-
constructor(client:
|
52
|
+
constructor(client: ContainerRegistryManagementClient) {
|
53
53
|
this.client = client;
|
54
54
|
}
|
55
55
|
|
@@ -681,7 +681,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
681
681
|
Parameters.registryName,
|
682
682
|
Parameters.webhookName
|
683
683
|
],
|
684
|
-
headerParameters: [Parameters.
|
684
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
685
685
|
mediaType: "json",
|
686
686
|
serializer
|
687
687
|
};
|
@@ -727,7 +727,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
727
727
|
Parameters.registryName,
|
728
728
|
Parameters.webhookName
|
729
729
|
],
|
730
|
-
headerParameters: [Parameters.
|
730
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
731
731
|
mediaType: "json",
|
732
732
|
serializer
|
733
733
|
};
|
@@ -6,16 +6,10 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export * from "./connectedRegistries";
|
10
|
-
export * from "./exportPipelines";
|
11
9
|
export * from "./registries";
|
12
|
-
export * from "./importPipelines";
|
13
10
|
export * from "./operations";
|
14
|
-
export * from "./pipelineRuns";
|
15
11
|
export * from "./privateEndpointConnections";
|
16
12
|
export * from "./replications";
|
17
|
-
export * from "./scopeMaps";
|
18
|
-
export * from "./tokens";
|
19
13
|
export * from "./webhooks";
|
20
14
|
export * from "./agentPools";
|
21
15
|
export * from "./runs";
|
@@ -29,14 +29,13 @@ import {
|
|
29
29
|
RegistriesUpdateResponse,
|
30
30
|
RegistriesListUsagesOptionalParams,
|
31
31
|
RegistriesListUsagesResponse,
|
32
|
+
RegistriesGetPrivateLinkResourceOptionalParams,
|
33
|
+
RegistriesGetPrivateLinkResourceResponse,
|
32
34
|
RegistriesListCredentialsOptionalParams,
|
33
35
|
RegistriesListCredentialsResponse,
|
34
36
|
RegenerateCredentialParameters,
|
35
37
|
RegistriesRegenerateCredentialOptionalParams,
|
36
38
|
RegistriesRegenerateCredentialResponse,
|
37
|
-
GenerateCredentialsParameters,
|
38
|
-
RegistriesGenerateCredentialsOptionalParams,
|
39
|
-
RegistriesGenerateCredentialsResponse,
|
40
39
|
RunRequestUnion,
|
41
40
|
RegistriesScheduleRunOptionalParams,
|
42
41
|
RegistriesScheduleRunResponse,
|
@@ -216,6 +215,19 @@ export interface Registries {
|
|
216
215
|
registryName: string,
|
217
216
|
options?: RegistriesListUsagesOptionalParams
|
218
217
|
): Promise<RegistriesListUsagesResponse>;
|
218
|
+
/**
|
219
|
+
* Gets a private link resource by a specified group name for a container registry.
|
220
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
221
|
+
* @param registryName The name of the container registry.
|
222
|
+
* @param groupName The name of the private link resource.
|
223
|
+
* @param options The options parameters.
|
224
|
+
*/
|
225
|
+
getPrivateLinkResource(
|
226
|
+
resourceGroupName: string,
|
227
|
+
registryName: string,
|
228
|
+
groupName: string,
|
229
|
+
options?: RegistriesGetPrivateLinkResourceOptionalParams
|
230
|
+
): Promise<RegistriesGetPrivateLinkResourceResponse>;
|
219
231
|
/**
|
220
232
|
* Lists the login credentials for the specified container registry.
|
221
233
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
@@ -241,37 +253,6 @@ export interface Registries {
|
|
241
253
|
regenerateCredentialParameters: RegenerateCredentialParameters,
|
242
254
|
options?: RegistriesRegenerateCredentialOptionalParams
|
243
255
|
): Promise<RegistriesRegenerateCredentialResponse>;
|
244
|
-
/**
|
245
|
-
* Generate keys for a token of a specified container registry.
|
246
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
247
|
-
* @param registryName The name of the container registry.
|
248
|
-
* @param generateCredentialsParameters The parameters for generating credentials.
|
249
|
-
* @param options The options parameters.
|
250
|
-
*/
|
251
|
-
beginGenerateCredentials(
|
252
|
-
resourceGroupName: string,
|
253
|
-
registryName: string,
|
254
|
-
generateCredentialsParameters: GenerateCredentialsParameters,
|
255
|
-
options?: RegistriesGenerateCredentialsOptionalParams
|
256
|
-
): Promise<
|
257
|
-
PollerLike<
|
258
|
-
PollOperationState<RegistriesGenerateCredentialsResponse>,
|
259
|
-
RegistriesGenerateCredentialsResponse
|
260
|
-
>
|
261
|
-
>;
|
262
|
-
/**
|
263
|
-
* Generate keys for a token of a specified container registry.
|
264
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
265
|
-
* @param registryName The name of the container registry.
|
266
|
-
* @param generateCredentialsParameters The parameters for generating credentials.
|
267
|
-
* @param options The options parameters.
|
268
|
-
*/
|
269
|
-
beginGenerateCredentialsAndWait(
|
270
|
-
resourceGroupName: string,
|
271
|
-
registryName: string,
|
272
|
-
generateCredentialsParameters: GenerateCredentialsParameters,
|
273
|
-
options?: RegistriesGenerateCredentialsOptionalParams
|
274
|
-
): Promise<RegistriesGenerateCredentialsResponse>;
|
275
256
|
/**
|
276
257
|
* Schedules a new run based on the request parameters and add it to the run queue.
|
277
258
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|