@azure/data-tables 13.1.2-alpha.20220427.2 → 13.1.2-alpha.20220503.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/index.js +61 -32
- package/dist/index.js.map +1 -1
- package/dist-esm/src/TableClient.js +10 -5
- package/dist-esm/src/TableClient.js.map +1 -1
- package/dist-esm/src/TableServiceClient.js +10 -2
- package/dist-esm/src/TableServiceClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +25 -3
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/index.js +0 -1
- package/dist-esm/src/generated/index.js.map +1 -1
- package/dist-esm/src/generated/operations/service.js +1 -1
- package/dist-esm/src/generated/operations/service.js.map +1 -1
- package/dist-esm/src/generated/operations/table.js +1 -1
- package/dist-esm/src/generated/operations/table.js.map +1 -1
- package/dist-esm/src/utils/apiVersionPolicy.js +21 -0
- package/dist-esm/src/utils/apiVersionPolicy.js.map +1 -0
- package/dist-esm/src/utils/challengeAuthenticationUtils.js +20 -0
- package/dist-esm/src/utils/challengeAuthenticationUtils.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/generated/operations/table.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA4BnD,kCAAkC;AAClC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CACH,OA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,EAAE,IAAI;IACX,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Table } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n TableQueryOptionalParams,\n TableQueryOperationResponse,\n TableProperties,\n TableCreateOptionalParams,\n TableCreateResponse,\n TableDeleteOptionalParams,\n TableDeleteResponse,\n TableQueryEntitiesOptionalParams,\n TableQueryEntitiesResponse,\n TableQueryEntitiesWithPartitionAndRowKeyOptionalParams,\n TableQueryEntitiesWithPartitionAndRowKeyResponse,\n TableUpdateEntityOptionalParams,\n TableUpdateEntityResponse,\n TableMergeEntityOptionalParams,\n TableMergeEntityResponse,\n TableDeleteEntityOptionalParams,\n TableDeleteEntityResponse,\n TableInsertEntityOptionalParams,\n TableInsertEntityResponse,\n TableGetAccessPolicyOptionalParams,\n TableGetAccessPolicyResponse,\n TableSetAccessPolicyOptionalParams,\n TableSetAccessPolicyResponse\n} from \"../models\";\n\n/** Class representing a Table. */\nexport class TableImpl implements Table {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class Table class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Queries tables under the given account.\n * @param options The options parameters.\n */\n query(\n options?: TableQueryOptionalParams\n ): Promise<TableQueryOperationResponse> {\n return this.client.sendOperationRequest({ options }, queryOperationSpec);\n }\n\n /**\n * Creates a new table under the given account.\n * @param tableProperties The Table properties.\n * @param options The options parameters.\n */\n create(\n tableProperties: TableProperties,\n options?: TableCreateOptionalParams\n ): Promise<TableCreateResponse> {\n return this.client.sendOperationRequest(\n { tableProperties, options },\n createOperationSpec\n );\n }\n\n /**\n * Operation permanently deletes the specified table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n delete(\n table: string,\n options?: TableDeleteOptionalParams\n ): Promise<TableDeleteResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Queries entities in a table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n queryEntities(\n table: string,\n options?: TableQueryEntitiesOptionalParams\n ): Promise<TableQueryEntitiesResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n queryEntitiesOperationSpec\n );\n }\n\n /**\n * Queries entities in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n queryEntitiesWithPartitionAndRowKey(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableQueryEntitiesWithPartitionAndRowKeyOptionalParams\n ): Promise<TableQueryEntitiesWithPartitionAndRowKeyResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n queryEntitiesWithPartitionAndRowKeyOperationSpec\n );\n }\n\n /**\n * Update entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n updateEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableUpdateEntityOptionalParams\n ): Promise<TableUpdateEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n updateEntityOperationSpec\n );\n }\n\n /**\n * Merge entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n mergeEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableMergeEntityOptionalParams\n ): Promise<TableMergeEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n mergeEntityOperationSpec\n );\n }\n\n /**\n * Deletes the specified entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param ifMatch Match condition for an entity to be deleted. If specified and a matching entity is\n * not found, an error will be raised. To force an unconditional delete, set to the wildcard character\n * (*).\n * @param options The options parameters.\n */\n deleteEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n ifMatch: string,\n options?: TableDeleteEntityOptionalParams\n ): Promise<TableDeleteEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, ifMatch, options },\n deleteEntityOperationSpec\n );\n }\n\n /**\n * Insert entity in a table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n insertEntity(\n table: string,\n options?: TableInsertEntityOptionalParams\n ): Promise<TableInsertEntityResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n insertEntityOperationSpec\n );\n }\n\n /**\n * Retrieves details about any stored access policies specified on the table that may be used with\n * Shared Access Signatures.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n getAccessPolicy(\n table: string,\n options?: TableGetAccessPolicyOptionalParams\n ): Promise<TableGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n getAccessPolicyOperationSpec\n );\n }\n\n /**\n * Sets stored access policies for the table that may be used with Shared Access Signatures.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n setAccessPolicy(\n table: string,\n options?: TableSetAccessPolicyOptionalParams\n ): Promise<TableSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n setAccessPolicyOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst queryOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableQueryResponse,\n headersMapper: Mappers.TableQueryHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableQueryExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.top,\n Parameters.select,\n Parameters.filter,\n Parameters.nextTableName\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.TableResponse,\n headersMapper: Mappers.TableCreateHeaders\n },\n 204: {\n headersMapper: Mappers.TableCreateHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableCreateExceptionHeaders\n }\n },\n requestBody: Parameters.tableProperties,\n queryParameters: [Parameters.format],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.contentType,\n Parameters.responsePreference\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables('{table}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.TableDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableDeleteExceptionHeaders\n }\n },\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n serializer\n};\nconst queryEntitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}()\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableEntityQueryResponse,\n headersMapper: Mappers.TableQueryEntitiesHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableQueryEntitiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.top,\n Parameters.select,\n Parameters.filter,\n Parameters.timeout,\n Parameters.nextPartitionKey,\n Parameters.nextRowKey\n ],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst queryEntitiesWithPartitionAndRowKeyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.TableQueryEntitiesWithPartitionAndRowKeyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper:\n Mappers.TableQueryEntitiesWithPartitionAndRowKeyExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.select,\n Parameters.filter,\n Parameters.timeout\n ],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst updateEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.TableUpdateEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableUpdateEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.accept1,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst mergeEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.TableMergeEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableMergeEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.accept1,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.TableDeleteEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableDeleteEntityExceptionHeaders\n }\n },\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.ifMatch1\n ],\n serializer\n};\nconst insertEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.TableInsertEntityHeaders\n },\n 204: {\n headersMapper: Mappers.TableInsertEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableInsertEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.contentType,\n Parameters.responsePreference\n ],\n mediaType: \"json\",\n serializer\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: Mappers.TableGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeout, Parameters.comp],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept2\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.TableSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: Parameters.tableAcl,\n queryParameters: [Parameters.timeout, Parameters.comp],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.contentType2,\n Parameters.accept3\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/generated/operations/table.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA4BnD,yCAAyC;AACzC,MAAM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IACjD,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Table } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClient } from \"../generatedClient\";\nimport {\n TableQueryOptionalParams,\n TableQueryOperationResponse,\n TableProperties,\n TableCreateOptionalParams,\n TableCreateResponse,\n TableDeleteOptionalParams,\n TableDeleteResponse,\n TableQueryEntitiesOptionalParams,\n TableQueryEntitiesResponse,\n TableQueryEntitiesWithPartitionAndRowKeyOptionalParams,\n TableQueryEntitiesWithPartitionAndRowKeyResponse,\n TableUpdateEntityOptionalParams,\n TableUpdateEntityResponse,\n TableMergeEntityOptionalParams,\n TableMergeEntityResponse,\n TableDeleteEntityOptionalParams,\n TableDeleteEntityResponse,\n TableInsertEntityOptionalParams,\n TableInsertEntityResponse,\n TableGetAccessPolicyOptionalParams,\n TableGetAccessPolicyResponse,\n TableSetAccessPolicyOptionalParams,\n TableSetAccessPolicyResponse\n} from \"../models\";\n\n/** Class containing Table operations. */\nexport class TableImpl implements Table {\n private readonly client: GeneratedClient;\n\n /**\n * Initialize a new instance of the class Table class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClient) {\n this.client = client;\n }\n\n /**\n * Queries tables under the given account.\n * @param options The options parameters.\n */\n query(\n options?: TableQueryOptionalParams\n ): Promise<TableQueryOperationResponse> {\n return this.client.sendOperationRequest({ options }, queryOperationSpec);\n }\n\n /**\n * Creates a new table under the given account.\n * @param tableProperties The Table properties.\n * @param options The options parameters.\n */\n create(\n tableProperties: TableProperties,\n options?: TableCreateOptionalParams\n ): Promise<TableCreateResponse> {\n return this.client.sendOperationRequest(\n { tableProperties, options },\n createOperationSpec\n );\n }\n\n /**\n * Operation permanently deletes the specified table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n delete(\n table: string,\n options?: TableDeleteOptionalParams\n ): Promise<TableDeleteResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Queries entities in a table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n queryEntities(\n table: string,\n options?: TableQueryEntitiesOptionalParams\n ): Promise<TableQueryEntitiesResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n queryEntitiesOperationSpec\n );\n }\n\n /**\n * Queries entities in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n queryEntitiesWithPartitionAndRowKey(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableQueryEntitiesWithPartitionAndRowKeyOptionalParams\n ): Promise<TableQueryEntitiesWithPartitionAndRowKeyResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n queryEntitiesWithPartitionAndRowKeyOperationSpec\n );\n }\n\n /**\n * Update entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n updateEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableUpdateEntityOptionalParams\n ): Promise<TableUpdateEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n updateEntityOperationSpec\n );\n }\n\n /**\n * Merge entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param options The options parameters.\n */\n mergeEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n options?: TableMergeEntityOptionalParams\n ): Promise<TableMergeEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, options },\n mergeEntityOperationSpec\n );\n }\n\n /**\n * Deletes the specified entity in a table.\n * @param table The name of the table.\n * @param partitionKey The partition key of the entity.\n * @param rowKey The row key of the entity.\n * @param ifMatch Match condition for an entity to be deleted. If specified and a matching entity is\n * not found, an error will be raised. To force an unconditional delete, set to the wildcard character\n * (*).\n * @param options The options parameters.\n */\n deleteEntity(\n table: string,\n partitionKey: string,\n rowKey: string,\n ifMatch: string,\n options?: TableDeleteEntityOptionalParams\n ): Promise<TableDeleteEntityResponse> {\n return this.client.sendOperationRequest(\n { table, partitionKey, rowKey, ifMatch, options },\n deleteEntityOperationSpec\n );\n }\n\n /**\n * Insert entity in a table.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n insertEntity(\n table: string,\n options?: TableInsertEntityOptionalParams\n ): Promise<TableInsertEntityResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n insertEntityOperationSpec\n );\n }\n\n /**\n * Retrieves details about any stored access policies specified on the table that may be used with\n * Shared Access Signatures.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n getAccessPolicy(\n table: string,\n options?: TableGetAccessPolicyOptionalParams\n ): Promise<TableGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n getAccessPolicyOperationSpec\n );\n }\n\n /**\n * Sets stored access policies for the table that may be used with Shared Access Signatures.\n * @param table The name of the table.\n * @param options The options parameters.\n */\n setAccessPolicy(\n table: string,\n options?: TableSetAccessPolicyOptionalParams\n ): Promise<TableSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { table, options },\n setAccessPolicyOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst queryOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableQueryResponse,\n headersMapper: Mappers.TableQueryHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableQueryExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.top,\n Parameters.select,\n Parameters.filter,\n Parameters.nextTableName\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.TableResponse,\n headersMapper: Mappers.TableCreateHeaders\n },\n 204: {\n headersMapper: Mappers.TableCreateHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableCreateExceptionHeaders\n }\n },\n requestBody: Parameters.tableProperties,\n queryParameters: [Parameters.format],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.contentType,\n Parameters.responsePreference\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/Tables('{table}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.TableDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableDeleteExceptionHeaders\n }\n },\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n serializer\n};\nconst queryEntitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}()\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableEntityQueryResponse,\n headersMapper: Mappers.TableQueryEntitiesHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableQueryEntitiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.top,\n Parameters.select,\n Parameters.filter,\n Parameters.timeout,\n Parameters.nextPartitionKey,\n Parameters.nextRowKey\n ],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst queryEntitiesWithPartitionAndRowKeyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.TableQueryEntitiesWithPartitionAndRowKeyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper:\n Mappers.TableQueryEntitiesWithPartitionAndRowKeyExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.format,\n Parameters.select,\n Parameters.filter,\n Parameters.timeout\n ],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion\n ],\n serializer\n};\nconst updateEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.TableUpdateEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableUpdateEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.accept1,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst mergeEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.TableMergeEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableMergeEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.accept1,\n Parameters.contentType1,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.TableDeleteEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableDeleteEntityExceptionHeaders\n }\n },\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [\n Parameters.url,\n Parameters.table,\n Parameters.partitionKey,\n Parameters.rowKey\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.ifMatch1\n ],\n serializer\n};\nconst insertEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n },\n headersMapper: Mappers.TableInsertEntityHeaders\n },\n 204: {\n headersMapper: Mappers.TableInsertEntityHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableInsertEntityExceptionHeaders\n }\n },\n requestBody: Parameters.tableEntityProperties,\n queryParameters: [Parameters.format, Parameters.timeout],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.dataServiceVersion,\n Parameters.contentType,\n Parameters.responsePreference\n ],\n mediaType: \"json\",\n serializer\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: Mappers.TableGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeout, Parameters.comp],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept2\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{table}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.TableSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.TableServiceError,\n headersMapper: Mappers.TableSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: Parameters.tableAcl,\n queryParameters: [Parameters.timeout, Parameters.comp],\n urlParameters: [Parameters.url, Parameters.table],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.contentType2,\n Parameters.accept3\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
/**
|
|
4
|
+
* Name of the apiVersion Policy
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export const apiVersionPolicyName = "apiVersionPolicy";
|
|
8
|
+
/**
|
|
9
|
+
* Pipeline policy that enables users to override the default api version
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export const apiVersionPolicy = (apiVersion) => {
|
|
13
|
+
return {
|
|
14
|
+
name: apiVersionPolicyName,
|
|
15
|
+
sendRequest: async (req, next) => {
|
|
16
|
+
req.headers.set("x-ms-version", apiVersion);
|
|
17
|
+
return next(req);
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=apiVersionPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiVersionPolicy.js","sourceRoot":"","sources":["../../../src/utils/apiVersionPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2C,CAAC,UAAkB,EAAE,EAAE;IAC7F,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YAC/B,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;YAC5C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { PipelinePolicy } from \"@azure/core-rest-pipeline\";\n\n/**\n * Name of the apiVersion Policy\n * @internal\n */\nexport const apiVersionPolicyName = \"apiVersionPolicy\";\n\n/**\n * Pipeline policy that enables users to override the default api version\n * @internal\n */\nexport const apiVersionPolicy: (apiVersion: string) => PipelinePolicy = (apiVersion: string) => {\n return {\n name: apiVersionPolicyName,\n sendRequest: async (req, next) => {\n req.headers.set(\"x-ms-version\", apiVersion);\n return next(req);\n },\n };\n};\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
|
|
4
|
+
import { authorizeRequestOnTenantChallenge } from "@azure/core-client";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
* Setups the challenge authentication policy for the provided token credential.
|
|
8
|
+
*/
|
|
9
|
+
export function setTokenChallengeAuthenticationPolicy(pipeline, credential, scopes) {
|
|
10
|
+
// Make sure no bearerTokenPolicy is set.
|
|
11
|
+
pipeline.removePolicy({ name: "bearerTokenPolicy" });
|
|
12
|
+
pipeline.addPolicy(bearerTokenAuthenticationPolicy({
|
|
13
|
+
credential,
|
|
14
|
+
scopes,
|
|
15
|
+
challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },
|
|
16
|
+
}), {
|
|
17
|
+
phase: "Sign",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=challengeAuthenticationUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"challengeAuthenticationUtils.js","sourceRoot":"","sources":["../../../src/utils/challengeAuthenticationUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAY,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAGtF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CACnD,QAAkB,EAClB,UAA2B,EAC3B,MAAyB;IAEzB,yCAAyC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACrD,QAAQ,CAAC,SAAS,CAChB,+BAA+B,CAAC;QAC9B,UAAU;QACV,MAAM;QACN,kBAAkB,EAAE,EAAE,2BAA2B,EAAE,iCAAiC,EAAE;KACvF,CAAC,EACF;QACE,KAAK,EAAE,MAAM;KACd,CACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Pipeline, bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { authorizeRequestOnTenantChallenge } from \"@azure/core-client\";\n\n/**\n * @internal\n * Setups the challenge authentication policy for the provided token credential.\n */\nexport function setTokenChallengeAuthenticationPolicy(\n pipeline: Pipeline,\n credential: TokenCredential,\n scopes: string | string[]\n): void {\n // Make sure no bearerTokenPolicy is set.\n pipeline.removePolicy({ name: \"bearerTokenPolicy\" });\n pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n {\n phase: \"Sign\",\n }\n );\n}\n"]}
|
package/package.json
CHANGED