You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.1 KiB

  1. # DO NOT MODIFY. This file was generated by
  2. # github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
  3. # A key with the special ServerTimestamp sentinel is removed from the data in the
  4. # update operation. Instead it appears in a separate Transform operation. Note
  5. # that in these tests, the string "ServerTimestamp" should be replaced with the
  6. # special ServerTimestamp value.
  7. description: "set: ServerTimestamp with data"
  8. set: <
  9. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  10. json_data: "{\"a\": 1, \"b\": \"ServerTimestamp\"}"
  11. request: <
  12. database: "projects/projectID/databases/(default)"
  13. writes: <
  14. update: <
  15. name: "projects/projectID/databases/(default)/documents/C/d"
  16. fields: <
  17. key: "a"
  18. value: <
  19. integer_value: 1
  20. >
  21. >
  22. >
  23. >
  24. writes: <
  25. transform: <
  26. document: "projects/projectID/databases/(default)/documents/C/d"
  27. field_transforms: <
  28. field_path: "b"
  29. set_to_server_value: REQUEST_TIME
  30. >
  31. >
  32. >
  33. >
  34. >