@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
@@ -6,18 +6,13 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
9
10
|
import * as coreAuth from "@azure/core-auth";
|
10
11
|
import {
|
11
|
-
ConnectedRegistriesImpl,
|
12
|
-
ExportPipelinesImpl,
|
13
12
|
RegistriesImpl,
|
14
|
-
ImportPipelinesImpl,
|
15
13
|
OperationsImpl,
|
16
|
-
PipelineRunsImpl,
|
17
14
|
PrivateEndpointConnectionsImpl,
|
18
15
|
ReplicationsImpl,
|
19
|
-
ScopeMapsImpl,
|
20
|
-
TokensImpl,
|
21
16
|
WebhooksImpl,
|
22
17
|
AgentPoolsImpl,
|
23
18
|
RunsImpl,
|
@@ -25,26 +20,22 @@ import {
|
|
25
20
|
TasksImpl
|
26
21
|
} from "./operations";
|
27
22
|
import {
|
28
|
-
ConnectedRegistries,
|
29
|
-
ExportPipelines,
|
30
23
|
Registries,
|
31
|
-
ImportPipelines,
|
32
24
|
Operations,
|
33
|
-
PipelineRuns,
|
34
25
|
PrivateEndpointConnections,
|
35
26
|
Replications,
|
36
|
-
ScopeMaps,
|
37
|
-
Tokens,
|
38
27
|
Webhooks,
|
39
28
|
AgentPools,
|
40
29
|
Runs,
|
41
30
|
TaskRuns,
|
42
31
|
Tasks
|
43
32
|
} from "./operationsInterfaces";
|
44
|
-
import { ContainerRegistryManagementClientContext } from "./containerRegistryManagementClientContext";
|
45
33
|
import { ContainerRegistryManagementClientOptionalParams } from "./models";
|
46
34
|
|
47
|
-
export class ContainerRegistryManagementClient extends
|
35
|
+
export class ContainerRegistryManagementClient extends coreClient.ServiceClient {
|
36
|
+
$host: string;
|
37
|
+
subscriptionId: string;
|
38
|
+
|
48
39
|
/**
|
49
40
|
* Initializes a new instance of the ContainerRegistryManagementClient class.
|
50
41
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -56,17 +47,49 @@ export class ContainerRegistryManagementClient extends ContainerRegistryManageme
|
|
56
47
|
subscriptionId: string,
|
57
48
|
options?: ContainerRegistryManagementClientOptionalParams
|
58
49
|
) {
|
59
|
-
|
60
|
-
|
61
|
-
|
50
|
+
if (credentials === undefined) {
|
51
|
+
throw new Error("'credentials' cannot be null");
|
52
|
+
}
|
53
|
+
if (subscriptionId === undefined) {
|
54
|
+
throw new Error("'subscriptionId' cannot be null");
|
55
|
+
}
|
56
|
+
|
57
|
+
// Initializing default values for options
|
58
|
+
if (!options) {
|
59
|
+
options = {};
|
60
|
+
}
|
61
|
+
const defaults: ContainerRegistryManagementClientOptionalParams = {
|
62
|
+
requestContentType: "application/json; charset=utf-8",
|
63
|
+
credential: credentials
|
64
|
+
};
|
65
|
+
|
66
|
+
const packageDetails = `azsdk-js-arm-containerregistry/10.0.0`;
|
67
|
+
const userAgentPrefix =
|
68
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
69
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
70
|
+
: `${packageDetails}`;
|
71
|
+
|
72
|
+
if (!options.credentialScopes) {
|
73
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
74
|
+
}
|
75
|
+
const optionsWithDefaults = {
|
76
|
+
...defaults,
|
77
|
+
...options,
|
78
|
+
userAgentOptions: {
|
79
|
+
userAgentPrefix
|
80
|
+
},
|
81
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
82
|
+
};
|
83
|
+
super(optionsWithDefaults);
|
84
|
+
// Parameter assignments
|
85
|
+
this.subscriptionId = subscriptionId;
|
86
|
+
|
87
|
+
// Assigning values to Constant parameters
|
88
|
+
this.$host = options.$host || "https://management.azure.com";
|
62
89
|
this.registries = new RegistriesImpl(this);
|
63
|
-
this.importPipelines = new ImportPipelinesImpl(this);
|
64
90
|
this.operations = new OperationsImpl(this);
|
65
|
-
this.pipelineRuns = new PipelineRunsImpl(this);
|
66
91
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
67
92
|
this.replications = new ReplicationsImpl(this);
|
68
|
-
this.scopeMaps = new ScopeMapsImpl(this);
|
69
|
-
this.tokens = new TokensImpl(this);
|
70
93
|
this.webhooks = new WebhooksImpl(this);
|
71
94
|
this.agentPools = new AgentPoolsImpl(this);
|
72
95
|
this.runs = new RunsImpl(this);
|
@@ -74,16 +97,10 @@ export class ContainerRegistryManagementClient extends ContainerRegistryManageme
|
|
74
97
|
this.tasks = new TasksImpl(this);
|
75
98
|
}
|
76
99
|
|
77
|
-
connectedRegistries: ConnectedRegistries;
|
78
|
-
exportPipelines: ExportPipelines;
|
79
100
|
registries: Registries;
|
80
|
-
importPipelines: ImportPipelines;
|
81
101
|
operations: Operations;
|
82
|
-
pipelineRuns: PipelineRuns;
|
83
102
|
privateEndpointConnections: PrivateEndpointConnections;
|
84
103
|
replications: Replications;
|
85
|
-
scopeMaps: ScopeMaps;
|
86
|
-
tokens: Tokens;
|
87
104
|
webhooks: Webhooks;
|
88
105
|
agentPools: AgentPools;
|
89
106
|
runs: Runs;
|
package/src/index.ts
CHANGED
@@ -9,5 +9,4 @@
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
10
10
|
export * from "./models";
|
11
11
|
export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient";
|
12
|
-
export { ContainerRegistryManagementClientContext } from "./containerRegistryManagementClientContext";
|
13
12
|
export * from "./operationsInterfaces";
|