Package google.longrunning
작업
이 리소스는 네트워크 API 호출의 결과인 장기 실행 작업을 나타냅니다.
필드 |
name |
string
서버에 할당된 이름으로, 해당 이름을 최초로 반환한 서비스 내에서만 고유합니다. 기본 HTTP 매핑을 사용하는 경우 name 은 operations/{unique_id} 로 끝나는 리소스 이름이어야 합니다.
|
metadata |
Any
작업과 관련된 서비스별 메타데이터입니다. 일반적으로 진행률 정보 및 생성 시간과 같은 일반 메타데이터가 포함됩니다. 일부 서비스는 이러한 메타데이터를 제공하지 않을 수 있습니다. 장기 실행 작업을 반환하는 메서드는 메타데이터 유형이 있는 경우 이를 문서화해야 합니다.
|
done |
bool
값이 false 이면 작업이 아직 진행 중이라는 의미입니다. true 이면 작업이 완료된 것이며, error 또는 response 를 사용할 수 있습니다.
|
통합 필드 result 는 작업 결과로, error 또는 유효한 response 일 수 있습니다. done == false 이면 error 와 response 가 모두 설정되지 않습니다. done == true 이면 error 또는 response 중 정확히 하나가 설정될 수 있습니다. 일부 서비스에서는 결과가 표시되지 않을 수 있습니다. result 은 다음 중 하나여야 합니다. |
error |
Status
실패하거나 취소된 작업의 오류 결과입니다.
|
response |
Any
작업에 대한 정상적이고 성공적인 응답입니다. Delete 와 같이 원래 메서드가 성공 시 데이터를 반환하지 않는 경우 응답은 google.protobuf.Empty 입니다. 원래 메서드가 표준 Get /Create /Update 이면 응답은 리소스여야 합니다. 다른 메서드의 경우 응답은 XxxResponse 유형이어야 하며, 여기에서 Xxx 는 원래 메서드의 이름입니다. 예를 들어 원래 메서드 이름이 TakeSnapshot() 이면 추론된 응답 유형은 TakeSnapshotResponse 입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[null,null,["최종 업데이트: 2023-12-01(UTC)"],[[["The `Operation` resource represents a long-running operation initiated by a network API call."],["Each operation has a unique name, metadata (often with progress information), and a status indicating if it's done."],["Upon completion (`done` is `true`), an operation provides either an `error` or a `response` indicating the outcome."],["The `response` field contains the operation's result, which varies depending on the original API method called."]]],["A long-running network API call is represented by an \"Operation\" resource. This resource includes a unique `name`, service-specific `metadata` about progress, and a `done` status flag. Upon completion (`done` is true), the `result` field will contain either an `error` status or a successful `response`. If the operation is in progress (`done` is false) `result` will not be set. The `response` contains data if it was a successful operation.\n"]]