@azure/arm-springappdiscovery 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.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/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +64 -27
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/errorSummaries.js +23 -40
- package/dist/browser/operations/errorSummaries.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/springbootapps.js +56 -85
- package/dist/browser/operations/springbootapps.js.map +1 -1
- package/dist/browser/operations/springbootservers.js +67 -91
- package/dist/browser/operations/springbootservers.js.map +1 -1
- package/dist/browser/operations/springbootsites.js +78 -97
- package/dist/browser/operations/springbootsites.js.map +1 -1
- package/dist/browser/operations/summaries.js +23 -40
- package/dist/browser/operations/summaries.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/springAppDiscoveryManagementClient.js +19 -5
- package/dist/browser/springAppDiscoveryManagementClient.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 +64 -27
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/errorSummaries.js +23 -39
- package/dist/commonjs/operations/errorSummaries.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/springbootapps.js +56 -84
- package/dist/commonjs/operations/springbootapps.js.map +1 -1
- package/dist/commonjs/operations/springbootservers.js +67 -90
- package/dist/commonjs/operations/springbootservers.js.map +1 -1
- package/dist/commonjs/operations/springbootsites.js +78 -96
- package/dist/commonjs/operations/springbootsites.js.map +1 -1
- package/dist/commonjs/operations/summaries.js +23 -39
- package/dist/commonjs/operations/summaries.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/springAppDiscoveryManagementClient.js +19 -5
- package/dist/commonjs/springAppDiscoveryManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +64 -27
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/errorSummaries.js +23 -40
- package/dist/esm/operations/errorSummaries.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/springbootapps.js +56 -85
- package/dist/esm/operations/springbootapps.js.map +1 -1
- package/dist/esm/operations/springbootservers.js +67 -91
- package/dist/esm/operations/springbootservers.js.map +1 -1
- package/dist/esm/operations/springbootsites.js +78 -97
- package/dist/esm/operations/springbootsites.js.map +1 -1
- package/dist/esm/operations/summaries.js +23 -40
- package/dist/esm/operations/summaries.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/springAppDiscoveryManagementClient.js +19 -5
- package/dist/esm/springAppDiscoveryManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +64 -27
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/errorSummaries.js +23 -40
- package/dist/react-native/operations/errorSummaries.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/springbootapps.js +56 -85
- package/dist/react-native/operations/springbootapps.js.map +1 -1
- package/dist/react-native/operations/springbootservers.js +67 -91
- package/dist/react-native/operations/springbootservers.js.map +1 -1
- package/dist/react-native/operations/springbootsites.js +78 -97
- package/dist/react-native/operations/springbootsites.js.map +1 -1
- package/dist/react-native/operations/summaries.js +23 -40
- package/dist/react-native/operations/summaries.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/springAppDiscoveryManagementClient.js +19 -5
- package/dist/react-native/springAppDiscoveryManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-springappdiscovery.api.md → arm-springappdiscovery-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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 */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { SpringbootsitesImpl, OperationsImpl, SpringbootserversImpl, SpringbootappsImpl, SummariesImpl, ErrorSummariesImpl, } from "./operations/index.js";
|
|
11
11
|
export class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the SpringAppDiscoveryManagementClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +19,6 @@ export class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient
|
|
|
16
19
|
* @param options The parameter options
|
|
17
20
|
*/
|
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
22
|
if (credentials === undefined) {
|
|
21
23
|
throw new Error("'credentials' cannot be null");
|
|
22
24
|
}
|
|
@@ -35,12 +37,17 @@ export class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient
|
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
39
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
39
44
|
userAgentPrefix,
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
47
|
+
};
|
|
41
48
|
super(optionsWithDefaults);
|
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +61,8 @@ export class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient
|
|
|
54
61
|
});
|
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
63
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
66
|
challengeCallbacks: {
|
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
60
68
|
},
|
|
@@ -98,5 +106,11 @@ export class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient
|
|
|
98
106
|
};
|
|
99
107
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
108
|
}
|
|
109
|
+
springbootsites;
|
|
110
|
+
operations;
|
|
111
|
+
springbootservers;
|
|
112
|
+
springbootapps;
|
|
113
|
+
summaries;
|
|
114
|
+
errorSummaries;
|
|
101
115
|
}
|
|
102
116
|
//# sourceMappingURL=springAppDiscoveryManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"springAppDiscoveryManagementClient.js","sourceRoot":"","sources":["../../src/springAppDiscoveryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,kCAAmC,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"springAppDiscoveryManagementClient.js","sourceRoot":"","sources":["../../src/springAppDiscoveryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,kCAAmC,SAAQ,UAAU,CAAC,aAAa;IAC9E,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA0D;QAE1D,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KA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AAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,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,eAAe,CAAkB;IACjC,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,cAAc,CAAiB;IAC/B,SAAS,CAAY;IACrB,cAAc,CAAiB;CAChC","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 SpringbootsitesImpl,\n OperationsImpl,\n SpringbootserversImpl,\n SpringbootappsImpl,\n SummariesImpl,\n ErrorSummariesImpl,\n} from \"./operations/index.js\";\nimport {\n Springbootsites,\n Operations,\n Springbootservers,\n Springbootapps,\n Summaries,\n ErrorSummaries,\n} from \"./operationsInterfaces/index.js\";\nimport { SpringAppDiscoveryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class SpringAppDiscoveryManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SpringAppDiscoveryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SpringAppDiscoveryManagementClientOptionalParams,\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: SpringAppDiscoveryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-springappdiscovery/1.0.0-beta.2`;\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 || \"2023-01-01-preview\";\n this.springbootsites = new SpringbootsitesImpl(this);\n this.operations = new OperationsImpl(this);\n this.springbootservers = new SpringbootserversImpl(this);\n this.springbootapps = new SpringbootappsImpl(this);\n this.summaries = new SummariesImpl(this);\n this.errorSummaries = new ErrorSummariesImpl(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 springbootsites: Springbootsites;\n operations: Operations;\n springbootservers: Springbootservers;\n springbootapps: Springbootapps;\n summaries: Summaries;\n errorSummaries: ErrorSummaries;\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"]}
|
|
@@ -1052,172 +1052,209 @@ exports.TrackedResource = {
|
|
|
1052
1052
|
type: {
|
|
1053
1053
|
name: "Composite",
|
|
1054
1054
|
className: "TrackedResource",
|
|
1055
|
-
modelProperties:
|
|
1055
|
+
modelProperties: {
|
|
1056
|
+
...exports.Resource.type.modelProperties,
|
|
1057
|
+
tags: {
|
|
1056
1058
|
serializedName: "tags",
|
|
1057
1059
|
type: {
|
|
1058
1060
|
name: "Dictionary",
|
|
1059
1061
|
value: { type: { name: "String" } },
|
|
1060
1062
|
},
|
|
1061
|
-
},
|
|
1063
|
+
},
|
|
1064
|
+
location: {
|
|
1062
1065
|
serializedName: "location",
|
|
1063
1066
|
required: true,
|
|
1064
1067
|
type: {
|
|
1065
1068
|
name: "String",
|
|
1066
1069
|
},
|
|
1067
|
-
}
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1068
1072
|
},
|
|
1069
1073
|
};
|
|
1070
1074
|
exports.ProxyResource = {
|
|
1071
1075
|
type: {
|
|
1072
1076
|
name: "Composite",
|
|
1073
1077
|
className: "ProxyResource",
|
|
1074
|
-
modelProperties:
|
|
1078
|
+
modelProperties: {
|
|
1079
|
+
...exports.Resource.type.modelProperties,
|
|
1080
|
+
},
|
|
1075
1081
|
},
|
|
1076
1082
|
};
|
|
1077
1083
|
exports.SpringbootsitesModel = {
|
|
1078
1084
|
type: {
|
|
1079
1085
|
name: "Composite",
|
|
1080
1086
|
className: "SpringbootsitesModel",
|
|
1081
|
-
modelProperties:
|
|
1087
|
+
modelProperties: {
|
|
1088
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1089
|
+
properties: {
|
|
1082
1090
|
serializedName: "properties",
|
|
1083
1091
|
type: {
|
|
1084
1092
|
name: "Composite",
|
|
1085
1093
|
className: "SpringbootsitesProperties",
|
|
1086
1094
|
},
|
|
1087
|
-
},
|
|
1095
|
+
},
|
|
1096
|
+
extendedLocation: {
|
|
1088
1097
|
serializedName: "extendedLocation",
|
|
1089
1098
|
type: {
|
|
1090
1099
|
name: "Composite",
|
|
1091
1100
|
className: "SpringbootsitesModelExtendedLocation",
|
|
1092
1101
|
},
|
|
1093
|
-
}
|
|
1102
|
+
},
|
|
1103
|
+
},
|
|
1094
1104
|
},
|
|
1095
1105
|
};
|
|
1096
1106
|
exports.SpringbootsitesPatch = {
|
|
1097
1107
|
type: {
|
|
1098
1108
|
name: "Composite",
|
|
1099
1109
|
className: "SpringbootsitesPatch",
|
|
1100
|
-
modelProperties:
|
|
1110
|
+
modelProperties: {
|
|
1111
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1112
|
+
properties: {
|
|
1101
1113
|
serializedName: "properties",
|
|
1102
1114
|
type: {
|
|
1103
1115
|
name: "Composite",
|
|
1104
1116
|
className: "SpringbootsitesProperties",
|
|
1105
1117
|
},
|
|
1106
|
-
}
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1107
1120
|
},
|
|
1108
1121
|
};
|
|
1109
1122
|
exports.SpringbootserversModel = {
|
|
1110
1123
|
type: {
|
|
1111
1124
|
name: "Composite",
|
|
1112
1125
|
className: "SpringbootserversModel",
|
|
1113
|
-
modelProperties:
|
|
1126
|
+
modelProperties: {
|
|
1127
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1128
|
+
tags: {
|
|
1114
1129
|
serializedName: "tags",
|
|
1115
1130
|
type: {
|
|
1116
1131
|
name: "Dictionary",
|
|
1117
1132
|
value: { type: { name: "String" } },
|
|
1118
1133
|
},
|
|
1119
|
-
},
|
|
1134
|
+
},
|
|
1135
|
+
properties: {
|
|
1120
1136
|
serializedName: "properties",
|
|
1121
1137
|
type: {
|
|
1122
1138
|
name: "Composite",
|
|
1123
1139
|
className: "SpringbootserversProperties",
|
|
1124
1140
|
},
|
|
1125
|
-
}
|
|
1141
|
+
},
|
|
1142
|
+
},
|
|
1126
1143
|
},
|
|
1127
1144
|
};
|
|
1128
1145
|
exports.SpringbootserversPatch = {
|
|
1129
1146
|
type: {
|
|
1130
1147
|
name: "Composite",
|
|
1131
1148
|
className: "SpringbootserversPatch",
|
|
1132
|
-
modelProperties:
|
|
1149
|
+
modelProperties: {
|
|
1150
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1151
|
+
tags: {
|
|
1133
1152
|
serializedName: "tags",
|
|
1134
1153
|
type: {
|
|
1135
1154
|
name: "Dictionary",
|
|
1136
1155
|
value: { type: { name: "String" } },
|
|
1137
1156
|
},
|
|
1138
|
-
},
|
|
1157
|
+
},
|
|
1158
|
+
properties: {
|
|
1139
1159
|
serializedName: "properties",
|
|
1140
1160
|
type: {
|
|
1141
1161
|
name: "Composite",
|
|
1142
1162
|
className: "SpringbootserversProperties",
|
|
1143
1163
|
},
|
|
1144
|
-
}
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1145
1166
|
},
|
|
1146
1167
|
};
|
|
1147
1168
|
exports.SpringbootappsModel = {
|
|
1148
1169
|
type: {
|
|
1149
1170
|
name: "Composite",
|
|
1150
1171
|
className: "SpringbootappsModel",
|
|
1151
|
-
modelProperties:
|
|
1172
|
+
modelProperties: {
|
|
1173
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1174
|
+
properties: {
|
|
1152
1175
|
serializedName: "properties",
|
|
1153
1176
|
type: {
|
|
1154
1177
|
name: "Composite",
|
|
1155
1178
|
className: "SpringbootappsProperties",
|
|
1156
1179
|
},
|
|
1157
|
-
},
|
|
1180
|
+
},
|
|
1181
|
+
tags: {
|
|
1158
1182
|
serializedName: "tags",
|
|
1159
1183
|
type: {
|
|
1160
1184
|
name: "Dictionary",
|
|
1161
1185
|
value: { type: { name: "String" } },
|
|
1162
1186
|
},
|
|
1163
|
-
}
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1164
1189
|
},
|
|
1165
1190
|
};
|
|
1166
1191
|
exports.SpringbootappsPatch = {
|
|
1167
1192
|
type: {
|
|
1168
1193
|
name: "Composite",
|
|
1169
1194
|
className: "SpringbootappsPatch",
|
|
1170
|
-
modelProperties:
|
|
1195
|
+
modelProperties: {
|
|
1196
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1197
|
+
properties: {
|
|
1171
1198
|
serializedName: "properties",
|
|
1172
1199
|
type: {
|
|
1173
1200
|
name: "Composite",
|
|
1174
1201
|
className: "SpringbootappsProperties",
|
|
1175
1202
|
},
|
|
1176
|
-
},
|
|
1203
|
+
},
|
|
1204
|
+
tags: {
|
|
1177
1205
|
serializedName: "tags",
|
|
1178
1206
|
type: {
|
|
1179
1207
|
name: "Dictionary",
|
|
1180
1208
|
value: { type: { name: "String" } },
|
|
1181
1209
|
},
|
|
1182
|
-
}
|
|
1210
|
+
},
|
|
1211
|
+
},
|
|
1183
1212
|
},
|
|
1184
1213
|
};
|
|
1185
1214
|
exports.Summary = {
|
|
1186
1215
|
type: {
|
|
1187
1216
|
name: "Composite",
|
|
1188
1217
|
className: "Summary",
|
|
1189
|
-
modelProperties:
|
|
1218
|
+
modelProperties: {
|
|
1219
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1220
|
+
properties: {
|
|
1190
1221
|
serializedName: "properties",
|
|
1191
1222
|
type: {
|
|
1192
1223
|
name: "Composite",
|
|
1193
1224
|
className: "SummariesProperties",
|
|
1194
1225
|
},
|
|
1195
|
-
},
|
|
1226
|
+
},
|
|
1227
|
+
tags: {
|
|
1196
1228
|
serializedName: "tags",
|
|
1197
1229
|
type: {
|
|
1198
1230
|
name: "Dictionary",
|
|
1199
1231
|
value: { type: { name: "String" } },
|
|
1200
1232
|
},
|
|
1201
|
-
}
|
|
1233
|
+
},
|
|
1234
|
+
},
|
|
1202
1235
|
},
|
|
1203
1236
|
};
|
|
1204
1237
|
exports.ErrorSummary = {
|
|
1205
1238
|
type: {
|
|
1206
1239
|
name: "Composite",
|
|
1207
1240
|
className: "ErrorSummary",
|
|
1208
|
-
modelProperties:
|
|
1241
|
+
modelProperties: {
|
|
1242
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1243
|
+
properties: {
|
|
1209
1244
|
serializedName: "properties",
|
|
1210
1245
|
type: {
|
|
1211
1246
|
name: "Composite",
|
|
1212
1247
|
className: "ErrorSummariesProperties",
|
|
1213
1248
|
},
|
|
1214
|
-
},
|
|
1249
|
+
},
|
|
1250
|
+
tags: {
|
|
1215
1251
|
serializedName: "tags",
|
|
1216
1252
|
type: {
|
|
1217
1253
|
name: "Dictionary",
|
|
1218
1254
|
value: { type: { name: "String" } },
|
|
1219
1255
|
},
|
|
1220
|
-
}
|
|
1256
|
+
},
|
|
1257
|
+
},
|
|
1221
1258
|
},
|
|
1222
1259
|
};
|
|
1223
1260
|
exports.SpringbootsitesDeleteHeaders = {
|