Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Side by Side Diff: generated/googleapis/test/ml/v1_test.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.ml.v1.test; 1 library googleapis.ml.v1.test;
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:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(api.GoogleCloudMlV1 HyperparameterOutputHyperparameterMetric o) { 115 checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(api.GoogleCloudMlV1 HyperparameterOutputHyperparameterMetric o) {
116 buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric++; 116 buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric++;
117 if (buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric < 3) { 117 if (buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric < 3) {
118 unittest.expect(o.objectiveValue, unittest.equals(42.0)); 118 unittest.expect(o.objectiveValue, unittest.equals(42.0));
119 unittest.expect(o.trainingStep, unittest.equals('foo')); 119 unittest.expect(o.trainingStep, unittest.equals('foo'));
120 } 120 }
121 buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--; 121 buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--;
122 } 122 }
123 123
124 core.int buildCounterGoogleCloudMlV1AutomaticScaling = 0; 124 core.int buildCounterGoogleCloudMlV1AutoScaling = 0;
125 buildGoogleCloudMlV1AutomaticScaling() { 125 buildGoogleCloudMlV1AutoScaling() {
126 var o = new api.GoogleCloudMlV1AutomaticScaling(); 126 var o = new api.GoogleCloudMlV1AutoScaling();
127 buildCounterGoogleCloudMlV1AutomaticScaling++; 127 buildCounterGoogleCloudMlV1AutoScaling++;
128 if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { 128 if (buildCounterGoogleCloudMlV1AutoScaling < 3) {
129 o.minNodes = 42; 129 o.minNodes = 42;
130 } 130 }
131 buildCounterGoogleCloudMlV1AutomaticScaling--; 131 buildCounterGoogleCloudMlV1AutoScaling--;
132 return o; 132 return o;
133 } 133 }
134 134
135 checkGoogleCloudMlV1AutomaticScaling(api.GoogleCloudMlV1AutomaticScaling o) { 135 checkGoogleCloudMlV1AutoScaling(api.GoogleCloudMlV1AutoScaling o) {
136 buildCounterGoogleCloudMlV1AutomaticScaling++; 136 buildCounterGoogleCloudMlV1AutoScaling++;
137 if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { 137 if (buildCounterGoogleCloudMlV1AutoScaling < 3) {
138 unittest.expect(o.minNodes, unittest.equals(42)); 138 unittest.expect(o.minNodes, unittest.equals(42));
139 } 139 }
140 buildCounterGoogleCloudMlV1AutomaticScaling--; 140 buildCounterGoogleCloudMlV1AutoScaling--;
141 } 141 }
142 142
143 core.int buildCounterGoogleCloudMlV1CancelJobRequest = 0; 143 core.int buildCounterGoogleCloudMlV1CancelJobRequest = 0;
144 buildGoogleCloudMlV1CancelJobRequest() { 144 buildGoogleCloudMlV1CancelJobRequest() {
145 var o = new api.GoogleCloudMlV1CancelJobRequest(); 145 var o = new api.GoogleCloudMlV1CancelJobRequest();
146 buildCounterGoogleCloudMlV1CancelJobRequest++; 146 buildCounterGoogleCloudMlV1CancelJobRequest++;
147 if (buildCounterGoogleCloudMlV1CancelJobRequest < 3) { 147 if (buildCounterGoogleCloudMlV1CancelJobRequest < 3) {
148 } 148 }
149 buildCounterGoogleCloudMlV1CancelJobRequest--; 149 buildCounterGoogleCloudMlV1CancelJobRequest--;
150 return o; 150 return o;
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 checkUnnamed14(o.trials); 769 checkUnnamed14(o.trials);
770 } 770 }
771 buildCounterGoogleCloudMlV1TrainingOutput--; 771 buildCounterGoogleCloudMlV1TrainingOutput--;
772 } 772 }
773 773
774 core.int buildCounterGoogleCloudMlV1Version = 0; 774 core.int buildCounterGoogleCloudMlV1Version = 0;
775 buildGoogleCloudMlV1Version() { 775 buildGoogleCloudMlV1Version() {
776 var o = new api.GoogleCloudMlV1Version(); 776 var o = new api.GoogleCloudMlV1Version();
777 buildCounterGoogleCloudMlV1Version++; 777 buildCounterGoogleCloudMlV1Version++;
778 if (buildCounterGoogleCloudMlV1Version < 3) { 778 if (buildCounterGoogleCloudMlV1Version < 3) {
779 o.automaticScaling = buildGoogleCloudMlV1AutomaticScaling(); 779 o.autoScaling = buildGoogleCloudMlV1AutoScaling();
780 o.createTime = "foo"; 780 o.createTime = "foo";
781 o.deploymentUri = "foo"; 781 o.deploymentUri = "foo";
782 o.description = "foo"; 782 o.description = "foo";
783 o.errorMessage = "foo"; 783 o.errorMessage = "foo";
784 o.isDefault = true; 784 o.isDefault = true;
785 o.lastUseTime = "foo"; 785 o.lastUseTime = "foo";
786 o.manualScaling = buildGoogleCloudMlV1ManualScaling(); 786 o.manualScaling = buildGoogleCloudMlV1ManualScaling();
787 o.name = "foo"; 787 o.name = "foo";
788 o.runtimeVersion = "foo"; 788 o.runtimeVersion = "foo";
789 o.state = "foo"; 789 o.state = "foo";
790 } 790 }
791 buildCounterGoogleCloudMlV1Version--; 791 buildCounterGoogleCloudMlV1Version--;
792 return o; 792 return o;
793 } 793 }
794 794
795 checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) { 795 checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) {
796 buildCounterGoogleCloudMlV1Version++; 796 buildCounterGoogleCloudMlV1Version++;
797 if (buildCounterGoogleCloudMlV1Version < 3) { 797 if (buildCounterGoogleCloudMlV1Version < 3) {
798 checkGoogleCloudMlV1AutomaticScaling(o.automaticScaling); 798 checkGoogleCloudMlV1AutoScaling(o.autoScaling);
799 unittest.expect(o.createTime, unittest.equals('foo')); 799 unittest.expect(o.createTime, unittest.equals('foo'));
800 unittest.expect(o.deploymentUri, unittest.equals('foo')); 800 unittest.expect(o.deploymentUri, unittest.equals('foo'));
801 unittest.expect(o.description, unittest.equals('foo')); 801 unittest.expect(o.description, unittest.equals('foo'));
802 unittest.expect(o.errorMessage, unittest.equals('foo')); 802 unittest.expect(o.errorMessage, unittest.equals('foo'));
803 unittest.expect(o.isDefault, unittest.isTrue); 803 unittest.expect(o.isDefault, unittest.isTrue);
804 unittest.expect(o.lastUseTime, unittest.equals('foo')); 804 unittest.expect(o.lastUseTime, unittest.equals('foo'));
805 checkGoogleCloudMlV1ManualScaling(o.manualScaling); 805 checkGoogleCloudMlV1ManualScaling(o.manualScaling);
806 unittest.expect(o.name, unittest.equals('foo')); 806 unittest.expect(o.name, unittest.equals('foo'));
807 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 807 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
808 unittest.expect(o.state, unittest.equals('foo')); 808 unittest.expect(o.state, unittest.equals('foo'));
809 } 809 }
810 buildCounterGoogleCloudMlV1Version--; 810 buildCounterGoogleCloudMlV1Version--;
811 } 811 }
812 812
813 core.int buildCounterGoogleCloudMlV1beta1AutomaticScaling = 0; 813 core.int buildCounterGoogleCloudMlV1beta1AutoScaling = 0;
814 buildGoogleCloudMlV1beta1AutomaticScaling() { 814 buildGoogleCloudMlV1beta1AutoScaling() {
815 var o = new api.GoogleCloudMlV1beta1AutomaticScaling(); 815 var o = new api.GoogleCloudMlV1beta1AutoScaling();
816 buildCounterGoogleCloudMlV1beta1AutomaticScaling++; 816 buildCounterGoogleCloudMlV1beta1AutoScaling++;
817 if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { 817 if (buildCounterGoogleCloudMlV1beta1AutoScaling < 3) {
818 o.minNodes = 42; 818 o.minNodes = 42;
819 } 819 }
820 buildCounterGoogleCloudMlV1beta1AutomaticScaling--; 820 buildCounterGoogleCloudMlV1beta1AutoScaling--;
821 return o; 821 return o;
822 } 822 }
823 823
824 checkGoogleCloudMlV1beta1AutomaticScaling(api.GoogleCloudMlV1beta1AutomaticScali ng o) { 824 checkGoogleCloudMlV1beta1AutoScaling(api.GoogleCloudMlV1beta1AutoScaling o) {
825 buildCounterGoogleCloudMlV1beta1AutomaticScaling++; 825 buildCounterGoogleCloudMlV1beta1AutoScaling++;
826 if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { 826 if (buildCounterGoogleCloudMlV1beta1AutoScaling < 3) {
827 unittest.expect(o.minNodes, unittest.equals(42)); 827 unittest.expect(o.minNodes, unittest.equals(42));
828 } 828 }
829 buildCounterGoogleCloudMlV1beta1AutomaticScaling--; 829 buildCounterGoogleCloudMlV1beta1AutoScaling--;
830 } 830 }
831 831
832 core.int buildCounterGoogleCloudMlV1beta1ManualScaling = 0; 832 core.int buildCounterGoogleCloudMlV1beta1ManualScaling = 0;
833 buildGoogleCloudMlV1beta1ManualScaling() { 833 buildGoogleCloudMlV1beta1ManualScaling() {
834 var o = new api.GoogleCloudMlV1beta1ManualScaling(); 834 var o = new api.GoogleCloudMlV1beta1ManualScaling();
835 buildCounterGoogleCloudMlV1beta1ManualScaling++; 835 buildCounterGoogleCloudMlV1beta1ManualScaling++;
836 if (buildCounterGoogleCloudMlV1beta1ManualScaling < 3) { 836 if (buildCounterGoogleCloudMlV1beta1ManualScaling < 3) {
837 o.nodes = 42; 837 o.nodes = 42;
838 } 838 }
839 buildCounterGoogleCloudMlV1beta1ManualScaling--; 839 buildCounterGoogleCloudMlV1beta1ManualScaling--;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 checkGoogleCloudMlV1beta1Version(o.version); 877 checkGoogleCloudMlV1beta1Version(o.version);
878 } 878 }
879 buildCounterGoogleCloudMlV1beta1OperationMetadata--; 879 buildCounterGoogleCloudMlV1beta1OperationMetadata--;
880 } 880 }
881 881
882 core.int buildCounterGoogleCloudMlV1beta1Version = 0; 882 core.int buildCounterGoogleCloudMlV1beta1Version = 0;
883 buildGoogleCloudMlV1beta1Version() { 883 buildGoogleCloudMlV1beta1Version() {
884 var o = new api.GoogleCloudMlV1beta1Version(); 884 var o = new api.GoogleCloudMlV1beta1Version();
885 buildCounterGoogleCloudMlV1beta1Version++; 885 buildCounterGoogleCloudMlV1beta1Version++;
886 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 886 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
887 o.automaticScaling = buildGoogleCloudMlV1beta1AutomaticScaling(); 887 o.autoScaling = buildGoogleCloudMlV1beta1AutoScaling();
888 o.createTime = "foo"; 888 o.createTime = "foo";
889 o.deploymentUri = "foo"; 889 o.deploymentUri = "foo";
890 o.description = "foo"; 890 o.description = "foo";
891 o.errorMessage = "foo"; 891 o.errorMessage = "foo";
892 o.isDefault = true; 892 o.isDefault = true;
893 o.lastUseTime = "foo"; 893 o.lastUseTime = "foo";
894 o.manualScaling = buildGoogleCloudMlV1beta1ManualScaling(); 894 o.manualScaling = buildGoogleCloudMlV1beta1ManualScaling();
895 o.name = "foo"; 895 o.name = "foo";
896 o.runtimeVersion = "foo"; 896 o.runtimeVersion = "foo";
897 o.state = "foo"; 897 o.state = "foo";
898 } 898 }
899 buildCounterGoogleCloudMlV1beta1Version--; 899 buildCounterGoogleCloudMlV1beta1Version--;
900 return o; 900 return o;
901 } 901 }
902 902
903 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { 903 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) {
904 buildCounterGoogleCloudMlV1beta1Version++; 904 buildCounterGoogleCloudMlV1beta1Version++;
905 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 905 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
906 checkGoogleCloudMlV1beta1AutomaticScaling(o.automaticScaling); 906 checkGoogleCloudMlV1beta1AutoScaling(o.autoScaling);
907 unittest.expect(o.createTime, unittest.equals('foo')); 907 unittest.expect(o.createTime, unittest.equals('foo'));
908 unittest.expect(o.deploymentUri, unittest.equals('foo')); 908 unittest.expect(o.deploymentUri, unittest.equals('foo'));
909 unittest.expect(o.description, unittest.equals('foo')); 909 unittest.expect(o.description, unittest.equals('foo'));
910 unittest.expect(o.errorMessage, unittest.equals('foo')); 910 unittest.expect(o.errorMessage, unittest.equals('foo'));
911 unittest.expect(o.isDefault, unittest.isTrue); 911 unittest.expect(o.isDefault, unittest.isTrue);
912 unittest.expect(o.lastUseTime, unittest.equals('foo')); 912 unittest.expect(o.lastUseTime, unittest.equals('foo'));
913 checkGoogleCloudMlV1beta1ManualScaling(o.manualScaling); 913 checkGoogleCloudMlV1beta1ManualScaling(o.manualScaling);
914 unittest.expect(o.name, unittest.equals('foo')); 914 unittest.expect(o.name, unittest.equals('foo'));
915 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 915 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
916 unittest.expect(o.state, unittest.equals('foo')); 916 unittest.expect(o.state, unittest.equals('foo'));
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 1599
1600 unittest.group("obj-schema-GoogleCloudMlV1HyperparameterOutputHyperparameterMe tric", () { 1600 unittest.group("obj-schema-GoogleCloudMlV1HyperparameterOutputHyperparameterMe tric", () {
1601 unittest.test("to-json--from-json", () { 1601 unittest.test("to-json--from-json", () {
1602 var o = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); 1602 var o = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
1603 var od = new api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.f romJson(o.toJson()); 1603 var od = new api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.f romJson(o.toJson());
1604 checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(od); 1604 checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(od);
1605 }); 1605 });
1606 }); 1606 });
1607 1607
1608 1608
1609 unittest.group("obj-schema-GoogleCloudMlV1AutomaticScaling", () { 1609 unittest.group("obj-schema-GoogleCloudMlV1AutoScaling", () {
1610 unittest.test("to-json--from-json", () { 1610 unittest.test("to-json--from-json", () {
1611 var o = buildGoogleCloudMlV1AutomaticScaling(); 1611 var o = buildGoogleCloudMlV1AutoScaling();
1612 var od = new api.GoogleCloudMlV1AutomaticScaling.fromJson(o.toJson()); 1612 var od = new api.GoogleCloudMlV1AutoScaling.fromJson(o.toJson());
1613 checkGoogleCloudMlV1AutomaticScaling(od); 1613 checkGoogleCloudMlV1AutoScaling(od);
1614 }); 1614 });
1615 }); 1615 });
1616 1616
1617 1617
1618 unittest.group("obj-schema-GoogleCloudMlV1CancelJobRequest", () { 1618 unittest.group("obj-schema-GoogleCloudMlV1CancelJobRequest", () {
1619 unittest.test("to-json--from-json", () { 1619 unittest.test("to-json--from-json", () {
1620 var o = buildGoogleCloudMlV1CancelJobRequest(); 1620 var o = buildGoogleCloudMlV1CancelJobRequest();
1621 var od = new api.GoogleCloudMlV1CancelJobRequest.fromJson(o.toJson()); 1621 var od = new api.GoogleCloudMlV1CancelJobRequest.fromJson(o.toJson());
1622 checkGoogleCloudMlV1CancelJobRequest(od); 1622 checkGoogleCloudMlV1CancelJobRequest(od);
1623 }); 1623 });
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 1779
1780 unittest.group("obj-schema-GoogleCloudMlV1Version", () { 1780 unittest.group("obj-schema-GoogleCloudMlV1Version", () {
1781 unittest.test("to-json--from-json", () { 1781 unittest.test("to-json--from-json", () {
1782 var o = buildGoogleCloudMlV1Version(); 1782 var o = buildGoogleCloudMlV1Version();
1783 var od = new api.GoogleCloudMlV1Version.fromJson(o.toJson()); 1783 var od = new api.GoogleCloudMlV1Version.fromJson(o.toJson());
1784 checkGoogleCloudMlV1Version(od); 1784 checkGoogleCloudMlV1Version(od);
1785 }); 1785 });
1786 }); 1786 });
1787 1787
1788 1788
1789 unittest.group("obj-schema-GoogleCloudMlV1beta1AutomaticScaling", () { 1789 unittest.group("obj-schema-GoogleCloudMlV1beta1AutoScaling", () {
1790 unittest.test("to-json--from-json", () { 1790 unittest.test("to-json--from-json", () {
1791 var o = buildGoogleCloudMlV1beta1AutomaticScaling(); 1791 var o = buildGoogleCloudMlV1beta1AutoScaling();
1792 var od = new api.GoogleCloudMlV1beta1AutomaticScaling.fromJson(o.toJson()) ; 1792 var od = new api.GoogleCloudMlV1beta1AutoScaling.fromJson(o.toJson());
1793 checkGoogleCloudMlV1beta1AutomaticScaling(od); 1793 checkGoogleCloudMlV1beta1AutoScaling(od);
1794 }); 1794 });
1795 }); 1795 });
1796 1796
1797 1797
1798 unittest.group("obj-schema-GoogleCloudMlV1beta1ManualScaling", () { 1798 unittest.group("obj-schema-GoogleCloudMlV1beta1ManualScaling", () {
1799 unittest.test("to-json--from-json", () { 1799 unittest.test("to-json--from-json", () {
1800 var o = buildGoogleCloudMlV1beta1ManualScaling(); 1800 var o = buildGoogleCloudMlV1beta1ManualScaling();
1801 var od = new api.GoogleCloudMlV1beta1ManualScaling.fromJson(o.toJson()); 1801 var od = new api.GoogleCloudMlV1beta1ManualScaling.fromJson(o.toJson());
1802 checkGoogleCloudMlV1beta1ManualScaling(od); 1802 checkGoogleCloudMlV1beta1ManualScaling(od);
1803 }); 1803 });
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR esponse response) { 3041 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR esponse response) {
3042 checkGoogleLongrunningListOperationsResponse(response); 3042 checkGoogleLongrunningListOperationsResponse(response);
3043 }))); 3043 })));
3044 }); 3044 });
3045 3045
3046 }); 3046 });
3047 3047
3048 3048
3049 } 3049 }
3050 3050
OLDNEW
« no previous file with comments | « generated/googleapis/test/mirror/v1_test.dart ('k') | generated/googleapis/test/oauth2/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698