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

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

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 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.servicemanagement.v1; 3 library googleapis.servicemanagement.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 servicemanagement/v1'; 15 const core.String USER_AGENT = 'dart-api-client servicemanagement/v1';
16 16
17 /** The service management API for Google Cloud Platform */ 17 /**
18 * Google Service Management allows service producers to publish their services
19 * on Google Cloud Platform so that they can be discovered and used by service
20 * consumers.
21 */
18 class ServicemanagementApi { 22 class ServicemanagementApi {
19 /** View and manage your data across Google Cloud Platform services */ 23 /** View and manage your data across Google Cloud Platform services */
20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
21 25
22 /** View your data across Google Cloud Platform services */ 26 /** View your data across Google Cloud Platform services */
23 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";
24 28
25 /** Manage your Google API service configuration */ 29 /** Manage your Google API service configuration */
26 static const ServiceManagementScope = "https://www.googleapis.com/auth/service .management"; 30 static const ServiceManagementScope = "https://www.googleapis.com/auth/service .management";
27 31
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 final commons.ApiRequester _requester; 98 final commons.ApiRequester _requester;
95 99
96 ServicesConfigsResourceApi get configs => new ServicesConfigsResourceApi(_requ ester); 100 ServicesConfigsResourceApi get configs => new ServicesConfigsResourceApi(_requ ester);
97 ServicesRolloutsResourceApi get rollouts => new ServicesRolloutsResourceApi(_r equester); 101 ServicesRolloutsResourceApi get rollouts => new ServicesRolloutsResourceApi(_r equester);
98 102
99 ServicesResourceApi(commons.ApiRequester client) : 103 ServicesResourceApi(commons.ApiRequester client) :
100 _requester = client; 104 _requester = client;
101 105
102 /** 106 /**
103 * Creates a new managed service. 107 * Creates a new managed service.
108 * Please note one producer project can own no more than 20 services.
104 * 109 *
105 * Operation<response: ManagedService> 110 * Operation<response: ManagedService>
106 * 111 *
107 * [request] - The metadata request object. 112 * [request] - The metadata request object.
108 * 113 *
109 * Request parameters: 114 * Request parameters:
110 * 115 *
111 * Completes with a [Operation]. 116 * Completes with a [Operation].
112 * 117 *
113 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 29 matching lines...) Expand all
143 /** 148 /**
144 * Deletes a managed service. This method will change the serivce in the 149 * Deletes a managed service. This method will change the serivce in the
145 * `Soft-Delete` state for 30 days. Within this period, service producers may 150 * `Soft-Delete` state for 30 days. Within this period, service producers may
146 * call UndeleteService to restore the service. 151 * call UndeleteService to restore the service.
147 * After 30 days, the service will be permanently deleted. 152 * After 30 days, the service will be permanently deleted.
148 * 153 *
149 * Operation<response: google.protobuf.Empty> 154 * Operation<response: google.protobuf.Empty>
150 * 155 *
151 * Request parameters: 156 * Request parameters:
152 * 157 *
153 * [serviceName] - The name of the service. See the `ServiceManager` overview 158 * [serviceName] - The name of the service. See the
154 * for naming 159 * [overview](/service-management/overview)
155 * requirements. For example: `example.googleapis.com`. 160 * for naming requirements. For example: `example.googleapis.com`.
156 * 161 *
157 * Completes with a [Operation]. 162 * Completes with a [Operation].
158 * 163 *
159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 164 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
160 * error. 165 * error.
161 * 166 *
162 * If the used [http_1.Client] completes with an error when making a REST 167 * If the used [http_1.Client] completes with an error when making a REST
163 * call, this method will complete with the same error. 168 * call, this method will complete with the same error.
164 */ 169 */
165 async.Future<Operation> delete(core.String serviceName) { 170 async.Future<Operation> delete(core.String serviceName) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 uploadMedia: _uploadMedia, 237 uploadMedia: _uploadMedia,
233 downloadOptions: _downloadOptions); 238 downloadOptions: _downloadOptions);
234 return _response.then((data) => new Operation.fromJson(data)); 239 return _response.then((data) => new Operation.fromJson(data));
235 } 240 }
236 241
237 /** 242 /**
238 * Enable a managed service for a project with default setting. 243 * Enable a managed service for a project with default setting.
239 * 244 *
240 * Operation<response: EnableServiceResponse> 245 * Operation<response: EnableServiceResponse>
241 * 246 *
247 * google.rpc.Status errors may contain a
248 * google.rpc.PreconditionFailure error detail.
249 *
242 * [request] - The metadata request object. 250 * [request] - The metadata request object.
243 * 251 *
244 * Request parameters: 252 * Request parameters:
245 * 253 *
246 * [serviceName] - Name of the service to enable. Specifying an unknown 254 * [serviceName] - Name of the service to enable. Specifying an unknown
247 * service name will 255 * service name will
248 * cause the request to fail. 256 * cause the request to fail.
249 * 257 *
250 * Completes with a [Operation]. 258 * Completes with a [Operation].
251 * 259 *
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 uploadMedia: _uploadMedia, 378 uploadMedia: _uploadMedia,
371 downloadOptions: _downloadOptions); 379 downloadOptions: _downloadOptions);
372 return _response.then((data) => new ManagedService.fromJson(data)); 380 return _response.then((data) => new ManagedService.fromJson(data));
373 } 381 }
374 382
375 /** 383 /**
376 * Gets a service configuration (version) for a managed service. 384 * Gets a service configuration (version) for a managed service.
377 * 385 *
378 * Request parameters: 386 * Request parameters:
379 * 387 *
380 * [serviceName] - The name of the service. See the `ServiceManager` overview 388 * [serviceName] - The name of the service. See the
381 * for naming 389 * [overview](/service-management/overview)
382 * requirements. For example: `example.googleapis.com`. 390 * for naming requirements. For example: `example.googleapis.com`.
383 * 391 *
384 * [configId] - null 392 * [configId] - null
385 * 393 *
386 * Completes with a [Service]. 394 * Completes with a [Service].
387 * 395 *
388 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
389 * error. 397 * error.
390 * 398 *
391 * If the used [http_1.Client] completes with an error when making a REST 399 * If the used [http_1.Client] completes with an error when making a REST
392 * call, this method will complete with the same error. 400 * call, this method will complete with the same error.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 /** 627 /**
620 * Revives a previously deleted managed service. The method restores the 628 * Revives a previously deleted managed service. The method restores the
621 * service using the configuration at the time the service was deleted. 629 * service using the configuration at the time the service was deleted.
622 * The target service must exist and must have been deleted within the 630 * The target service must exist and must have been deleted within the
623 * last 30 days. 631 * last 30 days.
624 * 632 *
625 * Operation<response: UndeleteServiceResponse> 633 * Operation<response: UndeleteServiceResponse>
626 * 634 *
627 * Request parameters: 635 * Request parameters:
628 * 636 *
629 * [serviceName] - The name of the service. See the `ServiceManager` overview 637 * [serviceName] - The name of the service. See the
630 * for naming 638 * [overview](/service-management/overview)
631 * requirements. For example: `example.googleapis.com`. 639 * for naming requirements. For example: `example.googleapis.com`.
632 * 640 *
633 * Completes with a [Operation]. 641 * Completes with a [Operation].
634 * 642 *
635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 643 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
636 * error. 644 * error.
637 * 645 *
638 * If the used [http_1.Client] completes with an error when making a REST 646 * If the used [http_1.Client] completes with an error when making a REST
639 * call, this method will complete with the same error. 647 * call, this method will complete with the same error.
640 */ 648 */
641 async.Future<Operation> undelete(core.String serviceName) { 649 async.Future<Operation> undelete(core.String serviceName) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 /** 682 /**
675 * Creates a new service configuration (version) for a managed service. 683 * Creates a new service configuration (version) for a managed service.
676 * This method only stores the service configuration. To roll out the service 684 * This method only stores the service configuration. To roll out the service
677 * configuration to backend systems please call 685 * configuration to backend systems please call
678 * CreateServiceRollout. 686 * CreateServiceRollout.
679 * 687 *
680 * [request] - The metadata request object. 688 * [request] - The metadata request object.
681 * 689 *
682 * Request parameters: 690 * Request parameters:
683 * 691 *
684 * [serviceName] - The name of the service. See the `ServiceManager` overview 692 * [serviceName] - The name of the service. See the
685 * for naming 693 * [overview](/service-management/overview)
686 * requirements. For example: `example.googleapis.com`. 694 * for naming requirements. For example: `example.googleapis.com`.
687 * 695 *
688 * Completes with a [Service]. 696 * Completes with a [Service].
689 * 697 *
690 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
691 * error. 699 * error.
692 * 700 *
693 * If the used [http_1.Client] completes with an error when making a REST 701 * If the used [http_1.Client] completes with an error when making a REST
694 * call, this method will complete with the same error. 702 * call, this method will complete with the same error.
695 */ 703 */
696 async.Future<Service> create(Service request, core.String serviceName) { 704 async.Future<Service> create(Service request, core.String serviceName) {
(...skipping 21 matching lines...) Expand all
718 uploadMedia: _uploadMedia, 726 uploadMedia: _uploadMedia,
719 downloadOptions: _downloadOptions); 727 downloadOptions: _downloadOptions);
720 return _response.then((data) => new Service.fromJson(data)); 728 return _response.then((data) => new Service.fromJson(data));
721 } 729 }
722 730
723 /** 731 /**
724 * Gets a service configuration (version) for a managed service. 732 * Gets a service configuration (version) for a managed service.
725 * 733 *
726 * Request parameters: 734 * Request parameters:
727 * 735 *
728 * [serviceName] - The name of the service. See the `ServiceManager` overview 736 * [serviceName] - The name of the service. See the
729 * for naming 737 * [overview](/service-management/overview)
730 * requirements. For example: `example.googleapis.com`. 738 * for naming requirements. For example: `example.googleapis.com`.
731 * 739 *
732 * [configId] - null 740 * [configId] - null
733 * 741 *
734 * Completes with a [Service]. 742 * Completes with a [Service].
735 * 743 *
736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 744 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
737 * error. 745 * error.
738 * 746 *
739 * If the used [http_1.Client] completes with an error when making a REST 747 * If the used [http_1.Client] completes with an error when making a REST
740 * call, this method will complete with the same error. 748 * call, this method will complete with the same error.
(...skipping 24 matching lines...) Expand all
765 downloadOptions: _downloadOptions); 773 downloadOptions: _downloadOptions);
766 return _response.then((data) => new Service.fromJson(data)); 774 return _response.then((data) => new Service.fromJson(data));
767 } 775 }
768 776
769 /** 777 /**
770 * Lists the history of the service configuration for a managed service, 778 * Lists the history of the service configuration for a managed service,
771 * from the newest to the oldest. 779 * from the newest to the oldest.
772 * 780 *
773 * Request parameters: 781 * Request parameters:
774 * 782 *
775 * [serviceName] - The name of the service. See the `ServiceManager` overview 783 * [serviceName] - The name of the service. See the
776 * for naming 784 * [overview](/service-management/overview)
777 * requirements. For example: `example.googleapis.com`. 785 * for naming requirements. For example: `example.googleapis.com`.
778 * 786 *
779 * [pageSize] - The max number of items to include in the response list. 787 * [pageSize] - The max number of items to include in the response list.
780 * 788 *
781 * [pageToken] - The token of the page to retrieve. 789 * [pageToken] - The token of the page to retrieve.
782 * 790 *
783 * Completes with a [ListServiceConfigsResponse]. 791 * Completes with a [ListServiceConfigsResponse].
784 * 792 *
785 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 793 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
786 * error. 794 * error.
787 * 795 *
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 * generated service configuration. To rollout the service configuration to 834 * generated service configuration. To rollout the service configuration to
827 * other services, 835 * other services,
828 * please call CreateServiceRollout. 836 * please call CreateServiceRollout.
829 * 837 *
830 * Operation<response: SubmitConfigSourceResponse> 838 * Operation<response: SubmitConfigSourceResponse>
831 * 839 *
832 * [request] - The metadata request object. 840 * [request] - The metadata request object.
833 * 841 *
834 * Request parameters: 842 * Request parameters:
835 * 843 *
836 * [serviceName] - The name of the service. See the `ServiceManager` overview 844 * [serviceName] - The name of the service. See the
837 * for naming 845 * [overview](/service-management/overview)
838 * requirements. For example: `example.googleapis.com`. 846 * for naming requirements. For example: `example.googleapis.com`.
839 * 847 *
840 * Completes with a [Operation]. 848 * Completes with a [Operation].
841 * 849 *
842 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
843 * error. 851 * error.
844 * 852 *
845 * If the used [http_1.Client] completes with an error when making a REST 853 * If the used [http_1.Client] completes with an error when making a REST
846 * call, this method will complete with the same error. 854 * call, this method will complete with the same error.
847 */ 855 */
848 async.Future<Operation> submit(SubmitConfigSourceRequest request, core.String serviceName) { 856 async.Future<Operation> submit(SubmitConfigSourceRequest request, core.String serviceName) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 888
881 ServicesRolloutsResourceApi(commons.ApiRequester client) : 889 ServicesRolloutsResourceApi(commons.ApiRequester client) :
882 _requester = client; 890 _requester = client;
883 891
884 /** 892 /**
885 * Creates a new service configuration rollout. Based on rollout, the 893 * Creates a new service configuration rollout. Based on rollout, the
886 * Google Service Management will roll out the service configurations to 894 * Google Service Management will roll out the service configurations to
887 * different backend services. For example, the logging configuration will be 895 * different backend services. For example, the logging configuration will be
888 * pushed to Google Cloud Logging. 896 * pushed to Google Cloud Logging.
889 * 897 *
898 * Please note that any previous pending and running Rollouts and associated
899 * Operations will be automatically cancelled so that the latest Rollout will
900 * not be blocked by previous Rollouts.
901 *
890 * Operation<response: Rollout> 902 * Operation<response: Rollout>
891 * 903 *
892 * [request] - The metadata request object. 904 * [request] - The metadata request object.
893 * 905 *
894 * Request parameters: 906 * Request parameters:
895 * 907 *
896 * [serviceName] - The name of the service. See the `ServiceManager` overview 908 * [serviceName] - The name of the service. See the
897 * for naming 909 * [overview](/service-management/overview)
898 * requirements. For example: `example.googleapis.com`. 910 * for naming requirements. For example: `example.googleapis.com`.
899 * 911 *
900 * Completes with a [Operation]. 912 * Completes with a [Operation].
901 * 913 *
902 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 914 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
903 * error. 915 * error.
904 * 916 *
905 * If the used [http_1.Client] completes with an error when making a REST 917 * If the used [http_1.Client] completes with an error when making a REST
906 * call, this method will complete with the same error. 918 * call, this method will complete with the same error.
907 */ 919 */
908 async.Future<Operation> create(Rollout request, core.String serviceName) { 920 async.Future<Operation> create(Rollout request, core.String serviceName) {
(...skipping 21 matching lines...) Expand all
930 uploadMedia: _uploadMedia, 942 uploadMedia: _uploadMedia,
931 downloadOptions: _downloadOptions); 943 downloadOptions: _downloadOptions);
932 return _response.then((data) => new Operation.fromJson(data)); 944 return _response.then((data) => new Operation.fromJson(data));
933 } 945 }
934 946
935 /** 947 /**
936 * Gets a service configuration rollout. 948 * Gets a service configuration rollout.
937 * 949 *
938 * Request parameters: 950 * Request parameters:
939 * 951 *
940 * [serviceName] - The name of the service. See the `ServiceManager` overview 952 * [serviceName] - The name of the service. See the
941 * for naming 953 * [overview](/service-management/overview)
942 * requirements. For example: `example.googleapis.com`. 954 * for naming requirements. For example: `example.googleapis.com`.
943 * 955 *
944 * [rolloutId] - The id of the rollout resource. 956 * [rolloutId] - The id of the rollout resource.
945 * 957 *
946 * Completes with a [Rollout]. 958 * Completes with a [Rollout].
947 * 959 *
948 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 960 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
949 * error. 961 * error.
950 * 962 *
951 * If the used [http_1.Client] completes with an error when making a REST 963 * If the used [http_1.Client] completes with an error when making a REST
952 * call, this method will complete with the same error. 964 * call, this method will complete with the same error.
(...skipping 24 matching lines...) Expand all
977 downloadOptions: _downloadOptions); 989 downloadOptions: _downloadOptions);
978 return _response.then((data) => new Rollout.fromJson(data)); 990 return _response.then((data) => new Rollout.fromJson(data));
979 } 991 }
980 992
981 /** 993 /**
982 * Lists the history of the service configuration rollouts for a managed 994 * Lists the history of the service configuration rollouts for a managed
983 * service, from the newest to the oldest. 995 * service, from the newest to the oldest.
984 * 996 *
985 * Request parameters: 997 * Request parameters:
986 * 998 *
987 * [serviceName] - The name of the service. See the `ServiceManager` overview 999 * [serviceName] - The name of the service. See the
988 * for naming 1000 * [overview](/service-management/overview)
989 * requirements. For example: `example.googleapis.com`. 1001 * for naming requirements. For example: `example.googleapis.com`.
990 * 1002 *
991 * [pageSize] - The max number of items to include in the response list. 1003 * [pageSize] - The max number of items to include in the response list.
992 * 1004 *
993 * [pageToken] - The token of the page to retrieve. 1005 * [pageToken] - The token of the page to retrieve.
994 * 1006 *
995 * Completes with a [ListServiceRolloutsResponse]. 1007 * Completes with a [ListServiceRolloutsResponse].
996 * 1008 *
997 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1009 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
998 * error. 1010 * error.
999 * 1011 *
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 * By default, if a method has any authentication requirements, every request 1394 * By default, if a method has any authentication requirements, every request
1383 * must include a valid credential matching one of the requirements. 1395 * must include a valid credential matching one of the requirements.
1384 * It's an error to include more than one kind of credential in a single 1396 * It's an error to include more than one kind of credential in a single
1385 * request. 1397 * request.
1386 * 1398 *
1387 * If a method doesn't have any auth requirements, request credentials will be 1399 * If a method doesn't have any auth requirements, request credentials will be
1388 * ignored. 1400 * ignored.
1389 */ 1401 */
1390 class AuthenticationRule { 1402 class AuthenticationRule {
1391 /** 1403 /**
1392 * Whether to allow requests without a credential. If quota is enabled, an 1404 * Whether to allow requests without a credential. The credential can be
1393 * API key is required for such request to pass the quota check. 1405 * an OAuth token, Google cookies (first-party auth) or EndUserCreds.
1406 *
1407 * For requests without credentials, if the service control environment is
1408 * specified, each incoming request **must** be associated with a service
1409 * consumer. This can be done by passing an API key that belongs to a consumer
1410 * project.
1394 */ 1411 */
1395 core.bool allowWithoutCredential; 1412 core.bool allowWithoutCredential;
1396 /** The requirements for OAuth credentials. */ 1413 /** The requirements for OAuth credentials. */
1397 OAuthRequirements oauth; 1414 OAuthRequirements oauth;
1398 /** Requirements for additional authentication providers. */ 1415 /** Requirements for additional authentication providers. */
1399 core.List<AuthRequirement> requirements; 1416 core.List<AuthRequirement> requirements;
1400 /** 1417 /**
1401 * Selects the methods to which this rule applies. 1418 * Selects the methods to which this rule applies.
1402 * 1419 *
1403 * Refer to selector for syntax details. 1420 * Refer to selector for syntax details.
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 if (filePath != null) { 1862 if (filePath != null) {
1846 _json["filePath"] = filePath; 1863 _json["filePath"] = filePath;
1847 } 1864 }
1848 if (fileType != null) { 1865 if (fileType != null) {
1849 _json["fileType"] = fileType; 1866 _json["fileType"] = fileType;
1850 } 1867 }
1851 return _json; 1868 return _json;
1852 } 1869 }
1853 } 1870 }
1854 1871
1855 /**
1856 * A set of options to cover use of source config within `ServiceManager`
1857 * and related tools.
1858 */
1859 class ConfigOptions {
1860
1861 ConfigOptions();
1862
1863 ConfigOptions.fromJson(core.Map _json) {
1864 }
1865
1866 core.Map toJson() {
1867 var _json = new core.Map();
1868 return _json;
1869 }
1870 }
1871
1872 /** Represents a service configuration with its name and id. */ 1872 /** Represents a service configuration with its name and id. */
1873 class ConfigRef { 1873 class ConfigRef {
1874 /** 1874 /**
1875 * Resource name of a service config. It must have the following 1875 * Resource name of a service config. It must have the following
1876 * format: "services/{service name}/configs/{config id}". 1876 * format: "services/{service name}/configs/{config id}".
1877 */ 1877 */
1878 core.String name; 1878 core.String name;
1879 1879
1880 ConfigRef(); 1880 ConfigRef();
1881 1881
(...skipping 21 matching lines...) Expand all
1903 * Set of source configuration files that are used to generate a service 1903 * Set of source configuration files that are used to generate a service
1904 * configuration (`google.api.Service`). 1904 * configuration (`google.api.Service`).
1905 */ 1905 */
1906 core.List<ConfigFile> files; 1906 core.List<ConfigFile> files;
1907 /** 1907 /**
1908 * A unique ID for a specific instance of this message, typically assigned 1908 * A unique ID for a specific instance of this message, typically assigned
1909 * by the client for tracking purpose. If empty, the server may choose to 1909 * by the client for tracking purpose. If empty, the server may choose to
1910 * generate one instead. 1910 * generate one instead.
1911 */ 1911 */
1912 core.String id; 1912 core.String id;
1913 /**
1914 * Options to cover use of source configuration within ServiceManager and
1915 * tools
1916 */
1917 ConfigOptions options;
1918 1913
1919 ConfigSource(); 1914 ConfigSource();
1920 1915
1921 ConfigSource.fromJson(core.Map _json) { 1916 ConfigSource.fromJson(core.Map _json) {
1922 if (_json.containsKey("files")) { 1917 if (_json.containsKey("files")) {
1923 files = _json["files"].map((value) => new ConfigFile.fromJson(value)).toLi st(); 1918 files = _json["files"].map((value) => new ConfigFile.fromJson(value)).toLi st();
1924 } 1919 }
1925 if (_json.containsKey("id")) { 1920 if (_json.containsKey("id")) {
1926 id = _json["id"]; 1921 id = _json["id"];
1927 } 1922 }
1928 if (_json.containsKey("options")) {
1929 options = new ConfigOptions.fromJson(_json["options"]);
1930 }
1931 } 1923 }
1932 1924
1933 core.Map toJson() { 1925 core.Map toJson() {
1934 var _json = new core.Map(); 1926 var _json = new core.Map();
1935 if (files != null) { 1927 if (files != null) {
1936 _json["files"] = files.map((value) => (value).toJson()).toList(); 1928 _json["files"] = files.map((value) => (value).toJson()).toList();
1937 } 1929 }
1938 if (id != null) { 1930 if (id != null) {
1939 _json["id"] = id; 1931 _json["id"] = id;
1940 } 1932 }
1941 if (options != null) {
1942 _json["options"] = (options).toJson();
1943 }
1944 return _json; 1933 return _json;
1945 } 1934 }
1946 } 1935 }
1947 1936
1948 /** 1937 /**
1949 * `Context` defines which contexts an API requests. 1938 * `Context` defines which contexts an API requests.
1950 * 1939 *
1951 * Example: 1940 * Example:
1952 * 1941 *
1953 * context: 1942 * context:
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 2507
2519 core.Map toJson() { 2508 core.Map toJson() {
2520 var _json = new core.Map(); 2509 var _json = new core.Map();
2521 if (consumerId != null) { 2510 if (consumerId != null) {
2522 _json["consumerId"] = consumerId; 2511 _json["consumerId"] = consumerId;
2523 } 2512 }
2524 return _json; 2513 return _json;
2525 } 2514 }
2526 } 2515 }
2527 2516
2517 /**
2518 * `Endpoint` describes a network endpoint that serves a set of APIs.
2519 * A service may expose any number of endpoints, and all endpoints share the
2520 * same service configuration, such as quota configuration and monitoring
2521 * configuration.
2522 *
2523 * Example service configuration:
2524 *
2525 * name: library-example.googleapis.com
2526 * endpoints:
2527 * # Below entry makes 'google.example.library.v1.Library'
2528 * # API be served from endpoint address library-example.googleapis.com.
2529 * # It also allows HTTP OPTIONS calls to be passed to the backend, for
2530 * # it to decide whether the subsequent cross-origin request is
2531 * # allowed to proceed.
2532 * - name: library-example.googleapis.com
2533 * apis: google.example.library.v1.Library
2534 * allow_cors: true
2535 * # Below entry makes 'google.example.library.v1.Library'
2536 * # API be served from endpoint address
2537 * # google.example.library-example.v1.LibraryManager.
2538 * - name: library-manager.googleapis.com
2539 * apis: google.example.library.v1.LibraryManager
2540 * # BNS address for a borg job. Can specify a task by appending
2541 * # "/taskId" (e.g. "/0") to the job spec.
2542 *
2543 * Example OpenAPI extension for endpoint with allow_cors set to true:
2544 *
2545 * {
2546 * "swagger": "2.0",
2547 * "info": {
2548 * "description": "A simple..."
2549 * },
2550 * "host": "MY_PROJECT_ID.appspot.com",
2551 * "x-google-endpoints": [{
2552 * "name": "MY_PROJECT_ID.appspot.com",
2553 * "allow_cors": "true"
2554 * }]
2555 * }
2556 */
2557 class Endpoint {
2558 /**
2559 * DEPRECATED: This field is no longer supported. Instead of using aliases,
2560 * please specify multiple google.api.Endpoint for each of the intented
2561 * alias.
2562 *
2563 * Additional names that this endpoint will be hosted on.
2564 */
2565 core.List<core.String> aliases;
2566 /**
2567 * Allowing
2568 * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
2569 * cross-domain traffic, would allow the backends served from this endpoint to
2570 * receive and respond to HTTP OPTIONS requests. The response will be used by
2571 * the browser to determine whether the subsequent cross-origin request is
2572 * allowed to proceed.
2573 */
2574 core.bool allowCors;
2575 /** The list of APIs served by this endpoint. */
2576 core.List<core.String> apis;
2577 /** The list of features enabled on this endpoint. */
2578 core.List<core.String> features;
2579 /** The canonical name of this endpoint. */
2580 core.String name;
2581
2582 Endpoint();
2583
2584 Endpoint.fromJson(core.Map _json) {
2585 if (_json.containsKey("aliases")) {
2586 aliases = _json["aliases"];
2587 }
2588 if (_json.containsKey("allowCors")) {
2589 allowCors = _json["allowCors"];
2590 }
2591 if (_json.containsKey("apis")) {
2592 apis = _json["apis"];
2593 }
2594 if (_json.containsKey("features")) {
2595 features = _json["features"];
2596 }
2597 if (_json.containsKey("name")) {
2598 name = _json["name"];
2599 }
2600 }
2601
2602 core.Map toJson() {
2603 var _json = new core.Map();
2604 if (aliases != null) {
2605 _json["aliases"] = aliases;
2606 }
2607 if (allowCors != null) {
2608 _json["allowCors"] = allowCors;
2609 }
2610 if (apis != null) {
2611 _json["apis"] = apis;
2612 }
2613 if (features != null) {
2614 _json["features"] = features;
2615 }
2616 if (name != null) {
2617 _json["name"] = name;
2618 }
2619 return _json;
2620 }
2621 }
2622
2528 /** Enum type definition. */ 2623 /** Enum type definition. */
2529 class Enum { 2624 class Enum {
2530 /** Enum value definitions. */ 2625 /** Enum value definitions. */
2531 core.List<EnumValue> enumvalue; 2626 core.List<EnumValue> enumvalue;
2532 /** Enum type name. */ 2627 /** Enum type name. */
2533 core.String name; 2628 core.String name;
2534 /** Protocol buffer options. */ 2629 /** Protocol buffer options. */
2535 core.List<Option> options; 2630 core.List<Option> options;
2536 /** The source context. */ 2631 /** The source context. */
2537 SourceContext sourceContext; 2632 SourceContext sourceContext;
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
3626 /** 3721 /**
3627 * The full representation of a Service that is managed by 3722 * The full representation of a Service that is managed by
3628 * Google Service Management. 3723 * Google Service Management.
3629 */ 3724 */
3630 class ManagedService { 3725 class ManagedService {
3631 /** ID of the project that produces and owns this service. */ 3726 /** ID of the project that produces and owns this service. */
3632 core.String producerProjectId; 3727 core.String producerProjectId;
3633 /** 3728 /**
3634 * The name of the service. See the [overview](/service-management/overview) 3729 * The name of the service. See the [overview](/service-management/overview)
3635 * for naming requirements. 3730 * for naming requirements.
3636 * This name must match `google.api.Service.name` in the
3637 * `service_config` field.
3638 */ 3731 */
3639 core.String serviceName; 3732 core.String serviceName;
3640 3733
3641 ManagedService(); 3734 ManagedService();
3642 3735
3643 ManagedService.fromJson(core.Map _json) { 3736 ManagedService.fromJson(core.Map _json) {
3644 if (_json.containsKey("producerProjectId")) { 3737 if (_json.containsKey("producerProjectId")) {
3645 producerProjectId = _json["producerProjectId"]; 3738 producerProjectId = _json["producerProjectId"];
3646 } 3739 }
3647 if (_json.containsKey("serviceName")) { 3740 if (_json.containsKey("serviceName")) {
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
4107 * by the API. 4200 * by the API.
4108 */ 4201 */
4109 class MonitoredResourceDescriptor { 4202 class MonitoredResourceDescriptor {
4110 /** 4203 /**
4111 * Optional. A detailed description of the monitored resource type that might 4204 * Optional. A detailed description of the monitored resource type that might
4112 * be used in documentation. 4205 * be used in documentation.
4113 */ 4206 */
4114 core.String description; 4207 core.String description;
4115 /** 4208 /**
4116 * Optional. A concise name for the monitored resource type that might be 4209 * Optional. A concise name for the monitored resource type that might be
4117 * displayed in user interfaces. For example, `"Google Cloud SQL Database"`. 4210 * displayed in user interfaces. It should be a Title Cased Noun Phrase,
4211 * without any article or other determiners. For example,
4212 * `"Google Cloud SQL Database"`.
4118 */ 4213 */
4119 core.String displayName; 4214 core.String displayName;
4120 /** 4215 /**
4121 * Required. A set of labels used to describe instances of this monitored 4216 * Required. A set of labels used to describe instances of this monitored
4122 * resource type. For example, an individual Google Cloud SQL database is 4217 * resource type. For example, an individual Google Cloud SQL database is
4123 * identified by values for the labels `"database_id"` and `"zone"`. 4218 * identified by values for the labels `"database_id"` and `"zone"`.
4124 */ 4219 */
4125 core.List<LabelDescriptor> labels; 4220 core.List<LabelDescriptor> labels;
4126 /** 4221 /**
4127 * Optional. The resource name of the monitored resource descriptor: 4222 * Optional. The resource name of the monitored resource descriptor:
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4747 * version. Readonly. 4842 * version. Readonly.
4748 * Possible string values are: 4843 * Possible string values are:
4749 * - "ROLLOUT_STATUS_UNSPECIFIED" : No status specified. 4844 * - "ROLLOUT_STATUS_UNSPECIFIED" : No status specified.
4750 * - "IN_PROGRESS" : The Rollout is in progress. 4845 * - "IN_PROGRESS" : The Rollout is in progress.
4751 * - "SUCCESS" : The Rollout has completed successfully. 4846 * - "SUCCESS" : The Rollout has completed successfully.
4752 * - "CANCELLED" : The Rollout has been cancelled. This can happen if you have 4847 * - "CANCELLED" : The Rollout has been cancelled. This can happen if you have
4753 * overlapping 4848 * overlapping
4754 * Rollout pushes, and the previous ones will be cancelled. 4849 * Rollout pushes, and the previous ones will be cancelled.
4755 * - "FAILED" : The Rollout has failed. It is typically caused by 4850 * - "FAILED" : The Rollout has failed. It is typically caused by
4756 * configuration errors. 4851 * configuration errors.
4757 * - "PENDING" : The Rollout has started yet and is pending for execution. 4852 * - "PENDING" : The Rollout has not started yet and is pending for execution.
4758 */ 4853 */
4759 core.String status; 4854 core.String status;
4760 /** 4855 /**
4761 * Google Service Control selects service configurations based on 4856 * Google Service Control selects service configurations based on
4762 * traffic percentage. 4857 * traffic percentage.
4763 */ 4858 */
4764 TrafficPercentStrategy trafficPercentStrategy; 4859 TrafficPercentStrategy trafficPercentStrategy;
4765 4860
4766 Rollout(); 4861 Rollout();
4767 4862
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
4955 core.int configVersion; 5050 core.int configVersion;
4956 /** Context configuration. */ 5051 /** Context configuration. */
4957 Context context; 5052 Context context;
4958 /** Configuration for the service control plane. */ 5053 /** Configuration for the service control plane. */
4959 Control control; 5054 Control control;
4960 /** Custom error configuration. */ 5055 /** Custom error configuration. */
4961 CustomError customError; 5056 CustomError customError;
4962 /** Additional API documentation. */ 5057 /** Additional API documentation. */
4963 Documentation documentation; 5058 Documentation documentation;
4964 /** 5059 /**
5060 * Configuration for network endpoints. If this is empty, then an endpoint
5061 * with the same name as the service is automatically generated to service all
5062 * defined APIs.
5063 */
5064 core.List<Endpoint> endpoints;
5065 /**
4965 * A list of all enum types included in this API service. Enums 5066 * A list of all enum types included in this API service. Enums
4966 * referenced directly or indirectly by the `apis` are automatically 5067 * referenced directly or indirectly by the `apis` are automatically
4967 * included. Enums which are not referenced but shall be included 5068 * included. Enums which are not referenced but shall be included
4968 * should be listed here by name. Example: 5069 * should be listed here by name. Example:
4969 * 5070 *
4970 * enums: 5071 * enums:
4971 * - name: google.someapi.v1.SomeEnum 5072 * - name: google.someapi.v1.SomeEnum
4972 */ 5073 */
4973 core.List<Enum> enums; 5074 core.List<Enum> enums;
4974 /** HTTP configuration. */ 5075 /** HTTP configuration. */
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
5051 } 5152 }
5052 if (_json.containsKey("control")) { 5153 if (_json.containsKey("control")) {
5053 control = new Control.fromJson(_json["control"]); 5154 control = new Control.fromJson(_json["control"]);
5054 } 5155 }
5055 if (_json.containsKey("customError")) { 5156 if (_json.containsKey("customError")) {
5056 customError = new CustomError.fromJson(_json["customError"]); 5157 customError = new CustomError.fromJson(_json["customError"]);
5057 } 5158 }
5058 if (_json.containsKey("documentation")) { 5159 if (_json.containsKey("documentation")) {
5059 documentation = new Documentation.fromJson(_json["documentation"]); 5160 documentation = new Documentation.fromJson(_json["documentation"]);
5060 } 5161 }
5162 if (_json.containsKey("endpoints")) {
5163 endpoints = _json["endpoints"].map((value) => new Endpoint.fromJson(value) ).toList();
5164 }
5061 if (_json.containsKey("enums")) { 5165 if (_json.containsKey("enums")) {
5062 enums = _json["enums"].map((value) => new Enum.fromJson(value)).toList(); 5166 enums = _json["enums"].map((value) => new Enum.fromJson(value)).toList();
5063 } 5167 }
5064 if (_json.containsKey("http")) { 5168 if (_json.containsKey("http")) {
5065 http = new Http.fromJson(_json["http"]); 5169 http = new Http.fromJson(_json["http"]);
5066 } 5170 }
5067 if (_json.containsKey("id")) { 5171 if (_json.containsKey("id")) {
5068 id = _json["id"]; 5172 id = _json["id"];
5069 } 5173 }
5070 if (_json.containsKey("logging")) { 5174 if (_json.containsKey("logging")) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
5127 } 5231 }
5128 if (control != null) { 5232 if (control != null) {
5129 _json["control"] = (control).toJson(); 5233 _json["control"] = (control).toJson();
5130 } 5234 }
5131 if (customError != null) { 5235 if (customError != null) {
5132 _json["customError"] = (customError).toJson(); 5236 _json["customError"] = (customError).toJson();
5133 } 5237 }
5134 if (documentation != null) { 5238 if (documentation != null) {
5135 _json["documentation"] = (documentation).toJson(); 5239 _json["documentation"] = (documentation).toJson();
5136 } 5240 }
5241 if (endpoints != null) {
5242 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
5243 }
5137 if (enums != null) { 5244 if (enums != null) {
5138 _json["enums"] = enums.map((value) => (value).toJson()).toList(); 5245 _json["enums"] = enums.map((value) => (value).toJson()).toList();
5139 } 5246 }
5140 if (http != null) { 5247 if (http != null) {
5141 _json["http"] = (http).toJson(); 5248 _json["http"] = (http).toJson();
5142 } 5249 }
5143 if (id != null) { 5250 if (id != null) {
5144 _json["id"] = id; 5251 _json["id"] = id;
5145 } 5252 }
5146 if (logging != null) { 5253 if (logging != null) {
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
5984 var _json = new core.Map(); 6091 var _json = new core.Map();
5985 if (restriction != null) { 6092 if (restriction != null) {
5986 _json["restriction"] = restriction; 6093 _json["restriction"] = restriction;
5987 } 6094 }
5988 if (selector != null) { 6095 if (selector != null) {
5989 _json["selector"] = selector; 6096 _json["selector"] = selector;
5990 } 6097 }
5991 return _json; 6098 return _json;
5992 } 6099 }
5993 } 6100 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/servicecontrol/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698