| 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.ml.v1; | 3 library googleapis.ml.v1; |
| 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 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 _json["objectiveValue"] = objectiveValue; | 1287 _json["objectiveValue"] = objectiveValue; |
| 1288 } | 1288 } |
| 1289 if (trainingStep != null) { | 1289 if (trainingStep != null) { |
| 1290 _json["trainingStep"] = trainingStep; | 1290 _json["trainingStep"] = trainingStep; |
| 1291 } | 1291 } |
| 1292 return _json; | 1292 return _json; |
| 1293 } | 1293 } |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 /** Options for automatically scaling a model. */ | 1296 /** Options for automatically scaling a model. */ |
| 1297 class GoogleCloudMlV1AutomaticScaling { | 1297 class GoogleCloudMlV1AutoScaling { |
| 1298 /** | 1298 /** |
| 1299 * Optional. The minimum number of nodes to allocate for this model. These | 1299 * Optional. The minimum number of nodes to allocate for this model. These |
| 1300 * nodes are always up, starting from the time the model is deployed, so the | 1300 * nodes are always up, starting from the time the model is deployed, so the |
| 1301 * cost of operating this model will be at least | 1301 * cost of operating this model will be at least |
| 1302 * `rate` * `min_nodes` * number of hours since last billing cycle, | 1302 * `rate` * `min_nodes` * number of hours since last billing cycle, |
| 1303 * where `rate` is the cost per node-hour as documented in | 1303 * where `rate` is the cost per node-hour as documented in |
| 1304 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), | 1304 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), |
| 1305 * even if no predictions are performed. There is additional cost for each | 1305 * even if no predictions are performed. There is additional cost for each |
| 1306 * prediction performed. | 1306 * prediction performed. |
| 1307 * | 1307 * |
| 1308 * Unlike manual scaling, if the load gets too heavy for the nodes | 1308 * Unlike manual scaling, if the load gets too heavy for the nodes |
| 1309 * that are up, the service will automatically add nodes to handle the | 1309 * that are up, the service will automatically add nodes to handle the |
| 1310 * increased load as well as scale back as traffic drops, always maintaining | 1310 * increased load as well as scale back as traffic drops, always maintaining |
| 1311 * at least `min_nodes`. You will be charged for the time in which additional | 1311 * at least `min_nodes`. You will be charged for the time in which additional |
| 1312 * nodes are used. | 1312 * nodes are used. |
| 1313 * | 1313 * |
| 1314 * If not specified, `min_nodes` defaults to 0, in which case, when traffic | 1314 * If not specified, `min_nodes` defaults to 0, in which case, when traffic |
| 1315 * to a model stops (and after a cool-down period), nodes will be shut down | 1315 * to a model stops (and after a cool-down period), nodes will be shut down |
| 1316 * and no charges will be incurred until traffic to the model resumes. | 1316 * and no charges will be incurred until traffic to the model resumes. |
| 1317 */ | 1317 */ |
| 1318 core.int minNodes; | 1318 core.int minNodes; |
| 1319 | 1319 |
| 1320 GoogleCloudMlV1AutomaticScaling(); | 1320 GoogleCloudMlV1AutoScaling(); |
| 1321 | 1321 |
| 1322 GoogleCloudMlV1AutomaticScaling.fromJson(core.Map _json) { | 1322 GoogleCloudMlV1AutoScaling.fromJson(core.Map _json) { |
| 1323 if (_json.containsKey("minNodes")) { | 1323 if (_json.containsKey("minNodes")) { |
| 1324 minNodes = _json["minNodes"]; | 1324 minNodes = _json["minNodes"]; |
| 1325 } | 1325 } |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 core.Map<core.String, core.Object> toJson() { | 1328 core.Map<core.String, core.Object> toJson() { |
| 1329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1330 if (minNodes != null) { | 1330 if (minNodes != null) { |
| 1331 _json["minNodes"] = minNodes; | 1331 _json["minNodes"] = minNodes; |
| 1332 } | 1332 } |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2729 * information about all of the versions of a given model by calling | 2729 * information about all of the versions of a given model by calling |
| 2730 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). | 2730 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). |
| 2731 */ | 2731 */ |
| 2732 class GoogleCloudMlV1Version { | 2732 class GoogleCloudMlV1Version { |
| 2733 /** | 2733 /** |
| 2734 * Automatically scale the number of nodes used to serve the model in | 2734 * Automatically scale the number of nodes used to serve the model in |
| 2735 * response to increases and decreases in traffic. Care should be | 2735 * response to increases and decreases in traffic. Care should be |
| 2736 * taken to ramp up traffic according to the model's ability to scale | 2736 * taken to ramp up traffic according to the model's ability to scale |
| 2737 * or you will start seeing increases in latency and 429 response codes. | 2737 * or you will start seeing increases in latency and 429 response codes. |
| 2738 */ | 2738 */ |
| 2739 GoogleCloudMlV1AutomaticScaling automaticScaling; | 2739 GoogleCloudMlV1AutoScaling autoScaling; |
| 2740 /** Output only. The time the version was created. */ | 2740 /** Output only. The time the version was created. */ |
| 2741 core.String createTime; | 2741 core.String createTime; |
| 2742 /** | 2742 /** |
| 2743 * Required. The Google Cloud Storage location of the trained model used to | 2743 * Required. The Google Cloud Storage location of the trained model used to |
| 2744 * create the version. See the | 2744 * create the version. See the |
| 2745 * [overview of model | 2745 * [overview of model |
| 2746 * deployment](/ml-engine/docs/concepts/deployment-overview) for more | 2746 * deployment](/ml-engine/docs/concepts/deployment-overview) for more |
| 2747 * informaiton. | 2747 * information. |
| 2748 * | 2748 * |
| 2749 * When passing Version to | 2749 * When passing Version to |
| 2750 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod
els.versions/create) | 2750 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod
els.versions/create) |
| 2751 * the model service uses the specified location as the source of the model. | 2751 * the model service uses the specified location as the source of the model. |
| 2752 * Once deployed, the model version is hosted by the prediction service, so | 2752 * Once deployed, the model version is hosted by the prediction service, so |
| 2753 * this location is useful only as a historical record. | 2753 * this location is useful only as a historical record. |
| 2754 * The total number of model files can't exceed 1000. | 2754 * The total number of model files can't exceed 1000. |
| 2755 */ | 2755 */ |
| 2756 core.String deploymentUri; | 2756 core.String deploymentUri; |
| 2757 /** | 2757 /** |
| 2758 * Optional. The description specified for the version when it was created. | 2758 * Optional. The description specified for the version when it was created. |
| 2759 */ | 2759 */ |
| 2760 core.String description; | 2760 core.String description; |
| 2761 /** Output only. The details of a failure or a cancellation. */ | 2761 /** Output only. The details of a failure or a cancellation. */ |
| 2762 core.String errorMessage; | 2762 core.String errorMessage; |
| 2763 /** | 2763 /** |
| 2764 * Output only. If true, this version will be used to handle prediction | 2764 * Output only. If true, this version will be used to handle prediction |
| 2765 * requests that do not specify a version. | 2765 * requests that do not specify a version. |
| 2766 * | 2766 * |
| 2767 * You can change the default version by calling | 2767 * You can change the default version by calling |
| 2768 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). | 2768 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). |
| 2769 */ | 2769 */ |
| 2770 core.bool isDefault; | 2770 core.bool isDefault; |
| 2771 /** Output only. The time the version was last used for prediction. */ | 2771 /** Output only. The time the version was last used for prediction. */ |
| 2772 core.String lastUseTime; | 2772 core.String lastUseTime; |
| 2773 /** | 2773 /** |
| 2774 * Manually select the number of nodes to use for serving the | 2774 * Manually select the number of nodes to use for serving the |
| 2775 * model. You should generally use `automatic_scaling` with an appropriate | 2775 * model. You should generally use `auto_scaling` with an appropriate |
| 2776 * `min_nodes` instead, but this option is available if you want more | 2776 * `min_nodes` instead, but this option is available if you want more |
| 2777 * predictable billing. Beware that latency and error rates will increase | 2777 * predictable billing. Beware that latency and error rates will increase |
| 2778 * if the traffic exceeds that capability of the system to serve it based | 2778 * if the traffic exceeds that capability of the system to serve it based |
| 2779 * on the selected number of nodes. | 2779 * on the selected number of nodes. |
| 2780 */ | 2780 */ |
| 2781 GoogleCloudMlV1ManualScaling manualScaling; | 2781 GoogleCloudMlV1ManualScaling manualScaling; |
| 2782 /** | 2782 /** |
| 2783 * Required.The name specified for the version when it was created. | 2783 * Required.The name specified for the version when it was created. |
| 2784 * | 2784 * |
| 2785 * The version name must be unique within the model it is created in. | 2785 * The version name must be unique within the model it is created in. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2797 * - "READY" : The version is ready for prediction. | 2797 * - "READY" : The version is ready for prediction. |
| 2798 * - "CREATING" : The version is still in the process of creation. | 2798 * - "CREATING" : The version is still in the process of creation. |
| 2799 * - "FAILED" : The version failed to be created, possibly cancelled. | 2799 * - "FAILED" : The version failed to be created, possibly cancelled. |
| 2800 * `error_message` should contain the details of the failure. | 2800 * `error_message` should contain the details of the failure. |
| 2801 */ | 2801 */ |
| 2802 core.String state; | 2802 core.String state; |
| 2803 | 2803 |
| 2804 GoogleCloudMlV1Version(); | 2804 GoogleCloudMlV1Version(); |
| 2805 | 2805 |
| 2806 GoogleCloudMlV1Version.fromJson(core.Map _json) { | 2806 GoogleCloudMlV1Version.fromJson(core.Map _json) { |
| 2807 if (_json.containsKey("automaticScaling")) { | 2807 if (_json.containsKey("autoScaling")) { |
| 2808 automaticScaling = new GoogleCloudMlV1AutomaticScaling.fromJson(_json["aut
omaticScaling"]); | 2808 autoScaling = new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"]
); |
| 2809 } | 2809 } |
| 2810 if (_json.containsKey("createTime")) { | 2810 if (_json.containsKey("createTime")) { |
| 2811 createTime = _json["createTime"]; | 2811 createTime = _json["createTime"]; |
| 2812 } | 2812 } |
| 2813 if (_json.containsKey("deploymentUri")) { | 2813 if (_json.containsKey("deploymentUri")) { |
| 2814 deploymentUri = _json["deploymentUri"]; | 2814 deploymentUri = _json["deploymentUri"]; |
| 2815 } | 2815 } |
| 2816 if (_json.containsKey("description")) { | 2816 if (_json.containsKey("description")) { |
| 2817 description = _json["description"]; | 2817 description = _json["description"]; |
| 2818 } | 2818 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2834 if (_json.containsKey("runtimeVersion")) { | 2834 if (_json.containsKey("runtimeVersion")) { |
| 2835 runtimeVersion = _json["runtimeVersion"]; | 2835 runtimeVersion = _json["runtimeVersion"]; |
| 2836 } | 2836 } |
| 2837 if (_json.containsKey("state")) { | 2837 if (_json.containsKey("state")) { |
| 2838 state = _json["state"]; | 2838 state = _json["state"]; |
| 2839 } | 2839 } |
| 2840 } | 2840 } |
| 2841 | 2841 |
| 2842 core.Map<core.String, core.Object> toJson() { | 2842 core.Map<core.String, core.Object> toJson() { |
| 2843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2844 if (automaticScaling != null) { | 2844 if (autoScaling != null) { |
| 2845 _json["automaticScaling"] = (automaticScaling).toJson(); | 2845 _json["autoScaling"] = (autoScaling).toJson(); |
| 2846 } | 2846 } |
| 2847 if (createTime != null) { | 2847 if (createTime != null) { |
| 2848 _json["createTime"] = createTime; | 2848 _json["createTime"] = createTime; |
| 2849 } | 2849 } |
| 2850 if (deploymentUri != null) { | 2850 if (deploymentUri != null) { |
| 2851 _json["deploymentUri"] = deploymentUri; | 2851 _json["deploymentUri"] = deploymentUri; |
| 2852 } | 2852 } |
| 2853 if (description != null) { | 2853 if (description != null) { |
| 2854 _json["description"] = description; | 2854 _json["description"] = description; |
| 2855 } | 2855 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2872 _json["runtimeVersion"] = runtimeVersion; | 2872 _json["runtimeVersion"] = runtimeVersion; |
| 2873 } | 2873 } |
| 2874 if (state != null) { | 2874 if (state != null) { |
| 2875 _json["state"] = state; | 2875 _json["state"] = state; |
| 2876 } | 2876 } |
| 2877 return _json; | 2877 return _json; |
| 2878 } | 2878 } |
| 2879 } | 2879 } |
| 2880 | 2880 |
| 2881 /** Options for automatically scaling a model. */ | 2881 /** Options for automatically scaling a model. */ |
| 2882 class GoogleCloudMlV1beta1AutomaticScaling { | 2882 class GoogleCloudMlV1beta1AutoScaling { |
| 2883 /** | 2883 /** |
| 2884 * Optional. The minimum number of nodes to allocate for this model. These | 2884 * Optional. The minimum number of nodes to allocate for this model. These |
| 2885 * nodes are always up, starting from the time the model is deployed, so the | 2885 * nodes are always up, starting from the time the model is deployed, so the |
| 2886 * cost of operating this model will be at least | 2886 * cost of operating this model will be at least |
| 2887 * `rate` * `min_nodes` * number of hours since last billing cycle, | 2887 * `rate` * `min_nodes` * number of hours since last billing cycle, |
| 2888 * where `rate` is the cost per node-hour as documented in | 2888 * where `rate` is the cost per node-hour as documented in |
| 2889 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), | 2889 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), |
| 2890 * even if no predictions are performed. There is additional cost for each | 2890 * even if no predictions are performed. There is additional cost for each |
| 2891 * prediction performed. | 2891 * prediction performed. |
| 2892 * | 2892 * |
| 2893 * Unlike manual scaling, if the load gets too heavy for the nodes | 2893 * Unlike manual scaling, if the load gets too heavy for the nodes |
| 2894 * that are up, the service will automatically add nodes to handle the | 2894 * that are up, the service will automatically add nodes to handle the |
| 2895 * increased load as well as scale back as traffic drops, always maintaining | 2895 * increased load as well as scale back as traffic drops, always maintaining |
| 2896 * at least `min_nodes`. You will be charged for the time in which additional | 2896 * at least `min_nodes`. You will be charged for the time in which additional |
| 2897 * nodes are used. | 2897 * nodes are used. |
| 2898 * | 2898 * |
| 2899 * If not specified, `min_nodes` defaults to 0, in which case, when traffic | 2899 * If not specified, `min_nodes` defaults to 0, in which case, when traffic |
| 2900 * to a model stops (and after a cool-down period), nodes will be shut down | 2900 * to a model stops (and after a cool-down period), nodes will be shut down |
| 2901 * and no charges will be incurred until traffic to the model resumes. | 2901 * and no charges will be incurred until traffic to the model resumes. |
| 2902 */ | 2902 */ |
| 2903 core.int minNodes; | 2903 core.int minNodes; |
| 2904 | 2904 |
| 2905 GoogleCloudMlV1beta1AutomaticScaling(); | 2905 GoogleCloudMlV1beta1AutoScaling(); |
| 2906 | 2906 |
| 2907 GoogleCloudMlV1beta1AutomaticScaling.fromJson(core.Map _json) { | 2907 GoogleCloudMlV1beta1AutoScaling.fromJson(core.Map _json) { |
| 2908 if (_json.containsKey("minNodes")) { | 2908 if (_json.containsKey("minNodes")) { |
| 2909 minNodes = _json["minNodes"]; | 2909 minNodes = _json["minNodes"]; |
| 2910 } | 2910 } |
| 2911 } | 2911 } |
| 2912 | 2912 |
| 2913 core.Map<core.String, core.Object> toJson() { | 2913 core.Map<core.String, core.Object> toJson() { |
| 2914 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2914 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2915 if (minNodes != null) { | 2915 if (minNodes != null) { |
| 2916 _json["minNodes"] = minNodes; | 2916 _json["minNodes"] = minNodes; |
| 2917 } | 2917 } |
| 2918 return _json; | 2918 return _json; |
| 2919 } | 2919 } |
| 2920 } | 2920 } |
| 2921 | 2921 |
| 2922 /** Options for manually scaling a model. */ | 2922 /** Options for manually scaling a model. */ |
| 2923 class GoogleCloudMlV1beta1ManualScaling { | 2923 class GoogleCloudMlV1beta1ManualScaling { |
| 2924 /** | 2924 /** |
| 2925 * The number of nodes to allocate for this model. These nodes are always up, | 2925 * The number of nodes to allocate for this model. These nodes are always up, |
| 2926 * starting from the time the model is deployed, so the cost of operating | 2926 * starting from the time the model is deployed, so the cost of operating |
| 2927 * this model will be proportional to `nodes` * number of hours since | 2927 * this model will be proportional to `nodes` * number of hours since |
| 2928 * last billing cycle. | 2928 * last billing cycle plus the cost for each prediction performed. |
| 2929 */ | 2929 */ |
| 2930 core.int nodes; | 2930 core.int nodes; |
| 2931 | 2931 |
| 2932 GoogleCloudMlV1beta1ManualScaling(); | 2932 GoogleCloudMlV1beta1ManualScaling(); |
| 2933 | 2933 |
| 2934 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { | 2934 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { |
| 2935 if (_json.containsKey("nodes")) { | 2935 if (_json.containsKey("nodes")) { |
| 2936 nodes = _json["nodes"]; | 2936 nodes = _json["nodes"]; |
| 2937 } | 2937 } |
| 2938 } | 2938 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3031 * information about all of the versions of a given model by calling | 3031 * information about all of the versions of a given model by calling |
| 3032 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). | 3032 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). |
| 3033 */ | 3033 */ |
| 3034 class GoogleCloudMlV1beta1Version { | 3034 class GoogleCloudMlV1beta1Version { |
| 3035 /** | 3035 /** |
| 3036 * Automatically scale the number of nodes used to serve the model in | 3036 * Automatically scale the number of nodes used to serve the model in |
| 3037 * response to increases and decreases in traffic. Care should be | 3037 * response to increases and decreases in traffic. Care should be |
| 3038 * taken to ramp up traffic according to the model's ability to scale | 3038 * taken to ramp up traffic according to the model's ability to scale |
| 3039 * or you will start seeing increases in latency and 429 response codes. | 3039 * or you will start seeing increases in latency and 429 response codes. |
| 3040 */ | 3040 */ |
| 3041 GoogleCloudMlV1beta1AutomaticScaling automaticScaling; | 3041 GoogleCloudMlV1beta1AutoScaling autoScaling; |
| 3042 /** Output only. The time the version was created. */ | 3042 /** Output only. The time the version was created. */ |
| 3043 core.String createTime; | 3043 core.String createTime; |
| 3044 /** | 3044 /** |
| 3045 * Required. The Google Cloud Storage location of the trained model used to | 3045 * Required. The Google Cloud Storage location of the trained model used to |
| 3046 * create the version. See the | 3046 * create the version. See the |
| 3047 * [overview of model | 3047 * [overview of model |
| 3048 * deployment](/ml-engine/docs/concepts/deployment-overview) for more | 3048 * deployment](/ml-engine/docs/concepts/deployment-overview) for more |
| 3049 * informaiton. | 3049 * information. |
| 3050 * | 3050 * |
| 3051 * When passing Version to | 3051 * When passing Version to |
| 3052 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project
s.models.versions/create) | 3052 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project
s.models.versions/create) |
| 3053 * the model service uses the specified location as the source of the model. | 3053 * the model service uses the specified location as the source of the model. |
| 3054 * Once deployed, the model version is hosted by the prediction service, so | 3054 * Once deployed, the model version is hosted by the prediction service, so |
| 3055 * this location is useful only as a historical record. | 3055 * this location is useful only as a historical record. |
| 3056 * The total number of model files can't exceed 1000. | 3056 * The total number of model files can't exceed 1000. |
| 3057 */ | 3057 */ |
| 3058 core.String deploymentUri; | 3058 core.String deploymentUri; |
| 3059 /** | 3059 /** |
| 3060 * Optional. The description specified for the version when it was created. | 3060 * Optional. The description specified for the version when it was created. |
| 3061 */ | 3061 */ |
| 3062 core.String description; | 3062 core.String description; |
| 3063 /** Output only. The details of a failure or a cancellation. */ | 3063 /** Output only. The details of a failure or a cancellation. */ |
| 3064 core.String errorMessage; | 3064 core.String errorMessage; |
| 3065 /** | 3065 /** |
| 3066 * Output only. If true, this version will be used to handle prediction | 3066 * Output only. If true, this version will be used to handle prediction |
| 3067 * requests that do not specify a version. | 3067 * requests that do not specify a version. |
| 3068 * | 3068 * |
| 3069 * You can change the default version by calling | 3069 * You can change the default version by calling |
| 3070 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr
ojects.models.versions/setDefault). | 3070 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr
ojects.models.versions/setDefault). |
| 3071 */ | 3071 */ |
| 3072 core.bool isDefault; | 3072 core.bool isDefault; |
| 3073 /** Output only. The time the version was last used for prediction. */ | 3073 /** Output only. The time the version was last used for prediction. */ |
| 3074 core.String lastUseTime; | 3074 core.String lastUseTime; |
| 3075 /** | 3075 /** |
| 3076 * Manually select the number of nodes to use for serving the | 3076 * Manually select the number of nodes to use for serving the |
| 3077 * model. You should generally use `automatic_scaling` with an appropriate | 3077 * model. You should generally use `auto_scaling` with an appropriate |
| 3078 * `min_nodes` instead, but this option is available if you want predictable | 3078 * `min_nodes` instead, but this option is available if you want more |
| 3079 * billing. Beware that latency and error rates will increase if the | 3079 * predictable billing. Beware that latency and error rates will increase |
| 3080 * traffic exceeds that capability of the system to serve it based on | 3080 * if the traffic exceeds that capability of the system to serve it based |
| 3081 * the selected number of nodes. | 3081 * on the selected number of nodes. |
| 3082 */ | 3082 */ |
| 3083 GoogleCloudMlV1beta1ManualScaling manualScaling; | 3083 GoogleCloudMlV1beta1ManualScaling manualScaling; |
| 3084 /** | 3084 /** |
| 3085 * Required.The name specified for the version when it was created. | 3085 * Required.The name specified for the version when it was created. |
| 3086 * | 3086 * |
| 3087 * The version name must be unique within the model it is created in. | 3087 * The version name must be unique within the model it is created in. |
| 3088 */ | 3088 */ |
| 3089 core.String name; | 3089 core.String name; |
| 3090 /** | 3090 /** |
| 3091 * Optional. The Google Cloud ML runtime version to use for this deployment. | 3091 * Optional. The Google Cloud ML runtime version to use for this deployment. |
| 3092 * If not set, Google Cloud ML will choose a version. | 3092 * If not set, Google Cloud ML will choose a version. |
| 3093 */ | 3093 */ |
| 3094 core.String runtimeVersion; | 3094 core.String runtimeVersion; |
| 3095 /** | 3095 /** |
| 3096 * Output only. The state of a version. | 3096 * Output only. The state of a version. |
| 3097 * Possible string values are: | 3097 * Possible string values are: |
| 3098 * - "UNKNOWN" : / The version state is unspecified. | 3098 * - "UNKNOWN" : The version state is unspecified. |
| 3099 * - "READY" : The version is ready for prediction. | 3099 * - "READY" : The version is ready for prediction. |
| 3100 * - "CREATING" : The version is still in the process of creation. | 3100 * - "CREATING" : The version is still in the process of creation. |
| 3101 * - "FAILED" : The version failed to be created, possibly cancelled. | 3101 * - "FAILED" : The version failed to be created, possibly cancelled. |
| 3102 * `error_message` should contain the details of the failure. | 3102 * `error_message` should contain the details of the failure. |
| 3103 */ | 3103 */ |
| 3104 core.String state; | 3104 core.String state; |
| 3105 | 3105 |
| 3106 GoogleCloudMlV1beta1Version(); | 3106 GoogleCloudMlV1beta1Version(); |
| 3107 | 3107 |
| 3108 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { | 3108 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { |
| 3109 if (_json.containsKey("automaticScaling")) { | 3109 if (_json.containsKey("autoScaling")) { |
| 3110 automaticScaling = new GoogleCloudMlV1beta1AutomaticScaling.fromJson(_json
["automaticScaling"]); | 3110 autoScaling = new GoogleCloudMlV1beta1AutoScaling.fromJson(_json["autoScal
ing"]); |
| 3111 } | 3111 } |
| 3112 if (_json.containsKey("createTime")) { | 3112 if (_json.containsKey("createTime")) { |
| 3113 createTime = _json["createTime"]; | 3113 createTime = _json["createTime"]; |
| 3114 } | 3114 } |
| 3115 if (_json.containsKey("deploymentUri")) { | 3115 if (_json.containsKey("deploymentUri")) { |
| 3116 deploymentUri = _json["deploymentUri"]; | 3116 deploymentUri = _json["deploymentUri"]; |
| 3117 } | 3117 } |
| 3118 if (_json.containsKey("description")) { | 3118 if (_json.containsKey("description")) { |
| 3119 description = _json["description"]; | 3119 description = _json["description"]; |
| 3120 } | 3120 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3136 if (_json.containsKey("runtimeVersion")) { | 3136 if (_json.containsKey("runtimeVersion")) { |
| 3137 runtimeVersion = _json["runtimeVersion"]; | 3137 runtimeVersion = _json["runtimeVersion"]; |
| 3138 } | 3138 } |
| 3139 if (_json.containsKey("state")) { | 3139 if (_json.containsKey("state")) { |
| 3140 state = _json["state"]; | 3140 state = _json["state"]; |
| 3141 } | 3141 } |
| 3142 } | 3142 } |
| 3143 | 3143 |
| 3144 core.Map<core.String, core.Object> toJson() { | 3144 core.Map<core.String, core.Object> toJson() { |
| 3145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3146 if (automaticScaling != null) { | 3146 if (autoScaling != null) { |
| 3147 _json["automaticScaling"] = (automaticScaling).toJson(); | 3147 _json["autoScaling"] = (autoScaling).toJson(); |
| 3148 } | 3148 } |
| 3149 if (createTime != null) { | 3149 if (createTime != null) { |
| 3150 _json["createTime"] = createTime; | 3150 _json["createTime"] = createTime; |
| 3151 } | 3151 } |
| 3152 if (deploymentUri != null) { | 3152 if (deploymentUri != null) { |
| 3153 _json["deploymentUri"] = deploymentUri; | 3153 _json["deploymentUri"] = deploymentUri; |
| 3154 } | 3154 } |
| 3155 if (description != null) { | 3155 if (description != null) { |
| 3156 _json["description"] = description; | 3156 _json["description"] = description; |
| 3157 } | 3157 } |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4158 * results in its response, the status of those operations should be | 4158 * results in its response, the status of those operations should be |
| 4159 * represented directly using the `Status` message. | 4159 * represented directly using the `Status` message. |
| 4160 * | 4160 * |
| 4161 * - Logging. If some API errors are stored in logs, the message `Status` could | 4161 * - Logging. If some API errors are stored in logs, the message `Status` could |
| 4162 * be used directly after any stripping needed for security/privacy reasons. | 4162 * be used directly after any stripping needed for security/privacy reasons. |
| 4163 */ | 4163 */ |
| 4164 class GoogleRpcStatus { | 4164 class GoogleRpcStatus { |
| 4165 /** The status code, which should be an enum value of google.rpc.Code. */ | 4165 /** The status code, which should be an enum value of google.rpc.Code. */ |
| 4166 core.int code; | 4166 core.int code; |
| 4167 /** | 4167 /** |
| 4168 * A list of messages that carry the error details. There will be a | 4168 * A list of messages that carry the error details. There is a common set of |
| 4169 * common set of message types for APIs to use. | 4169 * message types for APIs to use. |
| 4170 * | 4170 * |
| 4171 * The values for Object must be JSON objects. It can consist of `num`, | 4171 * The values for Object must be JSON objects. It can consist of `num`, |
| 4172 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4172 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4173 */ | 4173 */ |
| 4174 core.List<core.Map<core.String, core.Object>> details; | 4174 core.List<core.Map<core.String, core.Object>> details; |
| 4175 /** | 4175 /** |
| 4176 * A developer-facing error message, which should be in English. Any | 4176 * A developer-facing error message, which should be in English. Any |
| 4177 * user-facing error message should be localized and sent in the | 4177 * user-facing error message should be localized and sent in the |
| 4178 * google.rpc.Status.details field, or localized by the client. | 4178 * google.rpc.Status.details field, or localized by the client. |
| 4179 */ | 4179 */ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 } | 4268 } |
| 4269 if (location != null) { | 4269 if (location != null) { |
| 4270 _json["location"] = location; | 4270 _json["location"] = location; |
| 4271 } | 4271 } |
| 4272 if (title != null) { | 4272 if (title != null) { |
| 4273 _json["title"] = title; | 4273 _json["title"] = title; |
| 4274 } | 4274 } |
| 4275 return _json; | 4275 return _json; |
| 4276 } | 4276 } |
| 4277 } | 4277 } |
| OLD | NEW |