@azure/arm-agrifood 1.0.0-alpha.20250619.1 → 1.0.0-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.
Files changed (47) hide show
  1. package/dist/commonjs/agriFoodMgmtClient.js +20 -5
  2. package/dist/commonjs/agriFoodMgmtClient.js.map +1 -1
  3. package/dist/commonjs/lroImpl.js +11 -3
  4. package/dist/commonjs/lroImpl.js.map +1 -1
  5. package/dist/commonjs/models/mappers.js +81 -37
  6. package/dist/commonjs/models/mappers.js.map +1 -1
  7. package/dist/commonjs/operations/extensions.js +23 -39
  8. package/dist/commonjs/operations/extensions.js.map +1 -1
  9. package/dist/commonjs/operations/farmBeatsExtensions.js +23 -39
  10. package/dist/commonjs/operations/farmBeatsExtensions.js.map +1 -1
  11. package/dist/commonjs/operations/farmBeatsModels.js +56 -84
  12. package/dist/commonjs/operations/farmBeatsModels.js.map +1 -1
  13. package/dist/commonjs/operations/locations.js +1 -0
  14. package/dist/commonjs/operations/locations.js.map +1 -1
  15. package/dist/commonjs/operations/operations.js +23 -39
  16. package/dist/commonjs/operations/operations.js.map +1 -1
  17. package/dist/commonjs/operations/privateEndpointConnections.js +21 -32
  18. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  19. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  20. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  21. package/dist/commonjs/pagingHelper.js +2 -4
  22. package/dist/commonjs/pagingHelper.js.map +1 -1
  23. package/dist/commonjs/tsdoc-metadata.json +11 -11
  24. package/dist/esm/agriFoodMgmtClient.js +20 -5
  25. package/dist/esm/agriFoodMgmtClient.js.map +1 -1
  26. package/dist/esm/lroImpl.js +11 -3
  27. package/dist/esm/lroImpl.js.map +1 -1
  28. package/dist/esm/models/mappers.js +81 -37
  29. package/dist/esm/models/mappers.js.map +1 -1
  30. package/dist/esm/operations/extensions.js +23 -40
  31. package/dist/esm/operations/extensions.js.map +1 -1
  32. package/dist/esm/operations/farmBeatsExtensions.js +23 -40
  33. package/dist/esm/operations/farmBeatsExtensions.js.map +1 -1
  34. package/dist/esm/operations/farmBeatsModels.js +56 -85
  35. package/dist/esm/operations/farmBeatsModels.js.map +1 -1
  36. package/dist/esm/operations/locations.js +1 -0
  37. package/dist/esm/operations/locations.js.map +1 -1
  38. package/dist/esm/operations/operations.js +23 -40
  39. package/dist/esm/operations/operations.js.map +1 -1
  40. package/dist/esm/operations/privateEndpointConnections.js +21 -33
  41. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  42. package/dist/esm/operations/privateLinkResources.js +10 -27
  43. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  44. package/dist/esm/pagingHelper.js +2 -4
  45. package/dist/esm/pagingHelper.js.map +1 -1
  46. package/package.json +2 -2
  47. /package/review/{arm-agrifood.api.md → arm-agrifood-node.api.md} +0 -0
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class AgriFoodMgmtClient extends coreClient.ServiceClient {
16
+ $host;
17
+ subscriptionId;
18
+ apiVersion;
16
19
  /**
17
20
  * Initializes a new instance of the AgriFoodMgmtClient class.
18
21
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -20,7 +23,6 @@ class AgriFoodMgmtClient extends coreClient.ServiceClient {
20
23
  * @param options The parameter options
21
24
  */
22
25
  constructor(credentials, subscriptionId, options) {
23
- var _a, _b, _c;
24
26
  if (credentials === undefined) {
25
27
  throw new Error("'credentials' cannot be null");
26
28
  }
@@ -39,12 +41,17 @@ class AgriFoodMgmtClient extends coreClient.ServiceClient {
39
41
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
42
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
43
  : `${packageDetails}`;
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
44
+ const optionsWithDefaults = {
45
+ ...defaults,
46
+ ...options,
47
+ userAgentOptions: {
43
48
  userAgentPrefix
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
49
+ },
50
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
51
+ };
45
52
  super(optionsWithDefaults);
46
53
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
54
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
55
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
56
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
57
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -58,7 +65,8 @@ class AgriFoodMgmtClient extends coreClient.ServiceClient {
58
65
  });
59
66
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
67
  credential: credentials,
61
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
68
+ scopes: optionsWithDefaults.credentialScopes ??
69
+ `${optionsWithDefaults.endpoint}/.default`,
62
70
  challengeCallbacks: {
63
71
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
64
72
  }
@@ -103,6 +111,13 @@ class AgriFoodMgmtClient extends coreClient.ServiceClient {
103
111
  };
104
112
  this.pipeline.addPolicy(apiVersionPolicy);
105
113
  }
114
+ extensions;
115
+ farmBeatsExtensions;
116
+ farmBeatsModels;
117
+ locations;
118
+ operations;
119
+ privateEndpointConnections;
120
+ privateLinkResources;
106
121
  }
