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 Bad Request 오류가 반환됩니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# WriteControl\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nProvides control over how write requests are executed. When not specified, the last write wins.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `control` can be only one of the following: \"requiredRevisionId\": string // End of list of possible types for union field `control`. } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `control`. Determines the revision of the label to write to and how the request should behave if that revision is not the current revision of the label. `control` can be only one of the following: ||\n| `requiredRevisionId` | `string` The \\[revisionId\\]\\[google.apps.drive.labels.v1.Label.revision_id\\] of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error. |"]]