6#include "azure/data/tables/account_sas_builder.hpp"
7#include "azure/data/tables/credentials/named_key_credential.hpp"
10#include <azure/core/datetime.hpp>
11#include <azure/core/nullable.hpp>
16namespace Azure {
namespace Data {
namespace Tables {
namespace Sas {
22 enum class TablesSasPermissions
122 void SetPermissions(std::string rawPermissions) { Permissions = std::move(rawPermissions); }
143 return Azure::Core::_internal::StringExtensions::ToLower(
148 std::string Permissions;
A NamedKeyCredential is a credential backed by an account's name and one of its access keys.
Definition named_key_credential.hpp:26
const std::string AccountName
The name of the Account.
Definition named_key_credential.hpp:55
TableSasBuilder is used to generate a Shared Access Signature (SAS) for an Azure Storage Tables.
Definition tables_sas_builder.hpp:50
std::string PartitionKeyEnd
The optional end of the partition key values range being made available.
Definition tables_sas_builder.hpp:98
void SetPermissions(TablesSasPermissions permissions)
Sets the permissions for the table SAS.
Definition tables_sas_builder.cpp:17
std::string GenerateSasToken(const Azure::Data::Tables::Credentials::NamedKeyCredential &credential)
Uses the NamedKeyCredential to sign this shared access signature, to produce the proper SAS query par...
Definition tables_sas_builder.cpp:39
std::string GetCanonicalName(const Azure::Data::Tables::Credentials::NamedKeyCredential &credential) const
Gets the canonical path for the shared access signature.
Definition tables_sas_builder.hpp:140
void SetPermissions(std::string rawPermissions)
Sets the permissions for the SAS using a raw permissions string.
Definition tables_sas_builder.hpp:122
Azure::DateTime ExpiresOn
The time at which the shared access signature becomes invalid. This field must be omitted if it has b...
Definition tables_sas_builder.hpp:69
Azure::Nullable< Azure::DateTime > StartsOn
Optionally specify the time at which the shared access signature becomes valid. This timestamp will b...
Definition tables_sas_builder.hpp:62
std::string RowKeyStart
The optional start of the row key values range being made available.
Definition tables_sas_builder.hpp:103
std::string PartitionKeyStart
The optional start of the partition key values range being made available.
Definition tables_sas_builder.hpp:93
SasProtocol Protocol
The optional signed protocol field specifies the protocol permitted for a request made with the SAS.
Definition tables_sas_builder.hpp:56
std::string Identifier
An optional unique value up to 64 characters in length that correlates to an access policy specified ...
Definition tables_sas_builder.hpp:83
std::string TableName
The name of the table being made accessible.
Definition tables_sas_builder.hpp:88
std::string RowKeyEnd
The optional end of the partition key values range being made available.
Definition tables_sas_builder.hpp:108
Azure::Nullable< std::string > IPRange
Specifies an IP address or a range of IP addresses from which to accept requests. If the IP address f...
Definition tables_sas_builder.hpp:77
Defines bitwise operators for enums.