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

Side by Side Diff: generated/googleapis/lib/serviceuser/v1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (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 // 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;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 uploadOptions: _uploadOptions, 274 uploadOptions: _uploadOptions,
275 uploadMedia: _uploadMedia, 275 uploadMedia: _uploadMedia,
276 downloadOptions: _downloadOptions); 276 downloadOptions: _downloadOptions);
277 return _response.then((data) => new SearchServicesResponse.fromJson(data)); 277 return _response.then((data) => new SearchServicesResponse.fromJson(data));
278 } 278 }
279 279
280 } 280 }
281 281
282 282
283 283
284 /** Api is a light-weight descriptor for a protocol buffer service. */ 284 /**
285 * Api is a light-weight descriptor for an API Interface.
286 *
287 * Interfaces are also described as "protocol buffer services" in some contexts,
288 * such as by the "service" keyword in a .proto file, but they are different
289 * from API Services, which represent a concrete implementation of an interface
290 * as opposed to simply a description of methods and bindings. They are also
291 * sometimes simply referred to as "APIs" in other contexts, such as the name of
292 * this message itself. See https://cloud.google.com/apis/design/glossary for
293 * detailed terminology.
294 */
285 class Api { 295 class Api {
286 /** The methods of this api, in unspecified order. */ 296 /** The methods of this interface, in unspecified order. */
287 core.List<Method> methods; 297 core.List<Method> methods;
288 /** Included APIs. See Mixin. */ 298 /** Included interfaces. See Mixin. */
289 core.List<Mixin> mixins; 299 core.List<Mixin> mixins;
290 /** 300 /**
291 * The fully qualified name of this api, including package name 301 * The fully qualified name of this interface, including package name
292 * followed by the api's simple name. 302 * followed by the interface's simple name.
293 */ 303 */
294 core.String name; 304 core.String name;
295 /** Any metadata attached to the API. */ 305 /** Any metadata attached to the interface. */
296 core.List<Option> options; 306 core.List<Option> options;
297 /** 307 /**
298 * Source context for the protocol buffer service represented by this 308 * Source context for the protocol buffer service represented by this
299 * message. 309 * message.
300 */ 310 */
301 SourceContext sourceContext; 311 SourceContext sourceContext;
302 /** 312 /**
303 * The source syntax of the service. 313 * The source syntax of the service.
304 * Possible string values are: 314 * Possible string values are:
305 * - "SYNTAX_PROTO2" : Syntax `proto2`. 315 * - "SYNTAX_PROTO2" : Syntax `proto2`.
306 * - "SYNTAX_PROTO3" : Syntax `proto3`. 316 * - "SYNTAX_PROTO3" : Syntax `proto3`.
307 */ 317 */
308 core.String syntax; 318 core.String syntax;
309 /** 319 /**
310 * A version string for this api. If specified, must have the form 320 * A version string for this interface. If specified, must have the form
311 * `major-version.minor-version`, as in `1.10`. If the minor version 321 * `major-version.minor-version`, as in `1.10`. If the minor version is
312 * is omitted, it defaults to zero. If the entire version field is 322 * omitted, it defaults to zero. If the entire version field is empty, the
313 * empty, the major version is derived from the package name, as 323 * major version is derived from the package name, as outlined below. If the
314 * outlined below. If the field is not empty, the version in the 324 * field is not empty, the version in the package name will be verified to be
315 * package name will be verified to be consistent with what is 325 * consistent with what is provided here.
316 * provided here.
317 * 326 *
318 * The versioning schema uses [semantic 327 * The versioning schema uses [semantic
319 * versioning](http://semver.org) where the major version number 328 * versioning](http://semver.org) where the major version number
320 * indicates a breaking change and the minor version an additive, 329 * indicates a breaking change and the minor version an additive,
321 * non-breaking change. Both version numbers are signals to users 330 * non-breaking change. Both version numbers are signals to users
322 * what to expect from different versions, and should be carefully 331 * what to expect from different versions, and should be carefully
323 * chosen based on the product plan. 332 * chosen based on the product plan.
324 * 333 *
325 * The major version is also reflected in the package name of the 334 * The major version is also reflected in the package name of the
326 * API, which must end in `v<major-version>`, as in 335 * interface, which must end in `v<major-version>`, as in
327 * `google.feature.v1`. For major versions 0 and 1, the suffix can 336 * `google.feature.v1`. For major versions 0 and 1, the suffix can
328 * be omitted. Zero major versions must only be used for 337 * be omitted. Zero major versions must only be used for
329 * experimental, none-GA apis. 338 * experimental, non-GA interfaces.
330 */ 339 */
331 core.String version; 340 core.String version;
332 341
333 Api(); 342 Api();
334 343
335 Api.fromJson(core.Map _json) { 344 Api.fromJson(core.Map _json) {
336 if (_json.containsKey("methods")) { 345 if (_json.containsKey("methods")) {
337 methods = _json["methods"].map((value) => new Method.fromJson(value)).toLi st(); 346 methods = _json["methods"].map((value) => new Method.fromJson(value)).toLi st();
338 } 347 }
339 if (_json.containsKey("mixins")) { 348 if (_json.containsKey("mixins")) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 * LibraryService API will only accept JWTs with the following audience 408 * LibraryService API will only accept JWTs with the following audience
400 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe rvice". 409 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe rvice".
401 * 410 *
402 * Example: 411 * Example:
403 * 412 *
404 * audiences: bookstore_android.apps.googleusercontent.com, 413 * audiences: bookstore_android.apps.googleusercontent.com,
405 * bookstore_web.apps.googleusercontent.com 414 * bookstore_web.apps.googleusercontent.com
406 */ 415 */
407 core.String audiences; 416 core.String audiences;
408 /** 417 /**
418 * Redirect URL if JWT token is required but no present or is expired.
419 * Implement authorizationUrl of securityDefinitions in OpenAPI spec.
420 */
421 core.String authorizationUrl;
422 /**
409 * The unique identifier of the auth provider. It will be referred to by 423 * The unique identifier of the auth provider. It will be referred to by
410 * `AuthRequirement.provider_id`. 424 * `AuthRequirement.provider_id`.
411 * 425 *
412 * Example: "bookstore_auth". 426 * Example: "bookstore_auth".
413 */ 427 */
414 core.String id; 428 core.String id;
415 /** 429 /**
416 * Identifies the principal that issued the JWT. See 430 * Identifies the principal that issued the JWT. See
417 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1. 1 431 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1. 1
418 * Usually a URL or an email address. 432 * Usually a URL or an email address.
(...skipping 17 matching lines...) Expand all
436 * Example: https://www.googleapis.com/oauth2/v1/certs 450 * Example: https://www.googleapis.com/oauth2/v1/certs
437 */ 451 */
438 core.String jwksUri; 452 core.String jwksUri;
439 453
440 AuthProvider(); 454 AuthProvider();
441 455
442 AuthProvider.fromJson(core.Map _json) { 456 AuthProvider.fromJson(core.Map _json) {
443 if (_json.containsKey("audiences")) { 457 if (_json.containsKey("audiences")) {
444 audiences = _json["audiences"]; 458 audiences = _json["audiences"];
445 } 459 }
460 if (_json.containsKey("authorizationUrl")) {
461 authorizationUrl = _json["authorizationUrl"];
462 }
446 if (_json.containsKey("id")) { 463 if (_json.containsKey("id")) {
447 id = _json["id"]; 464 id = _json["id"];
448 } 465 }
449 if (_json.containsKey("issuer")) { 466 if (_json.containsKey("issuer")) {
450 issuer = _json["issuer"]; 467 issuer = _json["issuer"];
451 } 468 }
452 if (_json.containsKey("jwksUri")) { 469 if (_json.containsKey("jwksUri")) {
453 jwksUri = _json["jwksUri"]; 470 jwksUri = _json["jwksUri"];
454 } 471 }
455 } 472 }
456 473
457 core.Map<core.String, core.Object> toJson() { 474 core.Map<core.String, core.Object> toJson() {
458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
459 if (audiences != null) { 476 if (audiences != null) {
460 _json["audiences"] = audiences; 477 _json["audiences"] = audiences;
461 } 478 }
479 if (authorizationUrl != null) {
480 _json["authorizationUrl"] = authorizationUrl;
481 }
462 if (id != null) { 482 if (id != null) {
463 _json["id"] = id; 483 _json["id"] = id;
464 } 484 }
465 if (issuer != null) { 485 if (issuer != null) {
466 _json["issuer"] = issuer; 486 _json["issuer"] = issuer;
467 } 487 }
468 if (jwksUri != null) { 488 if (jwksUri != null) {
469 _json["jwksUri"] = jwksUri; 489 _json["jwksUri"] = jwksUri;
470 } 490 }
471 return _json; 491 return _json;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 703
684 core.Map<core.String, core.Object> toJson() { 704 core.Map<core.String, core.Object> toJson() {
685 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 705 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
686 if (provider != null) { 706 if (provider != null) {
687 _json["provider"] = provider; 707 _json["provider"] = provider;
688 } 708 }
689 return _json; 709 return _json;
690 } 710 }
691 } 711 }
692 712
713 /**
714 * Authorization rule for API services.
715 *
716 * It specifies the permission(s) required for an API element for the overall
717 * API request to succeed. It is typically used to mark request message fields
718 * that contain the name of the resource and indicates the permissions that
719 * will be checked on that resource.
720 *
721 * For example:
722 *
723 * package google.storage.v1;
724 *
725 * message CopyObjectRequest {
726 * string source = 1 [
727 * (google.api.authz).permissions = "storage.objects.get"];
728 *
729 * string destination = 2 [
730 * (google.api.authz).permissions =
731 * "storage.objects.create,storage.objects.update"];
732 * }
733 */
734 class AuthorizationRule {
735 /**
736 * The required permissions. The acceptable values vary depend on the
737 * authorization system used. For Google APIs, it should be a comma-separated
738 * Google IAM permission values. When multiple permissions are listed, the
739 * semantics is not defined by the system. Additional documentation must
740 * be provided manually.
741 */
742 core.String permissions;
743 /**
744 * Selects the API elements to which this rule applies.
745 *
746 * Refer to selector for syntax details.
747 */
748 core.String selector;
749
750 AuthorizationRule();
751
752 AuthorizationRule.fromJson(core.Map _json) {
753 if (_json.containsKey("permissions")) {
754 permissions = _json["permissions"];
755 }
756 if (_json.containsKey("selector")) {
757 selector = _json["selector"];
758 }
759 }
760
761 core.Map<core.String, core.Object> toJson() {
762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
763 if (permissions != null) {
764 _json["permissions"] = permissions;
765 }
766 if (selector != null) {
767 _json["selector"] = selector;
768 }
769 return _json;
770 }
771 }
772
693 /** `Backend` defines the backend configuration for a service. */ 773 /** `Backend` defines the backend configuration for a service. */
694 class Backend { 774 class Backend {
695 /** 775 /**
696 * A list of API backend rules that apply to individual API methods. 776 * A list of API backend rules that apply to individual API methods.
697 * 777 *
698 * **NOTE:** All service configuration rules follow "last one wins" order. 778 * **NOTE:** All service configuration rules follow "last one wins" order.
699 */ 779 */
700 core.List<BackendRule> rules; 780 core.List<BackendRule> rules;
701 781
702 Backend(); 782 Backend();
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 * repeated fields or map fields. 1947 * repeated fields or map fields.
1868 */ 1948 */
1869 class HttpRule { 1949 class HttpRule {
1870 /** 1950 /**
1871 * Additional HTTP bindings for the selector. Nested bindings must 1951 * Additional HTTP bindings for the selector. Nested bindings must
1872 * not contain an `additional_bindings` field themselves (that is, 1952 * not contain an `additional_bindings` field themselves (that is,
1873 * the nesting may only be one level deep). 1953 * the nesting may only be one level deep).
1874 */ 1954 */
1875 core.List<HttpRule> additionalBindings; 1955 core.List<HttpRule> additionalBindings;
1876 /** 1956 /**
1957 * Specifies the permission(s) required for an API element for the overall
1958 * API request to succeed. It is typically used to mark request message fields
1959 * that contain the name of the resource and indicates the permissions that
1960 * will be checked on that resource.
1961 */
1962 core.List<AuthorizationRule> authorizations;
1963 /**
1877 * The name of the request field whose value is mapped to the HTTP body, or 1964 * The name of the request field whose value is mapped to the HTTP body, or
1878 * `*` for mapping all fields not captured by the path pattern to the HTTP 1965 * `*` for mapping all fields not captured by the path pattern to the HTTP
1879 * body. NOTE: the referred field must not be a repeated field and must be 1966 * body. NOTE: the referred field must not be a repeated field and must be
1880 * present at the top-level of request message type. 1967 * present at the top-level of request message type.
1881 */ 1968 */
1882 core.String body; 1969 core.String body;
1883 /** 1970 /**
1884 * The custom pattern is used for specifying an HTTP method that is not 1971 * The custom pattern is used for specifying an HTTP method that is not
1885 * included in the `pattern` field, such as HEAD, or "*" to leave the 1972 * included in the `pattern` field, such as HEAD, or "*" to leave the
1886 * HTTP method unspecified for this rule. The wild-card rule is useful 1973 * HTTP method unspecified for this rule. The wild-card rule is useful
(...skipping 25 matching lines...) Expand all
1912 core.String put; 1999 core.String put;
1913 /** 2000 /**
1914 * The name of the response field whose value is mapped to the HTTP body of 2001 * The name of the response field whose value is mapped to the HTTP body of
1915 * response. Other response fields are ignored. This field is optional. When 2002 * response. Other response fields are ignored. This field is optional. When
1916 * not set, the response message will be used as HTTP body of response. 2003 * not set, the response message will be used as HTTP body of response.
1917 * NOTE: the referred field must be not a repeated field and must be present 2004 * NOTE: the referred field must be not a repeated field and must be present
1918 * at the top-level of response message type. 2005 * at the top-level of response message type.
1919 */ 2006 */
1920 core.String responseBody; 2007 core.String responseBody;
1921 /** 2008 /**
2009 * DO NOT USE. This is an experimental field.
2010 *
1922 * Optional. The REST collection name is by default derived from the URL 2011 * Optional. The REST collection name is by default derived from the URL
1923 * pattern. If specified, this field overrides the default collection name. 2012 * pattern. If specified, this field overrides the default collection name.
1924 * Example: 2013 * Example:
1925 * 2014 *
1926 * rpc AddressesAggregatedList(AddressesAggregatedListRequest) 2015 * rpc AddressesAggregatedList(AddressesAggregatedListRequest)
1927 * returns (AddressesAggregatedListResponse) { 2016 * returns (AddressesAggregatedListResponse) {
1928 * option (google.api.http) = { 2017 * option (google.api.http) = {
1929 * get: "/v1/projects/{project_id}/aggregated/addresses" 2018 * get: "/v1/projects/{project_id}/aggregated/addresses"
1930 * rest_collection: "projects.addresses" 2019 * rest_collection: "projects.addresses"
1931 * }; 2020 * };
1932 * } 2021 * }
1933 * 2022 *
1934 * This method has the automatically derived collection name 2023 * This method has the automatically derived collection name
1935 * "projects.aggregated". Because, semantically, this rpc is actually an 2024 * "projects.aggregated". Because, semantically, this rpc is actually an
1936 * operation on the "projects.addresses" collection, the `rest_collection` 2025 * operation on the "projects.addresses" collection, the `rest_collection`
1937 * field is configured to override the derived collection name. 2026 * field is configured to override the derived collection name.
1938 */ 2027 */
1939 core.String restCollection; 2028 core.String restCollection;
1940 /** 2029 /**
2030 * DO NOT USE. This is an experimental field.
2031 *
1941 * Optional. The rest method name is by default derived from the URL 2032 * Optional. The rest method name is by default derived from the URL
1942 * pattern. If specified, this field overrides the default method name. 2033 * pattern. If specified, this field overrides the default method name.
1943 * Example: 2034 * Example:
1944 * 2035 *
1945 * rpc CreateResource(CreateResourceRequest) 2036 * rpc CreateResource(CreateResourceRequest)
1946 * returns (CreateResourceResponse) { 2037 * returns (CreateResourceResponse) {
1947 * option (google.api.http) = { 2038 * option (google.api.http) = {
1948 * post: "/v1/resources", 2039 * post: "/v1/resources",
1949 * body: "resource", 2040 * body: "resource",
1950 * rest_method_name: "insert" 2041 * rest_method_name: "insert"
1951 * }; 2042 * };
1952 * } 2043 * }
1953 * 2044 *
1954 * This method has the automatically derived rest method name "create", but 2045 * This method has the automatically derived rest method name
1955 * for backwards compatability with apiary, it is specified as insert. 2046 * "create", but for backwards compatibility with apiary, it is specified as
2047 * insert.
1956 */ 2048 */
1957 core.String restMethodName; 2049 core.String restMethodName;
1958 /** 2050 /**
1959 * Selects methods to which this rule applies. 2051 * Selects methods to which this rule applies.
1960 * 2052 *
1961 * Refer to selector for syntax details. 2053 * Refer to selector for syntax details.
1962 */ 2054 */
1963 core.String selector; 2055 core.String selector;
1964 2056
1965 HttpRule(); 2057 HttpRule();
1966 2058
1967 HttpRule.fromJson(core.Map _json) { 2059 HttpRule.fromJson(core.Map _json) {
1968 if (_json.containsKey("additionalBindings")) { 2060 if (_json.containsKey("additionalBindings")) {
1969 additionalBindings = _json["additionalBindings"].map((value) => new HttpRu le.fromJson(value)).toList(); 2061 additionalBindings = _json["additionalBindings"].map((value) => new HttpRu le.fromJson(value)).toList();
1970 } 2062 }
2063 if (_json.containsKey("authorizations")) {
2064 authorizations = _json["authorizations"].map((value) => new AuthorizationR ule.fromJson(value)).toList();
2065 }
1971 if (_json.containsKey("body")) { 2066 if (_json.containsKey("body")) {
1972 body = _json["body"]; 2067 body = _json["body"];
1973 } 2068 }
1974 if (_json.containsKey("custom")) { 2069 if (_json.containsKey("custom")) {
1975 custom = new CustomHttpPattern.fromJson(_json["custom"]); 2070 custom = new CustomHttpPattern.fromJson(_json["custom"]);
1976 } 2071 }
1977 if (_json.containsKey("delete")) { 2072 if (_json.containsKey("delete")) {
1978 delete = _json["delete"]; 2073 delete = _json["delete"];
1979 } 2074 }
1980 if (_json.containsKey("get")) { 2075 if (_json.containsKey("get")) {
(...skipping 26 matching lines...) Expand all
2007 if (_json.containsKey("selector")) { 2102 if (_json.containsKey("selector")) {
2008 selector = _json["selector"]; 2103 selector = _json["selector"];
2009 } 2104 }
2010 } 2105 }
2011 2106
2012 core.Map<core.String, core.Object> toJson() { 2107 core.Map<core.String, core.Object> toJson() {
2013 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2108 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2014 if (additionalBindings != null) { 2109 if (additionalBindings != null) {
2015 _json["additionalBindings"] = additionalBindings.map((value) => (value).to Json()).toList(); 2110 _json["additionalBindings"] = additionalBindings.map((value) => (value).to Json()).toList();
2016 } 2111 }
2112 if (authorizations != null) {
2113 _json["authorizations"] = authorizations.map((value) => (value).toJson()). toList();
2114 }
2017 if (body != null) { 2115 if (body != null) {
2018 _json["body"] = body; 2116 _json["body"] = body;
2019 } 2117 }
2020 if (custom != null) { 2118 if (custom != null) {
2021 _json["custom"] = (custom).toJson(); 2119 _json["custom"] = (custom).toJson();
2022 } 2120 }
2023 if (delete != null) { 2121 if (delete != null) {
2024 _json["delete"] = delete; 2122 _json["delete"] = delete;
2025 } 2123 }
2026 if (get != null) { 2124 if (get != null) {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 if (startNotification != null) { 2585 if (startNotification != null) {
2488 _json["startNotification"] = startNotification; 2586 _json["startNotification"] = startNotification;
2489 } 2587 }
2490 if (uploadService != null) { 2588 if (uploadService != null) {
2491 _json["uploadService"] = uploadService; 2589 _json["uploadService"] = uploadService;
2492 } 2590 }
2493 return _json; 2591 return _json;
2494 } 2592 }
2495 } 2593 }
2496 2594
2497 /** Method represents a method of an api. */ 2595 /** Method represents a method of an API interface. */
2498 class Method { 2596 class Method {
2499 /** The simple name of this method. */ 2597 /** The simple name of this method. */
2500 core.String name; 2598 core.String name;
2501 /** Any metadata attached to the method. */ 2599 /** Any metadata attached to the method. */
2502 core.List<Option> options; 2600 core.List<Option> options;
2503 /** If true, the request is streamed. */ 2601 /** If true, the request is streamed. */
2504 core.bool requestStreaming; 2602 core.bool requestStreaming;
2505 /** A URL of the input message type. */ 2603 /** A URL of the input message type. */
2506 core.String requestTypeUrl; 2604 core.String requestTypeUrl;
2507 /** If true, the response is streamed. */ 2605 /** If true, the response is streamed. */
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2808 _json["metricCosts"] = metricCosts; 2906 _json["metricCosts"] = metricCosts;
2809 } 2907 }
2810 if (selector != null) { 2908 if (selector != null) {
2811 _json["selector"] = selector; 2909 _json["selector"] = selector;
2812 } 2910 }
2813 return _json; 2911 return _json;
2814 } 2912 }
2815 } 2913 }
2816 2914
2817 /** 2915 /**
2818 * Declares an API to be included in this API. The including API must 2916 * Declares an API Interface to be included in this interface. The including
2819 * redeclare all the methods from the included API, but documentation 2917 * interface must redeclare all the methods from the included interface, but
2820 * and options are inherited as follows: 2918 * documentation and options are inherited as follows:
2821 * 2919 *
2822 * - If after comment and whitespace stripping, the documentation 2920 * - If after comment and whitespace stripping, the documentation
2823 * string of the redeclared method is empty, it will be inherited 2921 * string of the redeclared method is empty, it will be inherited
2824 * from the original method. 2922 * from the original method.
2825 * 2923 *
2826 * - Each annotation belonging to the service config (http, 2924 * - Each annotation belonging to the service config (http,
2827 * visibility) which is not set in the redeclared method will be 2925 * visibility) which is not set in the redeclared method will be
2828 * inherited. 2926 * inherited.
2829 * 2927 *
2830 * - If an http annotation is inherited, the path pattern will be 2928 * - If an http annotation is inherited, the path pattern will be
2831 * modified as follows. Any version prefix will be replaced by the 2929 * modified as follows. Any version prefix will be replaced by the
2832 * version of the including API plus the root path if specified. 2930 * version of the including interface plus the root path if
2931 * specified.
2833 * 2932 *
2834 * Example of a simple mixin: 2933 * Example of a simple mixin:
2835 * 2934 *
2836 * package google.acl.v1; 2935 * package google.acl.v1;
2837 * service AccessControl { 2936 * service AccessControl {
2838 * // Get the underlying ACL object. 2937 * // Get the underlying ACL object.
2839 * rpc GetAcl(GetAclRequest) returns (Acl) { 2938 * rpc GetAcl(GetAclRequest) returns (Acl) {
2840 * option (google.api.http).get = "/v1/{resource=**}:getAcl"; 2939 * option (google.api.http).get = "/v1/{resource=**}:getAcl";
2841 * } 2940 * }
2842 * } 2941 * }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 * 2986 *
2888 * service Storage { 2987 * service Storage {
2889 * // Get the underlying ACL object. 2988 * // Get the underlying ACL object.
2890 * rpc GetAcl(GetAclRequest) returns (Acl) { 2989 * rpc GetAcl(GetAclRequest) returns (Acl) {
2891 * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; 2990 * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
2892 * } 2991 * }
2893 * ... 2992 * ...
2894 * } 2993 * }
2895 */ 2994 */
2896 class Mixin { 2995 class Mixin {
2897 /** The fully qualified name of the API which is included. */ 2996 /** The fully qualified name of the interface which is included. */
2898 core.String name; 2997 core.String name;
2899 /** 2998 /**
2900 * If non-empty specifies a path under which inherited HTTP paths 2999 * If non-empty specifies a path under which inherited HTTP paths
2901 * are rooted. 3000 * are rooted.
2902 */ 3001 */
2903 core.String root; 3002 core.String root;
2904 3003
2905 Mixin(); 3004 Mixin();
2906 3005
2907 Mixin.fromJson(core.Map _json) { 3006 Mixin.fromJson(core.Map _json) {
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
3792 * author, as the remaining fields will be derived from the IDL during the 3891 * author, as the remaining fields will be derived from the IDL during the
3793 * normalization process. It is an error to specify an API interface here 3892 * normalization process. It is an error to specify an API interface here
3794 * which cannot be resolved against the associated IDL files. 3893 * which cannot be resolved against the associated IDL files.
3795 */ 3894 */
3796 core.List<Api> apis; 3895 core.List<Api> apis;
3797 /** Auth configuration. */ 3896 /** Auth configuration. */
3798 Authentication authentication; 3897 Authentication authentication;
3799 /** API backend configuration. */ 3898 /** API backend configuration. */
3800 Backend backend; 3899 Backend backend;
3801 /** 3900 /**
3802 * The version of the service configuration. The config version may 3901 * The semantic version of the service configuration. The config version
3803 * influence interpretation of the configuration, for example, to 3902 * affects the interpretation of the service configuration. For example,
3804 * determine defaults. This is documented together with applicable 3903 * certain features are enabled by default for certain config versions.
3805 * options. The current default for the config version itself is `3`. 3904 * The latest config version is `3`.
3806 */ 3905 */
3807 core.int configVersion; 3906 core.int configVersion;
3808 /** Context configuration. */ 3907 /** Context configuration. */
3809 Context context; 3908 Context context;
3810 /** Configuration for the service control plane. */ 3909 /** Configuration for the service control plane. */
3811 Control control; 3910 Control control;
3812 /** Custom error configuration. */ 3911 /** Custom error configuration. */
3813 CustomError customError; 3912 CustomError customError;
3814 /** Additional API documentation. */ 3913 /** Additional API documentation. */
3815 Documentation documentation; 3914 Documentation documentation;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
4712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4713 if (restriction != null) { 4812 if (restriction != null) {
4714 _json["restriction"] = restriction; 4813 _json["restriction"] = restriction;
4715 } 4814 }
4716 if (selector != null) { 4815 if (selector != null) {
4717 _json["selector"] = selector; 4816 _json["selector"] = selector;
4718 } 4817 }
4719 return _json; 4818 return _json;
4720 } 4819 }
4721 } 4820 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/servicemanagement/v1.dart ('k') | generated/googleapis/lib/sheets/v4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698