@azure/arm-resources-subscriptions 2.0.0-beta.1 → 2.0.0

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 (93) hide show
  1. package/CHANGELOG.md +7 -11
  2. package/README.md +7 -3
  3. package/dist/index.js +3 -23
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/{index.d.ts → src/index.d.ts} +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/dist-esm/{index.js → src/index.js} +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/dist-esm/{models → src/models}/index.d.ts +2 -2
  12. package/dist-esm/src/models/index.d.ts.map +1 -0
  13. package/dist-esm/{models → src/models}/index.js +0 -0
  14. package/dist-esm/src/models/index.js.map +1 -0
  15. package/dist-esm/{models → src/models}/mappers.d.ts +0 -0
  16. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  17. package/dist-esm/{models → src/models}/mappers.js +0 -0
  18. package/dist-esm/src/models/mappers.js.map +1 -0
  19. package/dist-esm/{models → src/models}/parameters.d.ts +0 -0
  20. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  21. package/dist-esm/{models → src/models}/parameters.js +0 -0
  22. package/dist-esm/src/models/parameters.js.map +1 -0
  23. package/dist-esm/{operations → src/operations}/index.d.ts +0 -0
  24. package/dist-esm/src/operations/index.d.ts.map +1 -0
  25. package/dist-esm/{operations → src/operations}/index.js +0 -0
  26. package/dist-esm/src/operations/index.js.map +1 -0
  27. package/dist-esm/{operations → src/operations}/subscriptions.d.ts +2 -3
  28. package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
  29. package/dist-esm/{operations → src/operations}/subscriptions.js +0 -1
  30. package/dist-esm/src/operations/subscriptions.js.map +1 -0
  31. package/dist-esm/{operations → src/operations}/tenants.d.ts +2 -3
  32. package/dist-esm/src/operations/tenants.d.ts.map +1 -0
  33. package/dist-esm/{operations → src/operations}/tenants.js +0 -1
  34. package/dist-esm/src/operations/tenants.js.map +1 -0
  35. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.d.ts +0 -0
  36. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  37. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.js +0 -0
  38. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  39. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/subscriptions.d.ts +0 -1
  40. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
  41. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/subscriptions.js +1 -1
  42. package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
  43. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/tenants.d.ts +0 -1
  44. package/dist-esm/src/operationsInterfaces/tenants.d.ts.map +1 -0
  45. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/tenants.js +1 -1
  46. package/dist-esm/src/operationsInterfaces/tenants.js.map +1 -0
  47. package/dist-esm/{subscriptionClient.d.ts → src/subscriptionClient.d.ts} +6 -4
  48. package/dist-esm/src/subscriptionClient.d.ts.map +1 -0
  49. package/dist-esm/{subscriptionClient.js → src/subscriptionClient.js} +26 -3
  50. package/dist-esm/src/subscriptionClient.js.map +1 -0
  51. package/dist-esm/test/sampleTest.d.ts +2 -0
  52. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  53. package/dist-esm/test/sampleTest.js +40 -0
  54. package/dist-esm/test/sampleTest.js.map +1 -0
  55. package/package.json +16 -13
  56. package/review/arm-resources-subscriptions.api.md +14 -19
  57. package/src/index.ts +0 -1
  58. package/src/models/index.ts +2 -2
  59. package/src/operations/subscriptions.ts +3 -4
  60. package/src/operations/tenants.ts +3 -4
  61. package/src/operationsInterfaces/subscriptions.ts +0 -1
  62. package/src/operationsInterfaces/tenants.ts +0 -1
  63. package/src/subscriptionClient.ts +43 -7
  64. package/tsconfig.json +1 -1
  65. package/types/arm-resources-subscriptions.d.ts +13 -22
  66. package/types/tsdoc-metadata.json +1 -1
  67. package/dist-esm/index.d.ts.map +0 -1
  68. package/dist-esm/index.js.map +0 -1
  69. package/dist-esm/models/index.d.ts.map +0 -1
  70. package/dist-esm/models/index.js.map +0 -1
  71. package/dist-esm/models/mappers.d.ts.map +0 -1
  72. package/dist-esm/models/mappers.js.map +0 -1
  73. package/dist-esm/models/parameters.d.ts.map +0 -1
  74. package/dist-esm/models/parameters.js.map +0 -1
  75. package/dist-esm/operations/index.d.ts.map +0 -1
  76. package/dist-esm/operations/index.js.map +0 -1
  77. package/dist-esm/operations/subscriptions.d.ts.map +0 -1
  78. package/dist-esm/operations/subscriptions.js.map +0 -1
  79. package/dist-esm/operations/tenants.d.ts.map +0 -1
  80. package/dist-esm/operations/tenants.js.map +0 -1
  81. package/dist-esm/operationsInterfaces/index.d.ts.map +0 -1
  82. package/dist-esm/operationsInterfaces/index.js.map +0 -1
  83. package/dist-esm/operationsInterfaces/subscriptions.d.ts.map +0 -1
  84. package/dist-esm/operationsInterfaces/subscriptions.js.map +0 -1
  85. package/dist-esm/operationsInterfaces/tenants.d.ts.map +0 -1
  86. package/dist-esm/operationsInterfaces/tenants.js.map +0 -1
  87. package/dist-esm/subscriptionClient.d.ts.map +0 -1
  88. package/dist-esm/subscriptionClient.js.map +0 -1
  89. package/dist-esm/subscriptionClientContext.d.ts +0 -14
  90. package/dist-esm/subscriptionClientContext.d.ts.map +0 -1
  91. package/dist-esm/subscriptionClientContext.js +0 -43
  92. package/dist-esm/subscriptionClientContext.js.map +0 -1
  93. package/src/subscriptionClientContext.ts +0 -62
package/CHANGELOG.md CHANGED
@@ -1,15 +1,11 @@
1
- ## 2.0.0-beta.1 (2021-10-20)
1
+ # Release History
2
+
3
+ ## 2.0.0 (2021-12-16)
2
4
 
3
- This is the first preview for the new version of the `@azure/arm-resources-subscriptions` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
5
+ The package of @azure/arm-resources-subscriptions is using our next generation design principles since version 2.0.0, which contains breaking changes.
4
6
 
5
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- **Noteworthy changes and features**
10
-
11
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
12
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
13
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
14
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
15
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -33,9 +33,9 @@ npm install @azure/arm-resources-subscriptions
33
33
  To create a client object to access the Azure Subscription API, you will need the `endpoint` of your Azure Subscription resource and a `credential`. The Azure Subscription client can use Azure Active Directory credentials to authenticate.
34
34
  You can find the endpoint for your Azure Subscription resource in the [Azure Portal][azure_portal].
35
35
 
36
- #### Using an Azure Active Directory Credential
36
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
37
37
 
38
- You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
39
39
 
40
40
  ```bash
41
41
  npm install @azure/identity
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new SubscriptionClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### SubscriptionClient
@@ -66,7 +70,7 @@ const client = new SubscriptionClient(new DefaultAzureCredential(), subscription
66
70
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
67
71
 
68
72
  ```javascript
