| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.dataflow.v1b3; | 3 library googleapis_beta.dataflow.v1b3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 3745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3756 } | 3756 } |
| 3757 if (taskType != null) { | 3757 if (taskType != null) { |
| 3758 _json["taskType"] = taskType; | 3758 _json["taskType"] = taskType; |
| 3759 } | 3759 } |
| 3760 return _json; | 3760 return _json; |
| 3761 } | 3761 } |
| 3762 } | 3762 } |
| 3763 | 3763 |
| 3764 /** A task which initializes part of a streaming Dataflow job. */ | 3764 /** A task which initializes part of a streaming Dataflow job. */ |
| 3765 class StreamingSetupTask { | 3765 class StreamingSetupTask { |
| 3766 /** The user has requested drain. */ |
| 3767 core.bool drain; |
| 3766 /** | 3768 /** |
| 3767 * The TCP port on which the worker should listen for messages from other | 3769 * The TCP port on which the worker should listen for messages from other |
| 3768 * streaming computation workers. | 3770 * streaming computation workers. |
| 3769 */ | 3771 */ |
| 3770 core.int receiveWorkPort; | 3772 core.int receiveWorkPort; |
| 3771 /** The global topology of the streaming Dataflow job. */ | 3773 /** The global topology of the streaming Dataflow job. */ |
| 3772 TopologyConfig streamingComputationTopology; | 3774 TopologyConfig streamingComputationTopology; |
| 3773 /** | 3775 /** |
| 3774 * The TCP port used by the worker to communicate with the Dataflow worker | 3776 * The TCP port used by the worker to communicate with the Dataflow worker |
| 3775 * harness. | 3777 * harness. |
| 3776 */ | 3778 */ |
| 3777 core.int workerHarnessPort; | 3779 core.int workerHarnessPort; |
| 3778 | 3780 |
| 3779 StreamingSetupTask(); | 3781 StreamingSetupTask(); |
| 3780 | 3782 |
| 3781 StreamingSetupTask.fromJson(core.Map _json) { | 3783 StreamingSetupTask.fromJson(core.Map _json) { |
| 3784 if (_json.containsKey("drain")) { |
| 3785 drain = _json["drain"]; |
| 3786 } |
| 3782 if (_json.containsKey("receiveWorkPort")) { | 3787 if (_json.containsKey("receiveWorkPort")) { |
| 3783 receiveWorkPort = _json["receiveWorkPort"]; | 3788 receiveWorkPort = _json["receiveWorkPort"]; |
| 3784 } | 3789 } |
| 3785 if (_json.containsKey("streamingComputationTopology")) { | 3790 if (_json.containsKey("streamingComputationTopology")) { |
| 3786 streamingComputationTopology = new TopologyConfig.fromJson(_json["streamin
gComputationTopology"]); | 3791 streamingComputationTopology = new TopologyConfig.fromJson(_json["streamin
gComputationTopology"]); |
| 3787 } | 3792 } |
| 3788 if (_json.containsKey("workerHarnessPort")) { | 3793 if (_json.containsKey("workerHarnessPort")) { |
| 3789 workerHarnessPort = _json["workerHarnessPort"]; | 3794 workerHarnessPort = _json["workerHarnessPort"]; |
| 3790 } | 3795 } |
| 3791 } | 3796 } |
| 3792 | 3797 |
| 3793 core.Map toJson() { | 3798 core.Map toJson() { |
| 3794 var _json = new core.Map(); | 3799 var _json = new core.Map(); |
| 3800 if (drain != null) { |
| 3801 _json["drain"] = drain; |
| 3802 } |
| 3795 if (receiveWorkPort != null) { | 3803 if (receiveWorkPort != null) { |
| 3796 _json["receiveWorkPort"] = receiveWorkPort; | 3804 _json["receiveWorkPort"] = receiveWorkPort; |
| 3797 } | 3805 } |
| 3798 if (streamingComputationTopology != null) { | 3806 if (streamingComputationTopology != null) { |
| 3799 _json["streamingComputationTopology"] = (streamingComputationTopology).toJ
son(); | 3807 _json["streamingComputationTopology"] = (streamingComputationTopology).toJ
son(); |
| 3800 } | 3808 } |
| 3801 if (workerHarnessPort != null) { | 3809 if (workerHarnessPort != null) { |
| 3802 _json["workerHarnessPort"] = workerHarnessPort; | 3810 _json["workerHarnessPort"] = workerHarnessPort; |
| 3803 } | 3811 } |
| 3804 return _json; | 3812 return _json; |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4765 /** Packages to be installed on workers. */ | 4773 /** Packages to be installed on workers. */ |
| 4766 core.List<Package> packages; | 4774 core.List<Package> packages; |
| 4767 /** | 4775 /** |
| 4768 * Extra arguments for this worker pool. | 4776 * Extra arguments for this worker pool. |
| 4769 * | 4777 * |
| 4770 * The values for Object must be JSON objects. It can consist of `num`, | 4778 * The values for Object must be JSON objects. It can consist of `num`, |
| 4771 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4779 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4772 */ | 4780 */ |
| 4773 core.Map<core.String, core.Object> poolArgs; | 4781 core.Map<core.String, core.Object> poolArgs; |
| 4774 /** | 4782 /** |
| 4783 * Subnetwork to which VMs will be assigned, if desired. Expected to be of the |
| 4784 * form "zones/ZONE/subnetworks/SUBNETWORK". |
| 4785 */ |
| 4786 core.String subnetwork; |
| 4787 /** |
| 4775 * Settings passed through to Google Compute Engine workers when using the | 4788 * Settings passed through to Google Compute Engine workers when using the |
| 4776 * standard Dataflow task runner. Users should ignore this field. | 4789 * standard Dataflow task runner. Users should ignore this field. |
| 4777 */ | 4790 */ |
| 4778 TaskRunnerSettings taskrunnerSettings; | 4791 TaskRunnerSettings taskrunnerSettings; |
| 4779 /** | 4792 /** |
| 4780 * Sets the policy for determining when to turndown worker pool. Allowed | 4793 * Sets the policy for determining when to turndown worker pool. Allowed |
| 4781 * values are: TEARDOWN_ALWAYS, TEARDOWN_ON_SUCCESS, and TEARDOWN_NEVER. | 4794 * values are: TEARDOWN_ALWAYS, TEARDOWN_ON_SUCCESS, and TEARDOWN_NEVER. |
| 4782 * TEARDOWN_ALWAYS means workers are always torn down regardless of whether | 4795 * TEARDOWN_ALWAYS means workers are always torn down regardless of whether |
| 4783 * the job succeeds. TEARDOWN_ON_SUCCESS means workers are torn down if the | 4796 * the job succeeds. TEARDOWN_ON_SUCCESS means workers are torn down if the |
| 4784 * job succeeds. TEARDOWN_NEVER means the workers are never torn down. If the | 4797 * job succeeds. TEARDOWN_NEVER means the workers are never torn down. If the |
| 4785 * workers are not torn down by the service, they will continue to run and use | 4798 * workers are not torn down by the service, they will continue to run and use |
| 4786 * Google Compute Engine VM resources in the user's project until they are | 4799 * Google Compute Engine VM resources in the user's project until they are |
| 4787 * explicitly terminated by the user. Because of this, Google recommends using | 4800 * explicitly terminated by the user. Because of this, Google recommends using |
| 4788 * the TEARDOWN_ALWAYS policy except for small, manually supervised test jobs. | 4801 * the TEARDOWN_ALWAYS policy except for small, manually supervised test jobs. |
| 4789 * If unknown or unspecified, the service will attempt to choose a reasonable | 4802 * If unknown or unspecified, the service will attempt to choose a reasonable |
| 4790 * default. | 4803 * default. |
| 4791 * Possible string values are: | 4804 * Possible string values are: |
| 4792 * - "TEARDOWN_POLICY_UNKNOWN" : A TEARDOWN_POLICY_UNKNOWN. | 4805 * - "TEARDOWN_POLICY_UNKNOWN" : A TEARDOWN_POLICY_UNKNOWN. |
| 4793 * - "TEARDOWN_ALWAYS" : A TEARDOWN_ALWAYS. | 4806 * - "TEARDOWN_ALWAYS" : A TEARDOWN_ALWAYS. |
| 4794 * - "TEARDOWN_ON_SUCCESS" : A TEARDOWN_ON_SUCCESS. | 4807 * - "TEARDOWN_ON_SUCCESS" : A TEARDOWN_ON_SUCCESS. |
| 4795 * - "TEARDOWN_NEVER" : A TEARDOWN_NEVER. | 4808 * - "TEARDOWN_NEVER" : A TEARDOWN_NEVER. |
| 4796 */ | 4809 */ |
| 4797 core.String teardownPolicy; | 4810 core.String teardownPolicy; |
| 4798 /** | 4811 /** |
| 4812 * Docker container image that executes Dataflow worker harness, residing in |
| 4813 * Google Container Registry. Required. |
| 4814 */ |
| 4815 core.String workerHarnessContainerImage; |
| 4816 /** |
| 4799 * Zone to run the worker pools in. If empty or unspecified, the service will | 4817 * Zone to run the worker pools in. If empty or unspecified, the service will |
| 4800 * attempt to choose a reasonable default. | 4818 * attempt to choose a reasonable default. |
| 4801 */ | 4819 */ |
| 4802 core.String zone; | 4820 core.String zone; |
| 4803 | 4821 |
| 4804 WorkerPool(); | 4822 WorkerPool(); |
| 4805 | 4823 |
| 4806 WorkerPool.fromJson(core.Map _json) { | 4824 WorkerPool.fromJson(core.Map _json) { |
| 4807 if (_json.containsKey("autoscalingSettings")) { | 4825 if (_json.containsKey("autoscalingSettings")) { |
| 4808 autoscalingSettings = new AutoscalingSettings.fromJson(_json["autoscalingS
ettings"]); | 4826 autoscalingSettings = new AutoscalingSettings.fromJson(_json["autoscalingS
ettings"]); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4839 } | 4857 } |
| 4840 if (_json.containsKey("onHostMaintenance")) { | 4858 if (_json.containsKey("onHostMaintenance")) { |
| 4841 onHostMaintenance = _json["onHostMaintenance"]; | 4859 onHostMaintenance = _json["onHostMaintenance"]; |
| 4842 } | 4860 } |
| 4843 if (_json.containsKey("packages")) { | 4861 if (_json.containsKey("packages")) { |
| 4844 packages = _json["packages"].map((value) => new Package.fromJson(value)).t
oList(); | 4862 packages = _json["packages"].map((value) => new Package.fromJson(value)).t
oList(); |
| 4845 } | 4863 } |
| 4846 if (_json.containsKey("poolArgs")) { | 4864 if (_json.containsKey("poolArgs")) { |
| 4847 poolArgs = _json["poolArgs"]; | 4865 poolArgs = _json["poolArgs"]; |
| 4848 } | 4866 } |
| 4867 if (_json.containsKey("subnetwork")) { |
| 4868 subnetwork = _json["subnetwork"]; |
| 4869 } |
| 4849 if (_json.containsKey("taskrunnerSettings")) { | 4870 if (_json.containsKey("taskrunnerSettings")) { |
| 4850 taskrunnerSettings = new TaskRunnerSettings.fromJson(_json["taskrunnerSett
ings"]); | 4871 taskrunnerSettings = new TaskRunnerSettings.fromJson(_json["taskrunnerSett
ings"]); |
| 4851 } | 4872 } |
| 4852 if (_json.containsKey("teardownPolicy")) { | 4873 if (_json.containsKey("teardownPolicy")) { |
| 4853 teardownPolicy = _json["teardownPolicy"]; | 4874 teardownPolicy = _json["teardownPolicy"]; |
| 4854 } | 4875 } |
| 4876 if (_json.containsKey("workerHarnessContainerImage")) { |
| 4877 workerHarnessContainerImage = _json["workerHarnessContainerImage"]; |
| 4878 } |
| 4855 if (_json.containsKey("zone")) { | 4879 if (_json.containsKey("zone")) { |
| 4856 zone = _json["zone"]; | 4880 zone = _json["zone"]; |
| 4857 } | 4881 } |
| 4858 } | 4882 } |
| 4859 | 4883 |
| 4860 core.Map toJson() { | 4884 core.Map toJson() { |
| 4861 var _json = new core.Map(); | 4885 var _json = new core.Map(); |
| 4862 if (autoscalingSettings != null) { | 4886 if (autoscalingSettings != null) { |
| 4863 _json["autoscalingSettings"] = (autoscalingSettings).toJson(); | 4887 _json["autoscalingSettings"] = (autoscalingSettings).toJson(); |
| 4864 } | 4888 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 4894 } | 4918 } |
| 4895 if (onHostMaintenance != null) { | 4919 if (onHostMaintenance != null) { |
| 4896 _json["onHostMaintenance"] = onHostMaintenance; | 4920 _json["onHostMaintenance"] = onHostMaintenance; |
| 4897 } | 4921 } |
| 4898 if (packages != null) { | 4922 if (packages != null) { |
| 4899 _json["packages"] = packages.map((value) => (value).toJson()).toList(); | 4923 _json["packages"] = packages.map((value) => (value).toJson()).toList(); |
| 4900 } | 4924 } |
| 4901 if (poolArgs != null) { | 4925 if (poolArgs != null) { |
| 4902 _json["poolArgs"] = poolArgs; | 4926 _json["poolArgs"] = poolArgs; |
| 4903 } | 4927 } |
| 4928 if (subnetwork != null) { |
| 4929 _json["subnetwork"] = subnetwork; |
| 4930 } |
| 4904 if (taskrunnerSettings != null) { | 4931 if (taskrunnerSettings != null) { |
| 4905 _json["taskrunnerSettings"] = (taskrunnerSettings).toJson(); | 4932 _json["taskrunnerSettings"] = (taskrunnerSettings).toJson(); |
| 4906 } | 4933 } |
| 4907 if (teardownPolicy != null) { | 4934 if (teardownPolicy != null) { |
| 4908 _json["teardownPolicy"] = teardownPolicy; | 4935 _json["teardownPolicy"] = teardownPolicy; |
| 4909 } | 4936 } |
| 4937 if (workerHarnessContainerImage != null) { |
| 4938 _json["workerHarnessContainerImage"] = workerHarnessContainerImage; |
| 4939 } |
| 4910 if (zone != null) { | 4940 if (zone != null) { |
| 4911 _json["zone"] = zone; | 4941 _json["zone"] = zone; |
| 4912 } | 4942 } |
| 4913 return _json; | 4943 return _json; |
| 4914 } | 4944 } |
| 4915 } | 4945 } |
| 4916 | 4946 |
| 4917 /** Provides data to pass through to the worker harness. */ | 4947 /** Provides data to pass through to the worker harness. */ |
| 4918 class WorkerSettings { | 4948 class WorkerSettings { |
| 4919 /** | 4949 /** |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5018 var _json = new core.Map(); | 5048 var _json = new core.Map(); |
| 5019 if (input != null) { | 5049 if (input != null) { |
| 5020 _json["input"] = (input).toJson(); | 5050 _json["input"] = (input).toJson(); |
| 5021 } | 5051 } |
| 5022 if (sink != null) { | 5052 if (sink != null) { |
| 5023 _json["sink"] = (sink).toJson(); | 5053 _json["sink"] = (sink).toJson(); |
| 5024 } | 5054 } |
| 5025 return _json; | 5055 return _json; |
| 5026 } | 5056 } |
| 5027 } | 5057 } |
| OLD | NEW |