@azure/arm-containerregistry 11.0.0-alpha.20250422.1 → 11.0.0-alpha.20250423.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 +266 -0
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/browser/containerRegistryManagementClient.d.ts +3 -0
- package/dist/browser/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist/browser/containerRegistryManagementClient.js +28 -1
- package/dist/browser/containerRegistryManagementClient.js.map +1 -1
- package/dist/browser/models/index.d.ts +55 -58
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +10 -2
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +5 -3
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +87 -83
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +0 -1
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +1 -12
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/agentPools.d.ts +3 -3
- package/dist/browser/operations/agentPools.d.ts.map +1 -1
- package/dist/browser/operations/agentPools.js +28 -17
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/registries.d.ts +1 -9
- package/dist/browser/operations/registries.d.ts.map +1 -1
- package/dist/browser/operations/registries.js +6 -58
- package/dist/browser/operations/registries.js.map +1 -1
- package/dist/browser/operations/runs.d.ts +2 -20
- package/dist/browser/operations/runs.d.ts.map +1 -1
- package/dist/browser/operations/runs.js +15 -122
- package/dist/browser/operations/runs.js.map +1 -1
- package/dist/browser/operations/taskRuns.d.ts +1 -9
- package/dist/browser/operations/taskRuns.d.ts.map +1 -1
- package/dist/browser/operations/taskRuns.js +17 -60
- package/dist/browser/operations/taskRuns.js.map +1 -1
- package/dist/browser/operations/tasks.d.ts +3 -30
- package/dist/browser/operations/tasks.d.ts.map +1 -1
- package/dist/browser/operations/tasks.js +31 -181
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operationsInterfaces/agentPools.d.ts +3 -3
- package/dist/browser/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/browser/operationsInterfaces/registries.d.ts +1 -9
- package/dist/browser/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/registries.js.map +1 -1
- package/dist/browser/operationsInterfaces/runs.d.ts +2 -20
- package/dist/browser/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/runs.js.map +1 -1
- package/dist/browser/operationsInterfaces/taskRuns.d.ts +1 -9
- package/dist/browser/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/browser/operationsInterfaces/tasks.d.ts +3 -30
- package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
- package/dist/commonjs/containerRegistryManagementClient.d.ts +3 -0
- package/dist/commonjs/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist/commonjs/containerRegistryManagementClient.js +28 -1
- package/dist/commonjs/containerRegistryManagementClient.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +55 -58
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +12 -4
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +5 -3
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +90 -86
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +0 -1
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +3 -14
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/agentPools.d.ts +3 -3
- package/dist/commonjs/operations/agentPools.d.ts.map +1 -1
- package/dist/commonjs/operations/agentPools.js +28 -17
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/registries.d.ts +1 -9
- package/dist/commonjs/operations/registries.d.ts.map +1 -1
- package/dist/commonjs/operations/registries.js +6 -58
- package/dist/commonjs/operations/registries.js.map +1 -1
- package/dist/commonjs/operations/runs.d.ts +2 -20
- package/dist/commonjs/operations/runs.d.ts.map +1 -1
- package/dist/commonjs/operations/runs.js +15 -122
- package/dist/commonjs/operations/runs.js.map +1 -1
- package/dist/commonjs/operations/taskRuns.d.ts +1 -9
- package/dist/commonjs/operations/taskRuns.d.ts.map +1 -1
- package/dist/commonjs/operations/taskRuns.js +17 -60
- package/dist/commonjs/operations/taskRuns.js.map +1 -1
- package/dist/commonjs/operations/tasks.d.ts +3 -30
- package/dist/commonjs/operations/tasks.d.ts.map +1 -1
- package/dist/commonjs/operations/tasks.js +31 -181
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/agentPools.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/registries.d.ts +1 -9
- package/dist/commonjs/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/registries.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/runs.d.ts +2 -20
- package/dist/commonjs/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/runs.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/taskRuns.d.ts +1 -9
- package/dist/commonjs/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/tasks.d.ts +3 -30
- package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
- package/dist/esm/containerRegistryManagementClient.d.ts +3 -0
- package/dist/esm/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist/esm/containerRegistryManagementClient.js +28 -1
- package/dist/esm/containerRegistryManagementClient.js.map +1 -1
- package/dist/esm/models/index.d.ts +55 -58
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -2
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +5 -3
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +87 -83
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +0 -1
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +1 -12
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/agentPools.d.ts +3 -3
- package/dist/esm/operations/agentPools.d.ts.map +1 -1
- package/dist/esm/operations/agentPools.js +28 -17
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/registries.d.ts +1 -9
- package/dist/esm/operations/registries.d.ts.map +1 -1
- package/dist/esm/operations/registries.js +6 -58
- package/dist/esm/operations/registries.js.map +1 -1
- package/dist/esm/operations/runs.d.ts +2 -20
- package/dist/esm/operations/runs.d.ts.map +1 -1
- package/dist/esm/operations/runs.js +15 -122
- package/dist/esm/operations/runs.js.map +1 -1
- package/dist/esm/operations/taskRuns.d.ts +1 -9
- package/dist/esm/operations/taskRuns.d.ts.map +1 -1
- package/dist/esm/operations/taskRuns.js +17 -60
- package/dist/esm/operations/taskRuns.js.map +1 -1
- package/dist/esm/operations/tasks.d.ts +3 -30
- package/dist/esm/operations/tasks.d.ts.map +1 -1
- package/dist/esm/operations/tasks.js +31 -181
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operationsInterfaces/agentPools.d.ts +3 -3
- package/dist/esm/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/esm/operationsInterfaces/registries.d.ts +1 -9
- package/dist/esm/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/registries.js.map +1 -1
- package/dist/esm/operationsInterfaces/runs.d.ts +2 -20
- package/dist/esm/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/runs.js.map +1 -1
- package/dist/esm/operationsInterfaces/taskRuns.d.ts +1 -9
- package/dist/esm/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/esm/operationsInterfaces/tasks.d.ts +3 -30
- package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
- package/dist/react-native/containerRegistryManagementClient.d.ts +3 -0
- package/dist/react-native/containerRegistryManagementClient.d.ts.map +1 -1
- package/dist/react-native/containerRegistryManagementClient.js +28 -1
- package/dist/react-native/containerRegistryManagementClient.js.map +1 -1
- package/dist/react-native/models/index.d.ts +55 -58
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +10 -2
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +5 -3
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +87 -83
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +0 -1
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +1 -12
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/agentPools.d.ts +3 -3
- package/dist/react-native/operations/agentPools.d.ts.map +1 -1
- package/dist/react-native/operations/agentPools.js +28 -17
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/registries.d.ts +1 -9
- package/dist/react-native/operations/registries.d.ts.map +1 -1
- package/dist/react-native/operations/registries.js +6 -58
- package/dist/react-native/operations/registries.js.map +1 -1
- package/dist/react-native/operations/runs.d.ts +2 -20
- package/dist/react-native/operations/runs.d.ts.map +1 -1
- package/dist/react-native/operations/runs.js +15 -122
- package/dist/react-native/operations/runs.js.map +1 -1
- package/dist/react-native/operations/taskRuns.d.ts +1 -9
- package/dist/react-native/operations/taskRuns.d.ts.map +1 -1
- package/dist/react-native/operations/taskRuns.js +17 -60
- package/dist/react-native/operations/taskRuns.js.map +1 -1
- package/dist/react-native/operations/tasks.d.ts +3 -30
- package/dist/react-native/operations/tasks.d.ts.map +1 -1
- package/dist/react-native/operations/tasks.js +31 -181
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operationsInterfaces/agentPools.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/react-native/operationsInterfaces/registries.d.ts +1 -9
- package/dist/react-native/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/registries.js.map +1 -1
- package/dist/react-native/operationsInterfaces/runs.d.ts +2 -20
- package/dist/react-native/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/runs.js.map +1 -1
- package/dist/react-native/operationsInterfaces/taskRuns.d.ts +1 -9
- package/dist/react-native/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/react-native/operationsInterfaces/tasks.d.ts +3 -30
- package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-containerregistry.api.md +57 -50
@@ -35,7 +35,7 @@ class ContainerRegistryManagementClient extends coreClient.ServiceClient {
|
|
35
35
|
requestContentType: "application/json; charset=utf-8",
|
36
36
|
credential: credentials,
|
37
37
|
};
|
38
|
-
const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.
|
38
|
+
const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.5`;
|
39
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
40
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
41
41
|
: `${packageDetails}`;
|
@@ -68,6 +68,7 @@ class ContainerRegistryManagementClient extends coreClient.ServiceClient {
|
|
68
68
|
this.subscriptionId = subscriptionId;
|
69
69
|
// Assigning values to Constant parameters
|
70
70
|
this.$host = options.$host || "https://management.azure.com";
|
71
|
+
this.apiVersion = options.apiVersion || "2025-03-01-preview";
|
71
72
|
this.archives = new index_js_1.ArchivesImpl(this);
|
72
73
|
this.archiveVersions = new index_js_1.ArchiveVersionsImpl(this);
|
73
74
|
this.cacheRules = new index_js_1.CacheRulesImpl(this);
|
@@ -87,6 +88,32 @@ class ContainerRegistryManagementClient extends coreClient.ServiceClient {
|
|
87
88
|
this.runs = new index_js_1.RunsImpl(this);
|
88
89
|
this.taskRuns = new index_js_1.TaskRunsImpl(this);
|
89
90
|
this.tasks = new index_js_1.TasksImpl(this);
|
91
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
92
|
+
}
|
93
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
94
|
+
addCustomApiVersionPolicy(apiVersion) {
|
95
|
+
if (!apiVersion) {
|
96
|
+
return;
|
97
|
+
}
|
98
|
+
const apiVersionPolicy = {
|
99
|
+
name: "CustomApiVersionPolicy",
|
100
|
+
async sendRequest(request, next) {
|
101
|
+
const param = request.url.split("?");
|
102
|
+
if (param.length > 1) {
|
103
|
+
const newParams = param[1].split("&").map((item) => {
|
104
|
+
if (item.indexOf("api-version") > -1) {
|
105
|
+
return "api-version=" + apiVersion;
|
106
|
+
}
|
107
|
+
else {
|
108
|
+
return item;
|
109
|
+
}
|
110
|
+
});
|
111
|
+
request.url = param[0] + "?" + newParams.join("&");
|
112
|
+
}
|
113
|
+
return next(request);
|
114
|
+
},
|
115
|
+
};
|
116
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
90
117
|
}
|
91
118
|
}
|
92
119
|
exports.ContainerRegistryManagementClient = ContainerRegistryManagementClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"containerRegistryManagementClient.js","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAoB+B;AAwB/B,MAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAI7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8CAA8C,CAAC;QACtE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GACxE,CAAC;QACF,KAAK,CAAC,mBAA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cesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ArchivesImpl,\n ArchiveVersionsImpl,\n CacheRulesImpl,\n ConnectedRegistriesImpl,\n CredentialSetsImpl,\n ExportPipelinesImpl,\n RegistriesImpl,\n ImportPipelinesImpl,\n OperationsImpl,\n PipelineRunsImpl,\n PrivateEndpointConnectionsImpl,\n ReplicationsImpl,\n ScopeMapsImpl,\n TokensImpl,\n WebhooksImpl,\n AgentPoolsImpl,\n RunsImpl,\n TaskRunsImpl,\n TasksImpl,\n} from \"./operations/index.js\";\nimport {\n Archives,\n ArchiveVersions,\n CacheRules,\n ConnectedRegistries,\n CredentialSets,\n ExportPipelines,\n Registries,\n ImportPipelines,\n Operations,\n PipelineRuns,\n PrivateEndpointConnections,\n Replications,\n ScopeMaps,\n Tokens,\n Webhooks,\n AgentPools,\n Runs,\n TaskRuns,\n Tasks,\n} from \"./operationsInterfaces/index.js\";\nimport { ContainerRegistryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerRegistryManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerRegistryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerRegistryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerRegistryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.4`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.archives = new ArchivesImpl(this);\n this.archiveVersions = new ArchiveVersionsImpl(this);\n this.cacheRules = new CacheRulesImpl(this);\n this.connectedRegistries = new ConnectedRegistriesImpl(this);\n this.credentialSets = new CredentialSetsImpl(this);\n this.exportPipelines = new ExportPipelinesImpl(this);\n this.registries = new RegistriesImpl(this);\n this.importPipelines = new ImportPipelinesImpl(this);\n this.operations = new OperationsImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.replications = new ReplicationsImpl(this);\n this.scopeMaps = new ScopeMapsImpl(this);\n this.tokens = new TokensImpl(this);\n this.webhooks = new WebhooksImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.runs = new RunsImpl(this);\n this.taskRuns = new TaskRunsImpl(this);\n this.tasks = new TasksImpl(this);\n }\n\n archives: Archives;\n archiveVersions: ArchiveVersions;\n cacheRules: CacheRules;\n connectedRegistries: ConnectedRegistries;\n credentialSets: CredentialSets;\n exportPipelines: ExportPipelines;\n registries: Registries;\n importPipelines: ImportPipelines;\n operations: Operations;\n pipelineRuns: PipelineRuns;\n privateEndpointConnections: PrivateEndpointConnections;\n replications: Replications;\n scopeMaps: ScopeMaps;\n tokens: Tokens;\n webhooks: Webhooks;\n agentPools: AgentPools;\n runs: Runs;\n taskRuns: TaskRuns;\n tasks: Tasks;\n}\n"]}
|
1
|
+
{"version":3,"file":"containerRegistryManagementClient.js","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAoB+B;AAwB/B,MAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,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AC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAqBF;AA5JD,8EA4JC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ArchivesImpl,\n ArchiveVersionsImpl,\n CacheRulesImpl,\n ConnectedRegistriesImpl,\n CredentialSetsImpl,\n ExportPipelinesImpl,\n RegistriesImpl,\n ImportPipelinesImpl,\n OperationsImpl,\n PipelineRunsImpl,\n PrivateEndpointConnectionsImpl,\n ReplicationsImpl,\n ScopeMapsImpl,\n TokensImpl,\n WebhooksImpl,\n AgentPoolsImpl,\n RunsImpl,\n TaskRunsImpl,\n TasksImpl,\n} from \"./operations/index.js\";\nimport {\n Archives,\n ArchiveVersions,\n CacheRules,\n ConnectedRegistries,\n CredentialSets,\n ExportPipelines,\n Registries,\n ImportPipelines,\n Operations,\n PipelineRuns,\n PrivateEndpointConnections,\n Replications,\n ScopeMaps,\n Tokens,\n Webhooks,\n AgentPools,\n Runs,\n TaskRuns,\n Tasks,\n} from \"./operationsInterfaces/index.js\";\nimport { ContainerRegistryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerRegistryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerRegistryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerRegistryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerRegistryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-03-01-preview\";\n this.archives = new ArchivesImpl(this);\n this.archiveVersions = new ArchiveVersionsImpl(this);\n this.cacheRules = new CacheRulesImpl(this);\n this.connectedRegistries = new ConnectedRegistriesImpl(this);\n this.credentialSets = new CredentialSetsImpl(this);\n this.exportPipelines = new ExportPipelinesImpl(this);\n this.registries = new RegistriesImpl(this);\n this.importPipelines = new ImportPipelinesImpl(this);\n this.operations = new OperationsImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.replications = new ReplicationsImpl(this);\n this.scopeMaps = new ScopeMapsImpl(this);\n this.tokens = new TokensImpl(this);\n this.webhooks = new WebhooksImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.runs = new RunsImpl(this);\n this.taskRuns = new TaskRunsImpl(this);\n this.tasks = new TasksImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n archives: Archives;\n archiveVersions: ArchiveVersions;\n cacheRules: CacheRules;\n connectedRegistries: ConnectedRegistries;\n credentialSets: CredentialSets;\n exportPipelines: ExportPipelines;\n registries: Registries;\n importPipelines: ImportPipelines;\n operations: Operations;\n pipelineRuns: PipelineRuns;\n privateEndpointConnections: PrivateEndpointConnections;\n replications: Replications;\n scopeMaps: ScopeMaps;\n tokens: Tokens;\n webhooks: Webhooks;\n agentPools: AgentPools;\n runs: Runs;\n taskRuns: TaskRuns;\n tasks: Tasks;\n}\n"]}
|
@@ -814,6 +814,8 @@ export interface RegistryUpdateParameters {
|
|
814
814
|
anonymousPullEnabled?: boolean;
|
815
815
|
/** Determines whether registry artifacts are indexed for metadata search. */
|
816
816
|
metadataSearch?: MetadataSearch;
|
817
|
+
/** Determines registry role assignment mode. */
|
818
|
+
roleAssignmentMode?: RoleAssignmentMode;
|
817
819
|
}
|
818
820
|
/** The result of a request to get container registry quota usages. */
|
819
821
|
export interface RegistryUsageListResult {
|
@@ -1131,31 +1133,6 @@ export interface CallbackConfig {
|
|
1131
1133
|
[propertyName: string]: string;
|
1132
1134
|
};
|
1133
1135
|
}
|
1134
|
-
/** An error response from the Azure Container Registry service. */
|
1135
|
-
export interface ErrorResponseForContainerRegistry {
|
1136
|
-
/** Azure container registry build API error body. */
|
1137
|
-
error?: ErrorResponseBody;
|
1138
|
-
}
|
1139
|
-
/** An error response from the Azure Container Registry service. */
|
1140
|
-
export interface ErrorResponseBody {
|
1141
|
-
/** error code. */
|
1142
|
-
code: string;
|
1143
|
-
/** error message. */
|
1144
|
-
message: string;
|
1145
|
-
/** target of the particular error. */
|
1146
|
-
target?: string;
|
1147
|
-
/** an array of additional nested error response info objects, as described by this contract. */
|
1148
|
-
details?: InnerErrorDescription[];
|
1149
|
-
}
|
1150
|
-
/** inner error. */
|
1151
|
-
export interface InnerErrorDescription {
|
1152
|
-
/** error code. */
|
1153
|
-
code: string;
|
1154
|
-
/** error message. */
|
1155
|
-
message: string;
|
1156
|
-
/** target of the particular error. */
|
1157
|
-
target?: string;
|
1158
|
-
}
|
1159
1136
|
/** The parameters for updating an agent pool. */
|
1160
1137
|
export interface AgentPoolUpdateParameters {
|
1161
1138
|
/** The ARM resource tags. */
|
@@ -1411,6 +1388,12 @@ export interface Credentials {
|
|
1411
1388
|
}
|
1412
1389
|
/** Describes the credential parameters for accessing the source registry. */
|
1413
1390
|
export interface SourceRegistryCredentials {
|
1391
|
+
/**
|
1392
|
+
* The Entra identity used for source registry login.
|
1393
|
+
* The value is `[system]` for system-assigned managed identity, `[caller]` for caller identity,
|
1394
|
+
* and client ID for user-assigned managed identity.
|
1395
|
+
*/
|
1396
|
+
identity?: string;
|
1414
1397
|
/**
|
1415
1398
|
* The authentication mode which determines the source registry login scope. The credentials for the source registry
|
1416
1399
|
* will be generated using the given scope. These credentials will be used to login to
|
@@ -2014,6 +1997,8 @@ export interface Registry extends Resource {
|
|
2014
1997
|
metadataSearch?: MetadataSearch;
|
2015
1998
|
/** Determines the domain name label reuse scope. */
|
2016
1999
|
autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
|
2000
|
+
/** Determines registry role assignment mode. */
|
2001
|
+
roleAssignmentMode?: RoleAssignmentMode;
|
2017
2002
|
}
|
2018
2003
|
/** An object that represents a replication for a container registry. */
|
2019
2004
|
export interface Replication extends Resource {
|
@@ -2431,6 +2416,26 @@ export interface WebhooksDeleteHeaders {
|
|
2431
2416
|
export interface WebhooksUpdateHeaders {
|
2432
2417
|
azureAsyncOperation?: string;
|
2433
2418
|
}
|
2419
|
+
/** Defines headers for AgentPools_create operation. */
|
2420
|
+
export interface AgentPoolsCreateHeaders {
|
2421
|
+
azureAsyncOperation?: string;
|
2422
|
+
}
|
2423
|
+
/** Defines headers for AgentPools_delete operation. */
|
2424
|
+
export interface AgentPoolsDeleteHeaders {
|
2425
|
+
location?: string;
|
2426
|
+
}
|
2427
|
+
/** Defines headers for AgentPools_update operation. */
|
2428
|
+
export interface AgentPoolsUpdateHeaders {
|
2429
|
+
azureAsyncOperation?: string;
|
2430
|
+
}
|
2431
|
+
/** Defines headers for TaskRuns_create operation. */
|
2432
|
+
export interface TaskRunsCreateHeaders {
|
2433
|
+
azureAsyncOperation?: string;
|
2434
|
+
}
|
2435
|
+
/** Defines headers for TaskRuns_update operation. */
|
2436
|
+
export interface TaskRunsUpdateHeaders {
|
2437
|
+
azureAsyncOperation?: string;
|
2438
|
+
}
|
2434
2439
|
/** Known values of {@link PackageSourceType} that the service accepts. */
|
2435
2440
|
export declare enum KnownPackageSourceType {
|
2436
2441
|
/** Remote */
|
@@ -2728,18 +2733,18 @@ export declare enum KnownPipelineSourceType {
|
|
2728
2733
|
export type PipelineSourceType = string;
|
2729
2734
|
/** Known values of {@link TriggerStatus} that the service accepts. */
|
2730
2735
|
export declare enum KnownTriggerStatus {
|
2731
|
-
/** Disabled */
|
2732
|
-
Disabled = "Disabled",
|
2733
2736
|
/** Enabled */
|
2734
|
-
Enabled = "Enabled"
|
2737
|
+
Enabled = "Enabled",
|
2738
|
+
/** Disabled */
|
2739
|
+
Disabled = "Disabled"
|
2735
2740
|
}
|
2736
2741
|
/**
|
2737
2742
|
* Defines values for TriggerStatus. \
|
2738
2743
|
* {@link KnownTriggerStatus} can be used interchangeably with TriggerStatus,
|
2739
2744
|
* this enum contains the known values that the service supports.
|
2740
2745
|
* ### Known values supported by the service
|
2741
|
-
* **
|
2742
|
-
* **
|
2746
|
+
* **Enabled** \
|
2747
|
+
* **Disabled**
|
2743
2748
|
*/
|
2744
2749
|
export type TriggerStatus = string;
|
2745
2750
|
/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */
|
@@ -3045,6 +3050,22 @@ export declare enum KnownMetadataSearch {
|
|
3045
3050
|
* **Disabled**
|
3046
3051
|
*/
|
3047
3052
|
export type MetadataSearch = string;
|
3053
|
+
/** Known values of {@link RoleAssignmentMode} that the service accepts. */
|
3054
|
+
export declare enum KnownRoleAssignmentMode {
|
3055
|
+
/** AbacRepositoryPermissions */
|
3056
|
+
AbacRepositoryPermissions = "AbacRepositoryPermissions",
|
3057
|
+
/** LegacyRegistryPermissions */
|
3058
|
+
LegacyRegistryPermissions = "LegacyRegistryPermissions"
|
3059
|
+
}
|
3060
|
+
/**
|
3061
|
+
* Defines values for RoleAssignmentMode. \
|
3062
|
+
* {@link KnownRoleAssignmentMode} can be used interchangeably with RoleAssignmentMode,
|
3063
|
+
* this enum contains the known values that the service supports.
|
3064
|
+
* ### Known values supported by the service
|
3065
|
+
* **AbacRepositoryPermissions** \
|
3066
|
+
* **LegacyRegistryPermissions**
|
3067
|
+
*/
|
3068
|
+
export type RoleAssignmentMode = string;
|
3048
3069
|
/** Known values of {@link RegistryUsageUnit} that the service accepts. */
|
3049
3070
|
export declare enum KnownRegistryUsageUnit {
|
3050
3071
|
/** Count */
|
@@ -3756,10 +3777,6 @@ export interface RegistriesGenerateCredentialsOptionalParams extends coreClient.
|
|
3756
3777
|
export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult;
|
3757
3778
|
/** Optional parameters. */
|
3758
3779
|
export interface RegistriesScheduleRunOptionalParams extends coreClient.OperationOptions {
|
3759
|
-
/** Delay to wait until next poll, in milliseconds. */
|
3760
|
-
updateIntervalInMs?: number;
|
3761
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
3762
|
-
resumeFrom?: string;
|
3763
3780
|
}
|
3764
3781
|
/** Contains response data for the scheduleRun operation. */
|
3765
3782
|
export type RegistriesScheduleRunResponse = Run;
|
@@ -4087,6 +4104,8 @@ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOpti
|
|
4087
4104
|
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4088
4105
|
resumeFrom?: string;
|
4089
4106
|
}
|
4107
|
+
/** Contains response data for the delete operation. */
|
4108
|
+
export type AgentPoolsDeleteResponse = AgentPoolsDeleteHeaders;
|
4090
4109
|
/** Optional parameters. */
|
4091
4110
|
export interface AgentPoolsUpdateOptionalParams extends coreClient.OperationOptions {
|
4092
4111
|
/** Delay to wait until next poll, in milliseconds. */
|
@@ -4127,10 +4146,6 @@ export interface RunsGetOptionalParams extends coreClient.OperationOptions {
|
|
4127
4146
|
export type RunsGetResponse = Run;
|
4128
4147
|
/** Optional parameters. */
|
4129
4148
|
export interface RunsUpdateOptionalParams extends coreClient.OperationOptions {
|
4130
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4131
|
-
updateIntervalInMs?: number;
|
4132
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4133
|
-
resumeFrom?: string;
|
4134
4149
|
}
|
4135
4150
|
/** Contains response data for the update operation. */
|
4136
4151
|
export type RunsUpdateResponse = Run;
|
@@ -4141,10 +4156,6 @@ export interface RunsGetLogSasUrlOptionalParams extends coreClient.OperationOpti
|
|
4141
4156
|
export type RunsGetLogSasUrlResponse = RunGetLogResult;
|
4142
4157
|
/** Optional parameters. */
|
4143
4158
|
export interface RunsCancelOptionalParams extends coreClient.OperationOptions {
|
4144
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4145
|
-
updateIntervalInMs?: number;
|
4146
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4147
|
-
resumeFrom?: string;
|
4148
4159
|
}
|
4149
4160
|
/** Optional parameters. */
|
4150
4161
|
export interface RunsListNextOptionalParams extends coreClient.OperationOptions {
|
@@ -4167,10 +4178,6 @@ export interface TaskRunsCreateOptionalParams extends coreClient.OperationOption
|
|
4167
4178
|
export type TaskRunsCreateResponse = TaskRun;
|
4168
4179
|
/** Optional parameters. */
|
4169
4180
|
export interface TaskRunsDeleteOptionalParams extends coreClient.OperationOptions {
|
4170
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4171
|
-
updateIntervalInMs?: number;
|
4172
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4173
|
-
resumeFrom?: string;
|
4174
4181
|
}
|
4175
4182
|
/** Optional parameters. */
|
4176
4183
|
export interface TaskRunsUpdateOptionalParams extends coreClient.OperationOptions {
|
@@ -4208,26 +4215,14 @@ export interface TasksGetOptionalParams extends coreClient.OperationOptions {
|
|
4208
4215
|
export type TasksGetResponse = Task;
|
4209
4216
|
/** Optional parameters. */
|
4210
4217
|
export interface TasksCreateOptionalParams extends coreClient.OperationOptions {
|
4211
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4212
|
-
updateIntervalInMs?: number;
|
4213
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4214
|
-
resumeFrom?: string;
|
4215
4218
|
}
|
4216
4219
|
/** Contains response data for the create operation. */
|
4217
4220
|
export type TasksCreateResponse = Task;
|
4218
4221
|
/** Optional parameters. */
|
4219
4222
|
export interface TasksDeleteOptionalParams extends coreClient.OperationOptions {
|
4220
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4221
|
-
updateIntervalInMs?: number;
|
4222
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4223
|
-
resumeFrom?: string;
|
4224
4223
|
}
|
4225
4224
|
/** Optional parameters. */
|
4226
4225
|
export interface TasksUpdateOptionalParams extends coreClient.OperationOptions {
|
4227
|
-
/** Delay to wait until next poll, in milliseconds. */
|
4228
|
-
updateIntervalInMs?: number;
|
4229
|
-
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
4230
|
-
resumeFrom?: string;
|
4231
4226
|
}
|
4232
4227
|
/** Contains response data for the update operation. */
|
4233
4228
|
export type TasksUpdateResponse = Task;
|
@@ -4245,6 +4240,8 @@ export type TasksListNextResponse = TaskListResult;
|
|
4245
4240
|
export interface ContainerRegistryManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
4246
4241
|
/** server parameter */
|
4247
4242
|
$host?: string;
|
4243
|
+
/** Api Version */
|
4244
|
+
apiVersion?: string;
|
4248
4245
|
/** Overrides client endpoint. */
|
4249
4246
|
endpoint?: string;
|
4250
4247
|
}
|