@azure/arm-apicenter 1.0.1-alpha.20250718.1 → 1.0.1-alpha.20250730.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/dist/commonjs/azureAPICenter.js +22 -5
- package/dist/commonjs/azureAPICenter.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +52 -21
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/apiDefinitions.js +45 -51
- package/dist/commonjs/operations/apiDefinitions.js.map +1 -1
- package/dist/commonjs/operations/apiVersions.js +23 -39
- package/dist/commonjs/operations/apiVersions.js.map +1 -1
- package/dist/commonjs/operations/apis.js +23 -39
- package/dist/commonjs/operations/apis.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +23 -39
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/environments.js +23 -39
- package/dist/commonjs/operations/environments.js.map +1 -1
- package/dist/commonjs/operations/metadataSchemas.js +23 -39
- package/dist/commonjs/operations/metadataSchemas.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/services.js +56 -84
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/operations/workspaces.js +23 -39
- package/dist/commonjs/operations/workspaces.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/azureAPICenter.js +22 -5
- package/dist/esm/azureAPICenter.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +52 -21
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/apiDefinitions.js +45 -52
- package/dist/esm/operations/apiDefinitions.js.map +1 -1
- package/dist/esm/operations/apiVersions.js +23 -40
- package/dist/esm/operations/apiVersions.js.map +1 -1
- package/dist/esm/operations/apis.js +23 -40
- package/dist/esm/operations/apis.js.map +1 -1
- package/dist/esm/operations/deployments.js +23 -40
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/environments.js +23 -40
- package/dist/esm/operations/environments.js.map +1 -1
- package/dist/esm/operations/metadataSchemas.js +23 -40
- package/dist/esm/operations/metadataSchemas.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/services.js +56 -85
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/operations/workspaces.js +23 -40
- package/dist/esm/operations/workspaces.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class AzureAPICenter extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the AzureAPICenter class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ class AzureAPICenter extends coreClient.ServiceClient {
|
|
|
20
23
|
* @param options The parameter options
|
|
21
24
|
*/
|
|
22
25
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
-
var _a, _b, _c;
|
|
24
26
|
if (credentials === undefined) {
|
|
25
27
|
throw new Error("'credentials' cannot be null");
|
|
26
28
|
}
|
|
@@ -39,12 +41,17 @@ class AzureAPICenter extends coreClient.ServiceClient {
|
|
|
39
41
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
42
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
43
|
: `${packageDetails}`;
|
|
42
|
-
const optionsWithDefaults =
|
|
44
|
+
const optionsWithDefaults = {
|
|
45
|
+
...defaults,
|
|
46
|
+
...options,
|
|
47
|
+
userAgentOptions: {
|
|
43
48
|
userAgentPrefix,
|
|
44
|
-
},
|
|
49
|
+
},
|
|
50
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
51
|
+
};
|
|
45
52
|
super(optionsWithDefaults);
|
|
46
53
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
54
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
55
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
56
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
57
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -58,7 +65,8 @@ class AzureAPICenter extends coreClient.ServiceClient {
|
|
|
58
65
|
});
|
|
59
66
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
67
|
credential: credentials,
|
|
61
|
-
scopes:
|
|
68
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
62
70
|
challengeCallbacks: {
|
|
63
71
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
64
72
|
},
|
|
@@ -105,6 +113,15 @@ class AzureAPICenter extends coreClient.ServiceClient {
|
|
|
105
113
|
};
|
|
106
114
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
107
115
|
}
|
|
116
|
+
operations;
|
|
117
|
+
services;
|
|
118
|
+
metadataSchemas;
|
|
119
|
+
workspaces;
|
|
120
|
+
apis;
|
|
121
|
+
deployments;
|
|
122
|
+
apiVersions;
|
|
123
|
+
apiDefinitions;
|
|
124
|
+
environments;
|
|
108
125
|
}
|
|
109
126
|
exports.AzureAPICenter = AzureAPICenter;
|
|
110
127
|
//# sourceMappingURL=azureAPICenter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureAPICenter.js","sourceRoot":"","sources":["../../src/azureAPICenter.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,cAAe,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"azureAPICenter.js","sourceRoot":"","sources":["../../src/azureAPICenter.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,cAAe,SAAQ,UAAU,CAAC,aAAa;IAC1D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAsC;QAEtC,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,GAAiC;YAC7C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8BAA8B,CAAC;QACtD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,E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AK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;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;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,UAAU,CAAa;IACvB,IAAI,CAAO;IACX,WAAW,CAAc;IACzB,WAAW,CAAc;IACzB,cAAc,CAAiB;IAC/B,YAAY,CAAe;CAC5B;AAxID,wCAwIC","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 OperationsImpl,\n ServicesImpl,\n MetadataSchemasImpl,\n WorkspacesImpl,\n ApisImpl,\n DeploymentsImpl,\n ApiVersionsImpl,\n ApiDefinitionsImpl,\n EnvironmentsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Services,\n MetadataSchemas,\n Workspaces,\n Apis,\n Deployments,\n ApiVersions,\n ApiDefinitions,\n Environments,\n} from \"./operationsInterfaces/index.js\";\nimport { AzureAPICenterOptionalParams } from \"./models/index.js\";\n\nexport class AzureAPICenter extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureAPICenter 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?: AzureAPICenterOptionalParams,\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: AzureAPICenterOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-apicenter/1.0.1`;\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 || \"2024-03-01\";\n this.operations = new OperationsImpl(this);\n this.services = new ServicesImpl(this);\n this.metadataSchemas = new MetadataSchemasImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.apis = new ApisImpl(this);\n this.deployments = new DeploymentsImpl(this);\n this.apiVersions = new ApiVersionsImpl(this);\n this.apiDefinitions = new ApiDefinitionsImpl(this);\n this.environments = new EnvironmentsImpl(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 operations: Operations;\n services: Services;\n metadataSchemas: MetadataSchemas;\n workspaces: Workspaces;\n apis: Apis;\n deployments: Deployments;\n apiVersions: ApiVersions;\n apiDefinitions: ApiDefinitions;\n environments: Environments;\n}\n"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLroSpec = createLroSpec;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
function createLroSpec(inputs) {
|
|
6
5
|
const { args, spec, sendOperationFn } = inputs;
|
|
7
6
|
return {
|
|
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
|
|
|
9
8
|
requestPath: spec.path,
|
|
10
9
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
11
10
|
sendPollRequest: (path, options) => {
|
|
12
|
-
const { requestBody
|
|
13
|
-
return sendOperationFn(args,
|
|
11
|
+
const { requestBody, ...restSpec } = spec;
|
|
12
|
+
return sendOperationFn(args, {
|
|
13
|
+
...restSpec,
|
|
14
|
+
httpMethod: "GET",
|
|
15
|
+
path,
|
|
16
|
+
abortSignal: options?.abortSignal,
|
|
17
|
+
});
|
|
14
18
|
},
|
|
15
19
|
};
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -1292,136 +1292,167 @@ exports.TrackedResource = {
|
|
|
1292
1292
|
type: {
|
|
1293
1293
|
name: "Composite",
|
|
1294
1294
|
className: "TrackedResource",
|
|
1295
|
-
modelProperties:
|
|
1295
|
+
modelProperties: {
|
|
1296
|
+
...exports.Resource.type.modelProperties,
|
|
1297
|
+
tags: {
|
|
1296
1298
|
serializedName: "tags",
|
|
1297
1299
|
type: {
|
|
1298
1300
|
name: "Dictionary",
|
|
1299
1301
|
value: { type: { name: "String" } },
|
|
1300
1302
|
},
|
|
1301
|
-
},
|
|
1303
|
+
},
|
|
1304
|
+
location: {
|
|
1302
1305
|
serializedName: "location",
|
|
1303
1306
|
required: true,
|
|
1304
1307
|
type: {
|
|
1305
1308
|
name: "String",
|
|
1306
1309
|
},
|
|
1307
|
-
}
|
|
1310
|
+
},
|
|
1311
|
+
},
|
|
1308
1312
|
},
|
|
1309
1313
|
};
|
|
1310
1314
|
exports.ProxyResource = {
|
|
1311
1315
|
type: {
|
|
1312
1316
|
name: "Composite",
|
|
1313
1317
|
className: "ProxyResource",
|
|
1314
|
-
modelProperties:
|
|
1318
|
+
modelProperties: {
|
|
1319
|
+
...exports.Resource.type.modelProperties,
|
|
1320
|
+
},
|
|
1315
1321
|
},
|
|
1316
1322
|
};
|
|
1317
1323
|
exports.Service = {
|
|
1318
1324
|
type: {
|
|
1319
1325
|
name: "Composite",
|
|
1320
1326
|
className: "Service",
|
|
1321
|
-
modelProperties:
|
|
1327
|
+
modelProperties: {
|
|
1328
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1329
|
+
properties: {
|
|
1322
1330
|
serializedName: "properties",
|
|
1323
1331
|
type: {
|
|
1324
1332
|
name: "Composite",
|
|
1325
1333
|
className: "ServiceProperties",
|
|
1326
1334
|
},
|
|
1327
|
-
},
|
|
1335
|
+
},
|
|
1336
|
+
identity: {
|
|
1328
1337
|
serializedName: "identity",
|
|
1329
1338
|
type: {
|
|
1330
1339
|
name: "Composite",
|
|
1331
1340
|
className: "ManagedServiceIdentity",
|
|
1332
1341
|
},
|
|
1333
|
-
}
|
|
1342
|
+
},
|
|
1343
|
+
},
|
|
1334
1344
|
},
|
|
1335
1345
|
};
|
|
1336
1346
|
exports.MetadataSchema = {
|
|
1337
1347
|
type: {
|
|
1338
1348
|
name: "Composite",
|
|
1339
1349
|
className: "MetadataSchema",
|
|
1340
|
-
modelProperties:
|
|
1350
|
+
modelProperties: {
|
|
1351
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1352
|
+
properties: {
|
|
1341
1353
|
serializedName: "properties",
|
|
1342
1354
|
type: {
|
|
1343
1355
|
name: "Composite",
|
|
1344
1356
|
className: "MetadataSchemaProperties",
|
|
1345
1357
|
},
|
|
1346
|
-
}
|
|
1358
|
+
},
|
|
1359
|
+
},
|
|
1347
1360
|
},
|
|
1348
1361
|
};
|
|
1349
1362
|
exports.Workspace = {
|
|
1350
1363
|
type: {
|
|
1351
1364
|
name: "Composite",
|
|
1352
1365
|
className: "Workspace",
|
|
1353
|
-
modelProperties:
|
|
1366
|
+
modelProperties: {
|
|
1367
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1368
|
+
properties: {
|
|
1354
1369
|
serializedName: "properties",
|
|
1355
1370
|
type: {
|
|
1356
1371
|
name: "Composite",
|
|
1357
1372
|
className: "WorkspaceProperties",
|
|
1358
1373
|
},
|
|
1359
|
-
}
|
|
1374
|
+
},
|
|
1375
|
+
},
|
|
1360
1376
|
},
|
|
1361
1377
|
};
|
|
1362
1378
|
exports.Api = {
|
|
1363
1379
|
type: {
|
|
1364
1380
|
name: "Composite",
|
|
1365
1381
|
className: "Api",
|
|
1366
|
-
modelProperties:
|
|
1382
|
+
modelProperties: {
|
|
1383
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1384
|
+
properties: {
|
|
1367
1385
|
serializedName: "properties",
|
|
1368
1386
|
type: {
|
|
1369
1387
|
name: "Composite",
|
|
1370
1388
|
className: "ApiProperties",
|
|
1371
1389
|
},
|
|
1372
|
-
}
|
|
1390
|
+
},
|
|
1391
|
+
},
|
|
1373
1392
|
},
|
|
1374
1393
|
};
|
|
1375
1394
|
exports.Deployment = {
|
|
1376
1395
|
type: {
|
|
1377
1396
|
name: "Composite",
|
|
1378
1397
|
className: "Deployment",
|
|
1379
|
-
modelProperties:
|
|
1398
|
+
modelProperties: {
|
|
1399
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1400
|
+
properties: {
|
|
1380
1401
|
serializedName: "properties",
|
|
1381
1402
|
type: {
|
|
1382
1403
|
name: "Composite",
|
|
1383
1404
|
className: "DeploymentProperties",
|
|
1384
1405
|
},
|
|
1385
|
-
}
|
|
1406
|
+
},
|
|
1407
|
+
},
|
|
1386
1408
|
},
|
|
1387
1409
|
};
|
|
1388
1410
|
exports.ApiVersion = {
|
|
1389
1411
|
type: {
|
|
1390
1412
|
name: "Composite",
|
|
1391
1413
|
className: "ApiVersion",
|
|
1392
|
-
modelProperties:
|
|
1414
|
+
modelProperties: {
|
|
1415
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1416
|
+
properties: {
|
|
1393
1417
|
serializedName: "properties",
|
|
1394
1418
|
type: {
|
|
1395
1419
|
name: "Composite",
|
|
1396
1420
|
className: "ApiVersionProperties",
|
|
1397
1421
|
},
|
|
1398
|
-
}
|
|
1422
|
+
},
|
|
1423
|
+
},
|
|
1399
1424
|
},
|
|
1400
1425
|
};
|
|
1401
1426
|
exports.ApiDefinition = {
|
|
1402
1427
|
type: {
|
|
1403
1428
|
name: "Composite",
|
|
1404
1429
|
className: "ApiDefinition",
|
|
1405
|
-
modelProperties:
|
|
1430
|
+
modelProperties: {
|
|
1431
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1432
|
+
properties: {
|
|
1406
1433
|
serializedName: "properties",
|
|
1407
1434
|
type: {
|
|
1408
1435
|
name: "Composite",
|
|
1409
1436
|
className: "ApiDefinitionProperties",
|
|
1410
1437
|
},
|
|
1411
|
-
}
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
1412
1440
|
},
|
|
1413
1441
|
};
|
|
1414
1442
|
exports.Environment = {
|
|
1415
1443
|
type: {
|
|
1416
1444
|
name: "Composite",
|
|
1417
1445
|
className: "Environment",
|
|
1418
|
-
modelProperties:
|
|
1446
|
+
modelProperties: {
|
|
1447
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1448
|
+
properties: {
|
|
1419
1449
|
serializedName: "properties",
|
|
1420
1450
|
type: {
|
|
1421
1451
|
name: "Composite",
|
|
1422
1452
|
className: "EnvironmentProperties",
|
|
1423
1453
|
},
|
|
1424
|
-
}
|
|
1454
|
+
},
|
|
1455
|
+
},
|
|
1425
1456
|
},
|
|
1426
1457
|
};
|
|
1427
1458
|
exports.ServicesExportMetadataSchemaHeaders = {
|