| 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.resourceviews.v1beta1; | 3 library googleapis_beta.resourceviews.v1beta1; |
| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 836 |
| 837 Label.fromJson(core.Map _json) { | 837 Label.fromJson(core.Map _json) { |
| 838 if (_json.containsKey("key")) { | 838 if (_json.containsKey("key")) { |
| 839 key = _json["key"]; | 839 key = _json["key"]; |
| 840 } | 840 } |
| 841 if (_json.containsKey("value")) { | 841 if (_json.containsKey("value")) { |
| 842 value = _json["value"]; | 842 value = _json["value"]; |
| 843 } | 843 } |
| 844 } | 844 } |
| 845 | 845 |
| 846 core.Map toJson() { | 846 core.Map<core.String, core.Object> toJson() { |
| 847 var _json = new core.Map(); | 847 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 848 if (key != null) { | 848 if (key != null) { |
| 849 _json["key"] = key; | 849 _json["key"] = key; |
| 850 } | 850 } |
| 851 if (value != null) { | 851 if (value != null) { |
| 852 _json["value"] = value; | 852 _json["value"] = value; |
| 853 } | 853 } |
| 854 return _json; | 854 return _json; |
| 855 } | 855 } |
| 856 } | 856 } |
| 857 | 857 |
| 858 /** The request to add resources to the resource view. */ | 858 /** The request to add resources to the resource view. */ |
| 859 class RegionViewsAddResourcesRequest { | 859 class RegionViewsAddResourcesRequest { |
| 860 /** The list of resources to be added. */ | 860 /** The list of resources to be added. */ |
| 861 core.List<core.String> resources; | 861 core.List<core.String> resources; |
| 862 | 862 |
| 863 RegionViewsAddResourcesRequest(); | 863 RegionViewsAddResourcesRequest(); |
| 864 | 864 |
| 865 RegionViewsAddResourcesRequest.fromJson(core.Map _json) { | 865 RegionViewsAddResourcesRequest.fromJson(core.Map _json) { |
| 866 if (_json.containsKey("resources")) { | 866 if (_json.containsKey("resources")) { |
| 867 resources = _json["resources"]; | 867 resources = _json["resources"]; |
| 868 } | 868 } |
| 869 } | 869 } |
| 870 | 870 |
| 871 core.Map toJson() { | 871 core.Map<core.String, core.Object> toJson() { |
| 872 var _json = new core.Map(); | 872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 873 if (resources != null) { | 873 if (resources != null) { |
| 874 _json["resources"] = resources; | 874 _json["resources"] = resources; |
| 875 } | 875 } |
| 876 return _json; | 876 return _json; |
| 877 } | 877 } |
| 878 } | 878 } |
| 879 | 879 |
| 880 /** The response to a resource view insert request. */ | 880 /** The response to a resource view insert request. */ |
| 881 class RegionViewsInsertResponse { | 881 class RegionViewsInsertResponse { |
| 882 /** The resource view object inserted. */ | 882 /** The resource view object inserted. */ |
| 883 ResourceView resource; | 883 ResourceView resource; |
| 884 | 884 |
| 885 RegionViewsInsertResponse(); | 885 RegionViewsInsertResponse(); |
| 886 | 886 |
| 887 RegionViewsInsertResponse.fromJson(core.Map _json) { | 887 RegionViewsInsertResponse.fromJson(core.Map _json) { |
| 888 if (_json.containsKey("resource")) { | 888 if (_json.containsKey("resource")) { |
| 889 resource = new ResourceView.fromJson(_json["resource"]); | 889 resource = new ResourceView.fromJson(_json["resource"]); |
| 890 } | 890 } |
| 891 } | 891 } |
| 892 | 892 |
| 893 core.Map toJson() { | 893 core.Map<core.String, core.Object> toJson() { |
| 894 var _json = new core.Map(); | 894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 895 if (resource != null) { | 895 if (resource != null) { |
| 896 _json["resource"] = (resource).toJson(); | 896 _json["resource"] = (resource).toJson(); |
| 897 } | 897 } |
| 898 return _json; | 898 return _json; |
| 899 } | 899 } |
| 900 } | 900 } |
| 901 | 901 |
| 902 /** The response to the list resource request. */ | 902 /** The response to the list resource request. */ |
| 903 class RegionViewsListResourcesResponse { | 903 class RegionViewsListResourcesResponse { |
| 904 /** The resources in the view. */ | 904 /** The resources in the view. */ |
| 905 core.List<core.String> members; | 905 core.List<core.String> members; |
| 906 /** A token used for pagination. */ | 906 /** A token used for pagination. */ |
| 907 core.String nextPageToken; | 907 core.String nextPageToken; |
| 908 | 908 |
| 909 RegionViewsListResourcesResponse(); | 909 RegionViewsListResourcesResponse(); |
| 910 | 910 |
| 911 RegionViewsListResourcesResponse.fromJson(core.Map _json) { | 911 RegionViewsListResourcesResponse.fromJson(core.Map _json) { |
| 912 if (_json.containsKey("members")) { | 912 if (_json.containsKey("members")) { |
| 913 members = _json["members"]; | 913 members = _json["members"]; |
| 914 } | 914 } |
| 915 if (_json.containsKey("nextPageToken")) { | 915 if (_json.containsKey("nextPageToken")) { |
| 916 nextPageToken = _json["nextPageToken"]; | 916 nextPageToken = _json["nextPageToken"]; |
| 917 } | 917 } |
| 918 } | 918 } |
| 919 | 919 |
| 920 core.Map toJson() { | 920 core.Map<core.String, core.Object> toJson() { |
| 921 var _json = new core.Map(); | 921 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 922 if (members != null) { | 922 if (members != null) { |
| 923 _json["members"] = members; | 923 _json["members"] = members; |
| 924 } | 924 } |
| 925 if (nextPageToken != null) { | 925 if (nextPageToken != null) { |
| 926 _json["nextPageToken"] = nextPageToken; | 926 _json["nextPageToken"] = nextPageToken; |
| 927 } | 927 } |
| 928 return _json; | 928 return _json; |
| 929 } | 929 } |
| 930 } | 930 } |
| 931 | 931 |
| 932 /** The response to the list resource view request. */ | 932 /** The response to the list resource view request. */ |
| 933 class RegionViewsListResponse { | 933 class RegionViewsListResponse { |
| 934 /** A token used for pagination. */ | 934 /** A token used for pagination. */ |
| 935 core.String nextPageToken; | 935 core.String nextPageToken; |
| 936 /** The list of resource views that meet the criteria. */ | 936 /** The list of resource views that meet the criteria. */ |
| 937 core.List<ResourceView> resourceViews; | 937 core.List<ResourceView> resourceViews; |
| 938 | 938 |
| 939 RegionViewsListResponse(); | 939 RegionViewsListResponse(); |
| 940 | 940 |
| 941 RegionViewsListResponse.fromJson(core.Map _json) { | 941 RegionViewsListResponse.fromJson(core.Map _json) { |
| 942 if (_json.containsKey("nextPageToken")) { | 942 if (_json.containsKey("nextPageToken")) { |
| 943 nextPageToken = _json["nextPageToken"]; | 943 nextPageToken = _json["nextPageToken"]; |
| 944 } | 944 } |
| 945 if (_json.containsKey("resourceViews")) { | 945 if (_json.containsKey("resourceViews")) { |
| 946 resourceViews = _json["resourceViews"].map((value) => new ResourceView.fro
mJson(value)).toList(); | 946 resourceViews = _json["resourceViews"].map((value) => new ResourceView.fro
mJson(value)).toList(); |
| 947 } | 947 } |
| 948 } | 948 } |
| 949 | 949 |
| 950 core.Map toJson() { | 950 core.Map<core.String, core.Object> toJson() { |
| 951 var _json = new core.Map(); | 951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 952 if (nextPageToken != null) { | 952 if (nextPageToken != null) { |
| 953 _json["nextPageToken"] = nextPageToken; | 953 _json["nextPageToken"] = nextPageToken; |
| 954 } | 954 } |
| 955 if (resourceViews != null) { | 955 if (resourceViews != null) { |
| 956 _json["resourceViews"] = resourceViews.map((value) => (value).toJson()).to
List(); | 956 _json["resourceViews"] = resourceViews.map((value) => (value).toJson()).to
List(); |
| 957 } | 957 } |
| 958 return _json; | 958 return _json; |
| 959 } | 959 } |
| 960 } | 960 } |
| 961 | 961 |
| 962 /** The request to remove resources from the resource view. */ | 962 /** The request to remove resources from the resource view. */ |
| 963 class RegionViewsRemoveResourcesRequest { | 963 class RegionViewsRemoveResourcesRequest { |
| 964 /** The list of resources to be removed. */ | 964 /** The list of resources to be removed. */ |
| 965 core.List<core.String> resources; | 965 core.List<core.String> resources; |
| 966 | 966 |
| 967 RegionViewsRemoveResourcesRequest(); | 967 RegionViewsRemoveResourcesRequest(); |
| 968 | 968 |
| 969 RegionViewsRemoveResourcesRequest.fromJson(core.Map _json) { | 969 RegionViewsRemoveResourcesRequest.fromJson(core.Map _json) { |
| 970 if (_json.containsKey("resources")) { | 970 if (_json.containsKey("resources")) { |
| 971 resources = _json["resources"]; | 971 resources = _json["resources"]; |
| 972 } | 972 } |
| 973 } | 973 } |
| 974 | 974 |
| 975 core.Map toJson() { | 975 core.Map<core.String, core.Object> toJson() { |
| 976 var _json = new core.Map(); | 976 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 977 if (resources != null) { | 977 if (resources != null) { |
| 978 _json["resources"] = resources; | 978 _json["resources"] = resources; |
| 979 } | 979 } |
| 980 return _json; | 980 return _json; |
| 981 } | 981 } |
| 982 } | 982 } |
| 983 | 983 |
| 984 /** The resource view object. */ | 984 /** The resource view object. */ |
| 985 class ResourceView { | 985 class ResourceView { |
| 986 /** The creation time of the resource view. */ | 986 /** The creation time of the resource view. */ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 name = _json["name"]; | 1032 name = _json["name"]; |
| 1033 } | 1033 } |
| 1034 if (_json.containsKey("numMembers")) { | 1034 if (_json.containsKey("numMembers")) { |
| 1035 numMembers = _json["numMembers"]; | 1035 numMembers = _json["numMembers"]; |
| 1036 } | 1036 } |
| 1037 if (_json.containsKey("selfLink")) { | 1037 if (_json.containsKey("selfLink")) { |
| 1038 selfLink = _json["selfLink"]; | 1038 selfLink = _json["selfLink"]; |
| 1039 } | 1039 } |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 core.Map toJson() { | 1042 core.Map<core.String, core.Object> toJson() { |
| 1043 var _json = new core.Map(); | 1043 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1044 if (creationTime != null) { | 1044 if (creationTime != null) { |
| 1045 _json["creationTime"] = creationTime; | 1045 _json["creationTime"] = creationTime; |
| 1046 } | 1046 } |
| 1047 if (description != null) { | 1047 if (description != null) { |
| 1048 _json["description"] = description; | 1048 _json["description"] = description; |
| 1049 } | 1049 } |
| 1050 if (id != null) { | 1050 if (id != null) { |
| 1051 _json["id"] = id; | 1051 _json["id"] = id; |
| 1052 } | 1052 } |
| 1053 if (kind != null) { | 1053 if (kind != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1081 core.List<core.String> resources; | 1081 core.List<core.String> resources; |
| 1082 | 1082 |
| 1083 ZoneViewsAddResourcesRequest(); | 1083 ZoneViewsAddResourcesRequest(); |
| 1084 | 1084 |
| 1085 ZoneViewsAddResourcesRequest.fromJson(core.Map _json) { | 1085 ZoneViewsAddResourcesRequest.fromJson(core.Map _json) { |
| 1086 if (_json.containsKey("resources")) { | 1086 if (_json.containsKey("resources")) { |
| 1087 resources = _json["resources"]; | 1087 resources = _json["resources"]; |
| 1088 } | 1088 } |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 core.Map toJson() { | 1091 core.Map<core.String, core.Object> toJson() { |
| 1092 var _json = new core.Map(); | 1092 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1093 if (resources != null) { | 1093 if (resources != null) { |
| 1094 _json["resources"] = resources; | 1094 _json["resources"] = resources; |
| 1095 } | 1095 } |
| 1096 return _json; | 1096 return _json; |
| 1097 } | 1097 } |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 /** The response to an insert request. */ | 1100 /** The response to an insert request. */ |
| 1101 class ZoneViewsInsertResponse { | 1101 class ZoneViewsInsertResponse { |
| 1102 /** The resource view object that has been inserted. */ | 1102 /** The resource view object that has been inserted. */ |
| 1103 ResourceView resource; | 1103 ResourceView resource; |
| 1104 | 1104 |
| 1105 ZoneViewsInsertResponse(); | 1105 ZoneViewsInsertResponse(); |
| 1106 | 1106 |
| 1107 ZoneViewsInsertResponse.fromJson(core.Map _json) { | 1107 ZoneViewsInsertResponse.fromJson(core.Map _json) { |
| 1108 if (_json.containsKey("resource")) { | 1108 if (_json.containsKey("resource")) { |
| 1109 resource = new ResourceView.fromJson(_json["resource"]); | 1109 resource = new ResourceView.fromJson(_json["resource"]); |
| 1110 } | 1110 } |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 core.Map toJson() { | 1113 core.Map<core.String, core.Object> toJson() { |
| 1114 var _json = new core.Map(); | 1114 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1115 if (resource != null) { | 1115 if (resource != null) { |
| 1116 _json["resource"] = (resource).toJson(); | 1116 _json["resource"] = (resource).toJson(); |
| 1117 } | 1117 } |
| 1118 return _json; | 1118 return _json; |
| 1119 } | 1119 } |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 /** The response to a list resource request. */ | 1122 /** The response to a list resource request. */ |
| 1123 class ZoneViewsListResourcesResponse { | 1123 class ZoneViewsListResourcesResponse { |
| 1124 /** The full URL of resources in the view. */ | 1124 /** The full URL of resources in the view. */ |
| 1125 core.List<core.String> members; | 1125 core.List<core.String> members; |
| 1126 /** A token used for pagination. */ | 1126 /** A token used for pagination. */ |
| 1127 core.String nextPageToken; | 1127 core.String nextPageToken; |
| 1128 | 1128 |
| 1129 ZoneViewsListResourcesResponse(); | 1129 ZoneViewsListResourcesResponse(); |
| 1130 | 1130 |
| 1131 ZoneViewsListResourcesResponse.fromJson(core.Map _json) { | 1131 ZoneViewsListResourcesResponse.fromJson(core.Map _json) { |
| 1132 if (_json.containsKey("members")) { | 1132 if (_json.containsKey("members")) { |
| 1133 members = _json["members"]; | 1133 members = _json["members"]; |
| 1134 } | 1134 } |
| 1135 if (_json.containsKey("nextPageToken")) { | 1135 if (_json.containsKey("nextPageToken")) { |
| 1136 nextPageToken = _json["nextPageToken"]; | 1136 nextPageToken = _json["nextPageToken"]; |
| 1137 } | 1137 } |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 core.Map toJson() { | 1140 core.Map<core.String, core.Object> toJson() { |
| 1141 var _json = new core.Map(); | 1141 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1142 if (members != null) { | 1142 if (members != null) { |
| 1143 _json["members"] = members; | 1143 _json["members"] = members; |
| 1144 } | 1144 } |
| 1145 if (nextPageToken != null) { | 1145 if (nextPageToken != null) { |
| 1146 _json["nextPageToken"] = nextPageToken; | 1146 _json["nextPageToken"] = nextPageToken; |
| 1147 } | 1147 } |
| 1148 return _json; | 1148 return _json; |
| 1149 } | 1149 } |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 /** The response to a list request. */ | 1152 /** The response to a list request. */ |
| 1153 class ZoneViewsListResponse { | 1153 class ZoneViewsListResponse { |
| 1154 /** A token used for pagination. */ | 1154 /** A token used for pagination. */ |
| 1155 core.String nextPageToken; | 1155 core.String nextPageToken; |
| 1156 /** The result that contains all resource views that meet the criteria. */ | 1156 /** The result that contains all resource views that meet the criteria. */ |
| 1157 core.List<ResourceView> resourceViews; | 1157 core.List<ResourceView> resourceViews; |
| 1158 | 1158 |
| 1159 ZoneViewsListResponse(); | 1159 ZoneViewsListResponse(); |
| 1160 | 1160 |
| 1161 ZoneViewsListResponse.fromJson(core.Map _json) { | 1161 ZoneViewsListResponse.fromJson(core.Map _json) { |
| 1162 if (_json.containsKey("nextPageToken")) { | 1162 if (_json.containsKey("nextPageToken")) { |
| 1163 nextPageToken = _json["nextPageToken"]; | 1163 nextPageToken = _json["nextPageToken"]; |
| 1164 } | 1164 } |
| 1165 if (_json.containsKey("resourceViews")) { | 1165 if (_json.containsKey("resourceViews")) { |
| 1166 resourceViews = _json["resourceViews"].map((value) => new ResourceView.fro
mJson(value)).toList(); | 1166 resourceViews = _json["resourceViews"].map((value) => new ResourceView.fro
mJson(value)).toList(); |
| 1167 } | 1167 } |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 core.Map toJson() { | 1170 core.Map<core.String, core.Object> toJson() { |
| 1171 var _json = new core.Map(); | 1171 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1172 if (nextPageToken != null) { | 1172 if (nextPageToken != null) { |
| 1173 _json["nextPageToken"] = nextPageToken; | 1173 _json["nextPageToken"] = nextPageToken; |
| 1174 } | 1174 } |
| 1175 if (resourceViews != null) { | 1175 if (resourceViews != null) { |
| 1176 _json["resourceViews"] = resourceViews.map((value) => (value).toJson()).to
List(); | 1176 _json["resourceViews"] = resourceViews.map((value) => (value).toJson()).to
List(); |
| 1177 } | 1177 } |
| 1178 return _json; | 1178 return _json; |
| 1179 } | 1179 } |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 /** The request to remove resources from the resource view. */ | 1182 /** The request to remove resources from the resource view. */ |
| 1183 class ZoneViewsRemoveResourcesRequest { | 1183 class ZoneViewsRemoveResourcesRequest { |
| 1184 /** The list of resources to be removed. */ | 1184 /** The list of resources to be removed. */ |
| 1185 core.List<core.String> resources; | 1185 core.List<core.String> resources; |
| 1186 | 1186 |
| 1187 ZoneViewsRemoveResourcesRequest(); | 1187 ZoneViewsRemoveResourcesRequest(); |
| 1188 | 1188 |
| 1189 ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) { | 1189 ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) { |
| 1190 if (_json.containsKey("resources")) { | 1190 if (_json.containsKey("resources")) { |
| 1191 resources = _json["resources"]; | 1191 resources = _json["resources"]; |
| 1192 } | 1192 } |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 core.Map toJson() { | 1195 core.Map<core.String, core.Object> toJson() { |
| 1196 var _json = new core.Map(); | 1196 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1197 if (resources != null) { | 1197 if (resources != null) { |
| 1198 _json["resources"] = resources; | 1198 _json["resources"] = resources; |
| 1199 } | 1199 } |
| 1200 return _json; | 1200 return _json; |
| 1201 } | 1201 } |
| 1202 } | 1202 } |
| OLD | NEW |