@azure/arm-quota 1.1.1-alpha.20250619.1 → 1.1.1-alpha.20250718.2

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 (123) hide show
  1. package/dist/browser/azureQuotaExtensionAPI.js +24 -5
  2. package/dist/browser/azureQuotaExtensionAPI.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +72 -28
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/groupQuotaLimits.js +1 -0
  8. package/dist/browser/operations/groupQuotaLimits.js.map +1 -1
  9. package/dist/browser/operations/groupQuotaLimitsRequest.js +34 -46
  10. package/dist/browser/operations/groupQuotaLimitsRequest.js.map +1 -1
  11. package/dist/browser/operations/groupQuotaSubscriptionAllocation.js +1 -0
  12. package/dist/browser/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
  13. package/dist/browser/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
  14. package/dist/browser/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
  15. package/dist/browser/operations/groupQuotaSubscriptionRequests.js +23 -40
  16. package/dist/browser/operations/groupQuotaSubscriptionRequests.js.map +1 -1
  17. package/dist/browser/operations/groupQuotaSubscriptions.js +56 -58
  18. package/dist/browser/operations/groupQuotaSubscriptions.js.map +1 -1
  19. package/dist/browser/operations/groupQuotas.js +56 -58
  20. package/dist/browser/operations/groupQuotas.js.map +1 -1
  21. package/dist/browser/operations/quota.js +45 -52
  22. package/dist/browser/operations/quota.js.map +1 -1
  23. package/dist/browser/operations/quotaOperation.js +23 -40
  24. package/dist/browser/operations/quotaOperation.js.map +1 -1
  25. package/dist/browser/operations/quotaRequestStatus.js +23 -40
  26. package/dist/browser/operations/quotaRequestStatus.js.map +1 -1
  27. package/dist/browser/operations/usages.js +23 -40
  28. package/dist/browser/operations/usages.js.map +1 -1
  29. package/dist/browser/pagingHelper.js +2 -4
  30. package/dist/browser/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/azureQuotaExtensionAPI.js +24 -5
  32. package/dist/commonjs/azureQuotaExtensionAPI.js.map +1 -1
  33. package/dist/commonjs/lroImpl.js +7 -3
  34. package/dist/commonjs/lroImpl.js.map +1 -1
  35. package/dist/commonjs/models/mappers.js +72 -28
  36. package/dist/commonjs/models/mappers.js.map +1 -1
  37. package/dist/commonjs/operations/groupQuotaLimits.js +1 -0
  38. package/dist/commonjs/operations/groupQuotaLimits.js.map +1 -1
  39. package/dist/commonjs/operations/groupQuotaLimitsRequest.js +34 -45
  40. package/dist/commonjs/operations/groupQuotaLimitsRequest.js.map +1 -1
  41. package/dist/commonjs/operations/groupQuotaSubscriptionAllocation.js +1 -0
  42. package/dist/commonjs/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
  43. package/dist/commonjs/operations/groupQuotaSubscriptionAllocationRequest.js +34 -45
  44. package/dist/commonjs/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
  45. package/dist/commonjs/operations/groupQuotaSubscriptionRequests.js +23 -39
  46. package/dist/commonjs/operations/groupQuotaSubscriptionRequests.js.map +1 -1
  47. package/dist/commonjs/operations/groupQuotaSubscriptions.js +56 -57
  48. package/dist/commonjs/operations/groupQuotaSubscriptions.js.map +1 -1
  49. package/dist/commonjs/operations/groupQuotas.js +56 -57
  50. package/dist/commonjs/operations/groupQuotas.js.map +1 -1
  51. package/dist/commonjs/operations/quota.js +45 -51
  52. package/dist/commonjs/operations/quota.js.map +1 -1
  53. package/dist/commonjs/operations/quotaOperation.js +23 -39
  54. package/dist/commonjs/operations/quotaOperation.js.map +1 -1
  55. package/dist/commonjs/operations/quotaRequestStatus.js +23 -39
  56. package/dist/commonjs/operations/quotaRequestStatus.js.map +1 -1
  57. package/dist/commonjs/operations/usages.js +23 -39
  58. package/dist/commonjs/operations/usages.js.map +1 -1
  59. package/dist/commonjs/pagingHelper.js +2 -4
  60. package/dist/commonjs/pagingHelper.js.map +1 -1
  61. package/dist/commonjs/tsdoc-metadata.json +11 -11
  62. package/dist/esm/azureQuotaExtensionAPI.js +24 -5
  63. package/dist/esm/azureQuotaExtensionAPI.js.map +1 -1
  64. package/dist/esm/lroImpl.js +7 -3
  65. package/dist/esm/lroImpl.js.map +1 -1
  66. package/dist/esm/models/mappers.js +72 -28
  67. package/dist/esm/models/mappers.js.map +1 -1
  68. package/dist/esm/operations/groupQuotaLimits.js +1 -0
  69. package/dist/esm/operations/groupQuotaLimits.js.map +1 -1
  70. package/dist/esm/operations/groupQuotaLimitsRequest.js +34 -46
  71. package/dist/esm/operations/groupQuotaLimitsRequest.js.map +1 -1
  72. package/dist/esm/operations/groupQuotaSubscriptionAllocation.js +1 -0
  73. package/dist/esm/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
  74. package/dist/esm/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
  75. package/dist/esm/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
  76. package/dist/esm/operations/groupQuotaSubscriptionRequests.js +23 -40
  77. package/dist/esm/operations/groupQuotaSubscriptionRequests.js.map +1 -1
  78. package/dist/esm/operations/groupQuotaSubscriptions.js +56 -58
  79. package/dist/esm/operations/groupQuotaSubscriptions.js.map +1 -1
  80. package/dist/esm/operations/groupQuotas.js +56 -58
  81. package/dist/esm/operations/groupQuotas.js.map +1 -1
  82. package/dist/esm/operations/quota.js +45 -52
  83. package/dist/esm/operations/quota.js.map +1 -1
  84. package/dist/esm/operations/quotaOperation.js +23 -40
  85. package/dist/esm/operations/quotaOperation.js.map +1 -1
  86. package/dist/esm/operations/quotaRequestStatus.js +23 -40
  87. package/dist/esm/operations/quotaRequestStatus.js.map +1 -1
  88. package/dist/esm/operations/usages.js +23 -40
  89. package/dist/esm/operations/usages.js.map +1 -1
  90. package/dist/esm/pagingHelper.js +2 -4
  91. package/dist/esm/pagingHelper.js.map +1 -1
  92. package/dist/react-native/azureQuotaExtensionAPI.js +24 -5
  93. package/dist/react-native/azureQuotaExtensionAPI.js.map +1 -1
  94. package/dist/react-native/lroImpl.js +7 -3
  95. package/dist/react-native/lroImpl.js.map +1 -1
  96. package/dist/react-native/models/mappers.js +72 -28
  97. package/dist/react-native/models/mappers.js.map +1 -1
  98. package/dist/react-native/operations/groupQuotaLimits.js +1 -0
  99. package/dist/react-native/operations/groupQuotaLimits.js.map +1 -1
  100. package/dist/react-native/operations/groupQuotaLimitsRequest.js +34 -46
  101. package/dist/react-native/operations/groupQuotaLimitsRequest.js.map +1 -1
  102. package/dist/react-native/operations/groupQuotaSubscriptionAllocation.js +1 -0
  103. package/dist/react-native/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
  104. package/dist/react-native/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
  105. package/dist/react-native/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
  106. package/dist/react-native/operations/groupQuotaSubscriptionRequests.js +23 -40
  107. package/dist/react-native/operations/groupQuotaSubscriptionRequests.js.map +1 -1
  108. package/dist/react-native/operations/groupQuotaSubscriptions.js +56 -58
  109. package/dist/react-native/operations/groupQuotaSubscriptions.js.map +1 -1
  110. package/dist/react-native/operations/groupQuotas.js +56 -58
  111. package/dist/react-native/operations/groupQuotas.js.map +1 -1
  112. package/dist/react-native/operations/quota.js +45 -52
  113. package/dist/react-native/operations/quota.js.map +1 -1
  114. package/dist/react-native/operations/quotaOperation.js +23 -40
  115. package/dist/react-native/operations/quotaOperation.js.map +1 -1
  116. package/dist/react-native/operations/quotaRequestStatus.js +23 -40
  117. package/dist/react-native/operations/quotaRequestStatus.js.map +1 -1
  118. package/dist/react-native/operations/usages.js +23 -40
  119. package/dist/react-native/operations/usages.js.map +1 -1
  120. package/dist/react-native/pagingHelper.js +2 -4
  121. package/dist/react-native/pagingHelper.js.map +1 -1
  122. package/package.json +2 -2
  123. /package/review/{arm-quota.api.md → arm-quota-node.api.md} +0 -0
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { GroupQuotasImpl, GroupQuotaSubscriptionsImpl, GroupQuotaSubscriptionRequestsImpl, GroupQuotaLimitsRequestImpl, GroupQuotaLimitsImpl, GroupQuotaSubscriptionAllocationRequestImpl, GroupQuotaSubscriptionAllocationImpl, UsagesImpl, QuotaImpl, QuotaRequestStatusImpl, QuotaOperationImpl, } from "./operations/index.js";
11
11
  export class AzureQuotaExtensionAPI extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  constructor(credentials, subscriptionIdOrOptions, options) {
13
- var _a, _b, _c;
14
16
  if (credentials === undefined) {
15
17
  throw new Error("'credentials' cannot be null");
16
18
  }
@@ -33,12 +35,17 @@ export class AzureQuotaExtensionAPI extends coreClient.ServiceClient {
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
36
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
38
+ const optionsWithDefaults = {
39
+ ...defaults,
40
+ ...options,
41
+ userAgentOptions: {
37
42
  userAgentPrefix,
38
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
+ },
44
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
45
+ };
39
46
  super(optionsWithDefaults);
40
47
  let bearerTokenAuthenticationPolicyFound = false;
41
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
42
49
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
43
50
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
44
51
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -52,7 +59,8 @@ export class AzureQuotaExtensionAPI extends coreClient.ServiceClient {
52
59
  });
53
60
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
54
61
  credential: credentials,
55
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
62
+ scopes: optionsWithDefaults.credentialScopes ??
63
+ `${optionsWithDefaults.endpoint}/.default`,
56
64
  challengeCallbacks: {
57
65
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
58
66
  },
@@ -104,5 +112,16 @@ export class AzureQuotaExtensionAPI extends coreClient.ServiceClient {
104
112
  };
105
113
  this.pipeline.addPolicy(apiVersionPolicy);
106
114
  }