69
- import { setLogLevel } from "@azure/logger";
73
+ const { setLogLevel } = require("@azure/logger");
70
74
  setLogLevel("info");
71
75
  ```
72
76
 
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
6
  var tslib = require('tslib');
7
- require('@azure/core-paging');
8
7
 
9
8
  /*
10
9
  * Copyright (c) Microsoft Corporation.
@@ -1130,9 +1129,9 @@ const listNextOperationSpec$1 = {
1130
1129
  * Code generated by Microsoft (R) AutoRest Code Generator.
1131
1130
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1132
1131
  */
1133
- class SubscriptionClientContext extends coreClient.ServiceClient {
1132
+ class SubscriptionClient extends coreClient.ServiceClient {
1134
1133
  /**
1135
- * Initializes a new instance of the SubscriptionClientContext class.
1134
+ * Initializes a new instance of the SubscriptionClient class.
1136
1135
  * @param credentials Subscription credentials which uniquely identify client subscription.
1137
1136
  * @param options The parameter options
1138
1137
  */
@@ -1148,7 +1147,7 @@ class SubscriptionClientContext extends coreClient.ServiceClient {
1148
1147
  requestContentType: "application/json; charset=utf-8",
1149
1148
  credential: credentials
1150
1149
  };
1151
- const packageDetails = `azsdk-js-arm-resources-subscriptions/2.0.0-beta.1`;
1150
+ const packageDetails = `azsdk-js-arm-resources-subscriptions/2.0.0`;
1152
1151
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1153
1152
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1154
1153
  : `${packageDetails}`;
@@ -1162,24 +1161,6 @@ class SubscriptionClientContext extends coreClient.ServiceClient {
1162
1161
  // Assigning values to Constant parameters
1163
1162
  this.$host = options.$host || "https://management.azure.com";
1164
1163
  this.apiVersion = options.apiVersion || "2021-01-01";
1165
- }
1166
- }
1167
-
1168
- /*
1169
- * Copyright (c) Microsoft Corporation.
1170
- * Licensed under the MIT License.
1171
- *
1172
- * Code generated by Microsoft (R) AutoRest Code Generator.
1173
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1174
- */
1175
- class SubscriptionClient extends SubscriptionClientContext {
1176
- /**
1177
- * Initializes a new instance of the SubscriptionClient class.
1178
- * @param credentials Subscription credentials which uniquely identify client subscription.
1179
- * @param options The parameter options
1180
- */
1181
- constructor(credentials, options) {
1182
- super(credentials, options);
1183
1164
  this.subscriptions = new SubscriptionsImpl(this);
1184
1165
  this.tenants = new TenantsImpl(this);
1185
1166
  }
@@ -1214,5 +1195,4 @@ const checkResourceNameOperationSpec = {
1214
1195
  };
1215
1196
 
1216
1197
  exports.SubscriptionClient = SubscriptionClient;
1217
- exports.SubscriptionClientContext = SubscriptionClientContext;
1218
1198
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/subscriptions.ts","../src/operations/tenants.ts","../src/subscriptionClientContext.ts","../src/subscriptionClient.ts"],"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\";\n\n/** Location list operation response. */\nexport interface LocationListResult {\n /** An array of locations. */\n value?: Location[];\n}\n\n/** Location information. */\nexport interface Location {\n /**\n * The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n /**\n * The location name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The location type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: LocationType;\n /**\n * The display name of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The display name of the location and its region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionalDisplayName?: string;\n /** Metadata of the location, such as lat/long, paired region, and others. */\n metadata?: LocationMetadata;\n}\n\n/** Location metadata information */\nexport interface LocationMetadata {\n /**\n * The type of the region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionType?: RegionType;\n /**\n * The category of the region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionCategory?: RegionCategory;\n /**\n * The geography group of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly geographyGroup?: string;\n /**\n * The longitude of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly longitude?: string;\n /**\n * The latitude of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly latitude?: string;\n /**\n * The physical location of the Azure location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly physicalLocation?: string;\n /** The regions paired to this region. */\n pairedRegion?: PairedRegion[];\n /**\n * The home location of an edge zone.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly homeLocation?: string;\n}\n\n/** Information regarding paired region. */\nexport interface PairedRegion {\n /**\n * The name of the paired region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n}\n\n/** An error response for a resource management request. */\nexport interface CloudError {\n /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\n error?: ErrorResponse;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\nexport interface ErrorResponse {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorResponse[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Subscription information. */\nexport interface Subscription {\n /**\n * The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n /**\n * The subscription display name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The subscription tenant ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /**\n * The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly state?: SubscriptionState;\n /** The subscription policies. */\n subscriptionPolicies?: SubscriptionPolicies;\n /** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */\n authorizationSource?: string;\n /** An array containing the tenants managing the subscription. */\n managedByTenants?: ManagedByTenant[];\n /** The tags attached to the subscription. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Subscription policies. */\nexport interface SubscriptionPolicies {\n /**\n * The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly locationPlacementId?: string;\n /**\n * The subscription quota ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly quotaId?: string;\n /**\n * The subscription spending limit.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly spendingLimit?: SpendingLimit;\n}\n\n/** Information about a tenant managing the subscription. */\nexport interface ManagedByTenant {\n /**\n * The tenant ID of the managing tenant. This is a GUID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n}\n\n/** Subscription list operation response. */\nexport interface SubscriptionListResult {\n /** An array of subscriptions. */\n value?: Subscription[];\n /** The URL to get the next set of results. */\n nextLink: string;\n}\n\n/** Tenant Ids information. */\nexport interface TenantListResult {\n /** An array of tenants. */\n value?: TenantIdDescription[];\n /** The URL to use for getting the next set of results. */\n nextLink: string;\n}\n\n/** Tenant Id information. */\nexport interface TenantIdDescription {\n /**\n * The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The tenant ID. For example, 00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /**\n * Category of the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantCategory?: TenantCategory;\n /**\n * Country/region name of the address for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly country?: string;\n /**\n * Country/region abbreviation for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly countryCode?: string;\n /**\n * The display name of the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The list of domains for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly domains?: string[];\n /**\n * The default domain for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly defaultDomain?: string;\n /**\n * The tenant type. Only available for 'Home' tenant category.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantType?: string;\n /**\n * The tenant's branding logo URL. Only available for 'Home' tenant category.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantBrandingLogoUrl?: string;\n}\n\n/** Name and Type of the Resource */\nexport interface ResourceName {\n /** Name of the resource */\n name: string;\n /** The type of the resource */\n type: string;\n}\n\n/** Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word */\nexport interface CheckResourceNameResult {\n /** Name of Resource */\n name?: string;\n /** Type of Resource */\n type?: string;\n /** Is the resource name Allowed or Reserved */\n status?: ResourceNameStatus;\n}\n\n/** Microsoft.Resources operation */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Resources */\n provider?: string;\n /** Resource on which the operation is performed: Profile, endpoint, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n /** Description of the operation. */\n description?: string;\n}\n\n/** Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of Microsoft.Resources operations. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Known values of {@link RegionType} that the service accepts. */\nexport enum KnownRegionType {\n Physical = \"Physical\",\n Logical = \"Logical\"\n}\n\n/**\n * Defines values for RegionType. \\\n * {@link KnownRegionType} can be used interchangeably with RegionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Physical** \\\n * **Logical**\n */\nexport type RegionType = string;\n\n/** Known values of {@link RegionCategory} that the service accepts. */\nexport enum KnownRegionCategory {\n Recommended = \"Recommended\",\n Extended = \"Extended\",\n Other = \"Other\"\n}\n\n/**\n * Defines values for RegionCategory. \\\n * {@link KnownRegionCategory} can be used interchangeably with RegionCategory,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Recommended** \\\n * **Extended** \\\n * **Other**\n */\nexport type RegionCategory = string;\n\n/** Known values of {@link ResourceNameStatus} that the service accepts. */\nexport enum KnownResourceNameStatus {\n Allowed = \"Allowed\",\n Reserved = \"Reserved\"\n}\n\n/**\n * Defines values for ResourceNameStatus. \\\n * {@link KnownResourceNameStatus} can be used interchangeably with ResourceNameStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Allowed** \\\n * **Reserved**\n */\nexport type ResourceNameStatus = string;\n/** Defines values for LocationType. */\nexport type LocationType = \"Region\" | \"EdgeZone\";\n/** Defines values for SubscriptionState. */\nexport type SubscriptionState =\n | \"Enabled\"\n | \"Warned\"\n | \"PastDue\"\n | \"Disabled\"\n | \"Deleted\";\n/** Defines values for SpendingLimit. */\nexport type SpendingLimit = \"On\" | \"Off\" | \"CurrentPeriodOff\";\n/** Defines values for TenantCategory. */\nexport type TenantCategory = \"Home\" | \"ProjectedBy\" | \"ManagedBy\";\n\n/** Optional parameters. */\nexport interface SubscriptionsListLocationsOptionalParams\n extends coreClient.OperationOptions {\n /** Whether to include extended locations. */\n includeExtendedLocations?: boolean;\n}\n\n/** Contains response data for the listLocations operation. */\nexport type SubscriptionsListLocationsResponse = LocationListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type SubscriptionsGetResponse = Subscription;\n\n/** Optional parameters. */\nexport interface SubscriptionsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type SubscriptionsListResponse = SubscriptionListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type SubscriptionsListNextResponse = SubscriptionListResult;\n\n/** Optional parameters. */\nexport interface TenantsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type TenantsListResponse = TenantListResult;\n\n/** Optional parameters. */\nexport interface TenantsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type TenantsListNextResponse = TenantListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionClientCheckResourceNameOptionalParams\n extends coreClient.OperationOptions {\n /** Resource object with values for resource name and resource type */\n resourceNameDefinition?: ResourceName;\n}\n\n/** Contains response data for the checkResourceName operation. */\nexport type SubscriptionClientCheckResourceNameResponse = CheckResourceNameResult;\n\n/** Optional parameters. */\nexport interface SubscriptionClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\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\";\n\nexport const LocationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Location\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Location: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Location\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Region\", \"EdgeZone\"]\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n regionalDisplayName: {\n serializedName: \"regionalDisplayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Composite\",\n className: \"LocationMetadata\"\n }\n }\n }\n }\n};\n\nexport const LocationMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocationMetadata\",\n modelProperties: {\n regionType: {\n serializedName: \"regionType\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n regionCategory: {\n serializedName: \"regionCategory\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n geographyGroup: {\n serializedName: \"geographyGroup\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n longitude: {\n serializedName: \"longitude\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n latitude: {\n serializedName: \"latitude\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n physicalLocation: {\n serializedName: \"physicalLocation\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n pairedRegion: {\n serializedName: \"pairedRegion\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PairedRegion\"\n }\n }\n }\n },\n homeLocation: {\n serializedName: \"homeLocation\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PairedRegion: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PairedRegion\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const Subscription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Subscription\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n state: {\n serializedName: \"state\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Enabled\", \"Warned\", \"PastDue\", \"Disabled\", \"Deleted\"]\n }\n },\n subscriptionPolicies: {\n serializedName: \"subscriptionPolicies\",\n type: {\n name: \"Composite\",\n className: \"SubscriptionPolicies\"\n }\n },\n authorizationSource: {\n serializedName: \"authorizationSource\",\n type: {\n name: \"String\"\n }\n },\n managedByTenants: {\n serializedName: \"managedByTenants\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ManagedByTenant\"\n }\n }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const SubscriptionPolicies: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionPolicies\",\n modelProperties: {\n locationPlacementId: {\n serializedName: \"locationPlacementId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n quotaId: {\n serializedName: \"quotaId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n spendingLimit: {\n serializedName: \"spendingLimit\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"On\", \"Off\", \"CurrentPeriodOff\"]\n }\n }\n }\n }\n};\n\nexport const ManagedByTenant: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedByTenant\",\n modelProperties: {\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubscriptionListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Subscription\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TenantListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TenantListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TenantIdDescription\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TenantIdDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TenantIdDescription\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantCategory: {\n serializedName: \"tenantCategory\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Home\", \"ProjectedBy\", \"ManagedBy\"]\n }\n },\n country: {\n serializedName: \"country\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n countryCode: {\n serializedName: \"countryCode\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n domains: {\n serializedName: \"domains\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n defaultDomain: {\n serializedName: \"defaultDomain\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantType: {\n serializedName: \"tenantType\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantBrandingLogoUrl: {\n serializedName: \"tenantBrandingLogoUrl\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceName: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceName\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckResourceNameResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckResourceNameResult\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { ResourceName as ResourceNameMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-01-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const includeExtendedLocations: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeExtendedLocations\"],\n mapper: {\n serializedName: \"includeExtendedLocations\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceNameDefinition: OperationParameter = {\n parameterPath: [\"options\", \"resourceNameDefinition\"],\n mapper: ResourceNameMapper\n};\n","/*\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 \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Subscriptions } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SubscriptionClientContext } from \"../subscriptionClientContext\";\nimport {\n Location,\n SubscriptionsListLocationsOptionalParams,\n Subscription,\n SubscriptionsListNextOptionalParams,\n SubscriptionsListOptionalParams,\n SubscriptionsListLocationsResponse,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n SubscriptionsListResponse,\n SubscriptionsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: SubscriptionClientContext;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClientContext) {\n this.client = client;\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n public listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): PagedAsyncIterableIterator<Location> {\n const iter = this.listLocationsPagingAll(subscriptionId, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listLocationsPagingPage(subscriptionId, options);\n }\n };\n }\n\n private async *listLocationsPagingPage(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): AsyncIterableIterator<Location[]> {\n let result = await this._listLocations(subscriptionId, options);\n yield result.value || [];\n }\n\n private async *listLocationsPagingAll(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): AsyncIterableIterator<Location> {\n for await (const page of this.listLocationsPagingPage(\n subscriptionId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n public list(\n options?: SubscriptionsListOptionalParams\n ): PagedAsyncIterableIterator<Subscription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: SubscriptionsListOptionalParams\n ): AsyncIterableIterator<Subscription[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: SubscriptionsListOptionalParams\n ): AsyncIterableIterator<Subscription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n private _listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): Promise<SubscriptionsListLocationsResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n listLocationsOperationSpec\n );\n }\n\n /**\n * Gets details about a specified subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n private _list(\n options?: SubscriptionsListOptionalParams\n ): Promise<SubscriptionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: SubscriptionsListNextOptionalParams\n ): Promise<SubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listLocationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/locations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeExtendedLocations],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Tenants } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SubscriptionClientContext } from \"../subscriptionClientContext\";\nimport {\n TenantIdDescription,\n TenantsListNextOptionalParams,\n TenantsListOptionalParams,\n TenantsListResponse,\n TenantsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tenants operations. */\nexport class TenantsImpl implements Tenants {\n private readonly client: SubscriptionClientContext;\n\n /**\n * Initialize a new instance of the class Tenants class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClientContext) {\n this.client = client;\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n public list(\n options?: TenantsListOptionalParams\n ): PagedAsyncIterableIterator<TenantIdDescription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: TenantsListOptionalParams\n ): AsyncIterableIterator<TenantIdDescription[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: TenantsListOptionalParams\n ): AsyncIterableIterator<TenantIdDescription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n private _list(\n options?: TenantsListOptionalParams\n ): Promise<TenantsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: TenantsListNextOptionalParams\n ): Promise<TenantsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/tenants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 coreAuth from \"@azure/core-auth\";\nimport { SubscriptionClientOptionalParams } from \"./models\";\n\nexport class SubscriptionClientContext extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SubscriptionClientContext class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SubscriptionClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SubscriptionClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-resources-subscriptions/2.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-01-01\";\n }\n}\n","/*\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 coreAuth from \"@azure/core-auth\";\nimport { SubscriptionsImpl, TenantsImpl } from \"./operations\";\nimport { Subscriptions, Tenants } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { SubscriptionClientContext } from \"./subscriptionClientContext\";\nimport {\n SubscriptionClientOptionalParams,\n SubscriptionClientCheckResourceNameOptionalParams,\n SubscriptionClientCheckResourceNameResponse\n} from \"./models\";\n\nexport class SubscriptionClient extends SubscriptionClientContext {\n /**\n * Initializes a new instance of the SubscriptionClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SubscriptionClientOptionalParams\n ) {\n super(credentials, options);\n this.subscriptions = new SubscriptionsImpl(this);\n this.tenants = new TenantsImpl(this);\n }\n\n /**\n * A resource name is valid if it is not a reserved word, does not contains a reserved word and does\n * not start with a reserved word\n * @param options The options parameters.\n */\n checkResourceName(\n options?: SubscriptionClientCheckResourceNameOptionalParams\n ): Promise<SubscriptionClientCheckResourceNameResponse> {\n return this.sendOperationRequest(\n { options },\n checkResourceNameOperationSpec\n );\n }\n\n subscriptions: Subscriptions;\n tenants: Tenants;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkResourceNameOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/checkResourceName\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckResourceNameResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.resourceNameDefinition,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"],"names":["KnownRegionType","KnownRegionCategory","KnownResourceNameStatus","ResourceNameMapper","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.LocationListResult","Mappers.CloudError","Parameters.apiVersion","Parameters.includeExtendedLocations","Parameters.$host","Parameters.subscriptionId","Parameters.accept","Mappers.Subscription","Mappers.SubscriptionListResult","Parameters.nextLink","listOperationSpec","listNextOperationSpec","serializer","Mappers.TenantListResult","coreClient.ServiceClient","Mappers.CheckResourceNameResult","Parameters.resourceNameDefinition","Parameters.contentType"],"mappings":";;;;;;;;AAAA;;;;;;;AAuVA,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACrB,CAAC,EAHWA,uBAAe,KAAfA,uBAAe,QAG1B;AAaD,WAAY,mBAAmB;IAC7B,kDAA2B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;QAE1C,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;KACtC;;;;;;IAOD,iBAAiB,CACf,OAA2D;QAE3D,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,EACX,8BAA8B,CAC/B,CAAC;KACH;CAIF;AACD;AACA,MAAMF,YAAU,GAAGb,2BAA2B,CAAC,OAAO,cAAc,KAAK,CAAC,CAAC;AAE3E,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,kDAAkD;IACxD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAEgB,uBAA+B;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAEd,UAAkB;SAC/B;KACF;IACD,WAAW,EAAEe,sBAAiC;IAC9C,eAAe,EAAE,CAACd,UAAqB,CAAC;IACxC,aAAa,EAAE,CAACE,KAAgB,CAAC;IACjC,gBAAgB,EAAE,CAACE,MAAiB,EAAEW,WAAsB,CAAC;IAC7D,SAAS,EAAE,MAAM;gBACjBL,YAAU;CACX,CAAC;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/subscriptions.ts","../src/operations/tenants.ts","../src/subscriptionClient.ts"],"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\";\n\n/** Location list operation response. */\nexport interface LocationListResult {\n /** An array of locations. */\n value?: Location[];\n}\n\n/** Location information. */\nexport interface Location {\n /**\n * The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n /**\n * The location name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The location type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: LocationType;\n /**\n * The display name of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The display name of the location and its region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionalDisplayName?: string;\n /** Metadata of the location, such as lat/long, paired region, and others. */\n metadata?: LocationMetadata;\n}\n\n/** Location metadata information */\nexport interface LocationMetadata {\n /**\n * The type of the region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionType?: RegionType;\n /**\n * The category of the region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly regionCategory?: RegionCategory;\n /**\n * The geography group of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly geographyGroup?: string;\n /**\n * The longitude of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly longitude?: string;\n /**\n * The latitude of the location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly latitude?: string;\n /**\n * The physical location of the Azure location.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly physicalLocation?: string;\n /** The regions paired to this region. */\n pairedRegion?: PairedRegion[];\n /**\n * The home location of an edge zone.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly homeLocation?: string;\n}\n\n/** Information regarding paired region. */\nexport interface PairedRegion {\n /**\n * The name of the paired region.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n}\n\n/** An error response for a resource management request. */\nexport interface CloudError {\n /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\n error?: ErrorResponse;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\nexport interface ErrorResponse {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorResponse[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Subscription information. */\nexport interface Subscription {\n /**\n * The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The subscription ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subscriptionId?: string;\n /**\n * The subscription display name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The subscription tenant ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /**\n * The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly state?: SubscriptionState;\n /** The subscription policies. */\n subscriptionPolicies?: SubscriptionPolicies;\n /** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */\n authorizationSource?: string;\n /** An array containing the tenants managing the subscription. */\n managedByTenants?: ManagedByTenant[];\n /** The tags attached to the subscription. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Subscription policies. */\nexport interface SubscriptionPolicies {\n /**\n * The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly locationPlacementId?: string;\n /**\n * The subscription quota ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly quotaId?: string;\n /**\n * The subscription spending limit.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly spendingLimit?: SpendingLimit;\n}\n\n/** Information about a tenant managing the subscription. */\nexport interface ManagedByTenant {\n /**\n * The tenant ID of the managing tenant. This is a GUID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n}\n\n/** Subscription list operation response. */\nexport interface SubscriptionListResult {\n /** An array of subscriptions. */\n value?: Subscription[];\n /** The URL to get the next set of results. */\n nextLink: string;\n}\n\n/** Tenant Ids information. */\nexport interface TenantListResult {\n /** An array of tenants. */\n value?: TenantIdDescription[];\n /** The URL to use for getting the next set of results. */\n nextLink: string;\n}\n\n/** Tenant Id information. */\nexport interface TenantIdDescription {\n /**\n * The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The tenant ID. For example, 00000000-0000-0000-0000-000000000000.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /**\n * Category of the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantCategory?: TenantCategory;\n /**\n * Country/region name of the address for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly country?: string;\n /**\n * Country/region abbreviation for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly countryCode?: string;\n /**\n * The display name of the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly displayName?: string;\n /**\n * The list of domains for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly domains?: string[];\n /**\n * The default domain for the tenant.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly defaultDomain?: string;\n /**\n * The tenant type. Only available for 'Home' tenant category.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantType?: string;\n /**\n * The tenant's branding logo URL. Only available for 'Home' tenant category.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantBrandingLogoUrl?: string;\n}\n\n/** Name and Type of the Resource */\nexport interface ResourceName {\n /** Name of the resource */\n name: string;\n /** The type of the resource */\n type: string;\n}\n\n/** Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word */\nexport interface CheckResourceNameResult {\n /** Name of Resource */\n name?: string;\n /** Type of Resource */\n type?: string;\n /** Is the resource name Allowed or Reserved */\n status?: ResourceNameStatus;\n}\n\n/** Microsoft.Resources operation */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Resources */\n provider?: string;\n /** Resource on which the operation is performed: Profile, endpoint, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n /** Description of the operation. */\n description?: string;\n}\n\n/** Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of Microsoft.Resources operations. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Known values of {@link RegionType} that the service accepts. */\nexport enum KnownRegionType {\n Physical = \"Physical\",\n Logical = \"Logical\"\n}\n\n/**\n * Defines values for RegionType. \\\n * {@link KnownRegionType} can be used interchangeably with RegionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Physical** \\\n * **Logical**\n */\nexport type RegionType = string;\n\n/** Known values of {@link RegionCategory} that the service accepts. */\nexport enum KnownRegionCategory {\n Recommended = \"Recommended\",\n Extended = \"Extended\",\n Other = \"Other\"\n}\n\n/**\n * Defines values for RegionCategory. \\\n * {@link KnownRegionCategory} can be used interchangeably with RegionCategory,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Recommended** \\\n * **Extended** \\\n * **Other**\n */\nexport type RegionCategory = string;\n\n/** Known values of {@link ResourceNameStatus} that the service accepts. */\nexport enum KnownResourceNameStatus {\n Allowed = \"Allowed\",\n Reserved = \"Reserved\"\n}\n\n/**\n * Defines values for ResourceNameStatus. \\\n * {@link KnownResourceNameStatus} can be used interchangeably with ResourceNameStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Allowed** \\\n * **Reserved**\n */\nexport type ResourceNameStatus = string;\n/** Defines values for LocationType. */\nexport type LocationType = \"Region\" | \"EdgeZone\";\n/** Defines values for SubscriptionState. */\nexport type SubscriptionState =\n | \"Enabled\"\n | \"Warned\"\n | \"PastDue\"\n | \"Disabled\"\n | \"Deleted\";\n/** Defines values for SpendingLimit. */\nexport type SpendingLimit = \"On\" | \"Off\" | \"CurrentPeriodOff\";\n/** Defines values for TenantCategory. */\nexport type TenantCategory = \"Home\" | \"ProjectedBy\" | \"ManagedBy\";\n\n/** Optional parameters. */\nexport interface SubscriptionsListLocationsOptionalParams\n extends coreClient.OperationOptions {\n /** Whether to include extended locations. */\n includeExtendedLocations?: boolean;\n}\n\n/** Contains response data for the listLocations operation. */\nexport type SubscriptionsListLocationsResponse = LocationListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type SubscriptionsGetResponse = Subscription;\n\n/** Optional parameters. */\nexport interface SubscriptionsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type SubscriptionsListResponse = SubscriptionListResult;\n\n/** Optional parameters. */\nexport interface SubscriptionsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type SubscriptionsListNextResponse = SubscriptionListResult;\n\n/** Optional parameters. */\nexport interface TenantsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type TenantsListResponse = TenantListResult;\n\n/** Optional parameters. */\nexport interface TenantsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type TenantsListNextResponse = TenantListResult;\n\n/** Optional parameters. */\nexport interface CheckResourceNameOptionalParams\n extends coreClient.OperationOptions {\n /** Resource object with values for resource name and resource type */\n resourceNameDefinition?: ResourceName;\n}\n\n/** Contains response data for the checkResourceName operation. */\nexport type CheckResourceNameResponse = CheckResourceNameResult;\n\n/** Optional parameters. */\nexport interface SubscriptionClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\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\";\n\nexport const LocationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Location\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Location: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Location\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Region\", \"EdgeZone\"]\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n regionalDisplayName: {\n serializedName: \"regionalDisplayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Composite\",\n className: \"LocationMetadata\"\n }\n }\n }\n }\n};\n\nexport const LocationMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocationMetadata\",\n modelProperties: {\n regionType: {\n serializedName: \"regionType\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n regionCategory: {\n serializedName: \"regionCategory\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n geographyGroup: {\n serializedName: \"geographyGroup\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n longitude: {\n serializedName: \"longitude\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n latitude: {\n serializedName: \"latitude\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n physicalLocation: {\n serializedName: \"physicalLocation\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n pairedRegion: {\n serializedName: \"pairedRegion\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PairedRegion\"\n }\n }\n }\n },\n homeLocation: {\n serializedName: \"homeLocation\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PairedRegion: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PairedRegion\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const Subscription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Subscription\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"subscriptionId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n state: {\n serializedName: \"state\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Enabled\", \"Warned\", \"PastDue\", \"Disabled\", \"Deleted\"]\n }\n },\n subscriptionPolicies: {\n serializedName: \"subscriptionPolicies\",\n type: {\n name: \"Composite\",\n className: \"SubscriptionPolicies\"\n }\n },\n authorizationSource: {\n serializedName: \"authorizationSource\",\n type: {\n name: \"String\"\n }\n },\n managedByTenants: {\n serializedName: \"managedByTenants\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ManagedByTenant\"\n }\n }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const SubscriptionPolicies: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionPolicies\",\n modelProperties: {\n locationPlacementId: {\n serializedName: \"locationPlacementId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n quotaId: {\n serializedName: \"quotaId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n spendingLimit: {\n serializedName: \"spendingLimit\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"On\", \"Off\", \"CurrentPeriodOff\"]\n }\n }\n }\n }\n};\n\nexport const ManagedByTenant: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedByTenant\",\n modelProperties: {\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubscriptionListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubscriptionListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Subscription\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TenantListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TenantListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TenantIdDescription\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TenantIdDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TenantIdDescription\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantCategory: {\n serializedName: \"tenantCategory\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"Home\", \"ProjectedBy\", \"ManagedBy\"]\n }\n },\n country: {\n serializedName: \"country\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n countryCode: {\n serializedName: \"countryCode\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n domains: {\n serializedName: \"domains\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n defaultDomain: {\n serializedName: \"defaultDomain\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantType: {\n serializedName: \"tenantType\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantBrandingLogoUrl: {\n serializedName: \"tenantBrandingLogoUrl\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceName: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceName\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckResourceNameResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckResourceNameResult\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { ResourceName as ResourceNameMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-01-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const includeExtendedLocations: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeExtendedLocations\"],\n mapper: {\n serializedName: \"includeExtendedLocations\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceNameDefinition: OperationParameter = {\n parameterPath: [\"options\", \"resourceNameDefinition\"],\n mapper: ResourceNameMapper\n};\n","/*\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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Subscriptions } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SubscriptionClient } from \"../subscriptionClient\";\nimport {\n Location,\n SubscriptionsListLocationsOptionalParams,\n Subscription,\n SubscriptionsListNextOptionalParams,\n SubscriptionsListOptionalParams,\n SubscriptionsListLocationsResponse,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n SubscriptionsListResponse,\n SubscriptionsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n public listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): PagedAsyncIterableIterator<Location> {\n const iter = this.listLocationsPagingAll(subscriptionId, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listLocationsPagingPage(subscriptionId, options);\n }\n };\n }\n\n private async *listLocationsPagingPage(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): AsyncIterableIterator<Location[]> {\n let result = await this._listLocations(subscriptionId, options);\n yield result.value || [];\n }\n\n private async *listLocationsPagingAll(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): AsyncIterableIterator<Location> {\n for await (const page of this.listLocationsPagingPage(\n subscriptionId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n public list(\n options?: SubscriptionsListOptionalParams\n ): PagedAsyncIterableIterator<Subscription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: SubscriptionsListOptionalParams\n ): AsyncIterableIterator<Subscription[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: SubscriptionsListOptionalParams\n ): AsyncIterableIterator<Subscription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This operation provides all the locations that are available for resource providers; however, each\n * resource provider may support a subset of this list.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n private _listLocations(\n subscriptionId: string,\n options?: SubscriptionsListLocationsOptionalParams\n ): Promise<SubscriptionsListLocationsResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n listLocationsOperationSpec\n );\n }\n\n /**\n * Gets details about a specified subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets all subscriptions for a tenant.\n * @param options The options parameters.\n */\n private _list(\n options?: SubscriptionsListOptionalParams\n ): Promise<SubscriptionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: SubscriptionsListNextOptionalParams\n ): Promise<SubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listLocationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/locations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeExtendedLocations],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Tenants } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SubscriptionClient } from \"../subscriptionClient\";\nimport {\n TenantIdDescription,\n TenantsListNextOptionalParams,\n TenantsListOptionalParams,\n TenantsListResponse,\n TenantsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tenants operations. */\nexport class TenantsImpl implements Tenants {\n private readonly client: SubscriptionClient;\n\n /**\n * Initialize a new instance of the class Tenants class.\n * @param client Reference to the service client\n */\n constructor(client: SubscriptionClient) {\n this.client = client;\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n public list(\n options?: TenantsListOptionalParams\n ): PagedAsyncIterableIterator<TenantIdDescription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: TenantsListOptionalParams\n ): AsyncIterableIterator<TenantIdDescription[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: TenantsListOptionalParams\n ): AsyncIterableIterator<TenantIdDescription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the tenants for your account.\n * @param options The options parameters.\n */\n private _list(\n options?: TenantsListOptionalParams\n ): Promise<TenantsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: TenantsListNextOptionalParams\n ): Promise<TenantsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/tenants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TenantListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 coreAuth from \"@azure/core-auth\";\nimport { SubscriptionsImpl, TenantsImpl } from \"./operations\";\nimport { Subscriptions, Tenants } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n SubscriptionClientOptionalParams,\n CheckResourceNameOptionalParams,\n CheckResourceNameResponse\n} from \"./models\";\n\nexport class SubscriptionClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SubscriptionClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SubscriptionClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SubscriptionClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-resources-subscriptions/2.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-01-01\";\n this.subscriptions = new SubscriptionsImpl(this);\n this.tenants = new TenantsImpl(this);\n }\n\n /**\n * A resource name is valid if it is not a reserved word, does not contains a reserved word and does\n * not start with a reserved word\n * @param options The options parameters.\n */\n checkResourceName(\n options?: CheckResourceNameOptionalParams\n ): Promise<CheckResourceNameResponse> {\n return this.sendOperationRequest(\n { options },\n checkResourceNameOperationSpec\n );\n }\n\n subscriptions: Subscriptions;\n tenants: Tenants;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkResourceNameOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/checkResourceName\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckResourceNameResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.resourceNameDefinition,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"],"names":["KnownRegionType","KnownRegionCategory","KnownResourceNameStatus","ResourceNameMapper","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.LocationListResult","Mappers.CloudError","Parameters.apiVersion","Parameters.includeExtendedLocations","Parameters.$host","Parameters.subscriptionId","Parameters.accept","Mappers.Subscription","Mappers.SubscriptionListResult","Parameters.nextLink","listOperationSpec","listNextOperationSpec","serializer","Mappers.TenantListResult","coreClient.ServiceClient","Mappers.CheckResourceNameResult","Parameters.resourceNameDefinition","Parameters.contentType"],"mappings":";;;;;;;AAAA;;;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AU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;KACtC;;;;;;IAOD,iBAAiB,CACf,OAAyC;QAEzC,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,EACX,8BAA8B,CAC/B,CAAC;KACH;CAIF;AACD;AACA,MAAMF,YAAU,GAAGb,2BAA2B,CAAC,OAAO,cAAc,KAAK,CAAC,CAAC;AAE3E,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,kDAAkD;IACxD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAEgB,uBAA+B;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAEd,UAAkB;SAC/B;KACF;IACD,WAAW,EAAEe,sBAAiC;IAC9C,eAAe,EAAE,CAACd,UAAqB,CAAC;IACxC,aAAa,EAAE,CAACE,KAAgB,CAAC;IACjC,gBAAgB,EAAE,CAACE,MAAiB,EAAEW,WAAsB,CAAC;IAC7D,SAAS,EAAE,MAAM;gBACjBL,YAAU;CACX,CAAC;;;;"}
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");require("@azure/core-paging"),function(e){e.Physical="Physical",e.Logical="Logical"}(exports.KnownRegionType||(exports.KnownRegionType={})),function(e){e.Recommended="Recommended",e.Extended="Extended",e.Other="Other"}(exports.KnownRegionCategory||(exports.KnownRegionCategory={})),function(e){e.Allowed="Allowed",e.Reserved="Reserved"}(exports.KnownResourceNameStatus||(exports.KnownResourceNameStatus={}));const LocationListResult={type:{name:"Composite",className:"LocationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Location"}}}}}}},Location={type:{name:"Composite",className:"Location",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"Enum",allowedValues:["Region","EdgeZone"]}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},regionalDisplayName:{serializedName:"regionalDisplayName",readOnly:!0,type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"LocationMetadata"}}}}},LocationMetadata={type:{name:"Composite",className:"LocationMetadata",modelProperties:{regionType:{serializedName:"regionType",readOnly:!0,type:{name:"String"}},regionCategory:{serializedName:"regionCategory",readOnly:!0,type:{name:"String"}},geographyGroup:{serializedName:"geographyGroup",readOnly:!0,type:{name:"String"}},longitude:{serializedName:"longitude",readOnly:!0,type:{name:"String"}},latitude:{serializedName:"latitude",readOnly:!0,type:{name:"String"}},physicalLocation:{serializedName:"physicalLocation",readOnly:!0,type:{name:"String"}},pairedRegion:{serializedName:"pairedRegion",type:{name:"Sequence",element:{type:{name:"Composite",className:"PairedRegion"}}}},homeLocation:{serializedName:"homeLocation",readOnly:!0,type:{name:"String"}}}}},PairedRegion={type:{name:"Composite",className:"PairedRegion",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorResponse"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorResponse"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Subscription={type:{name:"Composite",className:"Subscription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},state:{serializedName:"state",readOnly:!0,type:{name:"Enum",allowedValues:["Enabled","Warned","PastDue","Disabled","Deleted"]}},subscriptionPolicies:{serializedName:"subscriptionPolicies",type:{name:"Composite",className:"SubscriptionPolicies"}},authorizationSource:{serializedName:"authorizationSource",type:{name:"String"}},managedByTenants:{serializedName:"managedByTenants",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagedByTenant"}}}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},SubscriptionPolicies={type:{name:"Composite",className:"SubscriptionPolicies",modelProperties:{locationPlacementId:{serializedName:"locationPlacementId",readOnly:!0,type:{name:"String"}},quotaId:{serializedName:"quotaId",readOnly:!0,type:{name:"String"}},spendingLimit:{serializedName:"spendingLimit",readOnly:!0,type:{name:"Enum",allowedValues:["On","Off","CurrentPeriodOff"]}}}}},ManagedByTenant={type:{name:"Composite",className:"ManagedByTenant",modelProperties:{tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}}}}},SubscriptionListResult={type:{name:"Composite",className:"SubscriptionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Subscription"}}}},nextLink:{serializedName:"nextLink",required:!0,type:{name:"String"}}}}},TenantListResult={type:{name:"Composite",className:"TenantListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"TenantIdDescription"}}}},nextLink:{serializedName:"nextLink",required:!0,type:{name:"String"}}}}},TenantIdDescription={type:{name:"Composite",className:"TenantIdDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},tenantCategory:{serializedName:"tenantCategory",readOnly:!0,type:{name:"Enum",allowedValues:["Home","ProjectedBy","ManagedBy"]}},country:{serializedName:"country",readOnly:!0,type:{name:"String"}},countryCode:{serializedName:"countryCode",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},domains:{serializedName:"domains",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},defaultDomain:{serializedName:"defaultDomain",readOnly:!0,type:{name:"String"}},tenantType:{serializedName:"tenantType",readOnly:!0,type:{name:"String"}},tenantBrandingLogoUrl:{serializedName:"tenantBrandingLogoUrl",readOnly:!0,type:{name:"String"}}}}},ResourceName={type:{name:"Composite",className:"ResourceName",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},CheckResourceNameResult={type:{name:"Composite",className:"CheckResourceNameResult",modelProperties:{name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,LocationListResult:LocationListResult,Location:Location,LocationMetadata:LocationMetadata,PairedRegion:PairedRegion,CloudError:CloudError,ErrorResponse:ErrorResponse,ErrorAdditionalInfo:ErrorAdditionalInfo,Subscription:Subscription,SubscriptionPolicies:SubscriptionPolicies,ManagedByTenant:ManagedByTenant,SubscriptionListResult:SubscriptionListResult,TenantListResult:TenantListResult,TenantIdDescription:TenantIdDescription,ResourceName:ResourceName,CheckResourceNameResult:CheckResourceNameResult,Operation:Operation,OperationDisplay:OperationDisplay,OperationListResult:OperationListResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-01-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},includeExtendedLocations={parameterPath:["options","includeExtendedLocations"],mapper:{serializedName:"includeExtendedLocations",type:{name:"Boolean"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},resourceNameDefinition={parameterPath:["options","resourceNameDefinition"],mapper:ResourceName};class SubscriptionsImpl{constructor(e){this.client=e}listLocations(e,t){const a=this.listLocationsPagingAll(e,t);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listLocationsPagingPage(e,t)}}listLocationsPagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listLocations(t,a));yield yield tslib.__await(e.value||[])})}listLocationsPagingAll(n,s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listLocationsPagingPage(n,s));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listPagingPage(n));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listLocations(e,t){return this.client.sendOperationRequest({subscriptionId:e,options:t},listLocationsOperationSpec)}get(e,t){return this.client.sendOperationRequest({subscriptionId:e,options:t},getOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listLocationsOperationSpec={path:"/subscriptions/{subscriptionId}/locations",httpMethod:"GET",responses:{200:{bodyMapper:LocationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion,includeExtendedLocations],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}",httpMethod:"GET",responses:{200:{bodyMapper:Subscription},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listOperationSpec={path:"/subscriptions",httpMethod:"GET",responses:{200:{bodyMapper:SubscriptionListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:SubscriptionListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class TenantsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listPagingPage(n));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/tenants",httpMethod:"GET",responses:{200:{bodyMapper:TenantListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:TenantListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class SubscriptionClientContext extends coreClient.ServiceClient{constructor(e,t){if(void 0===e)throw new Error("'credentials' cannot be null");var a={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-resources-subscriptions/2.0.0-beta.1",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${e}`:`${e}`;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},a),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2021-01-01"}}class SubscriptionClient extends SubscriptionClientContext{constructor(e,t){super(e,t),this.subscriptions=new SubscriptionsImpl(this),this.tenants=new TenantsImpl(this)}checkResourceName(e){return this.sendOperationRequest({options:e},checkResourceNameOperationSpec)}}const serializer$2=coreClient.createSerializer(Mappers,!1),checkResourceNameOperationSpec={path:"/providers/Microsoft.Resources/checkResourceName",httpMethod:"POST",responses:{200:{bodyMapper:CheckResourceNameResult},default:{bodyMapper:CloudError}},requestBody:resourceNameDefinition,queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2};exports.SubscriptionClient=SubscriptionClient,exports.SubscriptionClientContext=SubscriptionClientContext;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");!function(e){e.Physical="Physical",e.Logical="Logical"}(exports.KnownRegionType||(exports.KnownRegionType={})),function(e){e.Recommended="Recommended",e.Extended="Extended",e.Other="Other"}(exports.KnownRegionCategory||(exports.KnownRegionCategory={})),function(e){e.Allowed="Allowed",e.Reserved="Reserved"}(exports.KnownResourceNameStatus||(exports.KnownResourceNameStatus={}));const LocationListResult={type:{name:"Composite",className:"LocationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Location"}}}}}}},Location={type:{name:"Composite",className:"Location",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"Enum",allowedValues:["Region","EdgeZone"]}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},regionalDisplayName:{serializedName:"regionalDisplayName",readOnly:!0,type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"LocationMetadata"}}}}},LocationMetadata={type:{name:"Composite",className:"LocationMetadata",modelProperties:{regionType:{serializedName:"regionType",readOnly:!0,type:{name:"String"}},regionCategory:{serializedName:"regionCategory",readOnly:!0,type:{name:"String"}},geographyGroup:{serializedName:"geographyGroup",readOnly:!0,type:{name:"String"}},longitude:{serializedName:"longitude",readOnly:!0,type:{name:"String"}},latitude:{serializedName:"latitude",readOnly:!0,type:{name:"String"}},physicalLocation:{serializedName:"physicalLocation",readOnly:!0,type:{name:"String"}},pairedRegion:{serializedName:"pairedRegion",type:{name:"Sequence",element:{type:{name:"Composite",className:"PairedRegion"}}}},homeLocation:{serializedName:"homeLocation",readOnly:!0,type:{name:"String"}}}}},PairedRegion={type:{name:"Composite",className:"PairedRegion",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorResponse"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorResponse"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Subscription={type:{name:"Composite",className:"Subscription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},state:{serializedName:"state",readOnly:!0,type:{name:"Enum",allowedValues:["Enabled","Warned","PastDue","Disabled","Deleted"]}},subscriptionPolicies:{serializedName:"subscriptionPolicies",type:{name:"Composite",className:"SubscriptionPolicies"}},authorizationSource:{serializedName:"authorizationSource",type:{name:"String"}},managedByTenants:{serializedName:"managedByTenants",type:{name:"Sequence",element:{type:{name:"Composite",className:"ManagedByTenant"}}}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},SubscriptionPolicies={type:{name:"Composite",className:"SubscriptionPolicies",modelProperties:{locationPlacementId:{serializedName:"locationPlacementId",readOnly:!0,type:{name:"String"}},quotaId:{serializedName:"quotaId",readOnly:!0,type:{name:"String"}},spendingLimit:{serializedName:"spendingLimit",readOnly:!0,type:{name:"Enum",allowedValues:["On","Off","CurrentPeriodOff"]}}}}},ManagedByTenant={type:{name:"Composite",className:"ManagedByTenant",modelProperties:{tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}}}}},SubscriptionListResult={type:{name:"Composite",className:"SubscriptionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Subscription"}}}},nextLink:{serializedName:"nextLink",required:!0,type:{name:"String"}}}}},TenantListResult={type:{name:"Composite",className:"TenantListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"TenantIdDescription"}}}},nextLink:{serializedName:"nextLink",required:!0,type:{name:"String"}}}}},TenantIdDescription={type:{name:"Composite",className:"TenantIdDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},tenantCategory:{serializedName:"tenantCategory",readOnly:!0,type:{name:"Enum",allowedValues:["Home","ProjectedBy","ManagedBy"]}},country:{serializedName:"country",readOnly:!0,type:{name:"String"}},countryCode:{serializedName:"countryCode",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},domains:{serializedName:"domains",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},defaultDomain:{serializedName:"defaultDomain",readOnly:!0,type:{name:"String"}},tenantType:{serializedName:"tenantType",readOnly:!0,type:{name:"String"}},tenantBrandingLogoUrl:{serializedName:"tenantBrandingLogoUrl",readOnly:!0,type:{name:"String"}}}}},ResourceName={type:{name:"Composite",className:"ResourceName",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},CheckResourceNameResult={type:{name:"Composite",className:"CheckResourceNameResult",modelProperties:{name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,LocationListResult:LocationListResult,Location:Location,LocationMetadata:LocationMetadata,PairedRegion:PairedRegion,CloudError:CloudError,ErrorResponse:ErrorResponse,ErrorAdditionalInfo:ErrorAdditionalInfo,Subscription:Subscription,SubscriptionPolicies:SubscriptionPolicies,ManagedByTenant:ManagedByTenant,SubscriptionListResult:SubscriptionListResult,TenantListResult:TenantListResult,TenantIdDescription:TenantIdDescription,ResourceName:ResourceName,CheckResourceNameResult:CheckResourceNameResult,Operation:Operation,OperationDisplay:OperationDisplay,OperationListResult:OperationListResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-01-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},includeExtendedLocations={parameterPath:["options","includeExtendedLocations"],mapper:{serializedName:"includeExtendedLocations",type:{name:"Boolean"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},resourceNameDefinition={parameterPath:["options","resourceNameDefinition"],mapper:ResourceName};class SubscriptionsImpl{constructor(e){this.client=e}listLocations(e,t){const a=this.listLocationsPagingAll(e,t);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listLocationsPagingPage(e,t)}}listLocationsPagingPage(t,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listLocations(t,a));yield yield tslib.__await(e.value||[])})}listLocationsPagingAll(n,s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listLocationsPagingPage(n,s));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listPagingPage(n));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listLocations(e,t){return this.client.sendOperationRequest({subscriptionId:e,options:t},listLocationsOperationSpec)}get(e,t){return this.client.sendOperationRequest({subscriptionId:e,options:t},getOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listLocationsOperationSpec={path:"/subscriptions/{subscriptionId}/locations",httpMethod:"GET",responses:{200:{bodyMapper:LocationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion,includeExtendedLocations],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}",httpMethod:"GET",responses:{200:{bodyMapper:Subscription},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listOperationSpec={path:"/subscriptions",httpMethod:"GET",responses:{200:{bodyMapper:SubscriptionListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:SubscriptionListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class TenantsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,i=tslib.__asyncValues(this.listPagingPage(n));!(a=yield tslib.__await(i.next())).done;){var r=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(r)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/tenants",httpMethod:"GET",responses:{200:{bodyMapper:TenantListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:TenantListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class SubscriptionClient extends coreClient.ServiceClient{constructor(e,t){if(void 0===e)throw new Error("'credentials' cannot be null");var a={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-resources-subscriptions/2.0.0",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+e:e;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},a),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2021-01-01",this.subscriptions=new SubscriptionsImpl(this),this.tenants=new TenantsImpl(this)}checkResourceName(e){return this.sendOperationRequest({options:e},checkResourceNameOperationSpec)}}const serializer$2=coreClient.createSerializer(Mappers,!1),checkResourceNameOperationSpec={path:"/providers/Microsoft.Resources/checkResourceName",httpMethod:"POST",responses:{200:{bodyMapper:CheckResourceNameResult},default:{bodyMapper:CloudError}},requestBody:resourceNameDefinition,queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2};exports.SubscriptionClient=SubscriptionClient;