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.servicecontrol.v1; | 3 library googleapis.servicecontrol.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; | 10 import 'package:http/http.dart' as http; |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 } | 696 } |
697 } | 697 } |
698 | 698 |
699 /** Authentication information for the operation. */ | 699 /** Authentication information for the operation. */ |
700 class AuthenticationInfo { | 700 class AuthenticationInfo { |
701 /** | 701 /** |
702 * The authority selector specified by the requestor, if any. | 702 * The authority selector specified by the requestor, if any. |
703 * It is not guaranteed that the principal was allowed to use this authority. | 703 * It is not guaranteed that the principal was allowed to use this authority. |
704 */ | 704 */ |
705 core.String authoritySelector; | 705 core.String authoritySelector; |
706 /** The email address of the authenticated user making the request. */ | 706 /** |
| 707 * The email address of the authenticated user making the request. |
| 708 * For privacy reasons, the principal email address is redacted for all |
| 709 * read-only operations that fail with a "permission denied" error. |
| 710 */ |
707 core.String principalEmail; | 711 core.String principalEmail; |
708 | 712 |
709 AuthenticationInfo(); | 713 AuthenticationInfo(); |
710 | 714 |
711 AuthenticationInfo.fromJson(core.Map _json) { | 715 AuthenticationInfo.fromJson(core.Map _json) { |
712 if (_json.containsKey("authoritySelector")) { | 716 if (_json.containsKey("authoritySelector")) { |
713 authoritySelector = _json["authoritySelector"]; | 717 authoritySelector = _json["authoritySelector"]; |
714 } | 718 } |
715 if (_json.containsKey("principalEmail")) { | 719 if (_json.containsKey("principalEmail")) { |
716 principalEmail = _json["principalEmail"]; | 720 principalEmail = _json["principalEmail"]; |
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 * For QuotaGroup-based quota, this is QuotaGroup.name | 1979 * For QuotaGroup-based quota, this is QuotaGroup.name |
1976 * For QuotaLimit-based quota, this is QuotaLimit.name | 1980 * For QuotaLimit-based quota, this is QuotaLimit.name |
1977 * See: google.api.Quota | 1981 * See: google.api.Quota |
1978 * Deprecated: Use quota_metrics to get per quota group limit exceeded status. | 1982 * Deprecated: Use quota_metrics to get per quota group limit exceeded status. |
1979 */ | 1983 */ |
1980 core.List<core.String> limitExceeded; | 1984 core.List<core.String> limitExceeded; |
1981 /** | 1985 /** |
1982 * Map of quota group name to the actual number of tokens consumed. If the | 1986 * Map of quota group name to the actual number of tokens consumed. If the |
1983 * quota check was not successful, then this will not be populated due to no | 1987 * quota check was not successful, then this will not be populated due to no |
1984 * quota consumption. | 1988 * quota consumption. |
1985 * Deprecated: Use quota_metrics to get per quota group usage. | 1989 * |
| 1990 * We are not merging this field with 'quota_metrics' field because of the |
| 1991 * complexity of scaling in Chemist client code base. For simplicity, we will |
| 1992 * keep this field for Castor (that scales quota usage) and 'quota_metrics' |
| 1993 * for SuperQuota (that doesn't scale quota usage). |
1986 */ | 1994 */ |
1987 core.Map<core.String, core.int> quotaConsumed; | 1995 core.Map<core.String, core.int> quotaConsumed; |
1988 /** | 1996 /** |
1989 * Quota metrics to indicate the usage. Depending on the check request, one or | 1997 * Quota metrics to indicate the usage. Depending on the check request, one or |
1990 * more of the following metrics will be included: | 1998 * more of the following metrics will be included: |
1991 * | 1999 * |
1992 * 1. For rate quota, per quota group or per quota metric incremental usage | 2000 * 1. For rate quota, per quota group or per quota metric incremental usage |
1993 * will be specified using the following delta metric: | 2001 * will be specified using the following delta metric: |
1994 * "serviceruntime.googleapis.com/api/consumer/quota_used_count" | 2002 * "serviceruntime.googleapis.com/api/consumer/quota_used_count" |
1995 * | 2003 * |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2049 * Fully qualified name of the API method for which this quota operation is | 2057 * Fully qualified name of the API method for which this quota operation is |
2050 * requested. This name is used for matching quota rules or metric rules and | 2058 * requested. This name is used for matching quota rules or metric rules and |
2051 * billing status rules defined in service configuration. This field is not | 2059 * billing status rules defined in service configuration. This field is not |
2052 * required if the quota operation is performed on non-API resources. | 2060 * required if the quota operation is performed on non-API resources. |
2053 * | 2061 * |
2054 * Example of an RPC method name: | 2062 * Example of an RPC method name: |
2055 * google.example.library.v1.LibraryService.CreateShelf | 2063 * google.example.library.v1.LibraryService.CreateShelf |
2056 */ | 2064 */ |
2057 core.String methodName; | 2065 core.String methodName; |
2058 /** | 2066 /** |
2059 * Identity of the operation. This must be unique within the scope of the | 2067 * Identity of the operation. This is expected to be unique within the scope |
2060 * service that generated the operation. If the service calls AllocateQuota | 2068 * of the service that generated the operation, and guarantees idempotency in |
2061 * and ReleaseQuota on the same operation, the two calls should carry the | 2069 * case of retries. |
2062 * same ID. | |
2063 * | 2070 * |
2064 * UUID version 4 is recommended, though not required. In scenarios where an | 2071 * UUID version 4 is recommended, though not required. In scenarios where an |
2065 * operation is computed from existing information and an idempotent id is | 2072 * operation is computed from existing information and an idempotent id is |
2066 * desirable for deduplication purpose, UUID version 5 is recommended. See | 2073 * desirable for deduplication purpose, UUID version 5 is recommended. See |
2067 * RFC 4122 for details. | 2074 * RFC 4122 for details. |
2068 */ | 2075 */ |
2069 core.String operationId; | 2076 core.String operationId; |
2070 /** | 2077 /** |
2071 * Represents information about this operation. Each MetricValueSet | 2078 * Represents information about this operation. Each MetricValueSet |
2072 * corresponds to a metric defined in the service configuration. | 2079 * corresponds to a metric defined in the service configuration. |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 } | 2733 } |
2727 if (details != null) { | 2734 if (details != null) { |
2728 _json["details"] = details; | 2735 _json["details"] = details; |
2729 } | 2736 } |
2730 if (message != null) { | 2737 if (message != null) { |
2731 _json["message"] = message; | 2738 _json["message"] = message; |
2732 } | 2739 } |
2733 return _json; | 2740 return _json; |
2734 } | 2741 } |
2735 } | 2742 } |
OLD | NEW |