OLD | NEW |
1 library googleapis.bigquery.v2; | 1 library googleapis.bigquery.v2; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2734 * This field will be present on all jobs. | 2734 * This field will be present on all jobs. |
2735 */ | 2735 */ |
2736 core.String creationTime; | 2736 core.String creationTime; |
2737 | 2737 |
2738 /** | 2738 /** |
2739 * [Output-only] End time of this job, in milliseconds since the epoch. This | 2739 * [Output-only] End time of this job, in milliseconds since the epoch. This |
2740 * field will be present whenever a job is in the DONE state. | 2740 * field will be present whenever a job is in the DONE state. |
2741 */ | 2741 */ |
2742 core.String endTime; | 2742 core.String endTime; |
2743 | 2743 |
| 2744 /** [Output-only] Statistics for an extract job. */ |
| 2745 JobStatistics4 extract; |
| 2746 |
2744 /** [Output-only] Statistics for a load job. */ | 2747 /** [Output-only] Statistics for a load job. */ |
2745 JobStatistics3 load; | 2748 JobStatistics3 load; |
2746 | 2749 |
2747 /** [Output-only] Statistics for a query job. */ | 2750 /** [Output-only] Statistics for a query job. */ |
2748 JobStatistics2 query; | 2751 JobStatistics2 query; |
2749 | 2752 |
2750 /** | 2753 /** |
2751 * [Output-only] Start time of this job, in milliseconds since the epoch. This | 2754 * [Output-only] Start time of this job, in milliseconds since the epoch. This |
2752 * field will be present when the job transitions from the PENDING state to | 2755 * field will be present when the job transitions from the PENDING state to |
2753 * either RUNNING or DONE. | 2756 * either RUNNING or DONE. |
2754 */ | 2757 */ |
2755 core.String startTime; | 2758 core.String startTime; |
2756 | 2759 |
2757 /** | 2760 /** |
2758 * [Output-only] [Deprecated] Use the bytes processed in the query statistics | 2761 * [Output-only] [Deprecated] Use the bytes processed in the query statistics |
2759 * instead. | 2762 * instead. |
2760 */ | 2763 */ |
2761 core.String totalBytesProcessed; | 2764 core.String totalBytesProcessed; |
2762 | 2765 |
2763 | 2766 |
2764 JobStatistics(); | 2767 JobStatistics(); |
2765 | 2768 |
2766 JobStatistics.fromJson(core.Map _json) { | 2769 JobStatistics.fromJson(core.Map _json) { |
2767 if (_json.containsKey("creationTime")) { | 2770 if (_json.containsKey("creationTime")) { |
2768 creationTime = _json["creationTime"]; | 2771 creationTime = _json["creationTime"]; |
2769 } | 2772 } |
2770 if (_json.containsKey("endTime")) { | 2773 if (_json.containsKey("endTime")) { |
2771 endTime = _json["endTime"]; | 2774 endTime = _json["endTime"]; |
2772 } | 2775 } |
| 2776 if (_json.containsKey("extract")) { |
| 2777 extract = new JobStatistics4.fromJson(_json["extract"]); |
| 2778 } |
2773 if (_json.containsKey("load")) { | 2779 if (_json.containsKey("load")) { |
2774 load = new JobStatistics3.fromJson(_json["load"]); | 2780 load = new JobStatistics3.fromJson(_json["load"]); |
2775 } | 2781 } |
2776 if (_json.containsKey("query")) { | 2782 if (_json.containsKey("query")) { |
2777 query = new JobStatistics2.fromJson(_json["query"]); | 2783 query = new JobStatistics2.fromJson(_json["query"]); |
2778 } | 2784 } |
2779 if (_json.containsKey("startTime")) { | 2785 if (_json.containsKey("startTime")) { |
2780 startTime = _json["startTime"]; | 2786 startTime = _json["startTime"]; |
2781 } | 2787 } |
2782 if (_json.containsKey("totalBytesProcessed")) { | 2788 if (_json.containsKey("totalBytesProcessed")) { |
2783 totalBytesProcessed = _json["totalBytesProcessed"]; | 2789 totalBytesProcessed = _json["totalBytesProcessed"]; |
2784 } | 2790 } |
2785 } | 2791 } |
2786 | 2792 |
2787 core.Map toJson() { | 2793 core.Map toJson() { |
2788 var _json = new core.Map(); | 2794 var _json = new core.Map(); |
2789 if (creationTime != null) { | 2795 if (creationTime != null) { |
2790 _json["creationTime"] = creationTime; | 2796 _json["creationTime"] = creationTime; |
2791 } | 2797 } |
2792 if (endTime != null) { | 2798 if (endTime != null) { |
2793 _json["endTime"] = endTime; | 2799 _json["endTime"] = endTime; |
2794 } | 2800 } |
| 2801 if (extract != null) { |
| 2802 _json["extract"] = (extract).toJson(); |
| 2803 } |
2795 if (load != null) { | 2804 if (load != null) { |
2796 _json["load"] = (load).toJson(); | 2805 _json["load"] = (load).toJson(); |
2797 } | 2806 } |
2798 if (query != null) { | 2807 if (query != null) { |
2799 _json["query"] = (query).toJson(); | 2808 _json["query"] = (query).toJson(); |
2800 } | 2809 } |
2801 if (startTime != null) { | 2810 if (startTime != null) { |
2802 _json["startTime"] = startTime; | 2811 _json["startTime"] = startTime; |
2803 } | 2812 } |
2804 if (totalBytesProcessed != null) { | 2813 if (totalBytesProcessed != null) { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 } | 2904 } |
2896 if (outputRows != null) { | 2905 if (outputRows != null) { |
2897 _json["outputRows"] = outputRows; | 2906 _json["outputRows"] = outputRows; |
2898 } | 2907 } |
2899 return _json; | 2908 return _json; |
2900 } | 2909 } |
2901 } | 2910 } |
2902 | 2911 |
2903 | 2912 |
2904 /** Not documented yet. */ | 2913 /** Not documented yet. */ |
| 2914 class JobStatistics4 { |
| 2915 /** |
| 2916 * [Output-only] Number of files per destination URI or URI pattern specified |
| 2917 * in the extract configuration. These values will be in the same order as the |
| 2918 * URIs specified in the 'destinationUris' field. |
| 2919 */ |
| 2920 core.List<core.String> destinationUriFileCounts; |
| 2921 |
| 2922 |
| 2923 JobStatistics4(); |
| 2924 |
| 2925 JobStatistics4.fromJson(core.Map _json) { |
| 2926 if (_json.containsKey("destinationUriFileCounts")) { |
| 2927 destinationUriFileCounts = _json["destinationUriFileCounts"]; |
| 2928 } |
| 2929 } |
| 2930 |
| 2931 core.Map toJson() { |
| 2932 var _json = new core.Map(); |
| 2933 if (destinationUriFileCounts != null) { |
| 2934 _json["destinationUriFileCounts"] = destinationUriFileCounts; |
| 2935 } |
| 2936 return _json; |
| 2937 } |
| 2938 } |
| 2939 |
| 2940 |
| 2941 /** Not documented yet. */ |
2905 class JobStatus { | 2942 class JobStatus { |
2906 /** | 2943 /** |
2907 * [Output-only] Final error result of the job. If present, indicates that the | 2944 * [Output-only] Final error result of the job. If present, indicates that the |
2908 * job has completed and was unsuccessful. | 2945 * job has completed and was unsuccessful. |
2909 */ | 2946 */ |
2910 ErrorProto errorResult; | 2947 ErrorProto errorResult; |
2911 | 2948 |
2912 /** | 2949 /** |
2913 * [Output-only] All errors encountered during the running of the job. Errors | 2950 * [Output-only] All errors encountered during the running of the job. Errors |
2914 * here do not necessarily mean that the job has completed or was | 2951 * here do not necessarily mean that the job has completed or was |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4086 core.Map toJson() { | 4123 core.Map toJson() { |
4087 var _json = new core.Map(); | 4124 var _json = new core.Map(); |
4088 if (query != null) { | 4125 if (query != null) { |
4089 _json["query"] = query; | 4126 _json["query"] = query; |
4090 } | 4127 } |
4091 return _json; | 4128 return _json; |
4092 } | 4129 } |
4093 } | 4130 } |
4094 | 4131 |
4095 | 4132 |
OLD | NEW |