115
+ groupQuotas;
116
+ groupQuotaSubscriptions;
117
+ groupQuotaSubscriptionRequests;
118
+ groupQuotaLimitsRequest;
119
+ groupQuotaLimits;
120
+ groupQuotaSubscriptionAllocationRequest;
121
+ groupQuotaSubscriptionAllocation;
122
+ usages;
123
+ quota;
124
+ quotaRequestStatus;
125
+ quotaOperation;
107
126
  }
108
127
  //# sourceMappingURL=azureQuotaExtensionAPI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"azureQuotaExtensionAPI.js","sourceRoot":"","sources":["../../src/azureQuotaExtensionAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,2CAA2C,EAC3C,oCAAoC,EACpC,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAoBlE,YACE,WAAqC,EACrC,uBAAuE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AC,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;CAaF","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 GroupQuotasImpl,\n GroupQuotaSubscriptionsImpl,\n GroupQuotaSubscriptionRequestsImpl,\n GroupQuotaLimitsRequestImpl,\n GroupQuotaLimitsImpl,\n GroupQuotaSubscriptionAllocationRequestImpl,\n GroupQuotaSubscriptionAllocationImpl,\n UsagesImpl,\n QuotaImpl,\n QuotaRequestStatusImpl,\n QuotaOperationImpl,\n} from \"./operations/index.js\";\nimport {\n GroupQuotas,\n GroupQuotaSubscriptions,\n GroupQuotaSubscriptionRequests,\n GroupQuotaLimitsRequest,\n GroupQuotaLimits,\n GroupQuotaSubscriptionAllocationRequest,\n GroupQuotaSubscriptionAllocation,\n Usages,\n Quota,\n QuotaRequestStatus,\n QuotaOperation,\n} from \"./operationsInterfaces/index.js\";\nimport { AzureQuotaExtensionAPIOptionalParams } from \"./models/index.js\";\n\nexport class AzureQuotaExtensionAPI extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AzureQuotaExtensionAPI class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureQuotaExtensionAPIOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AzureQuotaExtensionAPIOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AzureQuotaExtensionAPIOptionalParams | string,\n options?: AzureQuotaExtensionAPIOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureQuotaExtensionAPIOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-quota/1.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-03-01\";\n this.groupQuotas = new GroupQuotasImpl(this);\n this.groupQuotaSubscriptions = new GroupQuotaSubscriptionsImpl(this);\n this.groupQuotaSubscriptionRequests =\n new GroupQuotaSubscriptionRequestsImpl(this);\n this.groupQuotaLimitsRequest = new GroupQuotaLimitsRequestImpl(this);\n this.groupQuotaLimits = new GroupQuotaLimitsImpl(this);\n this.groupQuotaSubscriptionAllocationRequest =\n new GroupQuotaSubscriptionAllocationRequestImpl(this);\n this.groupQuotaSubscriptionAllocation =\n new GroupQuotaSubscriptionAllocationImpl(this);\n this.usages = new UsagesImpl(this);\n this.quota = new QuotaImpl(this);\n this.quotaRequestStatus = new QuotaRequestStatusImpl(this);\n this.quotaOperation = new QuotaOperationImpl(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 groupQuotas: GroupQuotas;\n groupQuotaSubscriptions: GroupQuotaSubscriptions;\n groupQuotaSubscriptionRequests: GroupQuotaSubscriptionRequests;\n groupQuotaLimitsRequest: GroupQuotaLimitsRequest;\n groupQuotaLimits: GroupQuotaLimits;\n groupQuotaSubscriptionAllocationRequest: GroupQuotaSubscriptionAllocationRequest;\n groupQuotaSubscriptionAllocation: GroupQuotaSubscriptionAllocation;\n usages: Usages;\n quota: Quota;\n quotaRequestStatus: QuotaRequestStatus;\n quotaOperation: QuotaOperation;\n}\n"]}
