@azure/arm-datacatalog 2.0.0 → 3.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 (118) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +70 -78
  5. package/dist/index.js +668 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/dataCatalogRestClient.d.ts +22 -0
  10. package/dist-esm/src/dataCatalogRestClient.d.ts.map +1 -0
  11. package/dist-esm/src/dataCatalogRestClient.js +58 -0
  12. package/dist-esm/src/dataCatalogRestClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +4 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/{esm/models/aDCOperationsMappers.js → dist-esm/src/index.js} +4 -2
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +133 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +14 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +9 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/mappers.js +101 -116
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +10 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +92 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/aDCCatalogs.d.ts +62 -0
  34. package/dist-esm/src/operations/aDCCatalogs.d.ts.map +1 -0
  35. package/dist-esm/src/operations/aDCCatalogs.js +208 -0
  36. package/dist-esm/src/operations/aDCCatalogs.js.map +1 -0
  37. package/dist-esm/src/operations/aDCOperations.d.ts +18 -0
  38. package/dist-esm/src/operations/aDCOperations.d.ts.map +1 -0
  39. package/dist-esm/src/operations/aDCOperations.js +43 -0
  40. package/dist-esm/src/operations/aDCOperations.js.map +1 -0
  41. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  42. package/dist-esm/src/operations/index.d.ts.map +1 -0
  43. package/{esm → dist-esm/src}/operations/index.js +1 -2
  44. package/dist-esm/src/operations/index.js.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts +54 -0
  46. package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts.map +1 -0
  47. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/aDCCatalogs.js} +2 -1
  48. package/dist-esm/src/operationsInterfaces/aDCCatalogs.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts +10 -0
  50. package/dist-esm/src/operationsInterfaces/aDCOperations.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/aDCOperations.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/aDCOperations.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  54. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  56. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  57. package/dist-esm/test/sampleTest.d.ts +2 -0
  58. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  59. package/dist-esm/test/sampleTest.js +40 -0
  60. package/dist-esm/test/sampleTest.js.map +1 -0
  61. package/package.json +69 -32
  62. package/review/arm-datacatalog.api.md +157 -0
  63. package/rollup.config.js +181 -30
  64. package/src/dataCatalogRestClient.ts +70 -37
  65. package/src/{models/aDCCatalogsMappers.ts → index.ts} +3 -8
  66. package/src/lroImpl.ts +34 -0
  67. package/src/models/index.ts +108 -207
  68. package/src/models/mappers.ts +104 -119
  69. package/src/models/parameters.ts +59 -20
  70. package/src/operations/aDCCatalogs.ts +193 -251
  71. package/src/operations/aDCOperations.ts +27 -44
  72. package/src/operations/index.ts +1 -2
  73. package/src/operationsInterfaces/aDCCatalogs.ts +93 -0
  74. package/src/operationsInterfaces/aDCOperations.ts +23 -0
  75. package/src/{models/aDCOperationsMappers.ts → operationsInterfaces/index.ts} +2 -6
  76. package/tsconfig.json +3 -3
  77. package/types/arm-datacatalog.d.ts +237 -0
  78. package/types/tsdoc-metadata.json +11 -0
  79. package/dist/arm-datacatalog.js +0 -765
  80. package/dist/arm-datacatalog.js.map +0 -1
  81. package/dist/arm-datacatalog.min.js +0 -1
  82. package/dist/arm-datacatalog.min.js.map +0 -1
  83. package/esm/dataCatalogRestClient.d.ts +0 -28
  84. package/esm/dataCatalogRestClient.d.ts.map +0 -1
  85. package/esm/dataCatalogRestClient.js +0 -41
  86. package/esm/dataCatalogRestClient.js.map +0 -1
  87. package/esm/dataCatalogRestClientContext.d.ts +0 -26
  88. package/esm/dataCatalogRestClientContext.d.ts.map +0 -1
  89. package/esm/dataCatalogRestClientContext.js +0 -67
  90. package/esm/dataCatalogRestClientContext.js.map +0 -1
  91. package/esm/models/aDCCatalogsMappers.d.ts +0 -2
  92. package/esm/models/aDCCatalogsMappers.d.ts.map +0 -1
  93. package/esm/models/aDCCatalogsMappers.js +0 -9
  94. package/esm/models/aDCCatalogsMappers.js.map +0 -1
  95. package/esm/models/aDCOperationsMappers.d.ts +0 -2
  96. package/esm/models/aDCOperationsMappers.d.ts.map +0 -1
  97. package/esm/models/aDCOperationsMappers.js.map +0 -1
  98. package/esm/models/index.d.ts +0 -235
  99. package/esm/models/index.d.ts.map +0 -1
  100. package/esm/models/index.js.map +0 -1
  101. package/esm/models/mappers.d.ts +0 -11
  102. package/esm/models/mappers.d.ts.map +0 -1
  103. package/esm/models/mappers.js.map +0 -1
  104. package/esm/models/parameters.d.ts +0 -7
  105. package/esm/models/parameters.d.ts.map +0 -1
  106. package/esm/models/parameters.js +0 -64
  107. package/esm/models/parameters.js.map +0 -1
  108. package/esm/operations/aDCCatalogs.d.ts +0 -131
  109. package/esm/operations/aDCCatalogs.d.ts.map +0 -1
  110. package/esm/operations/aDCCatalogs.js +0 -209
  111. package/esm/operations/aDCCatalogs.js.map +0 -1
  112. package/esm/operations/aDCOperations.d.ts +0 -28
  113. package/esm/operations/aDCOperations.d.ts.map +0 -1
  114. package/esm/operations/aDCOperations.js +0 -50
  115. package/esm/operations/aDCOperations.js.map +0 -1
  116. package/esm/operations/index.d.ts.map +0 -1
  117. package/esm/operations/index.js.map +0 -1
  118. package/src/dataCatalogRestClientContext.ts +0 -75
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/aDCOperations.ts","../src/lroImpl.ts","../src/operations/aDCCatalogs.ts","../src/dataCatalogRestClient.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/** The list of Azure data catalog service operation response. */\nexport interface OperationEntityListResult {\n /** The list of operations. */\n value?: OperationEntity[];\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationEntity {\n /** Operation name: {provider}/{resource}/{operation}. */\n name?: string;\n /** The operation supported by Azure Data Catalog Service. */\n display?: OperationDisplayInfo;\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationDisplayInfo {\n /** The description of the operation. */\n description?: string;\n /** The action that users can perform, based on their permission level. */\n operation?: string;\n /** Service provider: Azure Data Catalog Service. */\n provider?: string;\n /** Resource on which the operation is performed. */\n resource?: string;\n}\n\n/** The response from the List Azure Data Catalog operation. */\nexport interface ADCCatalogsListResult {\n /** the list of Azure Data Catalogs. */\n value?: ADCCatalog[];\n}\n\n/** User principals. */\nexport interface Principals {\n /** UPN of the user. */\n upn?: string;\n /** Object Id for the user */\n objectId?: string;\n}\n\n/** The Resource model definition. */\nexport interface Resource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Resource location */\n location?: string;\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n /** Resource etag */\n etag?: string;\n}\n\n/** Azure Data Catalog. */\nexport type ADCCatalog = Resource & {\n /** Azure data catalog SKU. */\n sku?: SkuType;\n /** Azure data catalog units. */\n units?: number;\n /** Azure data catalog admin list. */\n admins?: Principals[];\n /** Azure data catalog user list. */\n users?: Principals[];\n /** Azure data catalog provision status. */\n successfullyProvisioned?: boolean;\n /** Automatic unit adjustment enabled or not. */\n enableAutomaticUnitAdjustment?: boolean;\n};\n\n/** Known values of {@link SkuType} that the service accepts. */\nexport enum KnownSkuType {\n Free = \"Free\",\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for SkuType. \\\n * {@link KnownSkuType} can be used interchangeably with SkuType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Free** \\\n * **Standard**\n */\nexport type SkuType = string;\n\n/** Optional parameters. */\nexport interface ADCOperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ADCOperationsListResponse = OperationEntityListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsListtByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listtByResourceGroup operation. */\nexport type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ADCCatalogsGetResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ADCCatalogsUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type ADCCatalogsUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface DataCatalogRestClientOptionalParams\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 OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\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: \"OperationDisplayInfo\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\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 }\n }\n};\n\nexport const ADCCatalogsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalogsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Principals: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Principals\",\n modelProperties: {\n upn: {\n serializedName: \"upn\",\n type: {\n name: \"String\"\n }\n },\n objectId: {\n serializedName: \"objectId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\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: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ADCCatalog: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\",\n modelProperties: {\n ...Resource.type.modelProperties,\n sku: {\n serializedName: \"properties.sku\",\n type: {\n name: \"String\"\n }\n },\n units: {\n serializedName: \"properties.units\",\n type: {\n name: \"Number\"\n }\n },\n admins: {\n serializedName: \"properties.admins\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n users: {\n serializedName: \"properties.users\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n successfullyProvisioned: {\n serializedName: \"properties.successfullyProvisioned\",\n type: {\n name: \"Boolean\"\n }\n },\n enableAutomaticUnitAdjustment: {\n serializedName: \"properties.enableAutomaticUnitAdjustment\",\n type: {\n name: \"Boolean\"\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 { ADCCatalog as ADCCatalogMapper } 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 apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-03-30\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\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 resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\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 properties: OperationParameter = {\n parameterPath: \"properties\",\n mapper: ADCCatalogMapper\n};\n\nexport const catalogName: OperationURLParameter = {\n parameterPath: \"catalogName\",\n mapper: {\n serializedName: \"catalogName\",\n required: true,\n type: {\n name: \"String\"\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 { ADCOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport {\n ADCOperationsListOptionalParams,\n ADCOperationsListResponse\n} from \"../models\";\n\n/** Class containing ADCOperations operations. */\nexport class ADCOperationsImpl implements ADCOperations {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available Azure Data Catalog service operations.\n * @param options The options parameters.\n */\n list(\n options?: ADCOperationsListOptionalParams\n ): Promise<ADCOperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DataCatalog/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n","/*\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 { ADCCatalogs } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n ADCCatalogsListtByResourceGroupOptionalParams,\n ADCCatalogsListtByResourceGroupResponse,\n ADCCatalog,\n ADCCatalogsCreateOrUpdateOptionalParams,\n ADCCatalogsCreateOrUpdateResponse,\n ADCCatalogsGetOptionalParams,\n ADCCatalogsGetResponse,\n ADCCatalogsDeleteOptionalParams,\n ADCCatalogsUpdateOptionalParams,\n ADCCatalogsUpdateResponse\n} from \"../models\";\n\n/** Class containing ADCCatalogs operations. */\nexport class ADCCatalogsImpl implements ADCCatalogs {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCCatalogs class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the\n * given resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listtByResourceGroup(\n resourceGroupName: string,\n options?: ADCCatalogsListtByResourceGroupOptionalParams\n ): Promise<ADCCatalogsListtByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listtByResourceGroupOperationSpec\n );\n }\n\n /**\n * The Create Azure Data Catalog service operation creates a new data catalog service with the\n * specified parameters. If the specific service already exists, then any patchable properties will be\n * updated and any immutable properties will remain unchanged.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param properties Properties supplied to the Create or Update a data catalog.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsCreateOrUpdateOptionalParams\n ): Promise<ADCCatalogsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, properties, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ADCCatalogsGetOptionalParams\n ): Promise<ADCCatalogsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * The Update Azure Data Catalog Service operation can be used to update the existing deployment. The\n * update call only supports the properties listed in the PATCH body.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param properties Properties supplied to the Update a data catalog.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsUpdateOptionalParams\n ): Promise<ADCCatalogsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, properties, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listtByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalogsListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n },\n 201: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\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 { ADCOperationsImpl, ADCCatalogsImpl } from \"./operations\";\nimport { ADCOperations, ADCCatalogs } from \"./operationsInterfaces\";\nimport { DataCatalogRestClientOptionalParams } from \"./models\";\n\nexport class DataCatalogRestClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n catalogName: string;\n\n /**\n * Initializes a new instance of the DataCatalogRestClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n catalogName: string,\n options?: DataCatalogRestClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n if (catalogName === undefined) {\n throw new Error(\"'catalogName' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataCatalogRestClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-datacatalog/3.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 // Parameter assignments\n this.subscriptionId = subscriptionId;\n this.catalogName = catalogName;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-03-30\";\n this.aDCOperations = new ADCOperationsImpl(this);\n this.aDCCatalogs = new ADCCatalogsImpl(this);\n }\n\n aDCOperations: ADCOperations;\n aDCCatalogs: ADCCatalogs;\n}\n"],"names":["KnownSkuType","ADCCatalogMapper","coreClient.createSerializer","Mappers.OperationEntityListResult","Parameters.apiVersion","Parameters.$host","Parameters.accept","LroEngine","serializer","Mappers.ADCCatalogsListResult","Parameters.subscriptionId","Parameters.resourceGroupName","Mappers.ADCCatalog","Parameters.properties","Parameters.catalogName","Parameters.contentType","coreClient.ServiceClient"],"mappings":";;;;;;;;AAAA;;;;;;;AA4FA,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EAHWA,oBAAY,KAAZA,oBAAY;;AC5FxB;;;;;;;AAUA,AAAO,MAAM,yBAAyB,GAA+B;IACnE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;QACtC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,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coreLro=require("@azure/core-lro");!function(e){e.Free="Free",e.Standard="Standard"}(exports.KnownSkuType||(exports.KnownSkuType={}));const OperationEntityListResult={type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},OperationEntity={type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}}}}},OperationDisplayInfo={type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},ADCCatalogsListResult={type:{name:"Composite",className:"ADCCatalogsListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ADCCatalog"}}}}}}},Principals={type:{name:"Composite",className:"Principals",modelProperties:{upn:{serializedName:"upn",type:{name:"String"}},objectId:{serializedName:"objectId",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}}}}},ADCCatalog={type:{name:"Composite",className:"ADCCatalog",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{sku:{serializedName:"properties.sku",type:{name:"String"}},units:{serializedName:"properties.units",type:{name:"Number"}},admins:{serializedName:"properties.admins",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},users:{serializedName:"properties.users",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},successfullyProvisioned:{serializedName:"properties.successfullyProvisioned",type:{name:"Boolean"}},enableAutomaticUnitAdjustment:{serializedName:"properties.enableAutomaticUnitAdjustment",type:{name:"Boolean"}}})}};var Mappers=Object.freeze({__proto__:null,OperationEntityListResult:OperationEntityListResult,OperationEntity:OperationEntity,OperationDisplayInfo:OperationDisplayInfo,ADCCatalogsListResult:ADCCatalogsListResult,Principals:Principals,Resource:Resource,ADCCatalog:ADCCatalog});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},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-03-30",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},properties={parameterPath:"properties",mapper:ADCCatalog},catalogName={parameterPath:"catalogName",mapper:{serializedName:"catalogName",required:!0,type:{name:"String"}}};class ADCOperationsImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.DataCatalog/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer};class LroImpl{constructor(e,t,a,r=a.path,s=a.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=a,this.requestPath=r,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class ADCCatalogsImpl{constructor(e){this.client=e}listtByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listtByResourceGroupOperationSpec)}createOrUpdate(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,properties:t,options:a},createOrUpdateOperationSpec)}get(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},getOperationSpec)}beginDelete(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const i=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield i(e,s),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,options:a},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginDeleteAndWait(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(t,a);return e.pollUntilDone()})}update(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,properties:t,options:a},updateOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listtByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalogsListResult}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PUT",responses:{200:{bodyMapper:ADCCatalog},201:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalog}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept],serializer:serializer$1},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],serializer:serializer$1},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1};class DataCatalogRestClient extends coreClient.ServiceClient{constructor(e,t,a,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");if(void 0===a)throw new Error("'catalogName' cannot be null");var s={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-datacatalog/3.0.0",e=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+e:e;r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},s),r),{userAgentOptions:{userAgentPrefix:e},baseUri:r.endpoint||"https://management.azure.com"})),this.subscriptionId=t,this.catalogName=a,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2016-03-30",this.aDCOperations=new ADCOperationsImpl(this),this.aDCCatalogs=new ADCCatalogsImpl(this)}}exports.DataCatalogRestClient=DataCatalogRestClient;
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/aDCOperations.ts","../src/lroImpl.ts","../src/operations/aDCCatalogs.ts","../src/dataCatalogRestClient.ts"],"names":["KnownSkuType","OperationEntityListResult","type","name","className","modelProperties","value","serializedName","element","OperationEntity","display","OperationDisplayInfo","description","operation","provider","resource","ADCCatalogsListResult","Principals","upn","objectId","Resource","id","readOnly","location","tags","etag","ADCCatalog","Object","assign","sku","units","admins","users","successfullyProvisioned","enableAutomaticUnitAdjustment","accept","parameterPath","mapper","defaultValue","isConstant","$host","required","skipEncoding","apiVersion","subscriptionId","resourceGroupName","constraints","Pattern","RegExp","MaxLength","MinLength","contentType","properties","ADCCatalogMapper","catalogName","ADCOperationsImpl","constructor","client","this","list","options","sendOperationRequest","listOperationSpec","serializer","coreClient.createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationEntityListResult","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","LroImpl","sendOperationFn","args","spec","requestPath","requestMethod","sendInitialRequest","sendPollRequest","_a","restSpec","tslib","__rest","ADCCatalogsImpl","listtByResourceGroup","listtByResourceGroupOperationSpec","createOrUpdate","createOrUpdateOperationSpec","get","getOperationSpec","beginDelete","directSendOperation","__awaiter","lro","let","currentRawResponse","undefined","providedCallback","onResponse","updatedArgs","rawResponse","flatResponse","statusCode","status","body","parsedBody","headers","toJSON","deleteOperationSpec","LroEngine","resumeFrom","intervalInMs","updateIntervalInMs","beginDeleteAndWait","poller","pollUntilDone","update","updateOperationSpec","Mappers.ADCCatalogsListResult","Parameters.subscriptionId","Parameters.resourceGroupName","Mappers.ADCCatalog","201","requestBody","Parameters.properties","Parameters.catalogName","Parameters.contentType","mediaType","202","204","DataCatalogRestClient","coreClient.ServiceClient","credentials","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","credentialScopes","super","baseUri","endpoint","aDCOperations","aDCCatalogs"],"mappings":"4KA4FA,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,SAAA,WAFF,CAAYA,QAAAA,eAAAA,QAAAA,aAAY,KClFxB,MAAaC,0BAAwD,CACnEC,KAAM,CACJC,KAAM,YACNC,UAAW,4BACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,yBASZK,gBAA8C,CACzDP,KAAM,CACJC,KAAM,YACNC,UAAW,kBACXC,gBAAiB,CACfF,KAAM,CACJI,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGVO,QAAS,CACPH,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,4BAORO,qBAAmD,CAC9DT,KAAM,CACJC,KAAM,YACNC,UAAW,uBACXC,gBAAiB,CACfO,YAAa,CACXL,eAAgB,cAChBL,KAAM,CACJC,KAAM,WAGVU,UAAW,CACTN,eAAgB,YAChBL,KAAM,CACJC,KAAM,WAGVW,SAAU,CACRP,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVY,SAAU,CACRR,eAAgB,WAChBL,KAAM,CACJC,KAAM,cAOHa,sBAAoD,CAC/Dd,KAAM,CACJC,KAAM,YACNC,UAAW,wBACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,oBASZa,WAAyC,CACpDf,KAAM,CACJC,KAAM,YACNC,UAAW,aACXC,gBAAiB,CACfa,IAAK,CACHX,eAAgB,MAChBL,KAAM,CACJC,KAAM,WAGVgB,SAAU,CACRZ,eAAgB,WACh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IAAK,GAAIM,IAAK,GAAIC,IAAK,IAC7ChE,gBAAiB,CAACC,YAClBC,cAAe,CACbC,MACAmD,eACAC,kBACAK,a,WAEFrE,cAEI6D,oBAAgD,CACpD1D,KACE,4HACFC,WAAY,QACZC,UAAW,CACTC,IAAK,CACHC,WAAY0D,aAGhBE,YAAaC,WACb3D,gBAAiB,CAACC,YAClBC,cAAe,CACbC,MACAmD,eACAC,kBACAK,aAEFxD,iBAAkB,CAACC,OAAmBwD,aACtCC,UAAW,O,WACXvE,oBC7QW0E,8BAA8BC,WAAAA,cAczClF,YACEmF,EACA/F,EACAU,EACAM,GAEA,QAAoB2C,IAAhBoC,EACF,MAAM,IAAIC,MAAM,gCAElB,QAAuBrC,IAAnB3D,EACF,MAAM,IAAIgG,MAAM,mCAElB,QAAoBrC,IAAhBjD,EACF,MAAM,IAAIsF,MAAM,gCAOlB,IAAMC,EAAgD,CACpDC,mBAAoB,kCACpBC,WAAYJ,GAGRK,EAAiB,iCACjBC,GARJrF,EADGA,GACO,IASFsF,kBAAoBtF,EAAQsF,iBAAiBD,gBAC9CrF,EAAQsF,iBAAiBD,gBAA5B,IAA+CD,EAC5CA,EAEJpF,EAAQuF,mBACXvF,EAAQuF,iBAAmB,CAAC,0CAU9BC,MARyBzH,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,GACpBiH,GACAjF,GAAO,CACVsF,iBAAkB,CAChBD,gBAAAA,GAEFI,QAASzF,EAAQ0F,UAAY,kCAI/B5F,KAAKd,eAAiBA,EACtBc,KAAKJ,YAAcA,EAGnBI,KAAKlB,MAAQoB,EAAQpB,OAAS,+BAC9BkB,KAAKf,WAAaiB,EAAQjB,YAAc,aACxCe,KAAK6F,cAAgB,IAAIhG,kBAAkBG,MAC3CA,KAAK8F,YAAc,IAAI9D,gBAAgBhC,O"}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { ADCOperations, ADCCatalogs } from "./operationsInterfaces";
4
+ import { DataCatalogRestClientOptionalParams } from "./models";
5
+ export declare class DataCatalogRestClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ catalogName: string;
10
+ /**
11
+ * Initializes a new instance of the DataCatalogRestClient class.
12
+ * @param credentials Subscription credentials which uniquely identify client subscription.
13
+ * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
14
+ * subscription. The subscription ID forms part of the URI for every service call.
15
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, catalogName: string, options?: DataCatalogRestClientOptionalParams);
19
+ aDCOperations: ADCOperations;
20
+ aDCCatalogs: ADCCatalogs;
21
+ }
22
+ //# sourceMappingURL=dataCatalogRestClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCatalogRestClient.d.ts","sourceRoot":"","sources":["../../src/dataCatalogRestClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,mCAAmC;IAkD/C,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import { ADCOperationsImpl, ADCCatalogsImpl } from "./operations";
10
+ export class DataCatalogRestClient extends coreClient.ServiceClient {
11
+ /**
12
+ * Initializes a new instance of the DataCatalogRestClient class.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
14
+ * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
15
+ * subscription. The subscription ID forms part of the URI for every service call.
16
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
17
+ * @param options The parameter options
18
+ */
19
+ constructor(credentials, subscriptionId, catalogName, options) {
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ if (subscriptionId === undefined) {
24
+ throw new Error("'subscriptionId' cannot be null");
25
+ }
26
+ if (catalogName === undefined) {
27
+ throw new Error("'catalogName' cannot be null");
28
+ }
29
+ // Initializing default values for options
30
+ if (!options) {
31
+ options = {};
32
+ }
33
+ const defaults = {
34
+ requestContentType: "application/json; charset=utf-8",
35
+ credential: credentials
36
+ };
37
+ const packageDetails = `azsdk-js-arm-datacatalog/3.0.0`;
38
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
+ : `${packageDetails}`;
41
+ if (!options.credentialScopes) {
42
+ options.credentialScopes = ["https://management.azure.com/.default"];
43
+ }
44
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
45
+ userAgentPrefix
46
+ }, baseUri: options.endpoint || "https://management.azure.com" });
47
+ super(optionsWithDefaults);
48
+ // Parameter assignments
49
+ this.subscriptionId = subscriptionId;
50
+ this.catalogName = catalogName;
51
+ // Assigning values to Constant parameters
52
+ this.$host = options.$host || "https://management.azure.com";
53
+ this.apiVersion = options.apiVersion || "2016-03-30";
54
+ this.aDCOperations = new ADCOperationsImpl(this);
55
+ this.aDCCatalogs = new ADCCatalogsImpl(this);
56
+ }
57
+ }
58
+ //# sourceMappingURL=dataCatalogRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCatalogRestClient.js","sourceRoot":"","sources":["../../src/dataCatalogRestClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIlE,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IAMjE;;;;;;;OAOG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,WAAmB,EACnB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QACD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,gCAAgC,CAAC;QACxD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CAIF"}
@@ -0,0 +1,4 @@
1
+ export * from "./models";
2
+ export { DataCatalogRestClient } from "./dataCatalogRestClient";
3
+ export * from "./operationsInterfaces";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,wBAAwB,CAAC"}
@@ -5,5 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export { CloudError, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers";
9
- //# sourceMappingURL=aDCOperationsMappers.js.map
8
+ export * from "./models";
9
+ export { DataCatalogRestClient } from "./dataCatalogRestClient";
10
+ export * from "./operationsInterfaces";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter, __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ sendInitialRequest() {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ return this.sendOperationFn(this.args, this.spec);
20
+ });
21
+ }
22
+ sendPollRequest(path) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
25
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
@@ -0,0 +1,133 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ /** The list of Azure data catalog service operation response. */
3
+ export interface OperationEntityListResult {
4
+ /** The list of operations. */
5
+ value?: OperationEntity[];
6
+ }
7
+ /** The operation supported by Azure Data Catalog Service. */
8
+ export interface OperationEntity {
9
+ /** Operation name: {provider}/{resource}/{operation}. */
10
+ name?: string;
11
+ /** The operation supported by Azure Data Catalog Service. */
12
+ display?: OperationDisplayInfo;
13
+ }
14
+ /** The operation supported by Azure Data Catalog Service. */
15
+ export interface OperationDisplayInfo {
16
+ /** The description of the operation. */
17
+ description?: string;
18
+ /** The action that users can perform, based on their permission level. */
19
+ operation?: string;
20
+ /** Service provider: Azure Data Catalog Service. */
21
+ provider?: string;
22
+ /** Resource on which the operation is performed. */
23
+ resource?: string;
24
+ }
25
+ /** The response from the List Azure Data Catalog operation. */
26
+ export interface ADCCatalogsListResult {
27
+ /** the list of Azure Data Catalogs. */
28
+ value?: ADCCatalog[];
29
+ }
30
+ /** User principals. */
31
+ export interface Principals {
32
+ /** UPN of the user. */
33
+ upn?: string;
34
+ /** Object Id for the user */
35
+ objectId?: string;
36
+ }
37
+ /** The Resource model definition. */
38
+ export interface Resource {
39
+ /**
40
+ * Resource Id
41
+ * NOTE: This property will not be serialized. It can only be populated by the server.
42
+ */
43
+ readonly id?: string;
44
+ /**
45
+ * Resource name
46
+ * NOTE: This property will not be serialized. It can only be populated by the server.
47
+ */
48
+ readonly name?: string;
49
+ /**
50
+ * Resource type
51
+ * NOTE: This property will not be serialized. It can only be populated by the server.
52
+ */
53
+ readonly type?: string;
54
+ /** Resource location */
55
+ location?: string;
56
+ /** Resource tags */
57
+ tags?: {
58
+ [propertyName: string]: string;
59
+ };
60
+ /** Resource etag */
61
+ etag?: string;
62
+ }
63
+ /** Azure Data Catalog. */
64
+ export declare type ADCCatalog = Resource & {
65
+ /** Azure data catalog SKU. */
66
+ sku?: SkuType;
67
+ /** Azure data catalog units. */
68
+ units?: number;
69
+ /** Azure data catalog admin list. */
70
+ admins?: Principals[];
71
+ /** Azure data catalog user list. */
72
+ users?: Principals[];
73
+ /** Azure data catalog provision status. */
74
+ successfullyProvisioned?: boolean;
75
+ /** Automatic unit adjustment enabled or not. */
76
+ enableAutomaticUnitAdjustment?: boolean;
77
+ };
78
+ /** Known values of {@link SkuType} that the service accepts. */
79
+ export declare enum KnownSkuType {
80
+ Free = "Free",
81
+ Standard = "Standard"
82
+ }
83
+ /**
84
+ * Defines values for SkuType. \
85
+ * {@link KnownSkuType} can be used interchangeably with SkuType,
86
+ * this enum contains the known values that the service supports.
87
+ * ### Known values supported by the service
88
+ * **Free** \
89
+ * **Standard**
90
+ */
91
+ export declare type SkuType = string;
92
+ /** Optional parameters. */
93
+ export interface ADCOperationsListOptionalParams extends coreClient.OperationOptions {
94
+ }
95
+ /** Contains response data for the list operation. */
96
+ export declare type ADCOperationsListResponse = OperationEntityListResult;
97
+ /** Optional parameters. */
98
+ export interface ADCCatalogsListtByResourceGroupOptionalParams extends coreClient.OperationOptions {
99
+ }
100
+ /** Contains response data for the listtByResourceGroup operation. */
101
+ export declare type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;
102
+ /** Optional parameters. */
103
+ export interface ADCCatalogsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
104
+ }
105
+ /** Contains response data for the createOrUpdate operation. */
106
+ export declare type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;
107
+ /** Optional parameters. */
108
+ export interface ADCCatalogsGetOptionalParams extends coreClient.OperationOptions {
109
+ }
110
+ /** Contains response data for the get operation. */
111
+ export declare type ADCCatalogsGetResponse = ADCCatalog;
112
+ /** Optional parameters. */
113
+ export interface ADCCatalogsDeleteOptionalParams extends coreClient.OperationOptions {
114
+ /** Delay to wait until next poll, in milliseconds. */
115
+ updateIntervalInMs?: number;
116
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
117
+ resumeFrom?: string;
118
+ }
119
+ /** Optional parameters. */
120
+ export interface ADCCatalogsUpdateOptionalParams extends coreClient.OperationOptions {
121
+ }
122
+ /** Contains response data for the update operation. */
123
+ export declare type ADCCatalogsUpdateResponse = ADCCatalog;
124
+ /** Optional parameters. */
125
+ export interface DataCatalogRestClientOptionalParams extends coreClient.ServiceClientOptions {
126
+ /** server parameter */
127
+ $host?: string;
128
+ /** Api Version */
129
+ apiVersion?: string;
130
+ /** Overrides client endpoint. */
131
+ endpoint?: string;
132
+ }
133
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,KAAK,CA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D,2BAA2B;AAC3B,MAAM,WAAW,mCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ /** Known values of {@link SkuType} that the service accepts. */
9
+ export var KnownSkuType;
10
+ (function (KnownSkuType) {
11
+ KnownSkuType["Free"] = "Free";
12
+ KnownSkuType["Standard"] = "Standard";
13
+ })(KnownSkuType || (KnownSkuType = {}));
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqFH,gEAAgE;AAChE,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB"}
@@ -0,0 +1,9 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const OperationEntityListResult: coreClient.CompositeMapper;
3
+ export declare const OperationEntity: coreClient.CompositeMapper;
4
+ export declare const OperationDisplayInfo: coreClient.CompositeMapper;
5
+ export declare const ADCCatalogsListResult: coreClient.CompositeMapper;
6
+ export declare const Principals: coreClient.CompositeMapper;
7
+ export declare const Resource: coreClient.CompositeMapper;
8
+ export declare const ADCCatalog: coreClient.CompositeMapper;
9
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAmBlD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAoBxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eA+B7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAmB9C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAmBnC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eA+CjC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAwDnC,CAAC"}