Files
powerpoint-toolbox/node_modules/@azure/arm-storage/dist-esm/src/operations/tableServices.js
T
2025-03-07 19:22:02 +01:00

130 lines
5.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing TableServices operations. */
export class TableServicesImpl {
/**
* Initialize a new instance of the class TableServices class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* List all table services for the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(resourceGroupName, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* Sets the properties of a storage accounts Table service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param parameters The properties of a storage accounts Table service, only properties for Storage
* Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.
* @param options The options parameters.
*/
setServiceProperties(resourceGroupName, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, setServicePropertiesOperationSpec);
}
/**
* Gets the properties of a storage accounts Table service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getServiceProperties(resourceGroupName, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListTableServices
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const setServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.TableServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters11,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableServiceName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TableServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableServiceName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=tableServices.js.map