1
+ {"version":3,"file":"azureQuotaExtensionAPI.js","sourceRoot":"","sources":["../../src/azureQuotaExtensionAPI.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,2CAA2C,EAC3C,oCAAoC,EACpC,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAClE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAAuE,EACvE,OAA8C;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1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S;IACf,KAAK,CAAQ;IACb,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;CAChC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n GroupQuotasImpl,\n GroupQuotaSubscriptionsImpl,\n GroupQuotaSubscriptionRequestsImpl,\n GroupQuotaLimitsRequestImpl,\n GroupQuotaLimitsImpl,\n GroupQuotaSubscriptionAllocationRequestImpl,\n GroupQuotaSubscriptionAllocationImpl,\n UsagesImpl,\n QuotaImpl,\n QuotaRequestStatusImpl,\n QuotaOperationImpl,\n} from \"./operations/index.js\";\nimport {\n GroupQuotas,\n GroupQuotaSubscriptions,\n GroupQuotaSubscriptionRequests,\n GroupQuotaLimitsRequest,\n GroupQuotaLimits,\n GroupQuotaSubscriptionAllocationRequest,\n GroupQuotaSubscriptionAllocation,\n Usages,\n Quota,\n QuotaRequestStatus,\n QuotaOperation,\n} from \"./operationsInterfaces/index.js\";\nimport { AzureQuotaExtensionAPIOptionalParams } from \"./models/index.js\";\n\nexport class AzureQuotaExtensionAPI extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AzureQuotaExtensionAPI class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureQuotaExtensionAPIOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AzureQuotaExtensionAPIOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AzureQuotaExtensionAPIOptionalParams | string,\n options?: AzureQuotaExtensionAPIOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureQuotaExtensionAPIOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-quota/1.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-03-01\";\n this.groupQuotas = new GroupQuotasImpl(this);\n this.groupQuotaSubscriptions = new GroupQuotaSubscriptionsImpl(this);\n this.groupQuotaSubscriptionRequests =\n new GroupQuotaSubscriptionRequestsImpl(this);\n this.groupQuotaLimitsRequest = new GroupQuotaLimitsRequestImpl(this);\n this.groupQuotaLimits = new GroupQuotaLimitsImpl(this);\n this.groupQuotaSubscriptionAllocationRequest =\n new GroupQuotaSubscriptionAllocationRequestImpl(this);\n this.groupQuotaSubscriptionAllocation =\n new GroupQuotaSubscriptionAllocationImpl(this);\n this.usages = new UsagesImpl(this);\n this.quota = new QuotaImpl(this);\n this.quotaRequestStatus = new QuotaRequestStatusImpl(this);\n this.quotaOperation = new QuotaOperationImpl(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 groupQuotas: GroupQuotas;\n groupQuotaSubscriptions: GroupQuotaSubscriptions;\n groupQuotaSubscriptionRequests: GroupQuotaSubscriptionRequests;\n groupQuotaLimitsRequest: GroupQuotaLimitsRequest;\n groupQuotaLimits: GroupQuotaLimits;\n groupQuotaSubscriptionAllocationRequest: GroupQuotaSubscriptionAllocationRequest;\n groupQuotaSubscriptionAllocation: GroupQuotaSubscriptionAllocation;\n usages: Usages;\n quota: Quota;\n quotaRequestStatus: QuotaRequestStatus;\n quotaOperation: QuotaOperation;\n}\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,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,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,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 */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,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 */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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"]}
@@ -2036,35 +2036,45 @@ export const GroupQuotasEntityProperties = {
2036
2036
  type: {
2037
2037
  name: "Composite",
2038
2038
  className: "GroupQuotasEntityProperties",
2039
- modelProperties: Object.assign({}, GroupQuotasEntityBase.type.modelProperties),
2039
+ modelProperties: {
2040
+ ...GroupQuotasEntityBase.type.modelProperties,
2041
+ },
2040
2042
  },
2041
2043
  };
