@azure/arm-containerregistry 10.1.1-alpha.20230918.1 → 11.0.0-alpha.20230919.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 +55 -8
- package/README.md +1 -1
- package/dist/index.js +2302 -877
- 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/cacheRulesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cacheRulesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cacheRulesCreateSample.js +45 -0
- package/dist-esm/samples-dev/cacheRulesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cacheRulesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/cacheRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/cacheRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/cacheRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cacheRulesGetSample.js +40 -0
- package/dist-esm/samples-dev/cacheRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/cacheRulesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/cacheRulesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cacheRulesListSample.js +60 -0
- package/dist-esm/samples-dev/cacheRulesListSample.js.map +1 -0
- package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cacheRulesUpdateSample.js +43 -0
- package/dist-esm/samples-dev/cacheRulesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialSetsCreateSample.js +51 -0
- package/dist-esm/samples-dev/credentialSetsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialSetsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/credentialSetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialSetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialSetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialSetsGetSample.js +40 -0
- package/dist-esm/samples-dev/credentialSetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialSetsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialSetsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialSetsListSample.js +60 -0
- package/dist-esm/samples-dev/credentialSetsListSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialSetsUpdateSample.js +49 -0
- package/dist-esm/samples-dev/credentialSetsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.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 +2 -4
- package/dist-esm/samples-dev/webhooksCreateSample.js.map +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 +2 -4
- package/dist-esm/samples-dev/webhooksUpdateSample.js.map +1 -1
- package/dist-esm/src/containerRegistryManagementClient.d.ts +3 -1
- package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerRegistryManagementClient.js +4 -2
- package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +432 -141
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +42 -28
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +24 -7
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +644 -236
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +10 -4
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +72 -26
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/agentPools.js +11 -11
- package/dist-esm/src/operations/agentPools.js.map +1 -1
- package/dist-esm/src/operations/cacheRules.d.ts +99 -0
- package/dist-esm/src/operations/cacheRules.d.ts.map +1 -0
- package/dist-esm/src/operations/cacheRules.js +476 -0
- package/dist-esm/src/operations/cacheRules.js.map +1 -0
- package/dist-esm/src/operations/credentialSets.d.ts +99 -0
- package/dist-esm/src/operations/credentialSets.d.ts.map +1 -0
- package/dist-esm/src/operations/credentialSets.js +476 -0
- package/dist-esm/src/operations/credentialSets.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.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.js +8 -8
- package/dist-esm/src/operations/registries.js.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.js +9 -9
- package/dist-esm/src/operations/runs.js.map +1 -1
- package/dist-esm/src/operations/scopeMaps.js +2 -2
- package/dist-esm/src/operations/scopeMaps.js.map +1 -1
- package/dist-esm/src/operations/taskRuns.js +11 -11
- package/dist-esm/src/operations/taskRuns.js.map +1 -1
- package/dist-esm/src/operations/tasks.js +11 -11
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/tokens.js +2 -2
- package/dist-esm/src/operations/tokens.js.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/cacheRules.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/cacheRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cacheRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/cacheRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/credentialSets.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/credentialSets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/credentialSets.js +9 -0
- package/dist-esm/src/operationsInterfaces/credentialSets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/package.json +5 -5
- package/review/arm-containerregistry.api.md +258 -5
- package/src/containerRegistryManagementClient.ts +9 -1
- package/src/models/index.ts +494 -152
- package/src/models/mappers.ts +682 -243
- package/src/models/parameters.ts +83 -27
- package/src/operations/agentPools.ts +11 -11
- package/src/operations/cacheRules.ts +661 -0
- package/src/operations/credentialSets.ts +661 -0
- package/src/operations/index.ts +2 -0
- package/src/operations/privateEndpointConnections.ts +1 -1
- package/src/operations/registries.ts +8 -8
- package/src/operations/replications.ts +2 -2
- package/src/operations/runs.ts +9 -9
- package/src/operations/scopeMaps.ts +2 -2
- package/src/operations/taskRuns.ts +11 -11
- package/src/operations/tasks.ts +11 -11
- package/src/operations/tokens.ts +2 -2
- package/src/operations/webhooks.ts +2 -2
- package/src/operationsInterfaces/cacheRules.ts +153 -0
- package/src/operationsInterfaces/credentialSets.ts +153 -0
- package/src/operationsInterfaces/index.ts +2 -0
- package/types/arm-containerregistry.d.ts +491 -11
- package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/cacheRulesCreateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Creates a cache rule for a container registry with the specified parameters.
|
17
|
+
*
|
18
|
+
* @summary Creates a cache rule for a container registry with the specified parameters.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleCreate.json
|
20
|
+
*/
|
21
|
+
function cacheRuleCreate() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const cacheRuleName = "myCacheRule";
|
28
|
+
const cacheRuleCreateParameters = {
|
29
|
+
credentialSetResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
|
30
|
+
sourceRepository: "docker.io/library/hello-world",
|
31
|
+
targetRepository: "cached-docker-hub/hello-world"
|
32
|
+
};
|
33
|
+
const credential = new DefaultAzureCredential();
|
34
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
35
|
+
const result = yield client.cacheRules.beginCreateAndWait(resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters);
|
36
|
+
console.log(result);
|
37
|
+
});
|
38
|
+
}
|
39
|
+
function main() {
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
41
|
+
cacheRuleCreate();
|
42
|
+
});
|
43
|
+
}
|
44
|
+
main().catch(console.error);
|
45
|
+
//# sourceMappingURL=cacheRulesCreateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/cacheRulesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,yBAAyB,GAAc;YAC3C,uBAAuB,EACrB,+KAA+K;YACjL,gBAAgB,EAAE,+BAA+B;YACjD,gBAAgB,EAAE,+BAA+B;SAClD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/cacheRulesDeleteSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Deletes a cache rule resource from a container registry.
|
17
|
+
*
|
18
|
+
* @summary Deletes a cache rule resource from a container registry.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleDelete.json
|
20
|
+
*/
|
21
|
+
function cacheRuleDelete() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const cacheRuleName = "myCacheRule";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.cacheRules.beginDeleteAndWait(resourceGroupName, registryName, cacheRuleName);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
function main() {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
cacheRuleDelete();
|
37
|
+
});
|
38
|
+
}
|
39
|
+
main().catch(console.error);
|
40
|
+
//# sourceMappingURL=cacheRulesDeleteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/cacheRulesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,YAAY,EACZ,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/cacheRulesGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Gets the properties of the specified cache rule resource.
|
17
|
+
*
|
18
|
+
* @summary Gets the properties of the specified cache rule resource.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleGet.json
|
20
|
+
*/
|
21
|
+
function cacheRuleGet() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const cacheRuleName = "myCacheRule";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.cacheRules.get(resourceGroupName, registryName, cacheRuleName);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
function main() {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
cacheRuleGet();
|
37
|
+
});
|
38
|
+
}
|
39
|
+
main().catch(console.error);
|
40
|
+
//# sourceMappingURL=cacheRulesGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesGetSample.js","sourceRoot":"","sources":["../../samples-dev/cacheRulesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,YAAY;;QACzB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,YAAY,EACZ,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,YAAY,EAAE,CAAC;IACjB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/cacheRulesListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Lists all cache rule resources for the specified container registry.
|
17
|
+
*
|
18
|
+
* @summary Lists all cache rule resources for the specified container registry.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleList.json
|
20
|
+
*/
|
21
|
+
function cacheRuleList() {
|
22
|
+
var _a, e_1, _b, _c;
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
26
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
27
|
+
const registryName = "myRegistry";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const resArray = new Array();
|
31
|
+
try {
|
32
|
+
for (var _d = true, _e = __asyncValues(client.cacheRules.list(resourceGroupName, registryName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
33
|
+
_c = _f.value;
|
34
|
+
_d = false;
|
35
|
+
try {
|
36
|
+
let item = _c;
|
37
|
+
resArray.push(item);
|
38
|
+
}
|
39
|
+
finally {
|
40
|
+
_d = true;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
45
|
+
finally {
|
46
|
+
try {
|
47
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
48
|
+
}
|
49
|
+
finally { if (e_1) throw e_1.error; }
|
50
|
+
}
|
51
|
+
console.log(resArray);
|
52
|
+
});
|
53
|
+
}
|
54
|
+
function main() {
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
56
|
+
cacheRuleList();
|
57
|
+
});
|
58
|
+
}
|
59
|
+
main().catch(console.error);
|
60
|
+
//# sourceMappingURL=cacheRulesListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesListSample.js","sourceRoot":"","sources":["../../samples-dev/cacheRulesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,CAC3C,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/cacheRulesUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Updates a cache rule for a container registry with the specified parameters.
|
17
|
+
*
|
18
|
+
* @summary Updates a cache rule for a container registry with the specified parameters.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleUpdate.json
|
20
|
+
*/
|
21
|
+
function cacheRuleUpdate() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const cacheRuleName = "myCacheRule";
|
28
|
+
const cacheRuleUpdateParameters = {
|
29
|
+
credentialSetResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2"
|
30
|
+
};
|
31
|
+
const credential = new DefaultAzureCredential();
|
32
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
33
|
+
const result = yield client.cacheRules.beginUpdateAndWait(resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters);
|
34
|
+
console.log(result);
|
35
|
+
});
|
36
|
+
}
|
37
|
+
function main() {
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
39
|
+
cacheRuleUpdate();
|
40
|
+
});
|
41
|
+
}
|
42
|
+
main().catch(console.error);
|
43
|
+
//# sourceMappingURL=cacheRulesUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cacheRulesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/cacheRulesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,yBAAyB,GAA8B;YAC3D,uBAAuB,EACrB,gLAAgL;SACnL,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialSetsCreateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Creates a credential set for a container registry with the specified parameters.
|
17
|
+
*
|
18
|
+
* @summary Creates a credential set for a container registry with the specified parameters.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetCreate.json
|
20
|
+
*/
|
21
|
+
function credentialSetCreate() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const credentialSetName = "myCredentialSet";
|
28
|
+
const credentialSetCreateParameters = {
|
29
|
+
authCredentials: [
|
30
|
+
{
|
31
|
+
name: "Credential1",
|
32
|
+
passwordSecretIdentifier: "https://myvault.vault.azure.net/secrets/password",
|
33
|
+
usernameSecretIdentifier: "https://myvault.vault.azure.net/secrets/username"
|
34
|
+
}
|
35
|
+
],
|
36
|
+
identity: { type: "SystemAssigned" },
|
37
|
+
loginServer: "docker.io"
|
38
|
+
};
|
39
|
+
const credential = new DefaultAzureCredential();
|
40
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
41
|
+
const result = yield client.credentialSets.beginCreateAndWait(resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters);
|
42
|
+
console.log(result);
|
43
|
+
});
|
44
|
+
}
|
45
|
+
function main() {
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
47
|
+
credentialSetCreate();
|
48
|
+
});
|
49
|
+
}
|
50
|
+
main().catch(console.error);
|
51
|
+
//# sourceMappingURL=credentialSetsCreateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/credentialSetsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,6BAA6B,GAAkB;YACnD,eAAe,EAAE;gBACf;oBACE,IAAI,EAAE,aAAa;oBACnB,wBAAwB,EACtB,kDAAkD;oBACpD,wBAAwB,EACtB,kDAAkD;iBACrD;aACF;YACD,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,WAAW,EAAE,WAAW;SACzB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialSetsDeleteSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Deletes a credential set from a container registry.
|
17
|
+
*
|
18
|
+
* @summary Deletes a credential set from a container registry.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetDelete.json
|
20
|
+
*/
|
21
|
+
function credentialSetDelete() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const credentialSetName = "myCredentialSet";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.credentialSets.beginDeleteAndWait(resourceGroupName, registryName, credentialSetName);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
function main() {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
credentialSetDelete();
|
37
|
+
});
|
38
|
+
}
|
39
|
+
main().catch(console.error);
|
40
|
+
//# sourceMappingURL=credentialSetsDeleteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/credentialSetsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialSetsGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Gets the properties of the specified credential set resource.
|
17
|
+
*
|
18
|
+
* @summary Gets the properties of the specified credential set resource.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetGet.json
|
20
|
+
*/
|
21
|
+
function credentialSetGet() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const credentialSetName = "myCredentialSet";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const result = yield client.credentialSets.get(resourceGroupName, registryName, credentialSetName);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
function main() {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
credentialSetGet();
|
37
|
+
});
|
38
|
+
}
|
39
|
+
main().catch(console.error);
|
40
|
+
//# sourceMappingURL=credentialSetsGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsGetSample.js","sourceRoot":"","sources":["../../samples-dev/credentialSetsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,GAAG,CAC5C,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialSetsListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Lists all credential set resources for the specified container registry.
|
17
|
+
*
|
18
|
+
* @summary Lists all credential set resources for the specified container registry.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetList.json
|
20
|
+
*/
|
21
|
+
function credentialSetList() {
|
22
|
+
var _a, e_1, _b, _c;
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
26
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
27
|
+
const registryName = "myRegistry";
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
30
|
+
const resArray = new Array();
|
31
|
+
try {
|
32
|
+
for (var _d = true, _e = __asyncValues(client.credentialSets.list(resourceGroupName, registryName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
33
|
+
_c = _f.value;
|
34
|
+
_d = false;
|
35
|
+
try {
|
36
|
+
let item = _c;
|
37
|
+
resArray.push(item);
|
38
|
+
}
|
39
|
+
finally {
|
40
|
+
_d = true;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
45
|
+
finally {
|
46
|
+
try {
|
47
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
48
|
+
}
|
49
|
+
finally { if (e_1) throw e_1.error; }
|
50
|
+
}
|
51
|
+
console.log(resArray);
|
52
|
+
});
|
53
|
+
}
|
54
|
+
function main() {
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
56
|
+
credentialSetList();
|
57
|
+
});
|
58
|
+
}
|
59
|
+
main().catch(console.error);
|
60
|
+
//# sourceMappingURL=credentialSetsListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsListSample.js","sourceRoot":"","sources":["../../samples-dev/credentialSetsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAC/C,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialSetsUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Updates a credential set for a container registry with the specified parameters.
|
17
|
+
*
|
18
|
+
* @summary Updates a credential set for a container registry with the specified parameters.
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetUpdate.json
|
20
|
+
*/
|
21
|
+
function credentialSetUpdate() {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
const subscriptionId = process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] ||
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
25
|
+
const resourceGroupName = process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup";
|
26
|
+
const registryName = "myRegistry";
|
27
|
+
const credentialSetName = "myCredentialSet";
|
28
|
+
const credentialSetUpdateParameters = {
|
29
|
+
authCredentials: [
|
30
|
+
{
|
31
|
+
name: "Credential1",
|
32
|
+
passwordSecretIdentifier: "https://myvault.vault.azure.net/secrets/password2",
|
33
|
+
usernameSecretIdentifier: "https://myvault.vault.azure.net/secrets/username2"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
};
|
37
|
+
const credential = new DefaultAzureCredential();
|
38
|
+
const client = new ContainerRegistryManagementClient(credential, subscriptionId);
|
39
|
+
const result = yield client.credentialSets.beginUpdateAndWait(resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters);
|
40
|
+
console.log(result);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
function main() {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
credentialSetUpdate();
|
46
|
+
});
|
47
|
+
}
|
48
|
+
main().catch(console.error);
|
49
|
+
//# sourceMappingURL=credentialSetsUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"credentialSetsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/credentialSetsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,iBAAiB,CAAC;QACvE,MAAM,YAAY,GAAG,YAAY,CAAC;QAClC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,6BAA6B,GAAkC;YACnE,eAAe,EAAE;gBACf;oBACE,IAAI,EAAE,aAAa;oBACnB,wBAAwB,EACtB,mDAAmD;oBACrD,wBAAwB,EACtB,mDAAmD;iBACtD;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
16
16
|
* This sample demonstrates how to Lists all of the available Azure Container Registry REST API operations.
|
17
17
|
*
|
18
18
|
* @summary Lists all of the available Azure Container Registry REST API operations.
|
19
|
-
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/OperationList.json
|
20
20
|
*/
|
21
21
|
function operationList() {
|
22
22
|
var _a, e_1, _b, _c;
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
16
16
|
* This sample demonstrates how to Update the state of specified private endpoint connection associated with the container registry.
|
17
17
|
*
|
18
18
|
* @summary Update the state of specified private endpoint connection associated with the container registry.
|
19
|
-
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/
|
19
|
+
* x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json
|
20
20
|
*/
|
21
21
|
function privateEndpointConnectionCreateOrUpdate() {
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|