@azure/arm-deviceupdate 1.2.1-alpha.20250717.1 → 1.2.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/browser/deviceUpdate.js +19 -5
- package/dist/browser/deviceUpdate.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +85 -37
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accounts.js +78 -97
- package/dist/browser/operations/accounts.js.map +1 -1
- package/dist/browser/operations/instances.js +45 -52
- package/dist/browser/operations/instances.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/privateEndpointConnectionProxies.js +32 -39
- package/dist/browser/operations/privateEndpointConnectionProxies.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/deviceUpdate.js +19 -5
- package/dist/commonjs/deviceUpdate.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 +85 -37
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accounts.js +78 -96
- package/dist/commonjs/operations/accounts.js.map +1 -1
- package/dist/commonjs/operations/instances.js +45 -51
- package/dist/commonjs/operations/instances.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/privateEndpointConnectionProxies.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnectionProxies.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.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 +11 -11
- package/dist/esm/deviceUpdate.js +19 -5
- package/dist/esm/deviceUpdate.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 +85 -37
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accounts.js +78 -97
- package/dist/esm/operations/accounts.js.map +1 -1
- package/dist/esm/operations/instances.js +45 -52
- package/dist/esm/operations/instances.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/privateEndpointConnectionProxies.js +32 -39
- package/dist/esm/operations/privateEndpointConnectionProxies.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/deviceUpdate.js +19 -5
- package/dist/react-native/deviceUpdate.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 +85 -37
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accounts.js +78 -97
- package/dist/react-native/operations/accounts.js.map +1 -1
- package/dist/react-native/operations/instances.js +45 -52
- package/dist/react-native/operations/instances.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/privateEndpointConnectionProxies.js +32 -39
- package/dist/react-native/operations/privateEndpointConnectionProxies.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-deviceupdate-node.api.md +795 -795
|
@@ -11,6 +11,9 @@ import { AccountsImpl, InstancesImpl, PrivateEndpointConnectionsImpl, PrivateLin
|
|
|
11
11
|
import * as Parameters from "./models/parameters.js";
|
|
12
12
|
import * as Mappers from "./models/mappers.js";
|
|
13
13
|
export class DeviceUpdate extends coreClient.ServiceClient {
|
|
14
|
+
$host;
|
|
15
|
+
apiVersion;
|
|
16
|
+
subscriptionId;
|
|
14
17
|
/**
|
|
15
18
|
* Initializes a new instance of the DeviceUpdate class.
|
|
16
19
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -18,7 +21,6 @@ export class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
18
21
|
* @param options The parameter options
|
|
19
22
|
*/
|
|
20
23
|
constructor(credentials, subscriptionId, options) {
|
|
21
|
-
var _a, _b, _c;
|
|
22
24
|
if (credentials === undefined) {
|
|
23
25
|
throw new Error("'credentials' cannot be null");
|
|
24
26
|
}
|
|
@@ -37,12 +39,17 @@ export class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
37
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
41
|
: `${packageDetails}`;
|
|
40
|
-
const optionsWithDefaults =
|
|
42
|
+
const optionsWithDefaults = {
|
|
43
|
+
...defaults,
|
|
44
|
+
...options,
|
|
45
|
+
userAgentOptions: {
|
|
41
46
|
userAgentPrefix
|
|
42
|
-
},
|
|
47
|
+
},
|
|
48
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
49
|
+
};
|
|
43
50
|
super(optionsWithDefaults);
|
|
44
51
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
45
|
-
if (
|
|
52
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
53
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
54
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
48
55
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -56,7 +63,8 @@ export class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
56
63
|
});
|
|
57
64
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
58
65
|
credential: credentials,
|
|
59
|
-
scopes:
|
|
66
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
67
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
60
68
|
challengeCallbacks: {
|
|
61
69
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
62
70
|
}
|
|
@@ -108,6 +116,12 @@ export class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
108
116
|
checkNameAvailability(request, options) {
|
|
109
117
|
return this.sendOperationRequest({ request, options }, checkNameAvailabilityOperationSpec);
|
|
110
118
|
}
|
|
119
|
+
accounts;
|
|
120
|
+
instances;
|
|
121
|
+
privateEndpointConnections;
|
|
122
|
+
privateLinkResources;
|
|
123
|
+
privateEndpointConnectionProxies;
|
|
124
|
+
operations;
|
|
111
125
|
}
|
|
112
126
|
// Operation Specifications
|
|
113
127
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK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C;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,qBAAqB,CACnB,OAAqC,EACrC,OAA6C;QAE7C,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,OAAO,EAAE,EACpB,kCAAkC,CACnC,CAAC;IACJ,CAAC;CAQF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EACF,wFAAwF;IAC1F,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,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\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 AccountsImpl,\n InstancesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionProxiesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Accounts,\n Instances,\n PrivateEndpointConnections,\n PrivateLinkResources,\n PrivateEndpointConnectionProxies,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DeviceUpdateOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse\n} from \"./models/index.js\";\n\nexport class DeviceUpdate extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DeviceUpdate class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DeviceUpdateOptionalParams\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: DeviceUpdateOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceupdate/1.2.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[] = 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-07-01\";\n this.accounts = new AccountsImpl(this);\n this.instances = new InstancesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnectionProxies = new PrivateEndpointConnectionProxiesImpl(\n this\n );\n this.operations = new OperationsImpl(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 /**\n * Checks ADU resource name availability.\n * @param request Check Name Availability Request.\n * @param options The options parameters.\n */\n checkNameAvailability(\n request: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { request, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n accounts: Accounts;\n instances: Instances;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnectionProxies: PrivateEndpointConnectionProxies;\n operations: Operations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,8BAA8B,EAC9B,wBAAwB,EACxB,oCAAoC,EACpC,cAAc,EACf,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,OAAO,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAA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;IACrB,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;IAC3C,gCAAgC,CAAmC;IACnE,UAAU,CAAa;CACxB;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EACF,wFAAwF;IAC1F,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,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\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 AccountsImpl,\n InstancesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionProxiesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Accounts,\n Instances,\n PrivateEndpointConnections,\n PrivateLinkResources,\n PrivateEndpointConnectionProxies,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DeviceUpdateOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse\n} from \"./models/index.js\";\n\nexport class DeviceUpdate extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DeviceUpdate class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DeviceUpdateOptionalParams\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: DeviceUpdateOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceupdate/1.2.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[] = 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-07-01\";\n this.accounts = new AccountsImpl(this);\n this.instances = new InstancesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnectionProxies = new PrivateEndpointConnectionProxiesImpl(\n this\n );\n this.operations = new OperationsImpl(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 /**\n * Checks ADU resource name availability.\n * @param request Check Name Availability Request.\n * @param options The options parameters.\n */\n checkNameAvailability(\n request: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { request, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n accounts: Accounts;\n instances: Instances;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnectionProxies: PrivateEndpointConnectionProxies;\n operations: Operations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
package/dist/browser/lroImpl.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
export function createLroSpec(inputs) {
|
|
3
2
|
const { args, spec, sendOperationFn } = inputs;
|
|
4
3
|
return {
|
|
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
|
|
|
6
5
|
requestPath: spec.path,
|
|
7
6
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8
7
|
sendPollRequest: (path, options) => {
|
|
9
|
-
const { requestBody
|
|
10
|
-
return sendOperationFn(args,
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
11
15
|
}
|
|
12
16
|
};
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,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"]}
|
|
@@ -1034,19 +1034,23 @@ export const PrivateEndpointConnection = {
|
|
|
1034
1034
|
type: {
|
|
1035
1035
|
name: "Composite",
|
|
1036
1036
|
className: "PrivateEndpointConnection",
|
|
1037
|
-
modelProperties:
|
|
1037
|
+
modelProperties: {
|
|
1038
|
+
...Resource.type.modelProperties,
|
|
1039
|
+
privateEndpoint: {
|
|
1038
1040
|
serializedName: "properties.privateEndpoint",
|
|
1039
1041
|
type: {
|
|
1040
1042
|
name: "Composite",
|
|
1041
1043
|
className: "PrivateEndpoint"
|
|
1042
1044
|
}
|
|
1043
|
-
},
|
|
1045
|
+
},
|
|
1046
|
+
privateLinkServiceConnectionState: {
|
|
1044
1047
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
1045
1048
|
type: {
|
|
1046
1049
|
name: "Composite",
|
|
1047
1050
|
className: "PrivateLinkServiceConnectionState"
|
|
1048
1051
|
}
|
|
1049
|
-
},
|
|
1052
|
+
},
|
|
1053
|
+
groupIds: {
|
|
1050
1054
|
serializedName: "properties.groupIds",
|
|
1051
1055
|
type: {
|
|
1052
1056
|
name: "Sequence",
|
|
@@ -1056,121 +1060,148 @@ export const PrivateEndpointConnection = {
|
|
|
1056
1060
|
}
|
|
1057
1061
|
}
|
|
1058
1062
|
}
|
|
1059
|
-
},
|
|
1063
|
+
},
|
|
1064
|
+
provisioningState: {
|
|
1060
1065
|
serializedName: "properties.provisioningState",
|
|
1061
1066
|
readOnly: true,
|
|
1062
1067
|
type: {
|
|
1063
1068
|
name: "String"
|
|
1064
1069
|
}
|
|
1065
|
-
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1066
1072
|
}
|
|
1067
1073
|
};
|
|
1068
1074
|
export const TrackedResource = {
|
|
1069
1075
|
type: {
|
|
1070
1076
|
name: "Composite",
|
|
1071
1077
|
className: "TrackedResource",
|
|
1072
|
-
modelProperties:
|
|
1078
|
+
modelProperties: {
|
|
1079
|
+
...Resource.type.modelProperties,
|
|
1080
|
+
tags: {
|
|
1073
1081
|
serializedName: "tags",
|
|
1074
1082
|
type: {
|
|
1075
1083
|
name: "Dictionary",
|
|
1076
1084
|
value: { type: { name: "String" } }
|
|
1077
1085
|
}
|
|
1078
|
-
},
|
|
1086
|
+
},
|
|
1087
|
+
location: {
|
|
1079
1088
|
serializedName: "location",
|
|
1080
1089
|
required: true,
|
|
1081
1090
|
type: {
|
|
1082
1091
|
name: "String"
|
|
1083
1092
|
}
|
|
1084
|
-
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1085
1095
|
}
|
|
1086
1096
|
};
|
|
1087
1097
|
export const ProxyResource = {
|
|
1088
1098
|
type: {
|
|
1089
1099
|
name: "Composite",
|
|
1090
1100
|
className: "ProxyResource",
|
|
1091
|
-
modelProperties:
|
|
1101
|
+
modelProperties: {
|
|
1102
|
+
...Resource.type.modelProperties
|
|
1103
|
+
}
|
|
1092
1104
|
}
|
|
1093
1105
|
};
|
|
1094
1106
|
export const AccountUpdate = {
|
|
1095
1107
|
type: {
|
|
1096
1108
|
name: "Composite",
|
|
1097
1109
|
className: "AccountUpdate",
|
|
1098
|
-
modelProperties:
|
|
1110
|
+
modelProperties: {
|
|
1111
|
+
...TagUpdate.type.modelProperties,
|
|
1112
|
+
identity: {
|
|
1099
1113
|
serializedName: "identity",
|
|
1100
1114
|
type: {
|
|
1101
1115
|
name: "Composite",
|
|
1102
1116
|
className: "ManagedServiceIdentity"
|
|
1103
1117
|
}
|
|
1104
|
-
},
|
|
1118
|
+
},
|
|
1119
|
+
location: {
|
|
1105
1120
|
serializedName: "location",
|
|
1106
1121
|
type: {
|
|
1107
1122
|
name: "String"
|
|
1108
1123
|
}
|
|
1109
|
-
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1110
1126
|
}
|
|
1111
1127
|
};
|
|
1112
1128
|
export const GroupInformationProperties = {
|
|
1113
1129
|
type: {
|
|
1114
1130
|
name: "Composite",
|
|
1115
1131
|
className: "GroupInformationProperties",
|
|
1116
|
-
modelProperties:
|
|
1132
|
+
modelProperties: {
|
|
1133
|
+
...PrivateLinkResourceProperties.type.modelProperties,
|
|
1134
|
+
provisioningState: {
|
|
1117
1135
|
serializedName: "provisioningState",
|
|
1118
1136
|
readOnly: true,
|
|
1119
1137
|
type: {
|
|
1120
1138
|
name: "String"
|
|
1121
1139
|
}
|
|
1122
|
-
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1123
1142
|
}
|
|
1124
1143
|
};
|
|
1125
1144
|
export const PrivateEndpointConnectionProxy = {
|
|
1126
1145
|
type: {
|
|
1127
1146
|
name: "Composite",
|
|
1128
1147
|
className: "PrivateEndpointConnectionProxy",
|
|
1129
|
-
modelProperties:
|
|
1148
|
+
modelProperties: {
|
|
1149
|
+
...ProxyResource.type.modelProperties,
|
|
1150
|
+
...PrivateEndpointConnectionProxyProperties.type.modelProperties,
|
|
1151
|
+
provisioningState: {
|
|
1130
1152
|
serializedName: "properties.provisioningState",
|
|
1131
1153
|
readOnly: true,
|
|
1132
1154
|
type: {
|
|
1133
1155
|
name: "String"
|
|
1134
1156
|
}
|
|
1135
|
-
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1136
1159
|
}
|
|
1137
1160
|
};
|
|
1138
1161
|
export const PrivateLinkServiceProxyRemotePrivateEndpointConnection = {
|
|
1139
1162
|
type: {
|
|
1140
1163
|
name: "Composite",
|
|
1141
1164
|
className: "PrivateLinkServiceProxyRemotePrivateEndpointConnection",
|
|
1142
|
-
modelProperties:
|
|
1165
|
+
modelProperties: {
|
|
1166
|
+
...RemotePrivateEndpointConnection.type.modelProperties
|
|
1167
|
+
}
|
|
1143
1168
|
}
|
|
1144
1169
|
};
|
|
1145
1170
|
export const Account = {
|
|
1146
1171
|
type: {
|
|
1147
1172
|
name: "Composite",
|
|
1148
1173
|
className: "Account",
|
|
1149
|
-
modelProperties:
|
|
1174
|
+
modelProperties: {
|
|
1175
|
+
...TrackedResource.type.modelProperties,
|
|
1176
|
+
identity: {
|
|
1150
1177
|
serializedName: "identity",
|
|
1151
1178
|
type: {
|
|
1152
1179
|
name: "Composite",
|
|
1153
1180
|
className: "ManagedServiceIdentity"
|
|
1154
1181
|
}
|
|
1155
|
-
},
|
|
1182
|
+
},
|
|
1183
|
+
provisioningState: {
|
|
1156
1184
|
serializedName: "properties.provisioningState",
|
|
1157
1185
|
readOnly: true,
|
|
1158
1186
|
type: {
|
|
1159
1187
|
name: "String"
|
|
1160
1188
|
}
|
|
1161
|
-
},
|
|
1189
|
+
},
|
|
1190
|
+
hostName: {
|
|
1162
1191
|
serializedName: "properties.hostName",
|
|
1163
1192
|
readOnly: true,
|
|
1164
1193
|
type: {
|
|
1165
1194
|
name: "String"
|
|
1166
1195
|
}
|
|
1167
|
-
},
|
|
1196
|
+
},
|
|
1197
|
+
publicNetworkAccess: {
|
|
1168
1198
|
defaultValue: "Enabled",
|
|
1169
1199
|
serializedName: "properties.publicNetworkAccess",
|
|
1170
1200
|
type: {
|
|
1171
1201
|
name: "String"
|
|
1172
1202
|
}
|
|
1173
|
-
},
|
|
1203
|
+
},
|
|
1204
|
+
privateEndpointConnections: {
|
|
1174
1205
|
serializedName: "properties.privateEndpointConnections",
|
|
1175
1206
|
type: {
|
|
1176
1207
|
name: "Sequence",
|
|
@@ -1181,19 +1212,22 @@ export const Account = {
|
|
|
1181
1212
|
}
|
|
1182
1213
|
}
|
|
1183
1214
|
}
|
|
1184
|
-
},
|
|
1215
|
+
},
|
|
1216
|
+
sku: {
|
|
1185
1217
|
defaultValue: "Standard",
|
|
1186
1218
|
serializedName: "properties.sku",
|
|
1187
1219
|
type: {
|
|
1188
1220
|
name: "String"
|
|
1189
1221
|
}
|
|
1190
|
-
},
|
|
1222
|
+
},
|
|
1223
|
+
encryption: {
|
|
1191
1224
|
serializedName: "properties.encryption",
|
|
1192
1225
|
type: {
|
|
1193
1226
|
name: "Composite",
|
|
1194
1227
|
className: "Encryption"
|
|
1195
1228
|
}
|
|
1196
|
-
},
|
|
1229
|
+
},
|
|
1230
|
+
locations: {
|
|
1197
1231
|
serializedName: "properties.locations",
|
|
1198
1232
|
readOnly: true,
|
|
1199
1233
|
type: {
|
|
@@ -1205,26 +1239,31 @@ export const Account = {
|
|
|
1205
1239
|
}
|
|
1206
1240
|
}
|
|
1207
1241
|
}
|
|
1208
|
-
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1209
1244
|
}
|
|
1210
1245
|
};
|
|
1211
1246
|
export const Instance = {
|
|
1212
1247
|
type: {
|
|
1213
1248
|
name: "Composite",
|
|
1214
1249
|
className: "Instance",
|
|
1215
|
-
modelProperties:
|
|
1250
|
+
modelProperties: {
|
|
1251
|
+
...TrackedResource.type.modelProperties,
|
|
1252
|
+
provisioningState: {
|
|
1216
1253
|
serializedName: "properties.provisioningState",
|
|
1217
1254
|
readOnly: true,
|
|
1218
1255
|
type: {
|
|
1219
1256
|
name: "String"
|
|
1220
1257
|
}
|
|
1221
|
-
},
|
|
1258
|
+
},
|
|
1259
|
+
accountName: {
|
|
1222
1260
|
serializedName: "properties.accountName",
|
|
1223
1261
|
readOnly: true,
|
|
1224
1262
|
type: {
|
|
1225
1263
|
name: "String"
|
|
1226
1264
|
}
|
|
1227
|
-
},
|
|
1265
|
+
},
|
|
1266
|
+
iotHubs: {
|
|
1228
1267
|
serializedName: "properties.iotHubs",
|
|
1229
1268
|
type: {
|
|
1230
1269
|
name: "Sequence",
|
|
@@ -1235,31 +1274,37 @@ export const Instance = {
|
|
|
1235
1274
|
}
|
|
1236
1275
|
}
|
|
1237
1276
|
}
|
|
1238
|
-
},
|
|
1277
|
+
},
|
|
1278
|
+
enableDiagnostics: {
|
|
1239
1279
|
serializedName: "properties.enableDiagnostics",
|
|
1240
1280
|
type: {
|
|
1241
1281
|
name: "Boolean"
|
|
1242
1282
|
}
|
|
1243
|
-
},
|
|
1283
|
+
},
|
|
1284
|
+
diagnosticStorageProperties: {
|
|
1244
1285
|
serializedName: "properties.diagnosticStorageProperties",
|
|
1245
1286
|
type: {
|
|
1246
1287
|
name: "Composite",
|
|
1247
1288
|
className: "DiagnosticStorageProperties"
|
|
1248
1289
|
}
|
|
1249
|
-
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1250
1292
|
}
|
|
1251
1293
|
};
|
|
1252
1294
|
export const GroupInformation = {
|
|
1253
1295
|
type: {
|
|
1254
1296
|
name: "Composite",
|
|
1255
1297
|
className: "GroupInformation",
|
|
1256
|
-
modelProperties:
|
|
1298
|
+
modelProperties: {
|
|
1299
|
+
...ProxyResource.type.modelProperties,
|
|
1300
|
+
groupId: {
|
|
1257
1301
|
serializedName: "properties.groupId",
|
|
1258
1302
|
readOnly: true,
|
|
1259
1303
|
type: {
|
|
1260
1304
|
name: "String"
|
|
1261
1305
|
}
|
|
1262
|
-
},
|
|
1306
|
+
},
|
|
1307
|
+
requiredMembers: {
|
|
1263
1308
|
serializedName: "properties.requiredMembers",
|
|
1264
1309
|
readOnly: true,
|
|
1265
1310
|
type: {
|
|
@@ -1270,7 +1315,8 @@ export const GroupInformation = {
|
|
|
1270
1315
|
}
|
|
1271
1316
|
}
|
|
1272
1317
|
}
|
|
1273
|
-
},
|
|
1318
|
+
},
|
|
1319
|
+
requiredZoneNames: {
|
|
1274
1320
|
serializedName: "properties.requiredZoneNames",
|
|
1275
1321
|
type: {
|
|
1276
1322
|
name: "Sequence",
|
|
@@ -1280,13 +1326,15 @@ export const GroupInformation = {
|
|
|
1280
1326
|
}
|
|
1281
1327
|
}
|
|
1282
1328
|
}
|
|
1283
|
-
},
|
|
1329
|
+
},
|
|
1330
|
+
provisioningState: {
|
|
1284
1331
|
serializedName: "properties.provisioningState",
|
|
1285
1332
|
readOnly: true,
|
|
1286
1333
|
type: {
|
|
1287
1334
|
name: "String"
|
|
1288
1335
|
}
|
|
1289
|
-
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1290
1338
|
}
|
|
1291
1339
|
};
|
|
1292
1340
|
export const AccountsDeleteHeaders = {
|