2042
2044
  export const ProxyResource = {
2043
2045
  type: {
2044
2046
  name: "Composite",
2045
2047
  className: "ProxyResource",
2046
- modelProperties: Object.assign({}, Resource.type.modelProperties),
2048
+ modelProperties: {
2049
+ ...Resource.type.modelProperties,
2050
+ },
2047
2051
  },
2048
2052
  };
2049
2053
  export const GroupQuotasEntityPatchProperties = {
2050
2054
  type: {
2051
2055
  name: "Composite",
2052
2056
  className: "GroupQuotasEntityPatchProperties",
2053
- modelProperties: Object.assign({}, GroupQuotasEntityBasePatch.type.modelProperties),
2057
+ modelProperties: {
2058
+ ...GroupQuotasEntityBasePatch.type.modelProperties,
2059
+ },
2054
2060
  },
2055
2061
  };
2056
2062
  export const GroupQuotaLimitProperties = {
2057
2063
  type: {
2058
2064
  name: "Composite",
2059
2065
  className: "GroupQuotaLimitProperties",
2060
- modelProperties: Object.assign({}, GroupQuotaDetails.type.modelProperties),
2066
+ modelProperties: {
2067
+ ...GroupQuotaDetails.type.modelProperties,
2068
+ },
2061
2069
  },
2062
2070
  };
