Skip to content

Commit 9909271

Browse files
address the comments
1 parent d6d3edd commit 9909271

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

ipa/general/0111.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Fields **must** have a single owner, whether that is the client or the server.
3333
considered client-owned
3434
- The server **must** respect the value (or lack thereof) of all client-owned
3535
fields and not modify them
36+
- The server **must** always return the same value the client sent (or absence
37+
of value) for client-owned fields
3638

3739
:::note
3840

@@ -45,10 +47,7 @@ For resources where all fields are server-owned, see
4547
### Effective Values
4648

4749
There are instances where a service will allocate, generate, or calculate a
48-
value if the client chooses not to specify one.
49-
50-
**For example:** a client creates a cluster without specifying a version. Such a
51-
scenario is opting for the default mongodb version.
50+
value that may differ from what the client specified.
5251

5352
An attribute with an effective value **must** be expressed as two fields in the
5453
API:
@@ -63,11 +62,15 @@ API:
6362

6463
Example
6564

65+
A cluster's instance size may have a different computed value from the server if
66+
auto-scaling is enabled. The client specifies their desired instance size, but
67+
the server may scale it up or down based on load.
68+
6669
```json
67-
// For managing autoscaling of a cluster
70+
// For managing a cluster with auto-scaling enabled
6871
{
69-
"clusterTier": "M10",
70-
"effectiveClusterTier": "M30"
72+
"instanceSize": "M10",
73+
"effectiveInstanceSize": "M30"
7174
}
7275
```
7376

ipa/general/0113.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ modified by API consumers.
4343
- Read-only singleton resources **must** have only the [Get](0104.md) method
4444
- Read-only singleton resources **must not** have [Create](0106.md),
4545
[Update](0107.md), or [Delete](0108.md) methods
46-
- Read-only singleton resources **must not** be able to be modified by the
47-
client
4846
- Read-only singleton resources **may** have [custom methods](0109.md) as
4947
appropriate, provided they do not modify the resource
5048
- All response schema properties for read-only singleton resources **must** be

0 commit comments

Comments
 (0)