107
122
  exports.AgriFoodMgmtClient = AgriFoodMgmtClient;
108
123
  //# sourceMappingURL=agriFoodMgmtCl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AAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CASF;AAnID,gDAmIC","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 ExtensionsImpl,\n FarmBeatsExtensionsImpl,\n FarmBeatsModelsImpl,\n LocationsImpl,\n OperationsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Extensions,\n FarmBeatsExtensions,\n FarmBeatsModels,\n Locations,\n Operations,\n PrivateEndpointConnections,\n PrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { AgriFoodMgmtClientOptionalParams } from \"./models/index.js\";\n\nexport class AgriFoodMgmtClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AgriFoodMgmtClient 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?: AgriFoodMgmtClientOptionalParams\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: AgriFoodMgmtClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.6`;\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 || \"2021-09-01-preview\";\n this.extensions = new ExtensionsImpl(this);\n this.farmBeatsExtensions = new FarmBeatsExtensionsImpl(this);\n this.farmBeatsModels = new FarmBeatsModelsImpl(this);\n this.locations = new LocationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(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 extensions: Extensions;\n farmBeatsExtensions: FarmBeatsExtensions;\n farmBeatsModels: FarmBeatsModels;\n locations: Locations;\n operations: Operations;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n}\n"]}
1
+ {"version":3,"file":"agriFoodMgmtClient.js","sourceRoot":"","sources":["../../src/agriFoodMgmtClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAQ+B;AAY/B,MAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA0C;QAE1C,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,GAAqC;YACjD,kBAAkB,EAAE,iCAAiC;Y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,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,UAAU,CAAa;IACvB,mBAAmB,CAAsB;IACzC,eAAe,CAAkB;IACjC,SAAS,CAAY;IACrB,UAAU,CAAa;IACvB,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;CAC5C;AAnID,gDAmIC","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 ExtensionsImpl,\n FarmBeatsExtensionsImpl,\n FarmBeatsModelsImpl,\n LocationsImpl,\n OperationsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Extensions,\n FarmBeatsExtensions,\n FarmBeatsModels,\n Locations,\n Operations,\n PrivateEndpointConnections,\n PrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { AgriFoodMgmtClientOptionalParams } from \"./models/index.js\";\n\nexport class AgriFoodMgmtClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AgriFoodMgmtClient 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?: AgriFoodMgmtClientOptionalParams\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: AgriFoodMgmtClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.6`;\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 || \"2021-09-01-preview\";\n this.extensions = new ExtensionsImpl(this);\n this.farmBeatsExtensions = new FarmBeatsExtensionsImpl(this);\n this.farmBeatsModels = new FarmBeatsModelsImpl(this);\n this.locations = new LocationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(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 extensions: Extensions;\n farmBeatsExtensions: FarmBeatsExtensions;\n farmBeatsModels: FarmBeatsModels;\n locations: Locations;\n operations: Operations;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n}\n"]}
@@ -8,8 +8,12 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.LroImpl = void 0;
11
- const tslib_1 = require("tslib");
12
11
  class LroImpl {
12
+ sendOperationFn;
13
+ args;
14
+ spec;
15
+ requestPath;
16
+ requestMethod;
13
17
  constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
14
18
  this.sendOperationFn = sendOperationFn;
15
19
  this.args = args;
@@ -21,8 +25,12 @@ class LroImpl {
21
25
  return this.sendOperationFn(this.args, this.spec);
22
26
  }
23
27
  async sendPollRequest(path) {
24
- const _a = this.spec, { requestBody } = _a, restSpec = tslib_1.__rest(_a, ["requestBody"]);
25
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
28
+ const { requestBody, ...restSpec } = this.spec;
29
+ return this.sendOperationFn(this.args, {
30
+ ...restSpec,
31
+ path,
32
+ httpMethod: "GET"
33
+ });
26
34
  }
27
35
  }