2063
2071
  export const SubscriptionQuotaAllocationsProperties = {
2064
2072
  type: {
2065
2073
  name: "Composite",
2066
2074
  className: "SubscriptionQuotaAllocationsProperties",
2067
- modelProperties: Object.assign({}, SubscriptionQuotaDetails.type.modelProperties),
2075
+ modelProperties: {
2076
+ ...SubscriptionQuotaDetails.type.modelProperties,
2077
+ },
2068
2078
  },
2069
2079
  };
2070
2080
  export const LimitObject = {
@@ -2074,148 +2084,182 @@ export const LimitObject = {
2074
2084
  className: "LimitObject",
2075
2085
  uberParent: "LimitJsonObject",
2076
2086
  polymorphicDiscriminator: LimitJsonObject.type.polymorphicDiscriminator,
2077
- modelProperties: Object.assign(Object.assign({}, LimitJsonObject.type.modelProperties), { value: {
2087
+ modelProperties: {
2088
+ ...LimitJsonObject.type.modelProperties,
2089
+ value: {
2078
2090
  serializedName: "value",
2079
2091
  required: true,
2080
2092
  type: {
2081
2093
  name: "Number",
2082
2094
  },
2083
- }, limitType: {
2095
+ },
2096
+ limitType: {
2084
2097
  serializedName: "limitType",
2085
2098
  type: {
2086
2099
  name: "String",
2087
2100
  },
2088
- } }),
2101
+ },
2102
+ },
2089
2103
  },
2090
2104
  };
