Skip to content

Commit 0d5cba1

Browse files
committed
Specified "Added in SDK ..." messages in godocs.
1 parent c538972 commit 0d5cba1

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

nosqldb/request.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ func ProvisionedTableLimits(RUs uint, WUs uint, GB uint) *TableLimits {
619619

620620
// OnDemandTableLimits returns a TableLimits struct set up for
621621
// on demand (flexible read/write limits) tables.
622+
// Added in SDK Version 5.3.0
622623
func OnDemandTableLimits(GB uint) *TableLimits {
623624
return &TableLimits{
624625
ReadUnits: 0,
@@ -706,6 +707,7 @@ type DeleteRequest struct {
706707
Timeout time.Duration `json:"timeout"`
707708

708709
// Durability is currently only used in On-Prem installations.
710+
// Added in SDK Version 5.3.0
709711
Durability types.Durability `json:"durability"`
710712

711713
// isSubRequest specifies whether this is a sub request of a WriteMultiple
@@ -851,6 +853,7 @@ type PutRequest struct {
851853
Timeout time.Duration `json:"timeout"`
852854

853855
// Durability is currently only used in On-Prem installations.
856+
// Added in SDK Version 5.3.0
854857
Durability types.Durability `json:"durability"`
855858

856859
// isSubRequest specifies whether this is a sub request of a WriteMultiple
@@ -1538,6 +1541,7 @@ type WriteMultipleRequest struct {
15381541
Timeout time.Duration `json:"timeout"`
15391542

15401543
// Durability is currently only used in On-Prem installations.
1544+
// Added in SDK Version 5.3.0
15411545
Durability types.Durability `json:"durability"`
15421546

15431547
// checkSubReqSize represents whether to check sub request size.
@@ -1699,6 +1703,7 @@ type MultiDeleteRequest struct {
16991703
Timeout time.Duration `json:"timeout"`
17001704

17011705
// Durability is currently only used in On-Prem installations.
1706+
// Added in SDK Version 5.3.0
17021707
Durability types.Durability `json:"durability"`
17031708

17041709
common.InternalRequestData

nosqldb/result.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ type GetResult struct {
111111

112112
// ModificationTime represents the modification time of an existing row.
113113
// Its value is in milliseconds since January 1 1970.
114+
// Added in SDK Version 5.3.0
114115
ModificationTime int64 `json:"modificationTime"`
115116

116117
DelayInfo
@@ -442,6 +443,7 @@ type WriteResult struct {
442443

443444
// ExistingModificationTime represents the modification time of an existing row.
444445
// Its value is in milliseconds since January 1 1970.
446+
// Added in SDK Version 5.3.0
445447
ExistingModificationTime int64 `json:"existingModificationTime"`
446448
}
447449

nosqldb/types/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ const (
105105
// Durability defines the durability characteristics associated with a standalone write
106106
// (put or update) operation.
107107
//
108+
// Added in SDK Version 5.3.0
109+
//
108110
// This is currently only supported in On-Prem installations. It is ignored
109111
// in the cloud service.
110112
//
@@ -137,6 +139,7 @@ const (
137139
Provisioned CapacityMode = iota // 0
138140

139141
// OnDemand table: table scales with usage
142+
// Added in SDK Version 5.3.0
140143
OnDemand // 1
141144
)
142145

0 commit comments

Comments
 (0)