28
36
  exports.LroImpl = LroImpl;
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,MAAa,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,sBAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,MAAa,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
@@ -713,64 +713,78 @@ exports.ProxyResource = {
713
713
  type: {
714
714
  name: "Composite",
715
715
  className: "ProxyResource",
716
- modelProperties: Object.assign({}, exports.Resource.type.modelProperties)
716
+ modelProperties: {
717
+ ...exports.Resource.type.modelProperties
718
+ }
717
719
  }
718
720
  };
719
721
  exports.PrivateEndpointConnection = {
720
722
  type: {
721
723
  name: "Composite",
722
724
  className: "PrivateEndpointConnection",
723
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { privateEndpoint: {
725
+ modelProperties: {
726
+ ...exports.Resource.type.modelProperties,
727
+ privateEndpoint: {
724
728
  serializedName: "properties.privateEndpoint",
725
729
  type: {
726
730
  name: "Composite",
727
731
  className: "PrivateEndpoint"
728
732
  }
729
- }, privateLinkServiceConnectionState: {
733
+ },
734
+ privateLinkServiceConnectionState: {
730
735
  serializedName: "properties.privateLinkServiceConnectionState",
731
736
  type: {
732
737
  name: "Composite",
733
738
  className: "PrivateLinkServiceConnectionState"
734
739
  }
735
- }, provisioningState: {
740
+ },
741
+ provisioningState: {
736
742
  serializedName: "properties.provisioningState",
737
743
  readOnly: true,
738
744
  type: {
739
745
  name: "String"
740
746
  }
741
- } })
747
+ }
748
+ }
742
749
  }
743
750
  };
744
751
  exports.TrackedResource = {
745
752
  type: {
746
753
  name: "Composite",
747
754
  className: "TrackedResource",
748
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { tags: {
755
+ modelProperties: {
756
+ ...exports.Resource.type.modelProperties,
757
+ tags: {
749
758
  serializedName: "tags",
750
759
  type: {
751
760
  name: "Dictionary",
752
761
  value: { type: { name: "String" } }
753
762
  }
754
- }, location: {
763
+ },
764
+ location: {
755
765
  serializedName: "location",
756
766
  required: true,
757
767
  type: {
758
768
  name: "String"
759
769
  }
760
- } })
770
+ }
771
+ }
761
772
  }
762
773
  };
763
774
  exports.PrivateLinkResource = {
764
775
  type: {
765
776
  name: "Composite",
766
777
  className: "PrivateLinkResource",
767
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { groupId: {
778
+ modelProperties: {
779
+ ...exports.Resource.type.modelProperties,
780
+ groupId: {
768
781
  serializedName: "properties.groupId",
769
782
  readOnly: true,
770
783
  type: {
771
784
  name: "String"
772
785
  }
773
- }, requiredMembers: {
786
+ },
787
+ requiredMembers: {
774
788
  serializedName: "properties.requiredMembers",
775
789
  readOnly: true,
776
790
  type: {
@@ -781,7 +795,8 @@ exports.PrivateLinkResource = {
781
795
  }
782
796
  }
783
797
  }
784
- }, requiredZoneNames: {
798
+ },
799
+ requiredZoneNames: {
785
800
  serializedName: "properties.requiredZoneNames",
786
801
  type: {
787
802
  name: "Sequence",
@@ -791,20 +806,24 @@ exports.PrivateLinkResource = {
791
806
  }
792
807
  }
793
808
  }
794
- } })
809
+ }
810
+ }
795
811
  }