2091
2105
  export const GroupQuotasEntity = {
2092
2106
  type: {
2093
2107
  name: "Composite",
2094
2108
  className: "GroupQuotasEntity",
2095
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2109
+ modelProperties: {
2110
+ ...ProxyResource.type.modelProperties,
2111
+ properties: {
2096
2112
  serializedName: "properties",
2097
2113
  type: {
2098
2114
  name: "Composite",
2099
2115
  className: "GroupQuotasEntityProperties",
2100
2116
  },
2101
- } }),
2117
+ },
2118
+ },
2102
2119
  },
2103
2120
  };
2104
2121
  export const LROResponse = {
2105
2122
  type: {
2106
2123
  name: "Composite",
2107
2124
  className: "LROResponse",
2108
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2125
+ modelProperties: {
2126
+ ...ProxyResource.type.modelProperties,
2127
+ properties: {
2109
2128
  serializedName: "properties",
2110
2129
  type: {
2111
2130
  name: "Composite",
2112
2131
  className: "LROResponseProperties",
2113
2132
  },
2114
- } }),
2133
+ },
2134
+ },
2115
2135
  },
2116
2136
  };
2117
2137
  export const GroupQuotasEntityPatch = {
2118
2138
  type: {
2119
2139
  name: "Composite",
2120
2140
  className: "GroupQuotasEntityPatch",
2121
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2141
+ modelProperties: {
2142
+ ...ProxyResource.type.modelProperties,
2143
+ properties: {
2122
2144
  serializedName: "properties",
2123
2145
  type: {
2124
2146
  name: "Composite",
2125
2147
  className: "GroupQuotasEntityPatchProperties",
2126
2148
  },
2127
- } }),
2149
+ },
2150
+ },
2128
2151
  },
2129
2152
  };
2130
2153
  export const GroupQuotaSubscriptionId = {
2131
2154
  type: {
2132
2155
  name: "Composite",
2133
2156
  className: "GroupQuotaSubscriptionId",
2134
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2157
+ modelProperties: {
2158
+ ...ProxyResource.type.modelProperties,
2159
+ properties: {
2135
2160
  serializedName: "properties",
2136
2161
  type: {
2137
2162
  name: "Composite",
2138
2163
  className: "GroupQuotaSubscriptionIdProperties",
2139
2164
  },
2140
- } }),
2165
+ },
2166
+ },
2141
2167
  },
