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.serviceuser.v1; | 3 library googleapis.serviceuser.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_1; | 10 import 'package:http/http.dart' as http_1; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client serviceuser/v1'; | 15 const core.String USER_AGENT = 'dart-api-client serviceuser/v1'; |
16 | 16 |
17 /** | 17 /** |
18 * The Service User API allows service consumers to enable services they want to | 18 * Enables services that service consumers want to use on Google Cloud Platform, |
19 * use on Google Cloud Platform or disable services they no longer use. | 19 * lists the available or enabled services, or disables services that service |
20 * Consumers can also list the set of services they have already enabled. | 20 * consumers no longer use. |
21 */ | 21 */ |
22 class ServiceuserApi { | 22 class ServiceuserApi { |
23 /** View and manage your data across Google Cloud Platform services */ | 23 /** View and manage your data across Google Cloud Platform services */ |
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
25 | 25 |
26 /** View your data across Google Cloud Platform services */ | 26 /** View your data across Google Cloud Platform services */ |
27 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 27 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; |
28 | 28 |
29 /** Manage your Google API service configuration */ | 29 /** Manage your Google API service configuration */ |
30 static const ServiceManagementScope = "https://www.googleapis.com/auth/service
.management"; | 30 static const ServiceManagementScope = "https://www.googleapis.com/auth/service
.management"; |
31 | 31 |
32 | 32 |
33 final commons.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
34 | 34 |
35 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 35 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 36 ServicesResourceApi get services => new ServicesResourceApi(_requester); |
36 | 37 |
37 ServiceuserApi(http_1.Client client, {core.String rootUrl: "https://serviceuse
r.googleapis.com/", core.String servicePath: ""}) : | 38 ServiceuserApi(http_1.Client client, {core.String rootUrl: "https://serviceuse
r.googleapis.com/", core.String servicePath: ""}) : |
38 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
39 } | 40 } |
40 | 41 |
41 | 42 |
42 class ProjectsResourceApi { | 43 class ProjectsResourceApi { |
43 final commons.ApiRequester _requester; | 44 final commons.ApiRequester _requester; |
44 | 45 |
45 ProjectsServicesResourceApi get services => new ProjectsServicesResourceApi(_r
equester); | 46 ProjectsServicesResourceApi get services => new ProjectsServicesResourceApi(_r
equester); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 * List enabled services for the specified consumer. | 166 * List enabled services for the specified consumer. |
166 * | 167 * |
167 * Request parameters: | 168 * Request parameters: |
168 * | 169 * |
169 * [parent] - List enabled services for the specified parent. | 170 * [parent] - List enabled services for the specified parent. |
170 * | 171 * |
171 * An example valid parent would be: | 172 * An example valid parent would be: |
172 * - projects/my-project | 173 * - projects/my-project |
173 * Value must have pattern "^projects/[^/]+$". | 174 * Value must have pattern "^projects/[^/]+$". |
174 * | 175 * |
175 * [pageSize] - Requested size of the next page of data. | |
176 * | |
177 * [pageToken] - Token identifying which result to start with; returned by a | 176 * [pageToken] - Token identifying which result to start with; returned by a |
178 * previous list | 177 * previous list |
179 * call. | 178 * call. |
180 * | 179 * |
| 180 * [pageSize] - Requested size of the next page of data. |
| 181 * |
181 * Completes with a [ListEnabledServicesResponse]. | 182 * Completes with a [ListEnabledServicesResponse]. |
182 * | 183 * |
183 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 184 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
184 * error. | 185 * error. |
185 * | 186 * |
186 * If the used [http_1.Client] completes with an error when making a REST | 187 * If the used [http_1.Client] completes with an error when making a REST |
187 * call, this method will complete with the same error. | 188 * call, this method will complete with the same error. |
188 */ | 189 */ |
189 async.Future<ListEnabledServicesResponse> list(core.String parent, {core.int p
ageSize, core.String pageToken}) { | 190 async.Future<ListEnabledServicesResponse> list(core.String parent, {core.Strin
g pageToken, core.int pageSize}) { |
190 var _url = null; | 191 var _url = null; |
191 var _queryParams = new core.Map(); | 192 var _queryParams = new core.Map(); |
192 var _uploadMedia = null; | 193 var _uploadMedia = null; |
193 var _uploadOptions = null; | 194 var _uploadOptions = null; |
194 var _downloadOptions = commons.DownloadOptions.Metadata; | 195 var _downloadOptions = commons.DownloadOptions.Metadata; |
195 var _body = null; | 196 var _body = null; |
196 | 197 |
197 if (parent == null) { | 198 if (parent == null) { |
198 throw new core.ArgumentError("Parameter parent is required."); | 199 throw new core.ArgumentError("Parameter parent is required."); |
199 } | 200 } |
| 201 if (pageToken != null) { |
| 202 _queryParams["pageToken"] = [pageToken]; |
| 203 } |
200 if (pageSize != null) { | 204 if (pageSize != null) { |
201 _queryParams["pageSize"] = ["${pageSize}"]; | 205 _queryParams["pageSize"] = ["${pageSize}"]; |
202 } | 206 } |
203 if (pageToken != null) { | |
204 _queryParams["pageToken"] = [pageToken]; | |
205 } | |
206 | 207 |
207 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/services
'; | 208 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/services
'; |
208 | 209 |
209 var _response = _requester.request(_url, | 210 var _response = _requester.request(_url, |
210 "GET", | 211 "GET", |
| 212 body: _body, |
| 213 queryParams: _queryParams, |
| 214 uploadOptions: _uploadOptions, |
| 215 uploadMedia: _uploadMedia, |
| 216 downloadOptions: _downloadOptions); |
| 217 return _response.then((data) => new ListEnabledServicesResponse.fromJson(dat
a)); |
| 218 } |
| 219 |
| 220 } |
| 221 |
| 222 |
| 223 class ServicesResourceApi { |
| 224 final commons.ApiRequester _requester; |
| 225 |
| 226 ServicesResourceApi(commons.ApiRequester client) : |
| 227 _requester = client; |
| 228 |
| 229 /** |
| 230 * Search available services. |
| 231 * |
| 232 * When no filter is specified, returns all accessible services. For |
| 233 * authenticated users, also returns all services the calling user has |
| 234 * "servicemanagement.services.bind" permission for. |
| 235 * |
| 236 * Request parameters: |
| 237 * |
| 238 * [pageToken] - Token identifying which result to start with; returned by a |
| 239 * previous list |
| 240 * call. |
| 241 * |
| 242 * [pageSize] - Requested size of the next page of data. |
| 243 * |
| 244 * Completes with a [SearchServicesResponse]. |
| 245 * |
| 246 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 247 * error. |
| 248 * |
| 249 * If the used [http_1.Client] completes with an error when making a REST |
| 250 * call, this method will complete with the same error. |
| 251 */ |
| 252 async.Future<SearchServicesResponse> search({core.String pageToken, core.int p
ageSize}) { |
| 253 var _url = null; |
| 254 var _queryParams = new core.Map(); |
| 255 var _uploadMedia = null; |
| 256 var _uploadOptions = null; |
| 257 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 258 var _body = null; |
| 259 |
| 260 if (pageToken != null) { |
| 261 _queryParams["pageToken"] = [pageToken]; |
| 262 } |
| 263 if (pageSize != null) { |
| 264 _queryParams["pageSize"] = ["${pageSize}"]; |
| 265 } |
| 266 |
| 267 _url = 'v1/services:search'; |
| 268 |
| 269 var _response = _requester.request(_url, |
| 270 "GET", |
211 body: _body, | 271 body: _body, |
212 queryParams: _queryParams, | 272 queryParams: _queryParams, |
213 uploadOptions: _uploadOptions, | 273 uploadOptions: _uploadOptions, |
214 uploadMedia: _uploadMedia, | 274 uploadMedia: _uploadMedia, |
215 downloadOptions: _downloadOptions); | 275 downloadOptions: _downloadOptions); |
216 return _response.then((data) => new ListEnabledServicesResponse.fromJson(dat
a)); | 276 return _response.then((data) => new SearchServicesResponse.fromJson(data)); |
217 } | 277 } |
218 | 278 |
219 } | 279 } |
220 | 280 |
221 | 281 |
222 | 282 |
223 /** Api is a light-weight descriptor for a protocol buffer service. */ | 283 /** Api is a light-weight descriptor for a protocol buffer service. */ |
224 class Api { | 284 class Api { |
225 /** The methods of this api, in unspecified order. */ | 285 /** The methods of this api, in unspecified order. */ |
226 core.List<Method> methods; | 286 core.List<Method> methods; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 if (requirements != null) { | 638 if (requirements != null) { |
579 _json["requirements"] = requirements.map((value) => (value).toJson()).toLi
st(); | 639 _json["requirements"] = requirements.map((value) => (value).toJson()).toLi
st(); |
580 } | 640 } |
581 if (selector != null) { | 641 if (selector != null) { |
582 _json["selector"] = selector; | 642 _json["selector"] = selector; |
583 } | 643 } |
584 return _json; | 644 return _json; |
585 } | 645 } |
586 } | 646 } |
587 | 647 |
| 648 /** |
| 649 * Configuration of authorization. |
| 650 * |
| 651 * This section determines the authorization provider, if unspecified, then no |
| 652 * authorization check will be done. |
| 653 * |
| 654 * Example: |
| 655 * |
| 656 * experimental: |
| 657 * authorization: |
| 658 * provider: firebaserules.googleapis.com |
| 659 */ |
| 660 class AuthorizationConfig { |
| 661 /** |
| 662 * The name of the authorization provider, such as |
| 663 * firebaserules.googleapis.com. |
| 664 */ |
| 665 core.String provider; |
| 666 |
| 667 AuthorizationConfig(); |
| 668 |
| 669 AuthorizationConfig.fromJson(core.Map _json) { |
| 670 if (_json.containsKey("provider")) { |
| 671 provider = _json["provider"]; |
| 672 } |
| 673 } |
| 674 |
| 675 core.Map toJson() { |
| 676 var _json = new core.Map(); |
| 677 if (provider != null) { |
| 678 _json["provider"] = provider; |
| 679 } |
| 680 return _json; |
| 681 } |
| 682 } |
| 683 |
588 /** `Backend` defines the backend configuration for a service. */ | 684 /** `Backend` defines the backend configuration for a service. */ |
589 class Backend { | 685 class Backend { |
590 /** | 686 /** |
591 * A list of API backend rules that apply to individual API methods. | 687 * A list of API backend rules that apply to individual API methods. |
592 * | 688 * |
593 * **NOTE:** All service configuration rules follow "last one wins" order. | 689 * **NOTE:** All service configuration rules follow "last one wins" order. |
594 */ | 690 */ |
595 core.List<BackendRule> rules; | 691 core.List<BackendRule> rules; |
596 | 692 |
597 Backend(); | 693 Backend(); |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 EnableServiceRequest.fromJson(core.Map _json) { | 1188 EnableServiceRequest.fromJson(core.Map _json) { |
1093 } | 1189 } |
1094 | 1190 |
1095 core.Map toJson() { | 1191 core.Map toJson() { |
1096 var _json = new core.Map(); | 1192 var _json = new core.Map(); |
1097 return _json; | 1193 return _json; |
1098 } | 1194 } |
1099 } | 1195 } |
1100 | 1196 |
1101 /** | 1197 /** |
1102 * An EnabledService message contains the details about a service that has been | |
1103 * enabled for use. | |
1104 */ | |
1105 class EnabledService { | |
1106 /** | |
1107 * The Service definition for the enabled service | |
1108 * Only the name and title fields will be populated. | |
1109 */ | |
1110 Service service; | |
1111 | |
1112 EnabledService(); | |
1113 | |
1114 EnabledService.fromJson(core.Map _json) { | |
1115 if (_json.containsKey("service")) { | |
1116 service = new Service.fromJson(_json["service"]); | |
1117 } | |
1118 } | |
1119 | |
1120 core.Map toJson() { | |
1121 var _json = new core.Map(); | |
1122 if (service != null) { | |
1123 _json["service"] = (service).toJson(); | |
1124 } | |
1125 return _json; | |
1126 } | |
1127 } | |
1128 | |
1129 /** | |
1130 * `Endpoint` describes a network endpoint that serves a set of APIs. | 1198 * `Endpoint` describes a network endpoint that serves a set of APIs. |
1131 * A service may expose any number of endpoints, and all endpoints share the | 1199 * A service may expose any number of endpoints, and all endpoints share the |
1132 * same service configuration, such as quota configuration and monitoring | 1200 * same service configuration, such as quota configuration and monitoring |
1133 * configuration. | 1201 * configuration. |
1134 * | 1202 * |
1135 * Example service configuration: | 1203 * Example service configuration: |
1136 * | 1204 * |
1137 * name: library-example.googleapis.com | 1205 * name: library-example.googleapis.com |
1138 * endpoints: | 1206 * endpoints: |
1139 * # Below entry makes 'google.example.library.v1.Library' | 1207 * # Below entry makes 'google.example.library.v1.Library' |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 if (number != null) { | 1368 if (number != null) { |
1301 _json["number"] = number; | 1369 _json["number"] = number; |
1302 } | 1370 } |
1303 if (options != null) { | 1371 if (options != null) { |
1304 _json["options"] = options.map((value) => (value).toJson()).toList(); | 1372 _json["options"] = options.map((value) => (value).toJson()).toList(); |
1305 } | 1373 } |
1306 return _json; | 1374 return _json; |
1307 } | 1375 } |
1308 } | 1376 } |
1309 | 1377 |
| 1378 /** |
| 1379 * Experimental service configuration. These configuration options can |
| 1380 * only be used by whitelisted users. |
| 1381 */ |
| 1382 class Experimental { |
| 1383 /** Authorization configuration. */ |
| 1384 AuthorizationConfig authorization; |
| 1385 |
| 1386 Experimental(); |
| 1387 |
| 1388 Experimental.fromJson(core.Map _json) { |
| 1389 if (_json.containsKey("authorization")) { |
| 1390 authorization = new AuthorizationConfig.fromJson(_json["authorization"]); |
| 1391 } |
| 1392 } |
| 1393 |
| 1394 core.Map toJson() { |
| 1395 var _json = new core.Map(); |
| 1396 if (authorization != null) { |
| 1397 _json["authorization"] = (authorization).toJson(); |
| 1398 } |
| 1399 return _json; |
| 1400 } |
| 1401 } |
| 1402 |
1310 /** A single field of a message type. */ | 1403 /** A single field of a message type. */ |
1311 class Field { | 1404 class Field { |
1312 /** | 1405 /** |
1313 * The field cardinality. | 1406 * The field cardinality. |
1314 * Possible string values are: | 1407 * Possible string values are: |
1315 * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality. | 1408 * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality. |
1316 * - "CARDINALITY_OPTIONAL" : For optional fields. | 1409 * - "CARDINALITY_OPTIONAL" : For optional fields. |
1317 * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only. | 1410 * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only. |
1318 * - "CARDINALITY_REPEATED" : For repeated fields. | 1411 * - "CARDINALITY_REPEATED" : For repeated fields. |
1319 */ | 1412 */ |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 * present at the top-level of request message type. | 1790 * present at the top-level of request message type. |
1698 */ | 1791 */ |
1699 core.String body; | 1792 core.String body; |
1700 /** Custom pattern is used for defining custom verbs. */ | 1793 /** Custom pattern is used for defining custom verbs. */ |
1701 CustomHttpPattern custom; | 1794 CustomHttpPattern custom; |
1702 /** Used for deleting a resource. */ | 1795 /** Used for deleting a resource. */ |
1703 core.String delete; | 1796 core.String delete; |
1704 /** Used for listing and getting information about resources. */ | 1797 /** Used for listing and getting information about resources. */ |
1705 core.String get; | 1798 core.String get; |
1706 /** | 1799 /** |
1707 * Do not use this. For media support, add instead | 1800 * Use this only for Scotty Requests. Do not use this for bytestream methods. |
1708 * [][google.bytestream.RestByteStream] as an API to your | 1801 * For media support, add instead [][google.bytestream.RestByteStream] as an |
1709 * configuration. | 1802 * API to your configuration. |
1710 */ | 1803 */ |
1711 MediaDownload mediaDownload; | 1804 MediaDownload mediaDownload; |
1712 /** | 1805 /** |
1713 * Do not use this. For media support, add instead | 1806 * Use this only for Scotty Requests. Do not use this for media support using |
| 1807 * Bytestream, add instead |
1714 * [][google.bytestream.RestByteStream] as an API to your | 1808 * [][google.bytestream.RestByteStream] as an API to your |
1715 * configuration. | 1809 * configuration for Bytestream methods. |
1716 */ | 1810 */ |
1717 MediaUpload mediaUpload; | 1811 MediaUpload mediaUpload; |
1718 /** Used for updating a resource. */ | 1812 /** Used for updating a resource. */ |
1719 core.String patch; | 1813 core.String patch; |
1720 /** Used for creating a resource. */ | 1814 /** Used for creating a resource. */ |
1721 core.String post; | 1815 core.String post; |
1722 /** Used for updating a resource. */ | 1816 /** Used for updating a resource. */ |
1723 core.String put; | 1817 core.String put; |
1724 /** | 1818 /** |
1725 * The name of the response field whose value is mapped to the HTTP body of | 1819 * The name of the response field whose value is mapped to the HTTP body of |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1864 } | 1958 } |
1865 | 1959 |
1866 /** Response message for `ListEnabledServices` method. */ | 1960 /** Response message for `ListEnabledServices` method. */ |
1867 class ListEnabledServicesResponse { | 1961 class ListEnabledServicesResponse { |
1868 /** | 1962 /** |
1869 * Token that can be passed to `ListEnabledServices` to resume a paginated | 1963 * Token that can be passed to `ListEnabledServices` to resume a paginated |
1870 * query. | 1964 * query. |
1871 */ | 1965 */ |
1872 core.String nextPageToken; | 1966 core.String nextPageToken; |
1873 /** Services enabled for the specified parent. */ | 1967 /** Services enabled for the specified parent. */ |
1874 core.List<EnabledService> services; | 1968 core.List<PublishedService> services; |
1875 | 1969 |
1876 ListEnabledServicesResponse(); | 1970 ListEnabledServicesResponse(); |
1877 | 1971 |
1878 ListEnabledServicesResponse.fromJson(core.Map _json) { | 1972 ListEnabledServicesResponse.fromJson(core.Map _json) { |
1879 if (_json.containsKey("nextPageToken")) { | 1973 if (_json.containsKey("nextPageToken")) { |
1880 nextPageToken = _json["nextPageToken"]; | 1974 nextPageToken = _json["nextPageToken"]; |
1881 } | 1975 } |
1882 if (_json.containsKey("services")) { | 1976 if (_json.containsKey("services")) { |
1883 services = _json["services"].map((value) => new EnabledService.fromJson(va
lue)).toList(); | 1977 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); |
1884 } | 1978 } |
1885 } | 1979 } |
1886 | 1980 |
1887 core.Map toJson() { | 1981 core.Map toJson() { |
1888 var _json = new core.Map(); | 1982 var _json = new core.Map(); |
1889 if (nextPageToken != null) { | 1983 if (nextPageToken != null) { |
1890 _json["nextPageToken"] = nextPageToken; | 1984 _json["nextPageToken"] = nextPageToken; |
1891 } | 1985 } |
1892 if (services != null) { | 1986 if (services != null) { |
1893 _json["services"] = services.map((value) => (value).toJson()).toList(); | 1987 _json["services"] = services.map((value) => (value).toJson()).toList(); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2071 _json["logs"] = logs; | 2165 _json["logs"] = logs; |
2072 } | 2166 } |
2073 if (monitoredResource != null) { | 2167 if (monitoredResource != null) { |
2074 _json["monitoredResource"] = monitoredResource; | 2168 _json["monitoredResource"] = monitoredResource; |
2075 } | 2169 } |
2076 return _json; | 2170 return _json; |
2077 } | 2171 } |
2078 } | 2172 } |
2079 | 2173 |
2080 /** | 2174 /** |
2081 * Do not use this. For media support, add instead | 2175 * Use this only for Scotty Requests. Do not use this for media support using |
2082 * [][google.bytestream.RestByteStream] as an API to your | 2176 * Bytestream, add instead [][google.bytestream.RestByteStream] as an API to |
2083 * configuration. | 2177 * your configuration for Bytestream methods. |
2084 */ | 2178 */ |
2085 class MediaDownload { | 2179 class MediaDownload { |
| 2180 /** |
| 2181 * DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED. |
| 2182 * |
| 2183 * Specify name of the download service if one is used for download. |
| 2184 */ |
| 2185 core.String downloadService; |
2086 /** Whether download is enabled. */ | 2186 /** Whether download is enabled. */ |
2087 core.bool enabled; | 2187 core.bool enabled; |
2088 | 2188 |
2089 MediaDownload(); | 2189 MediaDownload(); |
2090 | 2190 |
2091 MediaDownload.fromJson(core.Map _json) { | 2191 MediaDownload.fromJson(core.Map _json) { |
| 2192 if (_json.containsKey("downloadService")) { |
| 2193 downloadService = _json["downloadService"]; |
| 2194 } |
2092 if (_json.containsKey("enabled")) { | 2195 if (_json.containsKey("enabled")) { |
2093 enabled = _json["enabled"]; | 2196 enabled = _json["enabled"]; |
2094 } | 2197 } |
2095 } | 2198 } |
2096 | 2199 |
2097 core.Map toJson() { | 2200 core.Map toJson() { |
2098 var _json = new core.Map(); | 2201 var _json = new core.Map(); |
| 2202 if (downloadService != null) { |
| 2203 _json["downloadService"] = downloadService; |
| 2204 } |
2099 if (enabled != null) { | 2205 if (enabled != null) { |
2100 _json["enabled"] = enabled; | 2206 _json["enabled"] = enabled; |
2101 } | 2207 } |
2102 return _json; | 2208 return _json; |
2103 } | 2209 } |
2104 } | 2210 } |
2105 | 2211 |
2106 /** | 2212 /** |
2107 * Do not use this. For media support, add instead | 2213 * Use this only for Scotty Requests. Do not use this for media support using |
2108 * [][google.bytestream.RestByteStream] as an API to your | 2214 * Bytestream, add instead [][google.bytestream.RestByteStream] as an API to |
2109 * configuration. | 2215 * your configuration for Bytestream methods. |
2110 */ | 2216 */ |
2111 class MediaUpload { | 2217 class MediaUpload { |
2112 /** Whether upload is enabled. */ | 2218 /** Whether upload is enabled. */ |
2113 core.bool enabled; | 2219 core.bool enabled; |
| 2220 /** |
| 2221 * DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED. |
| 2222 * |
| 2223 * Specify name of the upload service if one is used for upload. |
| 2224 */ |
| 2225 core.String uploadService; |
2114 | 2226 |
2115 MediaUpload(); | 2227 MediaUpload(); |
2116 | 2228 |
2117 MediaUpload.fromJson(core.Map _json) { | 2229 MediaUpload.fromJson(core.Map _json) { |
2118 if (_json.containsKey("enabled")) { | 2230 if (_json.containsKey("enabled")) { |
2119 enabled = _json["enabled"]; | 2231 enabled = _json["enabled"]; |
2120 } | 2232 } |
| 2233 if (_json.containsKey("uploadService")) { |
| 2234 uploadService = _json["uploadService"]; |
| 2235 } |
2121 } | 2236 } |
2122 | 2237 |
2123 core.Map toJson() { | 2238 core.Map toJson() { |
2124 var _json = new core.Map(); | 2239 var _json = new core.Map(); |
2125 if (enabled != null) { | 2240 if (enabled != null) { |
2126 _json["enabled"] = enabled; | 2241 _json["enabled"] = enabled; |
2127 } | 2242 } |
| 2243 if (uploadService != null) { |
| 2244 _json["uploadService"] = uploadService; |
| 2245 } |
2128 return _json; | 2246 return _json; |
2129 } | 2247 } |
2130 } | 2248 } |
2131 | 2249 |
2132 /** Method represents a method of an api. */ | 2250 /** Method represents a method of an api. */ |
2133 class Method { | 2251 class Method { |
2134 /** The simple name of this method. */ | 2252 /** The simple name of this method. */ |
2135 core.String name; | 2253 core.String name; |
2136 /** Any metadata attached to the method. */ | 2254 /** Any metadata attached to the method. */ |
2137 core.List<Option> options; | 2255 core.List<Option> options; |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 _json["name"] = name; | 3075 _json["name"] = name; |
2958 } | 3076 } |
2959 if (subpages != null) { | 3077 if (subpages != null) { |
2960 _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); | 3078 _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); |
2961 } | 3079 } |
2962 return _json; | 3080 return _json; |
2963 } | 3081 } |
2964 } | 3082 } |
2965 | 3083 |
2966 /** | 3084 /** |
| 3085 * The published version of a Service that is managed by |
| 3086 * Google Service Management. |
| 3087 */ |
| 3088 class PublishedService { |
| 3089 /** |
| 3090 * The resource name of the service. |
| 3091 * |
| 3092 * A valid name would be: |
| 3093 * - services/serviceuser.googleapis.com |
| 3094 */ |
| 3095 core.String name; |
| 3096 /** The service's published configuration. */ |
| 3097 Service service; |
| 3098 |
| 3099 PublishedService(); |
| 3100 |
| 3101 PublishedService.fromJson(core.Map _json) { |
| 3102 if (_json.containsKey("name")) { |
| 3103 name = _json["name"]; |
| 3104 } |
| 3105 if (_json.containsKey("service")) { |
| 3106 service = new Service.fromJson(_json["service"]); |
| 3107 } |
| 3108 } |
| 3109 |
| 3110 core.Map toJson() { |
| 3111 var _json = new core.Map(); |
| 3112 if (name != null) { |
| 3113 _json["name"] = name; |
| 3114 } |
| 3115 if (service != null) { |
| 3116 _json["service"] = (service).toJson(); |
| 3117 } |
| 3118 return _json; |
| 3119 } |
| 3120 } |
| 3121 |
| 3122 /** Response message for SearchServices method. */ |
| 3123 class SearchServicesResponse { |
| 3124 /** |
| 3125 * Token that can be passed to `ListAvailableServices` to resume a paginated |
| 3126 * query. |
| 3127 */ |
| 3128 core.String nextPageToken; |
| 3129 /** Services available publicly or available to the authenticated caller. */ |
| 3130 core.List<PublishedService> services; |
| 3131 |
| 3132 SearchServicesResponse(); |
| 3133 |
| 3134 SearchServicesResponse.fromJson(core.Map _json) { |
| 3135 if (_json.containsKey("nextPageToken")) { |
| 3136 nextPageToken = _json["nextPageToken"]; |
| 3137 } |
| 3138 if (_json.containsKey("services")) { |
| 3139 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); |
| 3140 } |
| 3141 } |
| 3142 |
| 3143 core.Map toJson() { |
| 3144 var _json = new core.Map(); |
| 3145 if (nextPageToken != null) { |
| 3146 _json["nextPageToken"] = nextPageToken; |
| 3147 } |
| 3148 if (services != null) { |
| 3149 _json["services"] = services.map((value) => (value).toJson()).toList(); |
| 3150 } |
| 3151 return _json; |
| 3152 } |
| 3153 } |
| 3154 |
| 3155 /** |
2967 * `Service` is the root object of Google service configuration schema. It | 3156 * `Service` is the root object of Google service configuration schema. It |
2968 * describes basic information about a service, such as the name and the | 3157 * describes basic information about a service, such as the name and the |
2969 * title, and delegates other aspects to sub-sections. Each sub-section is | 3158 * title, and delegates other aspects to sub-sections. Each sub-section is |
2970 * either a proto message or a repeated proto message that configures a | 3159 * either a proto message or a repeated proto message that configures a |
2971 * specific aspect, such as auth. See each proto message definition for details. | 3160 * specific aspect, such as auth. See each proto message definition for details. |
2972 * | 3161 * |
2973 * Example: | 3162 * Example: |
2974 * | 3163 * |
2975 * type: google.api.Service | 3164 * type: google.api.Service |
2976 * config_version: 3 | 3165 * config_version: 3 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3025 /** | 3214 /** |
3026 * A list of all enum types included in this API service. Enums | 3215 * A list of all enum types included in this API service. Enums |
3027 * referenced directly or indirectly by the `apis` are automatically | 3216 * referenced directly or indirectly by the `apis` are automatically |
3028 * included. Enums which are not referenced but shall be included | 3217 * included. Enums which are not referenced but shall be included |
3029 * should be listed here by name. Example: | 3218 * should be listed here by name. Example: |
3030 * | 3219 * |
3031 * enums: | 3220 * enums: |
3032 * - name: google.someapi.v1.SomeEnum | 3221 * - name: google.someapi.v1.SomeEnum |
3033 */ | 3222 */ |
3034 core.List<Enum> enums; | 3223 core.List<Enum> enums; |
| 3224 /** Experimental configuration. */ |
| 3225 Experimental experimental; |
3035 /** HTTP configuration. */ | 3226 /** HTTP configuration. */ |
3036 Http http; | 3227 Http http; |
3037 /** | 3228 /** |
3038 * A unique ID for a specific instance of this message, typically assigned | 3229 * A unique ID for a specific instance of this message, typically assigned |
3039 * by the client for tracking purpose. If empty, the server may choose to | 3230 * by the client for tracking purpose. If empty, the server may choose to |
3040 * generate one instead. | 3231 * generate one instead. |
3041 */ | 3232 */ |
3042 core.String id; | 3233 core.String id; |
3043 /** Logging configuration. */ | 3234 /** Logging configuration. */ |
3044 Logging logging; | 3235 Logging logging; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3118 } | 3309 } |
3119 if (_json.containsKey("documentation")) { | 3310 if (_json.containsKey("documentation")) { |
3120 documentation = new Documentation.fromJson(_json["documentation"]); | 3311 documentation = new Documentation.fromJson(_json["documentation"]); |
3121 } | 3312 } |
3122 if (_json.containsKey("endpoints")) { | 3313 if (_json.containsKey("endpoints")) { |
3123 endpoints = _json["endpoints"].map((value) => new Endpoint.fromJson(value)
).toList(); | 3314 endpoints = _json["endpoints"].map((value) => new Endpoint.fromJson(value)
).toList(); |
3124 } | 3315 } |
3125 if (_json.containsKey("enums")) { | 3316 if (_json.containsKey("enums")) { |
3126 enums = _json["enums"].map((value) => new Enum.fromJson(value)).toList(); | 3317 enums = _json["enums"].map((value) => new Enum.fromJson(value)).toList(); |
3127 } | 3318 } |
| 3319 if (_json.containsKey("experimental")) { |
| 3320 experimental = new Experimental.fromJson(_json["experimental"]); |
| 3321 } |
3128 if (_json.containsKey("http")) { | 3322 if (_json.containsKey("http")) { |
3129 http = new Http.fromJson(_json["http"]); | 3323 http = new Http.fromJson(_json["http"]); |
3130 } | 3324 } |
3131 if (_json.containsKey("id")) { | 3325 if (_json.containsKey("id")) { |
3132 id = _json["id"]; | 3326 id = _json["id"]; |
3133 } | 3327 } |
3134 if (_json.containsKey("logging")) { | 3328 if (_json.containsKey("logging")) { |
3135 logging = new Logging.fromJson(_json["logging"]); | 3329 logging = new Logging.fromJson(_json["logging"]); |
3136 } | 3330 } |
3137 if (_json.containsKey("logs")) { | 3331 if (_json.containsKey("logs")) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3197 } | 3391 } |
3198 if (documentation != null) { | 3392 if (documentation != null) { |
3199 _json["documentation"] = (documentation).toJson(); | 3393 _json["documentation"] = (documentation).toJson(); |
3200 } | 3394 } |
3201 if (endpoints != null) { | 3395 if (endpoints != null) { |
3202 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); | 3396 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); |
3203 } | 3397 } |
3204 if (enums != null) { | 3398 if (enums != null) { |
3205 _json["enums"] = enums.map((value) => (value).toJson()).toList(); | 3399 _json["enums"] = enums.map((value) => (value).toJson()).toList(); |
3206 } | 3400 } |
| 3401 if (experimental != null) { |
| 3402 _json["experimental"] = (experimental).toJson(); |
| 3403 } |
3207 if (http != null) { | 3404 if (http != null) { |
3208 _json["http"] = (http).toJson(); | 3405 _json["http"] = (http).toJson(); |
3209 } | 3406 } |
3210 if (id != null) { | 3407 if (id != null) { |
3211 _json["id"] = id; | 3408 _json["id"] = id; |
3212 } | 3409 } |
3213 if (logging != null) { | 3410 if (logging != null) { |
3214 _json["logging"] = (logging).toJson(); | 3411 _json["logging"] = (logging).toJson(); |
3215 } | 3412 } |
3216 if (logs != null) { | 3413 if (logs != null) { |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3814 var _json = new core.Map(); | 4011 var _json = new core.Map(); |
3815 if (restriction != null) { | 4012 if (restriction != null) { |
3816 _json["restriction"] = restriction; | 4013 _json["restriction"] = restriction; |
3817 } | 4014 } |
3818 if (selector != null) { | 4015 if (selector != null) { |
3819 _json["selector"] = selector; | 4016 _json["selector"] = selector; |
3820 } | 4017 } |
3821 return _json; | 4018 return _json; |
3822 } | 4019 } |
3823 } | 4020 } |
OLD | NEW |