WriteControl
쓰기 요청 실행 방법을 제어할 수 있습니다. 지정하지 않으면 마지막 쓰기가 적용됩니다.
JSON 표현 |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
필드 |
통합 필드 control . 쓸 라벨의 버전 및 해당 버전이 라벨의 현재 버전이 아닌 경우 요청의 작동 방식을 결정합니다. control 은 다음 중 하나여야 합니다. |
requiredRevisionId |
string
쓰기 요청이 적용될 라벨의 [revisionId][google.apps.drive.labels.v1.Label.revision_id] 입니다. 라벨의 최신 버전이 아닌 경우 요청이 처리되지 않으며 400 잘못된 요청 오류가 표시됩니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-15(UTC)
[null,null,["최종 업데이트: 2024-10-15(UTC)"],[[["Provides control over how write requests to the label are executed, defaulting to \"last write wins\" if not specified."],["Uses JSON representation to define the write control, focusing on the `control` field."],["Offers the `requiredRevisionId` field within the `control` field to ensure writes are applied to a specific revision of the label, preventing accidental overwrites."],["If `requiredRevisionId` doesn't match the latest revision, the write request will be rejected with a 400 Bad Request error."]]],["The provided content defines how to control write requests for a label, defaulting to a \"last write wins\" approach. It uses a `control` union field, specifically the `requiredRevisionId`, to manage this. The `requiredRevisionId` field is a string representing the label's revision. If a write request targets a non-latest revision ID, the request will fail with a 400 error, ensuring only changes to the current revision are applied.\n"]]