2142
2168
  };
2143
2169
  export const GroupQuotaSubscriptionRequestStatus = {
2144
2170
  type: {
2145
2171
  name: "Composite",
2146
2172
  className: "GroupQuotaSubscriptionRequestStatus",
2147
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2173
+ modelProperties: {
2174
+ ...ProxyResource.type.modelProperties,
2175
+ properties: {
2148
2176
  serializedName: "properties",
2149
2177
  type: {
2150
2178
  name: "Composite",
2151
2179
  className: "GroupQuotaSubscriptionRequestStatusProperties",
2152
2180
  },
2153
- } }),
2181
+ },
2182
+ },
2154
2183
  },
2155
2184
  };
2156
2185
  export const GroupQuotaLimitList = {
2157
2186
  type: {
2158
2187
  name: "Composite",
2159
2188
  className: "GroupQuotaLimitList",
2160
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2189
+ modelProperties: {
2190
+ ...ProxyResource.type.modelProperties,
2191
+ properties: {
2161
2192
  serializedName: "properties",
2162
2193
  type: {
2163
2194
  name: "Composite",
2164
2195
  className: "GroupQuotaLimitListProperties",
2165
2196
  },
2166
- } }),
2197
+ },
2198
+ },
2167
2199
  },
2168
2200
  };
2169
2201
  export const SubmittedResourceRequestStatus = {
2170
2202
  type: {
2171
2203
  name: "Composite",
2172
2204
  className: "SubmittedResourceRequestStatus",
2173
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2205
+ modelProperties: {
2206
+ ...ProxyResource.type.modelProperties,
2207
+ properties: {
2174
2208
  serializedName: "properties",
2175
2209
  type: {
2176
2210
  name: "Composite",
2177
2211
  className: "SubmittedResourceRequestStatusProperties",
2178
2212
  },
2179
- } }),
2213
+ },
2214
+ },
2180
2215
  },
2181
2216
  };
2182
2217
  export const SubscriptionQuotaAllocationsList = {
2183
2218
  type: {
2184
2219
  name: "Composite",
2185
2220
  className: "SubscriptionQuotaAllocationsList",
2186
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2221
+ modelProperties: {
2222
+ ...ProxyResource.type.modelProperties,
2223
+ properties: {
2187
2224
  serializedName: "properties",
2188
2225
  type: {
2189
2226
  name: "Composite",
2190
2227
  className: "SubscriptionQuotaAllocationsListProperties",
2191
2228
  },
2192
- } }),
2229
+ },
2230
+ },
2193
2231
  },
2194
2232
  };
2195
2233
  export const QuotaAllocationRequestStatus = {
2196
2234
  type: {
2197
2235
  name: "Composite",
2198
2236
  className: "QuotaAllocationRequestStatus",
2199
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2237
+ modelProperties: {
2238
+ ...ProxyResource.type.modelProperties,
2239
+ properties: {
2200
2240
  serializedName: "properties",
2201
2241
  type: {
2202
2242
  name: "Composite",
2203
2243
  className: "QuotaAllocationRequestStatusProperties",
2204
2244
  },
2205
- } }),
2245
+ },
2246
+ },
2206
2247
  },
2207
2248
  };
2208
2249
  export const ResourceUsages = {
2209
2250
  type: {
2210
2251
  name: "Composite",
2211
2252
  className: "ResourceUsages",
2212
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2253
+ modelProperties: {
2254
+ ...ProxyResource.type.modelProperties,
2255
+ properties: {
2213
2256
  serializedName: "properties",
2214
2257
  type: {
2215
2258
  name: "Composite",
2216
2259
  className: "GroupQuotaUsagesBase",
2217
2260
  },
2218
- } }),
2261
+ },
2262
+ },
2219
2263
  },
2220
2264
  };
2221
2265
  export const GroupQuotasCreateOrUpdateHeaders = {