Example #1
0
 /// <summary>
 /// Updates the provisioning of the table.
 /// </summary>
 /// <param name="provisionType">Type of provisioning (number of read/write operations per second).</param>
 /// <param name="provisionLoad">Option of provision load (how the number of operations are divided between the read and write throughput).</param>
 /// <returns>This table reference.</returns>
 public UnityTask <StorageResponse <TableMetadata> > Update(ProvisionType provisionType, ProvisionLoad provisionLoad)
 {
     return(_repository.UpdateTable(new TableMetadata
     {
         provisionLoad = provisionLoad,
         provisionType = provisionType,
         name = TableName,
     }));
 }
Example #2
0
 /// <summary>
 /// Creates the table referred by this reference.
 /// </summary>
 /// <param name="key">The definition of the key schema for this table. Must contain at least a primary key.</param>
 /// <param name="provisionType">Type of provisioning (number of read/write operations per second).</param>
 /// <param name="provisionLoad">Option of provision load (how the number of operations are divided between the read and write throughput).</param>
 /// <returns>This table reference.</returns>
 public UnityTask <StorageResponse <TableMetadata> > Create(TableKey key, ProvisionType provisionType, ProvisionLoad provisionLoad)
 {
     return(_repository.CreateTable(new TableMetadata
     {
         provisionLoad = provisionLoad,
         provisionType = provisionType,
         name = TableName,
         key = key,
     }));
 }