796
812
  };
797
813
  exports.Extension = {
798
814
  type: {
799
815
  name: "Composite",
800
816
  className: "Extension",
801
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { eTag: {
817
+ modelProperties: {
818
+ ...exports.ProxyResource.type.modelProperties,
819
+ eTag: {
802
820
  serializedName: "eTag",
803
821
  readOnly: true,
804
822
  type: {
805
823
  name: "String"
806
824
  }
807
- }, extensionId: {
825
+ },
826
+ extensionId: {
808
827
  constraints: {
809
828
  Pattern: new RegExp("^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$")
810
829
  },
@@ -813,13 +832,15 @@ exports.Extension = {
813
832
  type: {
814
833
  name: "String"
815
834
  }
816
- }, extensionCategory: {
835
+ },
836
+ extensionCategory: {
817
837
  serializedName: "properties.extensionCategory",
818
838
  readOnly: true,
819
839
  type: {
820
840
  name: "String"
821
841
  }
822
- }, installedExtensionVersion: {
842
+ },
843
+ installedExtensionVersion: {
823
844
  constraints: {
824
845
  Pattern: new RegExp("^([1-9]|10).\\d$")
825
846
  },
@@ -828,32 +849,38 @@ exports.Extension = {
828
849
  type: {
829
850
  name: "String"
830
851
  }
831
- }, extensionAuthLink: {
852
+ },
853
+ extensionAuthLink: {
832
854
  serializedName: "properties.extensionAuthLink",
833
855
  readOnly: true,
834
856
  type: {
835
857
  name: "String"
836
858
  }
837
- }, extensionApiDocsLink: {
859
+ },
860
+ extensionApiDocsLink: {
838
861
  serializedName: "properties.extensionApiDocsLink",
839
862
  readOnly: true,
840
863
  type: {
841
864
  name: "String"
842
865
  }
843
- } })
866
+ }
867
+ }
844
868
  }
845
869
  };
846
870
  exports.FarmBeatsExtension = {
847
871
  type: {
848
872
  name: "Composite",
849
873
  className: "FarmBeatsExtension",
850
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { targetResourceType: {
874
+ modelProperties: {
875
+ ...exports.ProxyResource.type.modelProperties,
876
+ targetResourceType: {
851
877
  serializedName: "properties.targetResourceType",
852
878
  readOnly: true,
853
879
  type: {
854
880
  name: "String"
855
881
  }
856
- }, farmBeatsExtensionId: {
882
+ },
883
+ farmBeatsExtensionId: {
857
884
  constraints: {
858
885
  Pattern: new RegExp("^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$"),
859
886
  MaxLength: 100,
@@ -864,7 +891,8 @@ exports.FarmBeatsExtension = {
864
891
  type: {
865
892
  name: "String"
866
893
  }
867
- }, farmBeatsExtensionName: {
894
+ },
895
+ farmBeatsExtensionName: {
868
896
  constraints: {
869
897
  MaxLength: 100,
870
898
  MinLength: 2
@@ -874,7 +902,8 @@ exports.FarmBeatsExtension = {
874
902
  type: {
875
903
  name: "String"
876
904
  }
877
- }, farmBeatsExtensionVersion: {
905
+ },
906
+ farmBeatsExtensionVersion: {
878
907
  constraints: {
879
908
  Pattern: new RegExp("^([1-9]|10).\\d$"),
880
909
  MaxLength: 100,
@@ -885,7 +914,8 @@ exports.FarmBeatsExtension = {
885
914
  type: {
886
915
  name: "String"
887
916
  }
888
- }, publisherId: {
917
+ },
918
+ publisherId: {
889
919
  constraints: {
890
920
  MaxLength: 100,
891
921
  MinLength: 2
@@ -895,7 +925,8 @@ exports.FarmBeatsExtension = {
895
925
  type: {
896
926
  name: "String"
897
927
  }
898
- }, description: {
928
+ },
929
+ description: {
899
930
  constraints: {
900
931
  MaxLength: 500,
901
932
  MinLength: 2
@@ -905,7 +936,8 @@ exports.FarmBeatsExtension = {
905
936
  type: {
906
937
  name: "String"
907
938
  }
908
- }, extensionCategory: {
939
+ },
940
+ extensionCategory: {
909
941
  constraints: {
910
942
  MaxLength: 100,
911
943
  MinLength: 2
@@ -915,19 +947,22 @@ exports.FarmBeatsExtension = {
915
947
  type: {
916
948
  name: "String"
917
949
  }
918
- }, extensionAuthLink: {
950
+ },
951
+ extensionAuthLink: {
919
952
  serializedName: "properties.extensionAuthLink",
920
953
  readOnly: true,
921
954
  type: {
922
955
  name: "String"
923
956
  }
924
- }, extensionApiDocsLink: {
957
+ },
958
+ extensionApiDocsLink: {
925
959
  serializedName: "properties.extensionApiDocsLink",
926
960
  readOnly: true,
927
961
  type: {
928
962
  name: "String"
929
963
  }
930
- }, detailedInformation: {
964
+ },
965
+ detailedInformation: {
931
966
  serializedName: "properties.detailedInformation",
932
967
  readOnly: true,
933
968
  type: {
@@ -939,49 +974,58 @@ exports.FarmBeatsExtension = {
939
974
  }
940
975
  }
941
976
  }
942
- } })
977
+ }
978
+ }
943
979
  }
944
980
  };
945
981
  exports.FarmBeats = {
946
982
  type: {
947
983
  name: "Composite",
948
984
  className: "FarmBeats",
949
- modelProperties: Object.assign(Object.assign({}, exports.TrackedResource.type.modelProperties), { identity: {
985
+ modelProperties: {
986
+ ...exports.TrackedResource.type.modelProperties,
987
+ identity: {
950
988
  serializedName: "identity",
951
989
  type: {
952
990
  name: "Composite",
953
991
  className: "Identity"
954
992
  }
955
- }, instanceUri: {
993
+ },
994
+ instanceUri: {
956
995
  serializedName: "properties.instanceUri",
957
996
  readOnly: true,
958
997
  type: {
959
998
  name: "String"
960
999
  }
961
- }, provisioningState: {
1000
+ },
1001
+ provisioningState: {
962
1002
  serializedName: "properties.provisioningState",
963
1003
  readOnly: true,
964
1004
  type: {
965
1005
  name: "String"
966
1006
  }
967
- }, sensorIntegration: {
1007
+ },
1008
+ sensorIntegration: {
968
1009
  serializedName: "properties.sensorIntegration",
969
1010
  type: {
970
1011
  name: "Composite",
971
1012
  className: "SensorIntegration"
972
1013
  }
973
- }, publicNetworkAccess: {
1014
+ },
1015
+ publicNetworkAccess: {
974
1016
  serializedName: "properties.publicNetworkAccess",
975
1017
  type: {
976
1018
  name: "String"
977
1019
  }
978
- }, privateEndpointConnections: {
1020
+ },
1021
+ privateEndpointConnections: {
979
1022
  serializedName: "properties.privateEndpointConnections",
980
1023
  type: {
981
1024
  name: "Composite",
982
1025
  className: "PrivateEndpointConnection"
983
1026
  }
984
- } })
1027
+ }
1028
+ }
985
1029
  }
986
1030
  };
987
1031
  exports.FarmBeatsModelsUpdateHeaders = {