@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
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -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"]}
|
|
@@ -15,6 +15,9 @@ const index_js_1 = require("./operations/index.js");
|
|
|
15
15
|
const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
|
|
16
16
|
const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
|
|
17
17
|
class DeviceUpdate extends coreClient.ServiceClient {
|
|
18
|
+
$host;
|
|
19
|
+
apiVersion;
|
|
20
|
+
subscriptionId;
|
|
18
21
|
/**
|
|
19
22
|
* Initializes a new instance of the DeviceUpdate class.
|
|
20
23
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -22,7 +25,6 @@ class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
22
25
|
* @param options The parameter options
|
|
23
26
|
*/
|
|
24
27
|
constructor(credentials, subscriptionId, options) {
|
|
25
|
-
var _a, _b, _c;
|
|
26
28
|
if (credentials === undefined) {
|
|
27
29
|
throw new Error("'credentials' cannot be null");
|
|
28
30
|
}
|
|
@@ -41,12 +43,17 @@ class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
41
43
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
42
44
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
43
45
|
: `${packageDetails}`;
|
|
44
|
-
const optionsWithDefaults =
|
|
46
|
+
const optionsWithDefaults = {
|
|
47
|
+
...defaults,
|
|
48
|
+
...options,
|
|
49
|
+
userAgentOptions: {
|
|
45
50
|
userAgentPrefix
|
|
46
|
-
},
|
|
51
|
+
},
|
|
52
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
53
|
+
};
|
|
47
54
|
super(optionsWithDefaults);
|
|
48
55
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
49
|
-
if (
|
|
56
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
50
57
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
51
58
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
52
59
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -60,7 +67,8 @@ class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
60
67
|
});
|
|
61
68
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
62
69
|
credential: credentials,
|
|
63
|
-
scopes:
|
|
70
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
71
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
64
72
|
challengeCallbacks: {
|
|
65
73
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
66
74
|
}
|
|
@@ -112,6 +120,12 @@ class DeviceUpdate extends coreClient.ServiceClient {
|
|
|
112
120
|
checkNameAvailability(request, options) {
|
|
113
121
|
return this.sendOperationRequest({ request, options }, checkNameAvailabilityOperationSpec);
|
|
114
122
|
}
|
|
123
|
+
accounts;
|
|
124
|
+
instances;
|
|
125
|
+
privateEndpointConnections;
|
|
126
|
+
privateLinkResources;
|
|
127
|
+
privateEndpointConnectionProxies;
|
|
128
|
+
operations;
|
|
115
129
|
}
|
|
116
130
|
exports.DeviceUpdate = DeviceUpdate;
|
|
117
131
|
// Operation Specifications
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAO+B;AAS/B,2EAAqD;AACrD,qEAA+C;AAQ/C,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IAKxD;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;;QAEpC,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,IAA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AAU,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,uEAAiD;AACjD,oFAA8D;AAO9D,oDAO+B;AAS/B,2EAAqD;AACrD,qEAA+C;AAQ/C,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;QAEpC,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,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,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,GAAG;YAC1B,GAAG,QAAQ;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IT 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/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"]}
|
|
@@ -1037,19 +1037,23 @@ exports.PrivateEndpointConnection = {
|
|
|
1037
1037
|
type: {
|
|
1038
1038
|
name: "Composite",
|
|
1039
1039
|
className: "PrivateEndpointConnection",
|
|
1040
|
-
modelProperties:
|
|
1040
|
+
modelProperties: {
|
|
1041
|
+
...exports.Resource.type.modelProperties,
|
|
1042
|
+
privateEndpoint: {
|
|
1041
1043
|
serializedName: "properties.privateEndpoint",
|
|
1042
1044
|
type: {
|
|
1043
1045
|
name: "Composite",
|
|
1044
1046
|
className: "PrivateEndpoint"
|
|
1045
1047
|
}
|
|
1046
|
-
},
|
|
1048
|
+
},
|
|
1049
|
+
privateLinkServiceConnectionState: {
|
|
1047
1050
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
1048
1051
|
type: {
|
|
1049
1052
|
name: "Composite",
|
|
1050
1053
|
className: "PrivateLinkServiceConnectionState"
|
|
1051
1054
|
}
|
|
1052
|
-
},
|
|
1055
|
+
},
|
|
1056
|
+
groupIds: {
|
|
1053
1057
|
serializedName: "properties.groupIds",
|
|
1054
1058
|
type: {
|
|
1055
1059
|
name: "Sequence",
|
|
@@ -1059,121 +1063,148 @@ exports.PrivateEndpointConnection = {
|
|
|
1059
1063
|
}
|
|
1060
1064
|
}
|
|
1061
1065
|
}
|
|
1062
|
-
},
|
|
1066
|
+
},
|
|
1067
|
+
provisioningState: {
|
|
1063
1068
|
serializedName: "properties.provisioningState",
|
|
1064
1069
|
readOnly: true,
|
|
1065
1070
|
type: {
|
|
1066
1071
|
name: "String"
|
|
1067
1072
|
}
|
|
1068
|
-
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1069
1075
|
}
|
|
1070
1076
|
};
|
|
1071
1077
|
exports.TrackedResource = {
|
|
1072
1078
|
type: {
|
|
1073
1079
|
name: "Composite",
|
|
1074
1080
|
className: "TrackedResource",
|
|
1075
|
-
modelProperties:
|
|
1081
|
+
modelProperties: {
|
|
1082
|
+
...exports.Resource.type.modelProperties,
|
|
1083
|
+
tags: {
|
|
1076
1084
|
serializedName: "tags",
|
|
1077
1085
|
type: {
|
|
1078
1086
|
name: "Dictionary",
|
|
1079
1087
|
value: { type: { name: "String" } }
|
|
1080
1088
|
}
|
|
1081
|
-
},
|
|
1089
|
+
},
|
|
1090
|
+
location: {
|
|
1082
1091
|
serializedName: "location",
|
|
1083
1092
|
required: true,
|
|
1084
1093
|
type: {
|
|
1085
1094
|
name: "String"
|
|
1086
1095
|
}
|
|
1087
|
-
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1088
1098
|
}
|
|
1089
1099
|
};
|
|
1090
1100
|
exports.ProxyResource = {
|
|
1091
1101
|
type: {
|
|
1092
1102
|
name: "Composite",
|
|
1093
1103
|
className: "ProxyResource",
|
|
1094
|
-
modelProperties:
|
|
1104
|
+
modelProperties: {
|
|
1105
|
+
...exports.Resource.type.modelProperties
|
|
1106
|
+
}
|
|
1095
1107
|
}
|
|
1096
1108
|
};
|
|
1097
1109
|
exports.AccountUpdate = {
|
|
1098
1110
|
type: {
|
|
1099
1111
|
name: "Composite",
|
|
1100
1112
|
className: "AccountUpdate",
|
|
1101
|
-
modelProperties:
|
|
1113
|
+
modelProperties: {
|
|
1114
|
+
...exports.TagUpdate.type.modelProperties,
|
|
1115
|
+
identity: {
|
|
1102
1116
|
serializedName: "identity",
|
|
1103
1117
|
type: {
|
|
1104
1118
|
name: "Composite",
|
|
1105
1119
|
className: "ManagedServiceIdentity"
|
|
1106
1120
|
}
|
|
1107
|
-
},
|
|
1121
|
+
},
|
|
1122
|
+
location: {
|
|
1108
1123
|
serializedName: "location",
|
|
1109
1124
|
type: {
|
|
1110
1125
|
name: "String"
|
|
1111
1126
|
}
|
|
1112
|
-
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1113
1129
|
}
|
|
1114
1130
|
};
|
|
1115
1131
|
exports.GroupInformationProperties = {
|
|
1116
1132
|
type: {
|
|
1117
1133
|
name: "Composite",
|
|
1118
1134
|
className: "GroupInformationProperties",
|
|
1119
|
-
modelProperties:
|
|
1135
|
+
modelProperties: {
|
|
1136
|
+
...exports.PrivateLinkResourceProperties.type.modelProperties,
|
|
1137
|
+
provisioningState: {
|
|
1120
1138
|
serializedName: "provisioningState",
|
|
1121
1139
|
readOnly: true,
|
|
1122
1140
|
type: {
|
|
1123
1141
|
name: "String"
|
|
1124
1142
|
}
|
|
1125
|
-
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1126
1145
|
}
|
|
1127
1146
|
};
|
|
1128
1147
|
exports.PrivateEndpointConnectionProxy = {
|
|
1129
1148
|
type: {
|
|
1130
1149
|
name: "Composite",
|
|
1131
1150
|
className: "PrivateEndpointConnectionProxy",
|
|
1132
|
-
modelProperties:
|
|
1151
|
+
modelProperties: {
|
|
1152
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1153
|
+
...exports.PrivateEndpointConnectionProxyProperties.type.modelProperties,
|
|
1154
|
+
provisioningState: {
|
|
1133
1155
|
serializedName: "properties.provisioningState",
|
|
1134
1156
|
readOnly: true,
|
|
1135
1157
|
type: {
|
|
1136
1158
|
name: "String"
|
|
1137
1159
|
}
|
|
1138
|
-
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1139
1162
|
}
|
|
1140
1163
|
};
|
|
1141
1164
|
exports.PrivateLinkServiceProxyRemotePrivateEndpointConnection = {
|
|
1142
1165
|
type: {
|
|
1143
1166
|
name: "Composite",
|
|
1144
1167
|
className: "PrivateLinkServiceProxyRemotePrivateEndpointConnection",
|
|
1145
|
-
modelProperties:
|
|
1168
|
+
modelProperties: {
|
|
1169
|
+
...exports.RemotePrivateEndpointConnection.type.modelProperties
|
|
1170
|
+
}
|
|
1146
1171
|
}
|
|
1147
1172
|
};
|
|
1148
1173
|
exports.Account = {
|
|
1149
1174
|
type: {
|
|
1150
1175
|
name: "Composite",
|
|
1151
1176
|
className: "Account",
|
|
1152
|
-
modelProperties:
|
|
1177
|
+
modelProperties: {
|
|
1178
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1179
|
+
identity: {
|
|
1153
1180
|
serializedName: "identity",
|
|
1154
1181
|
type: {
|
|
1155
1182
|
name: "Composite",
|
|
1156
1183
|
className: "ManagedServiceIdentity"
|
|
1157
1184
|
}
|
|
1158
|
-
},
|
|
1185
|
+
},
|
|
1186
|
+
provisioningState: {
|
|
1159
1187
|
serializedName: "properties.provisioningState",
|
|
1160
1188
|
readOnly: true,
|
|
1161
1189
|
type: {
|
|
1162
1190
|
name: "String"
|
|
1163
1191
|
}
|
|
1164
|
-
},
|
|
1192
|
+
},
|
|
1193
|
+
hostName: {
|
|
1165
1194
|
serializedName: "properties.hostName",
|
|
1166
1195
|
readOnly: true,
|
|
1167
1196
|
type: {
|
|
1168
1197
|
name: "String"
|
|
1169
1198
|
}
|
|
1170
|
-
},
|
|
1199
|
+
},
|
|
1200
|
+
publicNetworkAccess: {
|
|
1171
1201
|
defaultValue: "Enabled",
|
|
1172
1202
|
serializedName: "properties.publicNetworkAccess",
|
|
1173
1203
|
type: {
|
|
1174
1204
|
name: "String"
|
|
1175
1205
|
}
|
|
1176
|
-
},
|
|
1206
|
+
},
|
|
1207
|
+
privateEndpointConnections: {
|
|
1177
1208
|
serializedName: "properties.privateEndpointConnections",
|
|
1178
1209
|
type: {
|
|
1179
1210
|
name: "Sequence",
|
|
@@ -1184,19 +1215,22 @@ exports.Account = {
|
|
|
1184
1215
|
}
|
|
1185
1216
|
}
|
|
1186
1217
|
}
|
|
1187
|
-
},
|
|
1218
|
+
},
|
|
1219
|
+
sku: {
|
|
1188
1220
|
defaultValue: "Standard",
|
|
1189
1221
|
serializedName: "properties.sku",
|
|
1190
1222
|
type: {
|
|
1191
1223
|
name: "String"
|
|
1192
1224
|
}
|
|
1193
|
-
},
|
|
1225
|
+
},
|
|
1226
|
+
encryption: {
|
|
1194
1227
|
serializedName: "properties.encryption",
|
|
1195
1228
|
type: {
|
|
1196
1229
|
name: "Composite",
|
|
1197
1230
|
className: "Encryption"
|
|
1198
1231
|
}
|
|
1199
|
-
},
|
|
1232
|
+
},
|
|
1233
|
+
locations: {
|
|
1200
1234
|
serializedName: "properties.locations",
|
|
1201
1235
|
readOnly: true,
|
|
1202
1236
|
type: {
|
|
@@ -1208,26 +1242,31 @@ exports.Account = {
|
|
|
1208
1242
|
}
|
|
1209
1243
|
}
|
|
1210
1244
|
}
|
|
1211
|
-
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1212
1247
|
}
|
|
1213
1248
|
};
|
|
1214
1249
|
exports.Instance = {
|
|
1215
1250
|
type: {
|
|
1216
1251
|
name: "Composite",
|
|
1217
1252
|
className: "Instance",
|
|
1218
|
-
modelProperties:
|
|
1253
|
+
modelProperties: {
|
|
1254
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1255
|
+
provisioningState: {
|
|
1219
1256
|
serializedName: "properties.provisioningState",
|
|
1220
1257
|
readOnly: true,
|
|
1221
1258
|
type: {
|
|
1222
1259
|
name: "String"
|
|
1223
1260
|
}
|
|
1224
|
-
},
|
|
1261
|
+
},
|
|
1262
|
+
accountName: {
|
|
1225
1263
|
serializedName: "properties.accountName",
|
|
1226
1264
|
readOnly: true,
|
|
1227
1265
|
type: {
|
|
1228
1266
|
name: "String"
|
|
1229
1267
|
}
|
|
1230
|
-
},
|
|
1268
|
+
},
|
|
1269
|
+
iotHubs: {
|
|
1231
1270
|
serializedName: "properties.iotHubs",
|
|
1232
1271
|
type: {
|
|
1233
1272
|
name: "Sequence",
|
|
@@ -1238,31 +1277,37 @@ exports.Instance = {
|
|
|
1238
1277
|
}
|
|
1239
1278
|
}
|
|
1240
1279
|
}
|
|
1241
|
-
},
|
|
1280
|
+
},
|
|
1281
|
+
enableDiagnostics: {
|
|
1242
1282
|
serializedName: "properties.enableDiagnostics",
|
|
1243
1283
|
type: {
|
|
1244
1284
|
name: "Boolean"
|
|
1245
1285
|
}
|
|
1246
|
-
},
|
|
1286
|
+
},
|
|
1287
|
+
diagnosticStorageProperties: {
|
|
1247
1288
|
serializedName: "properties.diagnosticStorageProperties",
|
|
1248
1289
|
type: {
|
|
1249
1290
|
name: "Composite",
|
|
1250
1291
|
className: "DiagnosticStorageProperties"
|
|
1251
1292
|
}
|
|
1252
|
-
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1253
1295
|
}
|
|
1254
1296
|
};
|
|
1255
1297
|
exports.GroupInformation = {
|
|
1256
1298
|
type: {
|
|
1257
1299
|
name: "Composite",
|
|
1258
1300
|
className: "GroupInformation",
|
|
1259
|
-
modelProperties:
|
|
1301
|
+
modelProperties: {
|
|
1302
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1303
|
+
groupId: {
|
|
1260
1304
|
serializedName: "properties.groupId",
|
|
1261
1305
|
readOnly: true,
|
|
1262
1306
|
type: {
|
|
1263
1307
|
name: "String"
|
|
1264
1308
|
}
|
|
1265
|
-
},
|
|
1309
|
+
},
|
|
1310
|
+
requiredMembers: {
|
|
1266
1311
|
serializedName: "properties.requiredMembers",
|
|
1267
1312
|
readOnly: true,
|
|
1268
1313
|
type: {
|
|
@@ -1273,7 +1318,8 @@ exports.GroupInformation = {
|
|
|
1273
1318
|
}
|
|
1274
1319
|
}
|
|
1275
1320
|
}
|
|
1276
|
-
},
|
|
1321
|
+
},
|
|
1322
|
+
requiredZoneNames: {
|
|
1277
1323
|
serializedName: "properties.requiredZoneNames",
|
|
1278
1324
|
type: {
|
|
1279
1325
|
name: "Sequence",
|
|
@@ -1283,13 +1329,15 @@ exports.GroupInformation = {
|
|
|
1283
1329
|
}
|
|
1284
1330
|
}
|
|
1285
1331
|
}
|
|
1286
|
-
},
|
|
1332
|
+
},
|
|
1333
|
+
provisioningState: {
|
|
1287
1334
|
serializedName: "properties.provisioningState",
|
|
1288
1335
|
readOnly: true,
|
|
1289
1336
|
type: {
|
|
1290
1337
|
name: "String"
|
|
1291
1338
|
}
|
|
1292
|
-
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1293
1341
|
}
|
|
1294
1342
|
};
|
|
1295
1343
|
exports.AccountsDeleteHeaders = {
|