Skip to content

Commit 91ef325

Browse files
committed
Add status field to google_bigquery_job
fixes hashicorp/terraform-provider-google#8357
1 parent 5cb9550 commit 91ef325

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

mmv1/products/bigquery/api.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,50 @@ objects:
978978
description: |
979979
The geographic location of the job. The default value is US.
980980
default_value: 'US'
981+
- !ruby/object:Api::Type::NestedObject
982+
name: 'status'
983+
output: true
984+
description: |
985+
The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
986+
properties:
987+
- !ruby/object:Api::Type::NestedObject
988+
name: 'errorResult'
989+
output: true
990+
description: |
991+
Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
992+
properties:
993+
- !ruby/object:Api::Type::String
994+
name: 'reason'
995+
description: A short error code that summarizes the error.
996+
- !ruby/object:Api::Type::String
997+
name: 'location'
998+
description: Specifies where the error occurred, if present.
999+
- !ruby/object:Api::Type::String
1000+
name: 'message'
1001+
description: A human-readable description of the error.
1002+
- !ruby/object:Api::Type::Array
1003+
name: 'errors'
1004+
output: true
1005+
description: |
1006+
The first errors encountered during the running of the job. The final message
1007+
includes the number of errors that caused the process to stop. Errors here do
1008+
not necessarily mean that the job has not completed or was unsuccessful.
1009+
item_type: !ruby/object:Api::Type::NestedObject
1010+
properties:
1011+
- !ruby/object:Api::Type::String
1012+
name: 'reason'
1013+
description: A short error code that summarizes the error.
1014+
- !ruby/object:Api::Type::String
1015+
name: 'location'
1016+
description: Specifies where the error occurred, if present.
1017+
- !ruby/object:Api::Type::String
1018+
name: 'message'
1019+
description: A human-readable description of the error.
1020+
- !ruby/object:Api::Type::String
1021+
name: 'state'
1022+
output: true
1023+
description: |
1024+
Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'.
9811025
- !ruby/object:Api::Resource
9821026
name: 'Table'
9831027
kind: 'bigquery#table'

0 commit comments

Comments
 (0)